arm64: dts: mediatek: mt7988a-bpi-r4: Add pinctrl subnodes for bpi-r4
authorFrank Wunderlich <frank-w@public-files.de>
Tue, 17 Dec 2024 08:54:30 +0000 (09:54 +0100)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 7 Jan 2025 12:11:44 +0000 (13:11 +0100)
Add board specific pinctrl configurations on Bananapi R4.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20241217085435.9586-6-linux@fw-web.de
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts

index efc4ad0b08b8f0456830031c48c024751457af81..aa2dabc041fded2337719ea25f755f1f33e7cadc 100644 (file)
@@ -9,3 +9,192 @@
        model = "Banana Pi BPI-R4";
        chassis-type = "embedded";
 };
+
+&pio {
+       mdio0_pins: mdio0-pins {
+               mux {
+                       function = "eth";
+                       groups = "mdc_mdio0";
+               };
+
+               conf {
+                       pins = "SMI_0_MDC", "SMI_0_MDIO";
+                       drive-strength = <8>;
+               };
+       };
+
+       i2c0_pins: i2c0-g0-pins {
+               mux {
+                       function = "i2c";
+                       groups = "i2c0_1";
+               };
+       };
+
+       i2c1_pins: i2c1-g0-pins {
+               mux {
+                       function = "i2c";
+                       groups = "i2c1_0";
+               };
+       };
+
+       i2c1_sfp_pins: i2c1-sfp-g0-pins {
+               mux {
+                       function = "i2c";
+                       groups = "i2c1_sfp";
+               };
+       };
+
+       i2c2_0_pins: i2c2-g0-pins {
+               mux {
+                       function = "i2c";
+                       groups = "i2c2_0";
+               };
+       };
+
+       i2c2_1_pins: i2c2-g1-pins {
+               mux {
+                       function = "i2c";
+                       groups = "i2c2_1";
+               };
+       };
+
+       gbe0_led0_pins: gbe0-led0-pins {
+               mux {
+                       function = "led";
+                       groups = "gbe0_led0";
+               };
+       };
+
+       gbe1_led0_pins: gbe1-led0-pins {
+               mux {
+                       function = "led";
+                       groups = "gbe1_led0";
+               };
+       };
+
+       gbe2_led0_pins: gbe2-led0-pins {
+               mux {
+                       function = "led";
+                       groups = "gbe2_led0";
+               };
+       };
+
+       gbe3_led0_pins: gbe3-led0-pins {
+               mux {
+                       function = "led";
+                       groups = "gbe3_led0";
+               };
+       };
+
+       gbe0_led1_pins: gbe0-led1-pins {
+               mux {
+                       function = "led";
+                       groups = "gbe0_led1";
+               };
+       };
+
+       gbe1_led1_pins: gbe1-led1-pins {
+               mux {
+                       function = "led";
+                       groups = "gbe1_led1";
+               };
+       };
+
+       gbe2_led1_pins: gbe2-led1-pins {
+               mux {
+                       function = "led";
+                       groups = "gbe2_led1";
+               };
+       };
+
+       gbe3_led1_pins: gbe3-led1-pins {
+               mux {
+                       function = "led";
+                       groups = "gbe3_led1";
+               };
+       };
+
+       i2p5gbe_led0_pins: 2p5gbe-led0-pins {
+               mux {
+                       function = "led";
+                       groups = "2p5gbe_led0";
+               };
+       };
+
+       i2p5gbe_led1_pins: 2p5gbe-led1-pins {
+               mux {
+                       function = "led";
+                       groups = "2p5gbe_led1";
+               };
+       };
+
+       mmc0_pins_emmc_45: mmc0-emmc-45-pins {
+               mux {
+                       function = "flash";
+                       groups = "emmc_45";
+               };
+       };
+
+       mmc0_pins_emmc_51: mmc0-emmc-51-pins {
+               mux {
+                       function = "flash";
+                       groups = "emmc_51";
+               };
+       };
+
+       mmc0_pins_sdcard: mmc0-sdcard-pins {
+               mux {
+                       function = "flash";
+                       groups = "sdcard";
+               };
+       };
+
+       uart0_pins: uart0-pins {
+               mux {
+                       function = "uart";
+                       groups =  "uart0";
+               };
+       };
+
+       snfi_pins: snfi-pins {
+               mux {
+                       function = "flash";
+                       groups = "snfi";
+               };
+       };
+
+       spi0_pins: spi0-pins {
+               mux {
+                       function = "spi";
+                       groups = "spi0";
+               };
+       };
+
+       spi0_flash_pins: spi0-flash-pins {
+               mux {
+                       function = "spi";
+                       groups = "spi0", "spi0_wp_hold";
+               };
+       };
+
+       spi1_pins: spi1-pins {
+               mux {
+                       function = "spi";
+                       groups = "spi1";
+               };
+       };
+
+       spi2_pins: spi2-pins {
+               mux {
+                       function = "spi";
+                       groups = "spi2";
+               };
+       };
+
+       spi2_flash_pins: spi2-flash-pins {
+               mux {
+                       function = "spi";
+                       groups = "spi2", "spi2_wp_hold";
+               };
+       };
+};