1/dts-v1/; 2/plugin/; 3 4#include <dt-bindings/gpio/gpio.h> 5 6/ { 7 compatible = "allwinner,sun50i-h5"; 8}; 9 10&{/} { 11 vdd_cpux: gpio-regulator { 12 compatible = "regulator-gpio"; 13 pinctrl-names = "default"; 14 regulator-name = "vdd-cpux"; 15 regulator-type = "voltage"; 16 regulator-boot-on; 17 regulator-always-on; 18 regulator-min-microvolt = <1100000>; 19 regulator-max-microvolt = <1300000>; 20 regulator-ramp-delay = <50>; /* 4ms */ 21 gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ 22 gpios-states = <0x1>; 23 states = <1100000 0x0 24 1300000 0x1>; 25 }; 26 27}; 28 29&{/cpus/cpu@0} { 30 cpu-supply = <&vdd_cpux>; 31}; 32 33