Michael Walle | 4ceb5c6 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Device Tree file for the Kontron SMARC-sAL28 board. |
| 4 | * |
| 5 | * Copyright (C) 2019 Michael Walle <michael@walle.cc> |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
| 10 | #include "fsl-ls1028a.dtsi" |
| 11 | |
| 12 | / { |
| 13 | model = "Kontron SMARC-sAL28"; |
| 14 | compatible = "kontron,sl28", "fsl,ls1028a"; |
| 15 | |
| 16 | aliases { |
| 17 | serial0 = &serial0; |
| 18 | serial1 = &serial1; |
| 19 | serial2 = &lpuart1; |
| 20 | spi0 = &fspi; |
| 21 | spi1 = &dspi2; |
| 22 | }; |
| 23 | |
| 24 | chosen { |
| 25 | stdout-path = "serial0:115200n8"; |
| 26 | }; |
| 27 | }; |
| 28 | |
| 29 | &dspi2 { |
| 30 | status = "okay"; |
| 31 | }; |
| 32 | |
| 33 | &enetc0 { |
| 34 | phy-handle = <&phy0>; |
| 35 | phy-mode = "sgmii"; |
| 36 | status = "okay"; |
| 37 | }; |
| 38 | |
| 39 | &enetc2 { |
| 40 | status = "disabled"; |
| 41 | }; |
| 42 | |
| 43 | &enetc6 { |
| 44 | status = "disabled"; |
| 45 | }; |
| 46 | |
| 47 | &esdhc0 { |
| 48 | sd-uhs-sdr104; |
| 49 | sd-uhs-sdr50; |
| 50 | sd-uhs-sdr25; |
| 51 | sd-uhs-sdr12; |
| 52 | status = "okay"; |
| 53 | }; |
| 54 | |
| 55 | &esdhc1 { |
| 56 | mmc-hs200-1_8v; |
| 57 | mmc-hs400-1_8v; |
| 58 | bus-width = <8>; |
| 59 | status = "okay"; |
| 60 | }; |
| 61 | |
| 62 | &fspi { |
| 63 | status = "okay"; |
| 64 | |
| 65 | flash@0 { |
| 66 | #address-cells = <1>; |
| 67 | #size-cells = <1>; |
| 68 | compatible = "jedec,spi-nor"; |
| 69 | m25p,fast-read; |
| 70 | spi-max-frequency = <133000000>; |
| 71 | reg = <0>; |
| 72 | /* The following setting enables 1-1-2 (CMD-ADDR-DATA) mode */ |
| 73 | spi-rx-bus-width = <2>; /* 2 SPI Rx lines */ |
| 74 | spi-tx-bus-width = <1>; /* 1 SPI Tx line */ |
| 75 | |
| 76 | partition@0 { |
| 77 | reg = <0x000000 0x010000>; |
| 78 | label = "rcw"; |
| 79 | read-only; |
| 80 | }; |
| 81 | |
| 82 | partition@10000 { |
| 83 | reg = <0x010000 0x0f0000>; |
| 84 | label = "failsafe bootloader"; |
| 85 | read-only; |
| 86 | }; |
| 87 | |
| 88 | partition@100000 { |
| 89 | reg = <0x100000 0x040000>; |
| 90 | label = "failsafe DP firmware"; |
| 91 | read-only; |
| 92 | }; |
| 93 | |
| 94 | partition@140000 { |
| 95 | reg = <0x140000 0x0a0000>; |
| 96 | label = "failsafe trusted firmware"; |
| 97 | read-only; |
| 98 | }; |
| 99 | |
| 100 | partition@1e0000 { |
| 101 | reg = <0x1e0000 0x020000>; |
| 102 | label = "reserved"; |
| 103 | read-only; |
| 104 | }; |
| 105 | |
| 106 | partition@200000 { |
| 107 | reg = <0x200000 0x010000>; |
| 108 | label = "configuration store"; |
| 109 | }; |
| 110 | |
| 111 | partition@210000 { |
| 112 | reg = <0x210000 0x0f0000>; |
| 113 | label = "bootloader"; |
| 114 | }; |
| 115 | |
| 116 | partition@300000 { |
| 117 | reg = <0x300000 0x040000>; |
| 118 | label = "DP firmware"; |
| 119 | }; |
| 120 | |
| 121 | partition@340000 { |
| 122 | reg = <0x340000 0x0a0000>; |
| 123 | label = "trusted firmware"; |
| 124 | }; |
| 125 | |
| 126 | partition@3e0000 { |
| 127 | reg = <0x3e0000 0x020000>; |
| 128 | label = "bootloader environment"; |
| 129 | }; |
| 130 | }; |
| 131 | }; |
| 132 | |
| 133 | &i2c0 { |
| 134 | status = "okay"; |
| 135 | |
| 136 | rtc@32 { |
| 137 | compatible = "microcrystal,rv8803"; |
| 138 | reg = <0x32>; |
| 139 | }; |
| 140 | |
| 141 | eeprom@50 { |
| 142 | compatible = "atmel,24c32"; |
| 143 | reg = <0x50>; |
| 144 | pagesize = <32>; |
| 145 | }; |
| 146 | }; |
| 147 | |
| 148 | &i2c3 { |
| 149 | status = "okay"; |
| 150 | }; |
| 151 | |
| 152 | &i2c4 { |
| 153 | status = "okay"; |
| 154 | |
| 155 | eeprom@50 { |
| 156 | compatible = "atmel,24c32"; |
| 157 | reg = <0x50>; |
| 158 | pagesize = <32>; |
| 159 | }; |
| 160 | }; |
| 161 | |
| 162 | &lpuart1 { |
| 163 | status = "okay"; |
| 164 | }; |
| 165 | |
| 166 | &mdio0 { |
| 167 | status = "okay"; |
| 168 | phy0: ethernet-phy@5 { |
| 169 | reg = <0x5>; |
| 170 | eee-broken-1000t; |
| 171 | eee-broken-100tx; |
| 172 | }; |
| 173 | }; |
| 174 | |
| 175 | &serial0 { |
| 176 | status = "okay"; |
| 177 | }; |
| 178 | |
| 179 | &serial1 { |
| 180 | status = "okay"; |
| 181 | }; |
| 182 | |
| 183 | &usb1 { |
| 184 | status = "okay"; |
| 185 | }; |
| 186 | |
| 187 | &usb2 { |
| 188 | status = "okay"; |
| 189 | }; |