[U-Boot,v2,4/4] ARM: dts: ast2500: Add SDHCI nodes
diff mbox series

Message ID 1565724701-17344-5-git-send-email-eajames@linux.ibm.com
State Superseded
Delegated to: Peng Fan
Headers show
Series
  • ARM: aspeed: Add SD host controller driver
Related show

Commit Message

Eddie James Aug. 13, 2019, 7:31 p.m. UTC
Add nodes for the Aspeed SD controllers with their necessary properties.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
 arch/arm/dts/ast2500-evb.dts     | 14 ++++++++++++++
 arch/arm/dts/ast2500-u-boot.dtsi | 16 ++++++++++++++++
 2 files changed, 30 insertions(+)

Comments

Cédric Le Goater Aug. 14, 2019, 3:25 p.m. UTC | #1
On 13/08/2019 21:31, Eddie James wrote:
> Add nodes for the Aspeed SD controllers with their necessary properties.
> 
> Signed-off-by: Eddie James <eajames@linux.ibm.com>



Reviewed-by: Cédric Le Goater <clg@kaod.org>

Thanks,

C.

> ---
>  arch/arm/dts/ast2500-evb.dts     | 14 ++++++++++++++
>  arch/arm/dts/ast2500-u-boot.dtsi | 16 ++++++++++++++++
>  2 files changed, 30 insertions(+)
> 
> diff --git a/arch/arm/dts/ast2500-evb.dts b/arch/arm/dts/ast2500-evb.dts
> index ebf44fd..4796ed4 100644
> --- a/arch/arm/dts/ast2500-evb.dts
> +++ b/arch/arm/dts/ast2500-evb.dts
> @@ -59,3 +59,17 @@
>  	pinctrl-names = "default";
>  	pinctrl-0 = <&pinctrl_mac2link_default &pinctrl_mdio2_default>;
>  };
> +
> +&sdhci0 {
> +	status = "okay";
> +
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_sd1_default>;
> +};
> +
> +&sdhci1 {
> +	status = "okay";
> +
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&pinctrl_sd2_default>;
> +};
> diff --git a/arch/arm/dts/ast2500-u-boot.dtsi b/arch/arm/dts/ast2500-u-boot.dtsi
> index 7f80bad..8ac4215 100644
> --- a/arch/arm/dts/ast2500-u-boot.dtsi
> +++ b/arch/arm/dts/ast2500-u-boot.dtsi
> @@ -34,6 +34,22 @@
>  
>  		apb {
>  			u-boot,dm-pre-reloc;
> +
> +			sdhci0: sdhci@1e740100 {
> +				compatible = "aspeed,ast2500-sdhci";
> +				reg = <0x1e740100>;
> +				#reset-cells = <1>;
> +				clocks = <&scu BCLK_SDCLK>;
> +				resets = <&rst AST_RESET_SDIO>;
> +			};
> +
> +			sdhci1: sdhci@1e740200 {
> +				compatible = "aspeed,ast2500-sdhci";
> +				reg = <0x1e740200>;
> +				#reset-cells = <1>;
> +				clocks = <&scu BCLK_SDCLK>;
> +				resets = <&rst AST_RESET_SDIO>;
> +			};
>  		};
>  
>  	};
>

Patch
diff mbox series

diff --git a/arch/arm/dts/ast2500-evb.dts b/arch/arm/dts/ast2500-evb.dts
index ebf44fd..4796ed4 100644
--- a/arch/arm/dts/ast2500-evb.dts
+++ b/arch/arm/dts/ast2500-evb.dts
@@ -59,3 +59,17 @@ 
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_mac2link_default &pinctrl_mdio2_default>;
 };
+
+&sdhci0 {
+	status = "okay";
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_sd1_default>;
+};
+
+&sdhci1 {
+	status = "okay";
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_sd2_default>;
+};
diff --git a/arch/arm/dts/ast2500-u-boot.dtsi b/arch/arm/dts/ast2500-u-boot.dtsi
index 7f80bad..8ac4215 100644
--- a/arch/arm/dts/ast2500-u-boot.dtsi
+++ b/arch/arm/dts/ast2500-u-boot.dtsi
@@ -34,6 +34,22 @@ 
 
 		apb {
 			u-boot,dm-pre-reloc;
+
+			sdhci0: sdhci@1e740100 {
+				compatible = "aspeed,ast2500-sdhci";
+				reg = <0x1e740100>;
+				#reset-cells = <1>;
+				clocks = <&scu BCLK_SDCLK>;
+				resets = <&rst AST_RESET_SDIO>;
+			};
+
+			sdhci1: sdhci@1e740200 {
+				compatible = "aspeed,ast2500-sdhci";
+				reg = <0x1e740200>;
+				#reset-cells = <1>;
+				clocks = <&scu BCLK_SDCLK>;
+				resets = <&rst AST_RESET_SDIO>;
+			};
 		};
 
 	};