]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: amlogic: t7: Add eMMC, SD card and SDIO pinctrl nodes
authorRonald Claveau <linux-kernel-dev@aliel.fr>
Thu, 26 Mar 2026 09:59:12 +0000 (10:59 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 21 Apr 2026 13:55:20 +0000 (15:55 +0200)
These pinctrl nodes are required by the eMMC, SD card and SDIO drivers
to configure pin muxing at runtime.

- eMMC: control, 4-bit/8-bit data, data strobe and clock gate pins
- SD card: data, clock, command and clock gate pins
- SDIO: data, clock, command and clock gate pins

Signed-off-by: Ronald Claveau <linux-kernel-dev@aliel.fr>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20260326-add-emmc-t7-vim4-v5-1-d3f182b48e9d@aliel.fr
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi

index d523cbc0ed22a6eda078c06112f2160220d1a38c..4a2220e597430cefcb10ff50c9670f4bc5ce144f 100644 (file)
                                        #gpio-cells = <2>;
                                        gpio-ranges = <&periphs_pinctrl 0 0 157>;
                                };
+
+                               emmc_ctrl_pins: emmc-ctrl {
+                                       mux-0 {
+                                               groups = "emmc_cmd";
+                                               function = "emmc";
+                                               bias-pull-up;
+                                       };
+
+                                       mux-1 {
+                                               groups = "emmc_clk";
+                                               function = "emmc";
+                                               bias-disable;
+                                       };
+                               };
+
+                               emmc_data_4b_pins: emmc-data-4b {
+                                       mux {
+                                               groups = "emmc_nand_d0",
+                                                        "emmc_nand_d1",
+                                                        "emmc_nand_d2",
+                                                        "emmc_nand_d3";
+                                               function = "emmc";
+                                               bias-pull-up;
+                                       };
+                               };
+
+                               emmc_data_8b_pins: emmc-data-8b {
+                                       mux {
+                                               groups = "emmc_nand_d0",
+                                                        "emmc_nand_d1",
+                                                        "emmc_nand_d2",
+                                                        "emmc_nand_d3",
+                                                        "emmc_nand_d4",
+                                                        "emmc_nand_d5",
+                                                        "emmc_nand_d6",
+                                                        "emmc_nand_d7";
+                                               function = "emmc";
+                                               bias-pull-up;
+                                       };
+                               };
+
+                               emmc_ds_pins: emmc-ds {
+                                       mux {
+                                               groups = "emmc_nand_ds";
+                                               function = "emmc";
+                                               bias-pull-down;
+                                       };
+                               };
+
+                               emmc_clk_gate_pins: emmc-clk-gate {
+                                       mux {
+                                               groups = "GPIOB_8";
+                                               function = "gpio_periphs";
+                                               bias-pull-down;
+                                       };
+                               };
+
+                               sdcard_pins: sdcard {
+                                       mux {
+                                               groups = "sdcard_d0",
+                                                        "sdcard_d1",
+                                                        "sdcard_d2",
+                                                        "sdcard_d3",
+                                                        "sdcard_clk",
+                                                        "sdcard_cmd";
+                                               function = "sdcard";
+                                               bias-pull-up;
+                                       };
+                               };
+
+                               sdcard_clk_gate_pins: sdcard-clk-gate {
+                                       mux {
+                                               groups = "GPIOC_4";
+                                               function = "gpio_periphs";
+                                               bias-pull-down;
+                                       };
+                               };
+
+                               sdio_pins: sdio {
+                                       mux {
+                                               groups = "sdio_d0",
+                                                        "sdio_d1",
+                                                        "sdio_d2",
+                                                        "sdio_d3",
+                                                        "sdio_clk",
+                                                        "sdio_cmd";
+                                               function = "sdio";
+                                               bias-pull-up;
+                                       };
+                               };
+
+                               sdio_clk_gate_pins: sdio-clk-gate {
+                                       mux {
+                                               groups = "GPIOX_4";
+                                               function = "gpio_periphs";
+                                               bias-pull-up;
+                                       };
+                               };
                        };
 
                        gpio_intc: interrupt-controller@4080 {