Samuel Holland | 26bc4e7 | 2020-10-24 10:21:55 -0500 | [diff] [blame] | 1 | // 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 Przywara | fb67547 | 2021-04-17 22:55:19 +0100 | [diff] [blame] | 10 | compatible = "pine64,pinephone-1.1", "pine64,pinephone", "allwinner,sun50i-a64"; |
Samuel Holland | 26bc4e7 | 2020-10-24 10:21:55 -0500 | [diff] [blame] | 11 | }; |
| 12 | |
| 13 | &backlight { |
| 14 | power-supply = <®_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 Przywara | fb67547 | 2021-04-17 22:55:19 +0100 | [diff] [blame] | 31 | |
Andre Przywara | 5eb4bbe | 2022-09-11 00:04:41 +0100 | [diff] [blame] | 32 | &codec_analog { |
| 33 | allwinner,internal-bias-resistor; |
| 34 | }; |
| 35 | |
Andre Przywara | fb67547 | 2021-04-17 22:55:19 +0100 | [diff] [blame] | 36 | &sgm3140 { |
| 37 | enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ |
| 38 | flash-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */ |
| 39 | }; |