sun50i-a64-pinephone-1.1.dts 1.0 KB

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