blob: 5e59d37521784430d663875313aed5374863d432 [file] [log] [blame]
Samuel Hollande210ec02020-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 Przywara647b3922021-04-17 22:55:19 +010010 compatible = "pine64,pinephone-1.1", "pine64,pinephone", "allwinner,sun50i-a64";
Samuel Hollande210ec02020-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 Przywara647b3922021-04-17 22:55:19 +010031
32&sgm3140 {
33 enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
34 flash-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */
35};