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