Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3107fa5b authored by Jon Mason's avatar Jon Mason Committed by Florian Fainelli
Browse files

ARM: dts: NSP: Add SD/MMC support



Add SD/MMC support to the Broadcom NSP SVK and XMC.

Signed-off-by: default avatarJon Mason <jon.mason@broadcom.com>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
parent b6318107
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -209,6 +209,15 @@
			#dma-cells = <1>;
			#dma-cells = <1>;
		};
		};


		sdio: sdhci@21000 {
			compatible = "brcm,sdhci-iproc-cygnus";
			reg = <0x21000 0x100>;
			interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
			sdhci,auto-cmd12;
			clocks = <&lcpll0 BCM_NSP_LCPLL0_SDIO_CLK>;
			status = "disabled";
		};

		amac0: ethernet@22000 {
		amac0: ethernet@22000 {
			compatible = "brcm,nsp-amac";
			compatible = "brcm,nsp-amac";
			reg = <0x022000 0x1000>,
			reg = <0x022000 0x1000>,
+5 −1
Original line number Original line Diff line number Diff line
@@ -59,7 +59,7 @@
	};
	};
};
};


/* XHCI and SD/MMC support needed to be complete */
/* XHCI support needed to be complete */


&amac0 {
&amac0 {
	status = "okay";
	status = "okay";
@@ -184,6 +184,10 @@
	status = "okay";
	status = "okay";
};
};


&sdio {
	status = "ok";
};

&uart0 {
&uart0 {
	status = "okay";
	status = "okay";
};
};
+76 −42
Original line number Original line Diff line number Diff line
@@ -117,56 +117,32 @@


&pinctrl {
&pinctrl {
	pinctrl-names = "default";
	pinctrl-names = "default";
	pinctrl-0 = <&nand_sel>;
	pinctrl-0 = <&nand_sel>, <&gpiobs>, <&pwmc>;

	nand_sel: nand_sel {
	nand_sel: nand_sel {
		function = "nand";
		function = "nand";
		groups = "nand_grp";
		groups = "nand_grp";
	};
	};
};

&srab {
	compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
	status = "okay";


	ports {
	gpiobs: gpiobs {
		#address-cells = <1>;
		function = "gpio_b";
		#size-cells = <0>;
		groups = "gpio_b_0_grp", "gpio_b_1_grp", "gpio_b_2_grp",

			 "gpio_b_3_grp";
		port@0 {
			label = "port0";
			reg = <0>;
	};
	};


		port@1 {
	pwmc: pwmc {
			label = "port1";
		function = "pwm";
			reg = <1>;
		groups = "pwm0_grp", "pwm1_grp", "pwm2_grp", "pwm3_grp";
	};
	};


		port@2 {
	emmc_sel: emmc_sel {
			label = "port2";
		function = "emmc";
			reg = <2>;
		groups = "emmc_grp";
	};
	};

		port@3 {
			label = "port3";
			reg = <3>;
};
};


		port@4 {
&pwm {
			label = "port4";
	status = "okay";
			reg = <4>;
		};

		port@5 {
			ethernet = <&amac0>;
			label = "cpu";
			reg = <5>;
			fixed-link {
				speed = <1000>;
				full-duplex;
			};
		};
	};
};
};


&qspi {
&qspi {
@@ -215,6 +191,64 @@
	status = "okay";
	status = "okay";
};
};


/*
 * By default the sd slot is functional. For emmc to work add "<&emmc_sel>"
 * and delete "<&nand_sel>" in "pinctrl-0" property of pinctrl node. Remove the
 * bus-width property here and disable the nand node with status = "disabled";.
 *
 * Ex: pinctrl-0 = <&emmc_sel>, <&gpiobs>, <&pwmc>;
 */
&sdio {
	bus-width = <4>;
	no-1-8-v;
	status = "ok";
};

&srab {
	compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
	status = "okay";

	ports {
		#address-cells = <1>;
		#size-cells = <0>;

		port@0 {
			label = "port0";
			reg = <0>;
		};

		port@1 {
			label = "port1";
			reg = <1>;
		};

		port@2 {
			label = "port2";
			reg = <2>;
		};

		port@3 {
			label = "port3";
			reg = <3>;
		};

		port@4 {
			label = "port4";
			reg = <4>;
		};

		port@5 {
			ethernet = <&amac0>;
			label = "cpu";
			reg = <5>;
			fixed-link {
				speed = <1000>;
				full-duplex;
			};
		};
	};
};

&uart0 {
&uart0 {
	status = "okay";
	status = "okay";
};
};