Commit 7e1aa57c authored by Ivan T. Ivanov's avatar Ivan T. Ivanov Committed by Florian Fainelli
Browse files

arm64: dts: broadcom: bcm2712: Add pin controller nodes



Add pin-control devicetree nodes and used them to
explicitly define uSD card interface pin configuration.

Signed-off-by: default avatarIvan T. Ivanov <iivanov@suse.de>
Reviewed-by: default avatarStefan Wahren <wahrenst@gmx.net>
Signed-off-by: default avatarAndrea della Porta <andrea.porta@suse.com>
Link: https://lore.kernel.org/r/5ceba8558e0007a9685f19b51d681d0ce79e7634.1756386531.git.andrea.porta@suse.com


Signed-off-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
parent 278b6cab
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -53,6 +53,21 @@ sd_vcc_reg: sd-vcc-reg {
	};
};

&pinctrl {
	emmc_sd_default: emmc-sd-default-state {
		pins = "emmc_cmd", "emmc_dat0", "emmc_dat1", "emmc_dat2", "emmc_dat3";
		bias-pull-up;
	};
};

&pinctrl_aon {
	emmc_aon_cd_default: emmc-aon-cd-default-state {
		function = "sd_card_g";
		pins = "aon_gpio5";
		bias-pull-up;
	};
};

/* The Debug UART, on Rpi5 it's on JST-SH 1.0mm 3-pin connector
 * labeled "UART", i.e. the interface with the system console.
 */
@@ -62,12 +77,15 @@ &uart10 {

/* SDIO1 is used to drive the SD card */
&sdio1 {
	pinctrl-0 = <&emmc_sd_default>, <&emmc_aon_cd_default>;
	pinctrl-names = "default";
	vqmmc-supply = <&sd_io_1v8_reg>;
	vmmc-supply = <&sd_vcc_reg>;
	bus-width = <4>;
	sd-uhs-sdr50;
	sd-uhs-ddr50;
	sd-uhs-sdr104;
	cd-gpios = <&gio_aon 5 GPIO_ACTIVE_LOW>;
};

&soc {
+10 −0
Original line number Diff line number Diff line
@@ -243,6 +243,16 @@ uart10: serial@7d001000 {
			status = "disabled";
		};

		pinctrl: pinctrl@7d504100 {
			compatible = "brcm,bcm2712c0-pinctrl";
			reg = <0x7d504100 0x30>;
		};

		pinctrl_aon: pinctrl@7d510700 {
			compatible = "brcm,bcm2712c0-aon-pinctrl";
			reg = <0x7d510700 0x20>;
		};

		interrupt-controller@7d517000 {
			compatible = "brcm,bcm7271-l2-intc";
			reg = <0x7d517000 0x10>;