[PATCH linux dev-4.17 5/7] dts: Aspeed: Add devicetree for Aspeed sdhci
Ryan Chen
ryanchen.aspeed at gmail.com
Tue Jul 17 17:26:16 AEST 2018
Add devicetree for Aspeed's sdhci
V0->V1
separete patch toe device tree and binding document
Signed-off-by: Ryan Chen <ryanchen.aspeed at gmail.com>
---
arch/arm/boot/dts/aspeed-ast2500-evb.dts | 14 +++++++++++
arch/arm/boot/dts/aspeed-g4.dtsi | 40 ++++++++++++++++++++++++++++++++
arch/arm/boot/dts/aspeed-g5.dtsi | 40 ++++++++++++++++++++++++++++++++
3 files changed, 94 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed-ast2500-evb.dts b/arch/arm/boot/dts/aspeed-ast2500-evb.dts
index 5dbb33c..5578ae0 100644
--- a/arch/arm/boot/dts/aspeed-ast2500-evb.dts
+++ b/arch/arm/boot/dts/aspeed-ast2500-evb.dts
@@ -97,6 +97,20 @@
};
};
+&sdhci_slot0 {
+ status = "okay";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_sd1_default>;
+};
+
+&sdhci_slot1 {
+ status = "okay";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_sd2_default>;
+};
+
/*
* Enable port A as device (via the virtual hub) and port B as
* host by default on the eval board. This can be easily changed
diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi
index e86fa80..f4a8d7d 100644
--- a/arch/arm/boot/dts/aspeed-g4.dtsi
+++ b/arch/arm/boot/dts/aspeed-g4.dtsi
@@ -190,6 +190,13 @@
reg = <0x1e720000 0x8000>; // 32K
};
+ sdhci: sdhci at 1e740000 {
+ compatible = "simple-bus";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x1e740000 0x1000>;
+ };
+
gpio: gpio at 1e780000 {
#gpio-cells = <2>;
gpio-controller;
@@ -369,6 +376,39 @@
};
};
+&sdhci {
+
+ sdhci_ic: interrupt-controller at 0 {
+ #interrupt-cells = <1>;
+ compatible = "aspeed,aspeed-sdhci-irq";
+ reg = <0x0 0x100>;
+ interrupts = <26>;
+ interrupt-controller;
+ clocks = <&syscon ASPEED_CLK_GATE_SDCLKCLK>;
+ };
+
+ sdhci_slot0: sdhci_slot0 at 100 {
+ compatible = "aspeed,sdhci-ast2400";
+ reg = <0x100 0x100>;
+ interrupts = <0>;
+ interrupt-parent = <&sdhci_ic>;
+ sdhci,auto-cmd12;
+ clocks = <&syscon ASPEED_CLK_SDIO>;
+ status = "disabled";
+ };
+
+ sdhci_slot1: sdhci_slot1 at 200 {
+ compatible = "aspeed,sdhci-ast2400";
+ reg = <0x200 0x100>;
+ interrupts = <1>;
+ interrupt-parent = <&sdhci_ic>;
+ sdhci,auto-cmd12;
+ clocks = <&syscon ASPEED_CLK_SDIO>;
+ status = "disabled";
+ };
+
+};
+
&i2c {
i2c_ic: interrupt-controller at 0 {
#interrupt-cells = <1>;
diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi
index d92f047..effe631 100644
--- a/arch/arm/boot/dts/aspeed-g5.dtsi
+++ b/arch/arm/boot/dts/aspeed-g5.dtsi
@@ -256,6 +256,13 @@
reg = <0x1e720000 0x9000>; // 36K
};
+ sdhci: sdhci at 1e740000 {
+ compatible = "simple-bus";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x1e740000 0x1000>;
+ };
+
gpio: gpio at 1e780000 {
#gpio-cells = <2>;
gpio-controller;
@@ -446,6 +453,39 @@
};
};
+&sdhci {
+
+ sdhci_ic: interrupt-controller at 0 {
+ #interrupt-cells = <1>;
+ compatible = "aspeed,aspeed-sdhci-irq";
+ reg = <0x0 0x100>;
+ interrupts = <26>;
+ interrupt-controller;
+ clocks = <&syscon ASPEED_CLK_GATE_SDCLKCLK>;
+ };
+
+ sdhci_slot0: sdhci_slot0 at 100 {
+ compatible = "aspeed,sdhci-ast2500";
+ reg = <0x100 0x100>;
+ interrupts = <0>;
+ interrupt-parent = <&sdhci_ic>;
+ sdhci,auto-cmd12;
+ clocks = <&syscon ASPEED_CLK_SDIO>;
+ status = "disabled";
+ };
+
+ sdhci_slot1: sdhci_slot1 at 200 {
+ compatible = "aspeed,sdhci-ast2500";
+ reg = <0x200 0x100>;
+ interrupts = <1>;
+ interrupt-parent = <&sdhci_ic>;
+ sdhci,auto-cmd12;
+ clocks = <&syscon ASPEED_CLK_SDIO>;
+ status = "disabled";
+ };
+
+};
+
&i2c {
i2c_ic: interrupt-controller at 0 {
#interrupt-cells = <1>;
--
2.7.4
More information about the openbmc
mailing list