diff options
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3399.dtsi | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 8494cefe959e..9e2e0b13a7a5 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi | |||
@@ -210,6 +210,26 @@ | |||
210 | }; | 210 | }; |
211 | }; | 211 | }; |
212 | 212 | ||
213 | gmac: ethernet@fe300000 { | ||
214 | compatible = "rockchip,rk3399-gmac"; | ||
215 | reg = <0x0 0xfe300000 0x0 0x10000>; | ||
216 | interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH 0>; | ||
217 | interrupt-names = "macirq"; | ||
218 | clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>, | ||
219 | <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>, | ||
220 | <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>, | ||
221 | <&cru PCLK_GMAC>; | ||
222 | clock-names = "stmmaceth", "mac_clk_rx", | ||
223 | "mac_clk_tx", "clk_mac_ref", | ||
224 | "clk_mac_refout", "aclk_mac", | ||
225 | "pclk_mac"; | ||
226 | power-domains = <&power RK3399_PD_GMAC>; | ||
227 | resets = <&cru SRST_A_GMAC>; | ||
228 | reset-names = "stmmaceth"; | ||
229 | rockchip,grf = <&grf>; | ||
230 | status = "disabled"; | ||
231 | }; | ||
232 | |||
213 | sdio0: dwmmc@fe310000 { | 233 | sdio0: dwmmc@fe310000 { |
214 | compatible = "rockchip,rk3399-dw-mshc", | 234 | compatible = "rockchip,rk3399-dw-mshc", |
215 | "rockchip,rk3288-dw-mshc"; | 235 | "rockchip,rk3288-dw-mshc"; |
@@ -1307,6 +1327,66 @@ | |||
1307 | }; | 1327 | }; |
1308 | }; | 1328 | }; |
1309 | 1329 | ||
1330 | gmac { | ||
1331 | rgmii_pins: rgmii-pins { | ||
1332 | rockchip,pins = | ||
1333 | /* mac_txclk */ | ||
1334 | <3 17 RK_FUNC_1 &pcfg_pull_none_13ma>, | ||
1335 | /* mac_rxclk */ | ||
1336 | <3 14 RK_FUNC_1 &pcfg_pull_none>, | ||
1337 | /* mac_mdio */ | ||
1338 | <3 13 RK_FUNC_1 &pcfg_pull_none>, | ||
1339 | /* mac_txen */ | ||
1340 | <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>, | ||
1341 | /* mac_clk */ | ||
1342 | <3 11 RK_FUNC_1 &pcfg_pull_none>, | ||
1343 | /* mac_rxdv */ | ||
1344 | <3 9 RK_FUNC_1 &pcfg_pull_none>, | ||
1345 | /* mac_mdc */ | ||
1346 | <3 8 RK_FUNC_1 &pcfg_pull_none>, | ||
1347 | /* mac_rxd1 */ | ||
1348 | <3 7 RK_FUNC_1 &pcfg_pull_none>, | ||
1349 | /* mac_rxd0 */ | ||
1350 | <3 6 RK_FUNC_1 &pcfg_pull_none>, | ||
1351 | /* mac_txd1 */ | ||
1352 | <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>, | ||
1353 | /* mac_txd0 */ | ||
1354 | <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>, | ||
1355 | /* mac_rxd3 */ | ||
1356 | <3 3 RK_FUNC_1 &pcfg_pull_none>, | ||
1357 | /* mac_rxd2 */ | ||
1358 | <3 2 RK_FUNC_1 &pcfg_pull_none>, | ||
1359 | /* mac_txd3 */ | ||
1360 | <3 1 RK_FUNC_1 &pcfg_pull_none_13ma>, | ||
1361 | /* mac_txd2 */ | ||
1362 | <3 0 RK_FUNC_1 &pcfg_pull_none_13ma>; | ||
1363 | }; | ||
1364 | |||
1365 | rmii_pins: rmii-pins { | ||
1366 | rockchip,pins = | ||
1367 | /* mac_mdio */ | ||
1368 | <3 13 RK_FUNC_1 &pcfg_pull_none>, | ||
1369 | /* mac_txen */ | ||
1370 | <3 12 RK_FUNC_1 &pcfg_pull_none_13ma>, | ||
1371 | /* mac_clk */ | ||
1372 | <3 11 RK_FUNC_1 &pcfg_pull_none>, | ||
1373 | /* mac_rxer */ | ||
1374 | <3 10 RK_FUNC_1 &pcfg_pull_none>, | ||
1375 | /* mac_rxdv */ | ||
1376 | <3 9 RK_FUNC_1 &pcfg_pull_none>, | ||
1377 | /* mac_mdc */ | ||
1378 | <3 8 RK_FUNC_1 &pcfg_pull_none>, | ||
1379 | /* mac_rxd1 */ | ||
1380 | <3 7 RK_FUNC_1 &pcfg_pull_none>, | ||
1381 | /* mac_rxd0 */ | ||
1382 | <3 6 RK_FUNC_1 &pcfg_pull_none>, | ||
1383 | /* mac_txd1 */ | ||
1384 | <3 5 RK_FUNC_1 &pcfg_pull_none_13ma>, | ||
1385 | /* mac_txd0 */ | ||
1386 | <3 4 RK_FUNC_1 &pcfg_pull_none_13ma>; | ||
1387 | }; | ||
1388 | }; | ||
1389 | |||
1310 | i2c0 { | 1390 | i2c0 { |
1311 | i2c0_xfer: i2c0-xfer { | 1391 | i2c0_xfer: i2c0-xfer { |
1312 | rockchip,pins = | 1392 | rockchip,pins = |