[Letux-kernel] [PATCH 16/20] fixup! Fixed Letux 400 MMC, backlight pinctrl usage.

Lubomir Rintel lkundrak at v3.sk
Tue Nov 17 21:58:09 CET 2020


The vmmc-supply property should be a phandle of the regulator device
node, nog a gpio. Add one, and fix the property.

Signed-off-by: Lubomir Rintel <lkundrak at v3.sk>
---
 arch/mips/boot/dts/ingenic/mipsbook_400.dts | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/arch/mips/boot/dts/ingenic/mipsbook_400.dts b/arch/mips/boot/dts/ingenic/mipsbook_400.dts
index 10ca72a426c91..8c852ca7dd114 100644
--- a/arch/mips/boot/dts/ingenic/mipsbook_400.dts
+++ b/arch/mips/boot/dts/ingenic/mipsbook_400.dts
@@ -24,6 +24,15 @@ vcc: regulator at 0 {
 		regulator-always-on;
 	};
 
+	vmmc_reg: regulator at 1 {
+		compatible = "regulator-fixed";
+		regulator-name = "vmmc";
+
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		gpio = <&gpa 21 GPIO_ACTIVE_LOW>;
+	};
+
 	clk_usb: clk-usb {
 		compatible = "gpio-gate-clock";
 		clocks = <&cgu JZ4730_CLK_UHC>;
@@ -353,7 +362,7 @@ &mmc {
 	bus-width = <4>;
 	cd-gpios = <&gpc 0 GPIO_ACTIVE_LOW>;
 	wp-gpios = <&gpc 2 GPIO_ACTIVE_LOW>;
-	vmmc-supply = <&gpa 21 GPIO_ACTIVE_LOW>;
+	vmmc-supply = <&vmmc_reg>;
 
 	pinctrl-names = "default";
 	pinctrl-0 = <&pins_mmc>;
-- 
2.28.0



More information about the Letux-kernel mailing list