ARM: dts: sunxi: h3-h5: Move pinctrl of mmc0 from dts to dtsi
authorJoonas Kylmälä <joonas.kylmala@iki.fi>
Thu, 8 Feb 2018 12:01:39 +0000 (14:01 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 14 Feb 2018 12:18:04 +0000 (13:18 +0100)
Most of the boards use the mmc0 pins and their attributes defined in
mmc0_pins_a. Let's default to those by moving the pinctrl attributes
to the dtsi file. This makes it easier to modify device trees in the
future as there is only one place to change the pinctrl attributes.

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
17 files changed:
arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts
arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
arch/arm/boot/dts/sun8i-h3-libretech-all-h3-cc.dts
arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
arch/arm/boot/dts/sun8i-h3-nanopi.dtsi
arch/arm/boot/dts/sun8i-h3-orangepi-2.dts
arch/arm/boot/dts/sun8i-h3-orangepi-lite.dts
arch/arm/boot/dts/sun8i-h3-orangepi-one.dts
arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts
arch/arm/boot/dts/sunxi-h3-h5.dtsi
arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts
arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts
arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts
arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dts
arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts

index 1cdbd9a3ef578bfc4b8f28fa382fc6313cc9df4f..29a85eb14927150f07c21f479412d47883fd0064 100644 (file)
@@ -60,8 +60,6 @@
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        /*
index 9a5017bb1440ea08b417f4454188d4dbb73a7f9b..f3b066ff63cbb8f74b869c458058d90df1a4f4c2 100644 (file)
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
index 781270fb79c3e5ae4ac305ed659a715c6512d185..bea49ed89cc79e7ae38b1a04b04b3eca0b3ad2d0 100644 (file)
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
index 20bbe2d712d0c5415a378c14ddfac519345926ec..9fc07593e907ba47ea32561c705805e7d5e676a6 100644 (file)
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
index d9dc14fe2aa33b982549224ad64b835fe4936dcb..d0d41eb86cb456ca09a4b2c2b57958becdbdd26f 100644 (file)
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc_io>;
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
index 1e2aa6bc7a7f923690f00e8b4f02559057645b04..07e2e61807923778a52137a3ab47800c17cf5f1e 100644 (file)
@@ -80,8 +80,6 @@
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
index 32bf624dc59d9b12771cba303b0fc181be21f424..f110ee3822398eae337c2e435e9a06375163754e 100644 (file)
@@ -96,8 +96,6 @@
 &mmc0 {
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        status = "okay";
        vmmc-supply = <&reg_vcc3v3>;
 };
index 99bce9822cad4c2cbb7a22c5ceb74b626e35cda6..ac6f52f3fa62eb220817a44ac939ac5a131f9e90 100644 (file)
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
index df444056001a0957929d626b85c6aa2c74a70dc5..82ab5b6b730b54240d182b259cb94d9b1cec165f 100644 (file)
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
index 4a4236b13220eb97542796e761535eed59f767a7..c1a8cd93c4636d7d21bec5a633b20f04858c1d2d 100644 (file)
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
index 583aae37694dc1df6a5b31bb30f7b35513ec7e9f..537227b85935d4284e4c1140568232877fa5911e 100644 (file)
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
index 6521d0f6a282be6e798839076f2fb9f0141c5f9b..3a0854a96a040b9120360b9e99a618119e89cdd7 100644 (file)
                mmc0: mmc@1c0f000 {
                        /* compatible and clocks are in per SoC .dtsi file */
                        reg = <0x01c0f000 0x1000>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&mmc0_pins_a>;
                        resets = <&ccu RST_BUS_MMC0>;
                        reset-names = "ahb";
                        interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
index 1ed9f219deaf63cf41bcc840e90de90f1e84ecf5..1ef70cb4c9bc0c94ce751acd1a7acec085bb2beb 100644 (file)
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
index f1447003ea3cb112a2dca9aacbb1d0d468356a28..cc268a69786c532f46e9d8d1ae81e9eadc24c2d0 100644 (file)
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
index 9e51d3a5f4e6baf6bd7a93269e64ef9285dcb483..58505fbc26677ce51efb00480cfe3df883d6734a 100644 (file)
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
index 0f25c4a6f15d36d2da6ca3b92fb7d4a82bd714a5..586ec67f410181dcf8abb6e7c357d40c0bd7d2da 100644 (file)
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
index af43533c71342d0fee786296b890f5a34c623c4a..feee125a4e9afad2b1bb51beee1b0b5c25b78f54 100644 (file)
@@ -74,8 +74,6 @@
 };
 
 &mmc0 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&mmc0_pins_a>;
        vmmc-supply = <&reg_vcc3v3>;
        bus-width = <4>;
        cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;