]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: iwg22m: Enable SDHI1 controller
authorFabrizio Castro <fabrizio.castro@bp.renesas.com>
Wed, 13 Sep 2017 17:05:36 +0000 (18:05 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 21 Sep 2017 08:36:56 +0000 (10:36 +0200)
Enable the SDHI1 controller on iWave RZ/G1E SoM.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7745-iwg22m.dtsi

index e306e7c5b6444dc02f9656b5679bca6a50a44ebf..f7f9ceff35a6ac51ba0c9709cc75dea0e92070ef 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "r8a7745.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        compatible = "iwave,g22m", "renesas,r8a7745";
@@ -38,6 +39,12 @@ mmcif0_pins: mmc {
                function = "mmc";
        };
 
+       sdhi1_pins: sd1 {
+               groups = "sdhi1_data4", "sdhi1_ctrl";
+               function = "sdhi1";
+               power-source = <3300>;
+       };
+
        i2c3_pins: i2c3 {
                groups = "i2c3_b";
                function = "i2c3";
@@ -54,6 +61,16 @@ &mmcif0 {
        status = "okay";
 };
 
+&sdhi1 {
+       pinctrl-0 = <&sdhi1_pins>;
+       pinctrl-names = "default";
+
+       vmmc-supply = <&reg_3p3v>;
+       vqmmc-supply = <&reg_3p3v>;
+       cd-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;
+       status = "okay";
+};
+
 &i2c3 {
        pinctrl-0 = <&i2c3_pins>;
        pinctrl-names = "default";