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