haikun | ddf79f3 | 2015-03-25 20:23:26 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Freescale ls1021a TWR board device tree source |
| 3 | * |
| 4 | * Copyright 2013-2015 Freescale Semiconductor, Inc. |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0+ |
| 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
| 10 | #include "ls1021a.dtsi" |
| 11 | |
| 12 | / { |
| 13 | model = "LS1021A TWR Board"; |
| 14 | |
| 15 | aliases { |
| 16 | enet2_rgmii_phy = &rgmii_phy1; |
| 17 | enet0_sgmii_phy = &sgmii_phy2; |
| 18 | enet1_sgmii_phy = &sgmii_phy0; |
Haikun.Wang@freescale.com | 863b4e1 | 2015-03-24 21:20:40 +0800 | [diff] [blame] | 19 | spi0 = &qspi; |
Yuan Yao | a8ee68d | 2015-09-30 13:05:15 +0530 | [diff] [blame] | 20 | spi1 = &dspi1; |
Haikun.Wang@freescale.com | 863b4e1 | 2015-03-24 21:20:40 +0800 | [diff] [blame] | 21 | }; |
Bin Meng | f833cd6 | 2016-01-13 19:38:59 -0800 | [diff] [blame^] | 22 | |
| 23 | chosen { |
| 24 | stdout-path = &uart0; |
| 25 | }; |
Haikun.Wang@freescale.com | 863b4e1 | 2015-03-24 21:20:40 +0800 | [diff] [blame] | 26 | }; |
| 27 | |
| 28 | &qspi { |
| 29 | bus-num = <0>; |
| 30 | status = "okay"; |
| 31 | |
| 32 | qflash0: n25q128a13@0 { |
| 33 | #address-cells = <1>; |
| 34 | #size-cells = <1>; |
| 35 | compatible = "spi-flash"; |
| 36 | spi-max-frequency = <20000000>; |
| 37 | reg = <0>; |
haikun | ddf79f3 | 2015-03-25 20:23:26 +0800 | [diff] [blame] | 38 | }; |
| 39 | }; |
| 40 | |
Yuan Yao | a8ee68d | 2015-09-30 13:05:15 +0530 | [diff] [blame] | 41 | &dspi1 { |
| 42 | bus-num = <0>; |
| 43 | status = "okay"; |
| 44 | |
| 45 | dspiflash: at26df081a@0 { |
| 46 | #address-cells = <1>; |
| 47 | #size-cells = <1>; |
| 48 | compatible = "spi-flash"; |
| 49 | spi-max-frequency = <16000000>; |
| 50 | spi-cpol; |
| 51 | spi-cpha; |
| 52 | reg = <0>; |
| 53 | }; |
| 54 | }; |
| 55 | |
haikun | ddf79f3 | 2015-03-25 20:23:26 +0800 | [diff] [blame] | 56 | &i2c0 { |
| 57 | status = "okay"; |
| 58 | }; |
| 59 | |
| 60 | &i2c1 { |
| 61 | status = "okay"; |
| 62 | }; |
| 63 | |
| 64 | &ifc { |
| 65 | #address-cells = <2>; |
| 66 | #size-cells = <1>; |
| 67 | /* NOR Flash on board */ |
haikun | ce35fc1 | 2015-03-24 21:16:31 +0800 | [diff] [blame] | 68 | ranges = <0x0 0x0 0x60000000 0x08000000>; |
haikun | ddf79f3 | 2015-03-25 20:23:26 +0800 | [diff] [blame] | 69 | status = "okay"; |
| 70 | |
| 71 | nor@0,0 { |
| 72 | #address-cells = <1>; |
| 73 | #size-cells = <1>; |
| 74 | compatible = "cfi-flash"; |
| 75 | reg = <0x0 0x0 0x8000000>; |
| 76 | bank-width = <2>; |
| 77 | device-width = <1>; |
| 78 | }; |
| 79 | }; |
| 80 | |
| 81 | &lpuart0 { |
| 82 | status = "okay"; |
| 83 | }; |
| 84 | |
| 85 | &mdio0 { |
| 86 | sgmii_phy0: ethernet-phy@0 { |
| 87 | reg = <0x0>; |
| 88 | }; |
| 89 | rgmii_phy1: ethernet-phy@1 { |
| 90 | reg = <0x1>; |
| 91 | }; |
| 92 | sgmii_phy2: ethernet-phy@2 { |
| 93 | reg = <0x2>; |
| 94 | }; |
| 95 | tbi1: tbi-phy@1f { |
| 96 | reg = <0x1f>; |
| 97 | device_type = "tbi-phy"; |
| 98 | }; |
| 99 | }; |
| 100 | |
| 101 | &uart0 { |
| 102 | status = "okay"; |
| 103 | }; |
| 104 | |
| 105 | &uart1 { |
| 106 | status = "okay"; |
| 107 | }; |