Skip to content

Commit 8c45bf9

Browse files
rclaveau-techsuperna9999
authored andcommitted
arm64: dts: amlogic: t7: khadas-vim4: Add power regulators
Add voltage regulator nodes describing the VIM4 power tree, required by peripheral nodes such as the SD card controller. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Ronald Claveau <linux-kernel-dev@aliel.fr> Link: https://patch.msgid.link/20260326-add-emmc-t7-vim4-v5-6-d3f182b48e9d@aliel.fr [narmstrong: squashed "Remove invalid property fix" from Ronald] Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
1 parent 2a2a7b9 commit 8c45bf9

1 file changed

Lines changed: 89 additions & 0 deletions

File tree

arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
/dts-v1/;
77

88
#include "amlogic-t7.dtsi"
9+
#include <dt-bindings/gpio/amlogic,t7-periphs-pinctrl.h>
10+
#include <dt-bindings/gpio/gpio.h>
911

1012
/ {
1113
model = "Khadas VIM4";
@@ -47,6 +49,93 @@
4749
#clock-cells = <0>;
4850
};
4951

52+
dc_in: regulator-dc-in {
53+
compatible = "regulator-fixed";
54+
regulator-name = "DC_IN";
55+
regulator-min-microvolt = <5000000>;
56+
regulator-max-microvolt = <5000000>;
57+
regulator-always-on;
58+
};
59+
60+
sd_3v3: regulator-sdcard-3v3 {
61+
compatible = "regulator-fixed";
62+
regulator-name = "SD_3V3";
63+
regulator-min-microvolt = <3300000>;
64+
regulator-max-microvolt = <3300000>;
65+
vin-supply = <&vddao_3v3>;
66+
gpio = <&gpio GPIOD_11 GPIO_ACTIVE_LOW>;
67+
regulator-boot-on;
68+
regulator-always-on;
69+
};
70+
71+
vcc5v: regulator-vcc-5v {
72+
compatible = "regulator-fixed";
73+
regulator-name = "VCC5V";
74+
regulator-min-microvolt = <5000000>;
75+
regulator-max-microvolt = <5000000>;
76+
vin-supply = <&dc_in>;
77+
78+
gpio = <&gpio GPIOH_4 GPIO_ACTIVE_HIGH>;
79+
enable-active-high;
80+
};
81+
82+
vcc5v0_usb: regulator-vcc-usb {
83+
compatible = "regulator-fixed";
84+
regulator-name = "VCC5V0_USB";
85+
regulator-min-microvolt = <5000000>;
86+
regulator-max-microvolt = <5000000>;
87+
vin-supply = <&vcc5v>;
88+
89+
gpio = <&gpio GPIOY_5 GPIO_ACTIVE_HIGH>;
90+
enable-active-high;
91+
};
92+
93+
vddao_1v8: regulator-vddao-1v8 {
94+
compatible = "regulator-fixed";
95+
regulator-name = "VDDAO_1V8";
96+
regulator-min-microvolt = <1800000>;
97+
regulator-max-microvolt = <1800000>;
98+
vin-supply = <&vddao_3v3>;
99+
regulator-always-on;
100+
};
101+
102+
vddao_3v3: regulator-vddao-3v3 {
103+
compatible = "regulator-fixed";
104+
regulator-name = "VDDAO_3V3";
105+
regulator-min-microvolt = <3300000>;
106+
regulator-max-microvolt = <3300000>;
107+
vin-supply = <&dc_in>;
108+
regulator-always-on;
109+
};
110+
111+
vddio_1v8: regulator-vddio-1v8 {
112+
compatible = "regulator-fixed";
113+
regulator-name = "VDDIO_1V8";
114+
regulator-min-microvolt = <1800000>;
115+
regulator-max-microvolt = <1800000>;
116+
vin-supply = <&vddio_3v3>;
117+
regulator-always-on;
118+
};
119+
120+
vddio_3v3: regulator-vddio-3v3 {
121+
compatible = "regulator-fixed";
122+
regulator-name = "VDDIO_3V3";
123+
regulator-min-microvolt = <3300000>;
124+
regulator-max-microvolt = <3300000>;
125+
vin-supply = <&vddao_3v3>;
126+
regulator-always-on;
127+
};
128+
129+
vddio_c: regulator-gpio-c {
130+
compatible = "regulator-gpio";
131+
regulator-name = "VDDIO_C";
132+
regulator-min-microvolt = <1800000>;
133+
regulator-max-microvolt = <3300000>;
134+
vin-supply = <&vddio_3v3>;
135+
gpios = <&gpio GPIOD_9 GPIO_ACTIVE_HIGH>;
136+
states = <1800000 1
137+
3300000 0>;
138+
};
50139
};
51140

52141
&uart_a {

0 commit comments

Comments
 (0)