Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
haikun | ddf79f3 | 2015-03-25 20:23:26 +0800 | [diff] [blame] | 2 | /* |
Bin Meng | 8b67761 | 2016-01-13 19:39:05 -0800 | [diff] [blame] | 3 | * Freescale ls1021a TWR board common device tree source |
haikun | ddf79f3 | 2015-03-25 20:23:26 +0800 | [diff] [blame] | 4 | * |
5 | * Copyright 2013-2015 Freescale Semiconductor, Inc. | ||||
haikun | ddf79f3 | 2015-03-25 20:23:26 +0800 | [diff] [blame] | 6 | */ |
7 | |||||
haikun | ddf79f3 | 2015-03-25 20:23:26 +0800 | [diff] [blame] | 8 | #include "ls1021a.dtsi" |
9 | |||||
10 | / { | ||||
11 | model = "LS1021A TWR Board"; | ||||
12 | |||||
13 | aliases { | ||||
Rajesh Bhagat | 220ce48 | 2019-01-05 08:06:14 +0000 | [diff] [blame] | 14 | enet2-rgmii-phy = &rgmii_phy1; |
15 | enet0-sgmii-phy = &sgmii_phy2; | ||||
16 | enet1-sgmii-phy = &sgmii_phy0; | ||||
Haikun.Wang@freescale.com | 863b4e1 | 2015-03-24 21:20:40 +0800 | [diff] [blame] | 17 | spi0 = &qspi; |
Yuan Yao | a8ee68d | 2015-09-30 13:05:15 +0530 | [diff] [blame] | 18 | spi1 = &dspi1; |
Haikun.Wang@freescale.com | 863b4e1 | 2015-03-24 21:20:40 +0800 | [diff] [blame] | 19 | }; |
Bin Meng | f833cd6 | 2016-01-13 19:38:59 -0800 | [diff] [blame] | 20 | |
21 | chosen { | ||||
22 | stdout-path = &uart0; | ||||
23 | }; | ||||
Haikun.Wang@freescale.com | 863b4e1 | 2015-03-24 21:20:40 +0800 | [diff] [blame] | 24 | }; |
25 | |||||
26 | &qspi { | ||||
27 | bus-num = <0>; | ||||
28 | status = "okay"; | ||||
29 | |||||
30 | qflash0: n25q128a13@0 { | ||||
31 | #address-cells = <1>; | ||||
32 | #size-cells = <1>; | ||||
Neil Armstrong | ffd4c7c | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 33 | compatible = "jedec,spi-nor"; |
Haikun.Wang@freescale.com | 863b4e1 | 2015-03-24 21:20:40 +0800 | [diff] [blame] | 34 | spi-max-frequency = <20000000>; |
35 | reg = <0>; | ||||
haikun | ddf79f3 | 2015-03-25 20:23:26 +0800 | [diff] [blame] | 36 | }; |
37 | }; | ||||
38 | |||||
Yuan Yao | a8ee68d | 2015-09-30 13:05:15 +0530 | [diff] [blame] | 39 | &dspi1 { |
40 | bus-num = <0>; | ||||
41 | status = "okay"; | ||||
42 | |||||
43 | dspiflash: at26df081a@0 { | ||||
44 | #address-cells = <1>; | ||||
45 | #size-cells = <1>; | ||||
Neil Armstrong | ffd4c7c | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 46 | compatible = "jedec,spi-nor"; |
Yuan Yao | a8ee68d | 2015-09-30 13:05:15 +0530 | [diff] [blame] | 47 | spi-max-frequency = <16000000>; |
48 | spi-cpol; | ||||
49 | spi-cpha; | ||||
50 | reg = <0>; | ||||
51 | }; | ||||
52 | }; | ||||
53 | |||||
Bin Meng | f588b4d | 2019-07-19 00:29:59 +0300 | [diff] [blame] | 54 | &enet0 { |
55 | tbi-handle = <&tbi0>; | ||||
56 | phy-handle = <&sgmii_phy2>; | ||||
57 | phy-connection-type = "sgmii"; | ||||
58 | status = "okay"; | ||||
59 | }; | ||||
60 | |||||
61 | &enet1 { | ||||
62 | tbi-handle = <&tbi1>; | ||||
63 | phy-handle = <&sgmii_phy0>; | ||||
64 | phy-connection-type = "sgmii"; | ||||
65 | status = "okay"; | ||||
66 | }; | ||||
67 | |||||
68 | &enet2 { | ||||
69 | phy-handle = <&rgmii_phy1>; | ||||
70 | phy-connection-type = "rgmii-id"; | ||||
71 | status = "okay"; | ||||
72 | }; | ||||
73 | |||||
haikun | ddf79f3 | 2015-03-25 20:23:26 +0800 | [diff] [blame] | 74 | &i2c0 { |
75 | status = "okay"; | ||||
76 | }; | ||||
77 | |||||
78 | &i2c1 { | ||||
79 | status = "okay"; | ||||
80 | }; | ||||
81 | |||||
82 | &ifc { | ||||
83 | #address-cells = <2>; | ||||
84 | #size-cells = <1>; | ||||
85 | /* NOR Flash on board */ | ||||
haikun | ce35fc1 | 2015-03-24 21:16:31 +0800 | [diff] [blame] | 86 | ranges = <0x0 0x0 0x60000000 0x08000000>; |
haikun | ddf79f3 | 2015-03-25 20:23:26 +0800 | [diff] [blame] | 87 | status = "okay"; |
88 | |||||
89 | nor@0,0 { | ||||
90 | #address-cells = <1>; | ||||
91 | #size-cells = <1>; | ||||
92 | compatible = "cfi-flash"; | ||||
93 | reg = <0x0 0x0 0x8000000>; | ||||
94 | bank-width = <2>; | ||||
95 | device-width = <1>; | ||||
96 | }; | ||||
97 | }; | ||||
98 | |||||
99 | &lpuart0 { | ||||
100 | status = "okay"; | ||||
101 | }; | ||||
102 | |||||
103 | &mdio0 { | ||||
104 | sgmii_phy0: ethernet-phy@0 { | ||||
105 | reg = <0x0>; | ||||
106 | }; | ||||
Bin Meng | f588b4d | 2019-07-19 00:29:59 +0300 | [diff] [blame] | 107 | |
haikun | ddf79f3 | 2015-03-25 20:23:26 +0800 | [diff] [blame] | 108 | rgmii_phy1: ethernet-phy@1 { |
109 | reg = <0x1>; | ||||
110 | }; | ||||
Bin Meng | f588b4d | 2019-07-19 00:29:59 +0300 | [diff] [blame] | 111 | |
haikun | ddf79f3 | 2015-03-25 20:23:26 +0800 | [diff] [blame] | 112 | sgmii_phy2: ethernet-phy@2 { |
113 | reg = <0x2>; | ||||
114 | }; | ||||
Bin Meng | f588b4d | 2019-07-19 00:29:59 +0300 | [diff] [blame] | 115 | |
116 | /* SGMII PCS for enet0 */ | ||||
117 | tbi0: tbi-phy@1f { | ||||
118 | reg = <0x1f>; | ||||
119 | device_type = "tbi-phy"; | ||||
120 | }; | ||||
121 | }; | ||||
122 | |||||
123 | &mdio1 { | ||||
124 | /* SGMII PCS for enet1 */ | ||||
haikun | ddf79f3 | 2015-03-25 20:23:26 +0800 | [diff] [blame] | 125 | tbi1: tbi-phy@1f { |
126 | reg = <0x1f>; | ||||
127 | device_type = "tbi-phy"; | ||||
128 | }; | ||||
129 | }; | ||||
130 | |||||
131 | &uart0 { | ||||
132 | status = "okay"; | ||||
133 | }; | ||||
134 | |||||
135 | &uart1 { | ||||
136 | status = "okay"; | ||||
137 | }; | ||||
Peng Ma | 9ed5ec9 | 2018-08-01 14:15:41 +0800 | [diff] [blame] | 138 | |
139 | &sata { | ||||
140 | status = "okay"; | ||||
141 | }; |