blob: 3e99a87e9ce5220da92e5e42af7c08f0782cddde [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)";
10 compatible = "pine64,pinephone-1.1", "allwinner,sun50i-a64";
11};
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};