0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 // Copyright (C) 2020 Ondrej Jirman <megous@megous.com>
0003
0004 /dts-v1/;
0005
0006 #include "sun50i-a64-pinephone.dtsi"
0007
0008 / {
0009 model = "Pine64 PinePhone Braveheart (1.1)";
0010 compatible = "pine64,pinephone-1.1", "pine64,pinephone", "allwinner,sun50i-a64";
0011 };
0012
0013 &backlight {
0014 power-supply = <®_ldo_io0>;
0015 /*
0016 * PWM backlight circuit on this PinePhone revision was changed since
0017 * 1.0, and the lowest PWM duty cycle that doesn't lead to backlight
0018 * being off is around 20%. Duty cycle for the lowest brightness level
0019 * also varries quite a bit between individual boards, so the lowest
0020 * value here was chosen as a safe default.
0021 */
0022 brightness-levels = <
0023 774 793 814 842
0024 882 935 1003 1088
0025 1192 1316 1462 1633
0026 1830 2054 2309 2596
0027 2916 3271 3664 4096>;
0028 num-interpolated-steps = <50>;
0029 default-brightness-level = <400>;
0030 };
0031
0032 &codec_analog {
0033 allwinner,internal-bias-resistor;
0034 };
0035
0036 &sgm3140 {
0037 enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
0038 flash-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */
0039 };