diff options
author | Romain Perier <romain.perier@gmail.com> | 2014-09-08 13:14:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-09 20:29:59 -0400 |
commit | 18ec91e1947f478f4fb7d7b1a2b0696d15f464c5 (patch) | |
tree | 9b76bbc34d82766fd2c85fa9941ce4c2ee272559 | |
parent | 40404e00f1a23f2a6350737ce02753917edece56 (diff) |
ARM: dts: Add emac nodes to the rk3188 device tree
This adds support for EMAC Rockchip driver on RK3188 SoCs.
Signed-off-by: Romain Perier <romain.perier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/arm/boot/dts/rk3188.dtsi | 22 | ||||
-rw-r--r-- | arch/arm/boot/dts/rk3xxx.dtsi | 17 |
2 files changed, 39 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi index ee801a9c6b74..7f25bc51f2ee 100644 --- a/arch/arm/boot/dts/rk3188.dtsi +++ b/arch/arm/boot/dts/rk3188.dtsi | |||
@@ -147,6 +147,24 @@ | |||
147 | bias-disable; | 147 | bias-disable; |
148 | }; | 148 | }; |
149 | 149 | ||
150 | emac { | ||
151 | emac_xfer: emac-xfer { | ||
152 | rockchip,pins = <RK_GPIO3 16 RK_FUNC_2 &pcfg_pull_none>, /* tx_en */ | ||
153 | <RK_GPIO3 17 RK_FUNC_2 &pcfg_pull_none>, /* txd1 */ | ||
154 | <RK_GPIO3 18 RK_FUNC_2 &pcfg_pull_none>, /* txd0 */ | ||
155 | <RK_GPIO3 19 RK_FUNC_2 &pcfg_pull_none>, /* rxd0 */ | ||
156 | <RK_GPIO3 20 RK_FUNC_2 &pcfg_pull_none>, /* rxd1 */ | ||
157 | <RK_GPIO3 21 RK_FUNC_2 &pcfg_pull_none>, /* mac_clk */ | ||
158 | <RK_GPIO3 22 RK_FUNC_2 &pcfg_pull_none>, /* rx_err */ | ||
159 | <RK_GPIO3 23 RK_FUNC_2 &pcfg_pull_none>; /* crs_dvalid */ | ||
160 | }; | ||
161 | |||
162 | emac_mdio: emac-mdio { | ||
163 | rockchip,pins = <RK_GPIO3 24 RK_FUNC_2 &pcfg_pull_none>, | ||
164 | <RK_GPIO3 25 RK_FUNC_2 &pcfg_pull_none>; | ||
165 | }; | ||
166 | }; | ||
167 | |||
150 | i2c0 { | 168 | i2c0 { |
151 | i2c0_xfer: i2c0-xfer { | 169 | i2c0_xfer: i2c0-xfer { |
152 | rockchip,pins = <RK_GPIO1 24 RK_FUNC_1 &pcfg_pull_none>, | 170 | rockchip,pins = <RK_GPIO1 24 RK_FUNC_1 &pcfg_pull_none>, |
@@ -323,6 +341,10 @@ | |||
323 | }; | 341 | }; |
324 | }; | 342 | }; |
325 | 343 | ||
344 | &emac { | ||
345 | compatible = "rockchip,rk3188-emac"; | ||
346 | }; | ||
347 | |||
326 | &global_timer { | 348 | &global_timer { |
327 | interrupts = <GIC_PPI 11 0xf04>; | 349 | interrupts = <GIC_PPI 11 0xf04>; |
328 | }; | 350 | }; |
diff --git a/arch/arm/boot/dts/rk3xxx.dtsi b/arch/arm/boot/dts/rk3xxx.dtsi index 8caf85d83901..208b1df6bcb0 100644 --- a/arch/arm/boot/dts/rk3xxx.dtsi +++ b/arch/arm/boot/dts/rk3xxx.dtsi | |||
@@ -91,6 +91,23 @@ | |||
91 | status = "disabled"; | 91 | status = "disabled"; |
92 | }; | 92 | }; |
93 | 93 | ||
94 | emac: ethernet@10204000 { | ||
95 | compatible = "snps,arc-emac"; | ||
96 | reg = <0x10204000 0x3c>; | ||
97 | interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; | ||
98 | #address-cells = <1>; | ||
99 | #size-cells = <0>; | ||
100 | |||
101 | rockchip,grf = <&grf>; | ||
102 | |||
103 | clocks = <&cru HCLK_EMAC>, <&cru SCLK_MAC>; | ||
104 | clock-names = "hclk", "macref"; | ||
105 | max-speed = <100>; | ||
106 | phy-mode = "rmii"; | ||
107 | |||
108 | status = "disabled"; | ||
109 | }; | ||
110 | |||
94 | mmc0: dwmmc@10214000 { | 111 | mmc0: dwmmc@10214000 { |
95 | compatible = "rockchip,rk2928-dw-mshc"; | 112 | compatible = "rockchip,rk2928-dw-mshc"; |
96 | reg = <0x10214000 0x1000>; | 113 | reg = <0x10214000 0x1000>; |