Skip to content

Commit 35f2f8b

Browse files
jernejskmripard
authored andcommitted
arm64: dts: allwinner: h6: tanix-tx6: Add PIO power supplies
While there is no publicly available schematic of this board, it's not hard to determine voltage of GPIO port C, D and G (only ones which can be set). Port C and G are used for MMC/SDIO communication, so they use 1.8 V power supply. It's not clear if port D is even used, but if it is, it's pretty safe to assume it uses 3.3 V power supply. Value read from PIO Group Withstand Voltage Mode Select register from within pre-installed Android agrees with that assesment. Signed-off-by: Jernej Skrabec <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7ab1f65 commit 35f2f8b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@
3232
};
3333
};
3434

35+
reg_vcc1v8: regulator-vcc1v8 {
36+
compatible = "regulator-fixed";
37+
regulator-name = "vcc1v8";
38+
regulator-min-microvolt = <1800000>;
39+
regulator-max-microvolt = <1800000>;
40+
};
41+
3542
reg_vcc3v3: regulator-vcc3v3 {
3643
compatible = "regulator-fixed";
3744
regulator-name = "vcc3v3";
@@ -99,6 +106,12 @@
99106
status = "okay";
100107
};
101108

109+
&pio {
110+
vcc-pc-supply = <&reg_vcc1v8>;
111+
vcc-pd-supply = <&reg_vcc3v3>;
112+
vcc-pg-supply = <&reg_vcc1v8>;
113+
};
114+
102115
&r_ir {
103116
linux,rc-map-name = "rc-tanix-tx5max";
104117
status = "okay";

0 commit comments

Comments
 (0)