sun50i-a64-pinephone-1.2.dts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 (1.2)";
  7. compatible = "pine64,pinephone-1.2", "pine64,pinephone", "allwinner,sun50i-a64";
  8. wifi_pwrseq: wifi-pwrseq {
  9. compatible = "mmc-pwrseq-simple";
  10. reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
  11. };
  12. };
  13. &backlight {
  14. power-supply = <&reg_ldo_io0>;
  15. /*
  16. * PWM backlight circuit on this PinePhone revision was changed since 1.0,
  17. * and the lowest PWM duty cycle that doesn't lead to backlight being off
  18. * is around 10%. Duty cycle for the lowest brightness level also varries
  19. * quite a bit between individual boards, so the lowest value here was
  20. * chosen as a safe default.
  21. */
  22. brightness-levels = <
  23. 5000 5248 5506 5858 6345
  24. 6987 7805 8823 10062 11543
  25. 13287 15317 17654 20319 23336
  26. 26724 30505 34702 39335 44427
  27. 50000
  28. >;
  29. num-interpolated-steps = <50>;
  30. default-brightness-level = <500>;
  31. };
  32. &lis3mdl {
  33. /*
  34. * Board revision 1.2 fixed routing of the interrupt to DRDY pin,
  35. * enable interrupts.
  36. */
  37. interrupt-parent = <&pio>;
  38. interrupts = <1 1 IRQ_TYPE_EDGE_RISING>; /* PB1 */
  39. };
  40. &mmc1 {
  41. mmc-pwrseq = <&wifi_pwrseq>;
  42. };
  43. &sgm3140 {
  44. enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
  45. flash-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */
  46. };