xref: /freebsd-src/sys/contrib/device-tree/src/arm64/allwinner/sun50i-a64-pinephone-1.1.dts (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2c66ec88fSEmmanuel Vadot// Copyright (C) 2020 Ondrej Jirman <megous@megous.com>
3c66ec88fSEmmanuel Vadot
4c66ec88fSEmmanuel Vadot/dts-v1/;
5c66ec88fSEmmanuel Vadot
6c66ec88fSEmmanuel Vadot#include "sun50i-a64-pinephone.dtsi"
7c66ec88fSEmmanuel Vadot
8c66ec88fSEmmanuel Vadot/ {
9c66ec88fSEmmanuel Vadot	model = "Pine64 PinePhone Braveheart (1.1)";
105def4c47SEmmanuel Vadot	compatible = "pine64,pinephone-1.1", "pine64,pinephone", "allwinner,sun50i-a64";
11c66ec88fSEmmanuel Vadot};
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadot&backlight {
14c66ec88fSEmmanuel Vadot	power-supply = <&reg_ldo_io0>;
15c66ec88fSEmmanuel Vadot	/*
16c66ec88fSEmmanuel Vadot	 * PWM backlight circuit on this PinePhone revision was changed since
17c66ec88fSEmmanuel Vadot	 * 1.0, and the lowest PWM duty cycle that doesn't lead to backlight
18c66ec88fSEmmanuel Vadot	 * being off is around 20%. Duty cycle for the lowest brightness level
19c66ec88fSEmmanuel Vadot	 * also varries quite a bit between individual boards, so the lowest
20c66ec88fSEmmanuel Vadot	 * value here was chosen as a safe default.
21c66ec88fSEmmanuel Vadot	 */
22c66ec88fSEmmanuel Vadot	brightness-levels = <
23c66ec88fSEmmanuel Vadot		774  793  814  842
24c66ec88fSEmmanuel Vadot		882  935  1003 1088
25c66ec88fSEmmanuel Vadot		1192 1316 1462 1633
26c66ec88fSEmmanuel Vadot		1830 2054 2309 2596
27c66ec88fSEmmanuel Vadot		2916 3271 3664 4096>;
28c66ec88fSEmmanuel Vadot	num-interpolated-steps = <50>;
29c66ec88fSEmmanuel Vadot	default-brightness-level = <400>;
30c66ec88fSEmmanuel Vadot};
315def4c47SEmmanuel Vadot
32*b97ee269SEmmanuel Vadot&codec_analog {
33*b97ee269SEmmanuel Vadot	allwinner,internal-bias-resistor;
34*b97ee269SEmmanuel Vadot};
35*b97ee269SEmmanuel Vadot
365def4c47SEmmanuel Vadot&sgm3140 {
375def4c47SEmmanuel Vadot	enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
385def4c47SEmmanuel Vadot	flash-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */
395def4c47SEmmanuel Vadot};
40