blob: 723af64a9ceee8c7129e8409647b934ec6eb10de [file] [log] [blame]
Samuel Holland26bc4e72020-10-24 10:21:55 -05001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2// Copyright (C) 2020 Ondrej Jirman <megous@megous.com>
3
4/dts-v1/;
5
6#include "sun50i-a64-pinephone.dtsi"
7
8/ {
9 model = "Pine64 PinePhone Braveheart (1.1)";
Andre Przywarafb675472021-04-17 22:55:19 +010010 compatible = "pine64,pinephone-1.1", "pine64,pinephone", "allwinner,sun50i-a64";
Samuel Holland26bc4e72020-10-24 10:21:55 -050011};
12
13&backlight {
14 power-supply = <&reg_ldo_io0>;
15 /*
16 * PWM backlight circuit on this PinePhone revision was changed since
17 * 1.0, and the lowest PWM duty cycle that doesn't lead to backlight
18 * being off is around 20%. Duty cycle for the lowest brightness level
19 * also varries quite a bit between individual boards, so the lowest
20 * value here was chosen as a safe default.
21 */
22 brightness-levels = <
23 774 793 814 842
24 882 935 1003 1088
25 1192 1316 1462 1633
26 1830 2054 2309 2596
27 2916 3271 3664 4096>;
28 num-interpolated-steps = <50>;
29 default-brightness-level = <400>;
30};
Andre Przywarafb675472021-04-17 22:55:19 +010031
Andre Przywara5eb4bbe2022-09-11 00:04:41 +010032&codec_analog {
33 allwinner,internal-bias-resistor;
34};
35
Andre Przywarafb675472021-04-17 22:55:19 +010036&sgm3140 {
37 enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
38 flash-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */
39};