18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
28c2ecf20Sopenharmony_ci// Copyright (C) 2020 Ondrej Jirman <megous@megous.com>
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci/dts-v1/;
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#include "sun50i-a64-pinephone.dtsi"
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci/ {
98c2ecf20Sopenharmony_ci	model = "Pine64 PinePhone Braveheart (1.1)";
108c2ecf20Sopenharmony_ci	compatible = "pine64,pinephone-1.1", "allwinner,sun50i-a64";
118c2ecf20Sopenharmony_ci};
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci&backlight {
148c2ecf20Sopenharmony_ci	power-supply = <&reg_ldo_io0>;
158c2ecf20Sopenharmony_ci	/*
168c2ecf20Sopenharmony_ci	 * PWM backlight circuit on this PinePhone revision was changed since
178c2ecf20Sopenharmony_ci	 * 1.0, and the lowest PWM duty cycle that doesn't lead to backlight
188c2ecf20Sopenharmony_ci	 * being off is around 20%. Duty cycle for the lowest brightness level
198c2ecf20Sopenharmony_ci	 * also varries quite a bit between individual boards, so the lowest
208c2ecf20Sopenharmony_ci	 * value here was chosen as a safe default.
218c2ecf20Sopenharmony_ci	 */
228c2ecf20Sopenharmony_ci	brightness-levels = <
238c2ecf20Sopenharmony_ci		774  793  814  842
248c2ecf20Sopenharmony_ci		882  935  1003 1088
258c2ecf20Sopenharmony_ci		1192 1316 1462 1633
268c2ecf20Sopenharmony_ci		1830 2054 2309 2596
278c2ecf20Sopenharmony_ci		2916 3271 3664 4096>;
288c2ecf20Sopenharmony_ci	num-interpolated-steps = <50>;
298c2ecf20Sopenharmony_ci	default-brightness-level = <400>;
308c2ecf20Sopenharmony_ci};
31