blob: 27c96f95400ae4c586ffabc977c7ad9626093d0d [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
haikunddf79f32015-03-25 20:23:26 +08002/*
Bin Meng8b677612016-01-13 19:39:05 -08003 * Freescale ls1021a TWR board common device tree source
haikunddf79f32015-03-25 20:23:26 +08004 *
5 * Copyright 2013-2015 Freescale Semiconductor, Inc.
haikunddf79f32015-03-25 20:23:26 +08006 */
7
haikunddf79f32015-03-25 20:23:26 +08008#include "ls1021a.dtsi"
9
10/ {
11 model = "LS1021A TWR Board";
12
13 aliases {
Rajesh Bhagat220ce482019-01-05 08:06:14 +000014 enet2-rgmii-phy = &rgmii_phy1;
15 enet0-sgmii-phy = &sgmii_phy2;
16 enet1-sgmii-phy = &sgmii_phy0;
Haikun.Wang@freescale.com863b4e12015-03-24 21:20:40 +080017 spi0 = &qspi;
Yuan Yaoa8ee68d2015-09-30 13:05:15 +053018 spi1 = &dspi1;
Haikun.Wang@freescale.com863b4e12015-03-24 21:20:40 +080019 };
Bin Mengf833cd62016-01-13 19:38:59 -080020
21 chosen {
22 stdout-path = &uart0;
23 };
Haikun.Wang@freescale.com863b4e12015-03-24 21:20:40 +080024};
25
26&qspi {
27 bus-num = <0>;
28 status = "okay";
29
30 qflash0: n25q128a13@0 {
31 #address-cells = <1>;
32 #size-cells = <1>;
Neil Armstrongffd4c7c2019-02-10 10:16:20 +000033 compatible = "jedec,spi-nor";
Haikun.Wang@freescale.com863b4e12015-03-24 21:20:40 +080034 spi-max-frequency = <20000000>;
35 reg = <0>;
haikunddf79f32015-03-25 20:23:26 +080036 };
37};
38
Yuan Yaoa8ee68d2015-09-30 13:05:15 +053039&dspi1 {
40 bus-num = <0>;
41 status = "okay";
42
43 dspiflash: at26df081a@0 {
44 #address-cells = <1>;
45 #size-cells = <1>;
Neil Armstrongffd4c7c2019-02-10 10:16:20 +000046 compatible = "jedec,spi-nor";
Yuan Yaoa8ee68d2015-09-30 13:05:15 +053047 spi-max-frequency = <16000000>;
48 spi-cpol;
49 spi-cpha;
50 reg = <0>;
51 };
52};
53
Bin Mengf588b4d2019-07-19 00:29:59 +030054&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
haikunddf79f32015-03-25 20:23:26 +080074&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 */
haikunce35fc12015-03-24 21:16:31 +080086 ranges = <0x0 0x0 0x60000000 0x08000000>;
haikunddf79f32015-03-25 20:23:26 +080087 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 Mengf588b4d2019-07-19 00:29:59 +0300107
haikunddf79f32015-03-25 20:23:26 +0800108 rgmii_phy1: ethernet-phy@1 {
109 reg = <0x1>;
110 };
Bin Mengf588b4d2019-07-19 00:29:59 +0300111
haikunddf79f32015-03-25 20:23:26 +0800112 sgmii_phy2: ethernet-phy@2 {
113 reg = <0x2>;
114 };
Bin Mengf588b4d2019-07-19 00:29:59 +0300115
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 */
haikunddf79f32015-03-25 20:23:26 +0800125 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 Ma9ed5ec92018-08-01 14:15:41 +0800138
139&sata {
140 status = "okay";
141};