sunxi-bananapi-m2-plus-v1.2.dtsi 847 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (C) 2018 Chen-Yu Tsai <[email protected]>
  4. */
  5. #include "sunxi-bananapi-m2-plus.dtsi"
  6. / {
  7. /*
  8. * Bananapi M2+ v1.2 uses a GPIO line to change the effective
  9. * resistance on the CPU regulator's feedback pin.
  10. */
  11. reg_vdd_cpux: vdd-cpux {
  12. compatible = "regulator-gpio";
  13. regulator-name = "vdd-cpux";
  14. regulator-type = "voltage";
  15. regulator-boot-on;
  16. regulator-always-on;
  17. regulator-min-microvolt = <1108475>;
  18. regulator-max-microvolt = <1308475>;
  19. regulator-ramp-delay = <50>; /* 4ms */
  20. gpios = <&r_pio 0 1 GPIO_ACTIVE_HIGH>; /* PL1 */
  21. gpios-states = <0x1>;
  22. states = <1108475 0>, <1308475 1>;
  23. };
  24. };
  25. &cpu0 {
  26. cpu-supply = <&reg_vdd_cpux>;
  27. };
  28. &cpu1 {
  29. cpu-supply = <&reg_vdd_cpux>;
  30. };
  31. &cpu2 {
  32. cpu-supply = <&reg_vdd_cpux>;
  33. };
  34. &cpu3 {
  35. cpu-supply = <&reg_vdd_cpux>;
  36. };