Jianchao Wang | e5332ba | 2019-07-19 00:30:01 +0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* Copyright 2016-2018 NXP Semiconductors |
| 3 | * Copyright 2019 Vladimir Oltean <olteanv@gmail.com> |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | #include "ls1021a.dtsi" |
| 8 | |
| 9 | / { |
| 10 | model = "NXP LS1021A-TSN Board"; |
| 11 | |
| 12 | aliases { |
| 13 | enet0-sgmii-phy = &sgmii_phy2; |
| 14 | enet1-sgmii-phy = &sgmii_phy1; |
| 15 | spi0 = &qspi; |
| 16 | spi1 = &dspi1; |
| 17 | }; |
| 18 | }; |
| 19 | |
| 20 | &enet0 { |
| 21 | tbi-handle = <&tbi0>; |
| 22 | phy-handle = <&sgmii_phy2>; |
| 23 | phy-mode = "sgmii"; |
| 24 | status = "okay"; |
| 25 | }; |
| 26 | |
| 27 | &enet1 { |
| 28 | tbi-handle = <&tbi1>; |
| 29 | phy-handle = <&sgmii_phy1>; |
| 30 | phy-mode = "sgmii"; |
| 31 | status = "okay"; |
| 32 | }; |
| 33 | |
| 34 | &i2c0 { |
| 35 | status = "okay"; |
| 36 | }; |
| 37 | |
| 38 | &mdio0 { |
| 39 | /* AR8031 */ |
| 40 | sgmii_phy1: ethernet-phy@1 { |
| 41 | reg = <0x1>; |
| 42 | }; |
| 43 | |
| 44 | /* AR8031 */ |
| 45 | sgmii_phy2: ethernet-phy@2 { |
| 46 | reg = <0x2>; |
| 47 | }; |
| 48 | |
| 49 | /* SGMII PCS for enet0 */ |
| 50 | tbi0: tbi-phy@1f { |
| 51 | reg = <0x1f>; |
| 52 | device_type = "tbi-phy"; |
| 53 | }; |
| 54 | }; |
| 55 | |
| 56 | &mdio1 { |
| 57 | /* SGMII PCS for enet1 */ |
| 58 | tbi1: tbi-phy@1f { |
| 59 | reg = <0x1f>; |
| 60 | device_type = "tbi-phy"; |
| 61 | }; |
| 62 | }; |
| 63 | |
| 64 | &qspi { |
| 65 | bus-num = <0>; |
| 66 | status = "okay"; |
| 67 | |
| 68 | flash@0 { |
| 69 | compatible = "spi-flash"; |
| 70 | spi-max-frequency = <20000000>; |
| 71 | reg = <0>; |
| 72 | }; |
| 73 | }; |
| 74 | |
| 75 | &uart0 { |
| 76 | status = "okay"; |
| 77 | }; |