SAM5D3 Xplained MMC device tree updates
Subsystems (2)
A small set to fix warnings from the kernel.
Note, the atmel_defconfig will require CONFIG_REGULATOR_GPIO to be set.
PATCH 1/3 ARM: at91/dt: sama5d3 fill in mmc1 and default disabled
The mmc1 channel is not populated on the SAM5D3 Xplained board, however it is enabled and therefore the driver is attaching to it.
The node configuration for mmc1 is missing, so add an mmc1 node in the device tree so add the basic node, set it to default it to disabled. Also add the vmmc and also the necessary slot configuration if this node where to be enabled to avoid the following warnings from the driver.
atmel_mci f8000000.mmc: No vmmc regulator foundatmel_mci f8000000.mmc: No vqmmc regulator found
--
CC: linux-arm-kernel at lists.infradead.org
CC: Andrew Victor <[email protected]>
CC: Nicolas Ferre <[email protected]>
CC: Jean-Christophe Plagniol-Villard <[email protected]>
CC: Rob Herring <[email protected]>
CC: Pawel Moll <[email protected]>
CC: Mark Rutland <[email protected]>
CC: Ian Campbell <[email protected]>
CC: Kumar Gala <[email protected]>
CC: Russell King <[email protected]>
CC: linux-arm-kernel at lists.infradead.org
CC: devicetree at vger.kernel.org
--- arch/arm/boot/dts/at91-sama5d3_xplained.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm/boot/dts/at91-sama5d3_xplained.dts +11 -0
@@ -43,6 +43,17 @@ }; }; + mmc1: mmc at f8000000 { + vmmc-supply = <&vcc_3v3_reg>; + vqmmc-supply = <&vcc_3v3_reg>; + status = "disabled"; + slot at 0 { + reg = <0>; + bus-width = <4>; + cd-gpios = <&pioE 1 GPIO_ACTIVE_LOW>; + }; + }; + spi0: spi at f0004000 { cs-gpios = <&pioD 13 0>, <0>, <0>, <&pioD 16 0>; status = "okay";
Signature · 1 line
2.1.4
PATCH 2/3 ARM: at91/dt: sama5d3 add mmc0 vmmcq entry
In reply to Ben DooksThe SAM5D3 Xplained device tree is missing hte vqmmc node which is tied to 3.3V on the board. Add this to avoid the kernel warning that there is no vqmmc node.
atmel_mci f0000000.mmc: No vqmmc regulator found
--
CC: linux-arm-kernel at lists.infradead.org
CC: Andrew Victor <[email protected]>
CC: Nicolas Ferre <[email protected]>
CC: Jean-Christophe Plagniol-Villard <[email protected]>
CC: Rob Herring <[email protected]>
CC: Pawel Moll <[email protected]>
CC: Mark Rutland <[email protected]>
CC: Ian Campbell <[email protected]>
CC: Kumar Gala <[email protected]>
CC: Russell King <[email protected]>
CC: linux-arm-kernel at lists.infradead.org
CC: devicetree at vger.kernel.org
--- arch/arm/boot/dts/at91-sama5d3_xplained.dts | 1 + 1 file changed, 1 insertion(+)
arch/arm/boot/dts/at91-sama5d3_xplained.dts +1 -0
@@ -36,6 +36,7 @@ mmc0: mmc at f0000000 { pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>; status = "okay"; + vqmmc-supply = <&vcc_3v3_reg>; slot at 0 { reg = <0>; bus-width = <8>;
Signature · 1 line
2.1.4
PATCH 3/3 ARM: at91/dt: sama5d3 add gpio regulator for vmmc0
In reply to Ben DooksAdd gpio regulator for vmmc0 and attach the vmmc for it to the mmc0 node on the SAM5D3 Xplained board. This will remove the following warning from the kernel:
atmel_mci f0000000.mmc: No vmmc regulator found
Note, atmel_defconfig will need gpio regulator support enabled if this is to be used properly.
--
CC: Andrew Victor <[email protected]>
CC: Nicolas Ferre <[email protected]>
CC: Jean-Christophe Plagniol-Villard <[email protected]>
CC: Rob Herring <[email protected]>
CC: Pawel Moll <[email protected]>
CC: Mark Rutland <[email protected]>
CC: Ian Campbell <[email protected]>
CC: Kumar Gala <[email protected]>
CC: Russell King <[email protected]>
CC: linux-arm-kernel at lists.infradead.org
CC: devicetree at vger.kernel.org
--- arch/arm/boot/dts/at91-sama5d3_xplained.dts | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm/boot/dts/at91-sama5d3_xplained.dts +9 -0
@@ -36,6 +36,7 @@ mmc0: mmc at f0000000 { pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>; status = "okay"; + vmmc-supply = <&vcc_mmc0_reg>; vqmmc-supply = <&vcc_3v3_reg>; slot at 0 { reg = <0>;
@@ -285,6 +286,14 @@ }; }; + vcc_mmc0_reg: regulator at 1 { + compatible = "regualtor-gpio"; + gpio = <&pioE 2 GPIO_ACTIVE_LOW>; + regulator-name = "mmc0-card-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + gpio_keys { compatible = "gpio-keys";
Signature · 1 line
2.1.4
PATCH 1/3 ARM: at91/dt: sama5d3 fill in mmc1 and default disabled
In reply to Ben DooksQuoted 8 lines · Ben Dooks
The mmc1 channel is not populated on the SAM5D3 Xplained board, however it is enabled and therefore the driver is attaching to it.
The node configuration for mmc1 is missing, so add an mmc1 node in the device tree so add the basic node, set it to default it to disabled. Also add the vmmc and also the necessary slot configuration if this node where to be enabled to avoid the following warnings from the driver.
Quoted 4 lines
atmel_mcif8000000.mmc: No vmmc regulator foundatmel_mcif8000000.mmc: No vqmmc regulator foundSigned-off-by Ben Dooks <[email protected]>
Quoted 47 lines
--
CC: linux-arm-kernel at lists.infradead.org
CC: Andrew Victor <[email protected]>
CC: Nicolas Ferre <[email protected]>
CC: Jean-Christophe Plagniol-Villard <[email protected]>
CC: Rob Herring <[email protected]>
CC: Pawel Moll <[email protected]>
CC: Mark Rutland <[email protected]>
CC: Ian Campbell <[email protected]>
CC: Kumar Gala <[email protected]>
CC: Russell King <[email protected]>
CC: linux-arm-kernel at lists.infradead.org
CC: devicetree at vger.kernel.org--- arch/arm/boot/dts/at91-sama5d3_xplained.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)arch/arm/boot/dts/at91-sama5d3_xplained.dts +11
-0@@ -43,6 +43,17 @@ }; }; + mmc1: mmc at f8000000 { + vmmc-supply = <&vcc_3v3_reg>; + vqmmc-supply = <&vcc_3v3_reg>; + status = "disabled"; + slot at 0 { + reg = <0>; + bus-width = <4>; + cd-gpios = <&pioE 1 GPIO_ACTIVE_LOW>; + }; + }; + spi0: spi at f0004000 { cs-gpios = <&pioD 13 0>, <0>, <0>, <&pioD 16 0>; status = "okay";Signature · 7 lines
2.1.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 2/3 ARM: at91/dt: sama5d3 add mmc0 vmmcq entry
In reply to Ben DooksQuoted 29 lines · Ben Dooks
The SAM5D3 Xplained device tree is missing hte vqmmc node which is tied to 3.3V on the board. Add this to avoid the kernel warning that there is no vqmmc node.
atmel_mcif0000000.mmc: No vqmmc regulator foundSigned-off-by Ben Dooks <[email protected]>--
CC: linux-arm-kernel at lists.infradead.org
CC: Andrew Victor <[email protected]>
CC: Nicolas Ferre <[email protected]>
CC: Jean-Christophe Plagniol-Villard <[email protected]>
CC: Rob Herring <[email protected]>
CC: Pawel Moll <[email protected]>
CC: Mark Rutland <[email protected]>
CC: Ian Campbell <[email protected]>
CC: Kumar Gala <[email protected]>
CC: Russell King <[email protected]>
CC: linux-arm-kernel at lists.infradead.org
CC: devicetree at vger.kernel.org--- arch/arm/boot/dts/at91-sama5d3_xplained.dts | 1 + 1 file changed, 1 insertion(+)arch/arm/boot/dts/at91-sama5d3_xplained.dts +0
-0
arch/arm/boot/dts/at91-sama5d3_xplained.dts line 39
Quoted 4 lines
arch/arm/boot/dts/at91-sama5d3_xplained.dts +1
-0@@ -36,6 +36,7 @@ mmc0: mmc at f0000000 { pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>; status = "okay"; + vqmmc-supply = <&vcc_3v3_reg>;
above status would be better, usually we keep status at the latest property even if in this cas we have slot after... Otherwise
Quoted 11 lines
arch/arm/boot/dts/at91-sama5d3_xplained.dts +0
-0slot at 0 { reg = <0>; bus-width = <8>;Signature · 7 lines
2.1.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 3/3 ARM: at91/dt: sama5d3 add gpio regulator for vmmc0
In reply to Ben DooksQuoted 39 lines · Ben Dooks
Add gpio regulator for vmmc0 and attach the vmmc for it to the mmc0 node on the SAM5D3 Xplained board. This will remove the following warning from the kernel:
atmel_mcif0000000.mmc: No vmmc regulator foundNote,
atmel_defconfigwill need gpio regulator support enabled if this is to be used properly.Signed-off-by Ben Dooks <[email protected]>--
CC: Andrew Victor <[email protected]>
CC: Nicolas Ferre <[email protected]>
CC: Jean-Christophe Plagniol-Villard <[email protected]>
CC: Rob Herring <[email protected]>
CC: Pawel Moll <[email protected]>
CC: Mark Rutland <[email protected]>
CC: Ian Campbell <[email protected]>
CC: Kumar Gala <[email protected]>
CC: Russell King <[email protected]>
CC: linux-arm-kernel at lists.infradead.org
CC: devicetree at vger.kernel.org--- arch/arm/boot/dts/at91-sama5d3_xplained.dts | 9 +++++++++ 1 file changed, 9 insertions(+)arch/arm/boot/dts/at91-sama5d3_xplained.dts +1
-0@@ -36,6 +36,7 @@ mmc0: mmc at f0000000 { pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>; status = "okay"; + vmmc-supply = <&vcc_mmc0_reg>; vqmmc-supply = <&vcc_3v3_reg>; slot at 0 { reg = <0>;
arch/arm/boot/dts/at91-sama5d3_xplained.dts line 290
Quoted 5 lines
arch/arm/boot/dts/at91-sama5d3_xplained.dts +2
-0@@ -285,6 +286,14 @@ }; }; + vcc_mmc0_reg: regulator at 1 { + compatible = "regualtor-gpio";
typo here and I think it is a fixed regulator and not a gpio one since we can't configure voltage.
Quoted 17 lines
arch/arm/boot/dts/at91-sama5d3_xplained.dts +6
-0+ gpio = <&pioE 2 GPIO_ACTIVE_LOW>; + regulator-name = "mmc0-card-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + gpio_keys { compatible = "gpio-keys";Signature · 7 lines
2.1.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel