Commit 18ec91e1 authored by Romain Perier's avatar Romain Perier Committed by David S. Miller

ARM: dts: Add emac nodes to the rk3188 device tree

This adds support for EMAC Rockchip driver on RK3188 SoCs.
Signed-off-by: default avatarRomain Perier <romain.perier@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 40404e00
...@@ -147,6 +147,24 @@ pcfg_pull_none: pcfg_pull_none { ...@@ -147,6 +147,24 @@ pcfg_pull_none: pcfg_pull_none {
bias-disable; bias-disable;
}; };
emac {
emac_xfer: emac-xfer {
rockchip,pins = <RK_GPIO3 16 RK_FUNC_2 &pcfg_pull_none>, /* tx_en */
<RK_GPIO3 17 RK_FUNC_2 &pcfg_pull_none>, /* txd1 */
<RK_GPIO3 18 RK_FUNC_2 &pcfg_pull_none>, /* txd0 */
<RK_GPIO3 19 RK_FUNC_2 &pcfg_pull_none>, /* rxd0 */
<RK_GPIO3 20 RK_FUNC_2 &pcfg_pull_none>, /* rxd1 */
<RK_GPIO3 21 RK_FUNC_2 &pcfg_pull_none>, /* mac_clk */
<RK_GPIO3 22 RK_FUNC_2 &pcfg_pull_none>, /* rx_err */
<RK_GPIO3 23 RK_FUNC_2 &pcfg_pull_none>; /* crs_dvalid */
};
emac_mdio: emac-mdio {
rockchip,pins = <RK_GPIO3 24 RK_FUNC_2 &pcfg_pull_none>,
<RK_GPIO3 25 RK_FUNC_2 &pcfg_pull_none>;
};
};
i2c0 { i2c0 {
i2c0_xfer: i2c0-xfer { i2c0_xfer: i2c0-xfer {
rockchip,pins = <RK_GPIO1 24 RK_FUNC_1 &pcfg_pull_none>, rockchip,pins = <RK_GPIO1 24 RK_FUNC_1 &pcfg_pull_none>,
...@@ -323,6 +341,10 @@ sd1_bus4: sd1-bus-width4 { ...@@ -323,6 +341,10 @@ sd1_bus4: sd1-bus-width4 {
}; };
}; };
&emac {
compatible = "rockchip,rk3188-emac";
};
&global_timer { &global_timer {
interrupts = <GIC_PPI 11 0xf04>; interrupts = <GIC_PPI 11 0xf04>;
}; };
......
...@@ -91,6 +91,23 @@ uart1: serial@10126000 { ...@@ -91,6 +91,23 @@ uart1: serial@10126000 {
status = "disabled"; status = "disabled";
}; };
emac: ethernet@10204000 {
compatible = "snps,arc-emac";
reg = <0x10204000 0x3c>;
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
rockchip,grf = <&grf>;
clocks = <&cru HCLK_EMAC>, <&cru SCLK_MAC>;
clock-names = "hclk", "macref";
max-speed = <100>;
phy-mode = "rmii";
status = "disabled";
};
mmc0: dwmmc@10214000 { mmc0: dwmmc@10214000 {
compatible = "rockchip,rk2928-dw-mshc"; compatible = "rockchip,rk2928-dw-mshc";
reg = <0x10214000 0x1000>; reg = <0x10214000 0x1000>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment