Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | #include "sama5d2.dtsi" |
| 3 | #include "sama5d2-pinfunc.h" |
| 4 | |
| 5 | / { |
| 6 | model = "Atmel SAMA5D2 Xplained"; |
| 7 | compatible = "atmel,sama5d2-xplained", "atmel,sama5d2", "atmel,sama5"; |
| 8 | |
| 9 | chosen { |
Wenyou Yang | 4529ee3 | 2017-03-23 14:26:23 +0800 | [diff] [blame] | 10 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 11 | stdout-path = &uart1; |
| 12 | }; |
| 13 | |
Eugen Hristev | 7f0110d | 2018-09-18 10:35:53 +0300 | [diff] [blame] | 14 | onewire_tm: onewire { |
| 15 | gpios = <&pioA PIN_PB0 0>; |
| 16 | pinctrl-names = "default"; |
| 17 | pinctrl-0 = <&pinctrl_onewire_tm_default>; |
| 18 | status = "okay"; |
| 19 | |
| 20 | w1_eeprom: w1_eeprom@0 { |
| 21 | compatible = "maxim,ds24b33"; |
| 22 | status = "okay"; |
| 23 | }; |
| 24 | }; |
| 25 | |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 26 | ahb { |
| 27 | usb1: ohci@00400000 { |
| 28 | num-ports = <3>; |
| 29 | atmel,vbus-gpio = <&pioA 42 0>; |
| 30 | pinctrl-names = "default"; |
| 31 | pinctrl-0 = <&pinctrl_usb_default>; |
| 32 | status = "okay"; |
| 33 | }; |
| 34 | |
| 35 | usb2: ehci@00500000 { |
| 36 | status = "okay"; |
| 37 | }; |
| 38 | |
| 39 | sdmmc0: sdio-host@a0000000 { |
| 40 | bus-width = <8>; |
| 41 | pinctrl-names = "default"; |
| 42 | pinctrl-0 = <&pinctrl_sdmmc0_cmd_dat_default &pinctrl_sdmmc0_ck_cd_default>; |
| 43 | status = "okay"; |
Wenyou Yang | 4529ee3 | 2017-03-23 14:26:23 +0800 | [diff] [blame] | 44 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 45 | }; |
| 46 | |
| 47 | sdmmc1: sdio-host@b0000000 { |
| 48 | bus-width = <4>; |
| 49 | pinctrl-names = "default"; |
| 50 | pinctrl-0 = <&pinctrl_sdmmc1_cmd_dat_default &pinctrl_sdmmc1_ck_cd_default>; |
| 51 | status = "okay"; /* conflict with qspi0 */ |
Wenyou Yang | 4529ee3 | 2017-03-23 14:26:23 +0800 | [diff] [blame] | 52 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 53 | }; |
| 54 | |
| 55 | apb { |
Wenyou Yang | d2cd09b | 2017-09-18 15:25:57 +0800 | [diff] [blame] | 56 | hlcdc: hlcdc@f0000000 { |
| 57 | atmel,vl-bpix = <4>; |
| 58 | atmel,guard-time = <1>; |
| 59 | pinctrl-names = "default"; |
| 60 | pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_pwm &pinctrl_lcd_rgb666>; |
| 61 | status = "okay"; |
| 62 | u-boot,dm-pre-reloc; |
| 63 | |
| 64 | display-timings { |
| 65 | u-boot,dm-pre-reloc; |
| 66 | 480x272 { |
| 67 | clock-frequency = <9000000>; |
| 68 | hactive = <480>; |
| 69 | vactive = <272>; |
| 70 | hsync-len = <41>; |
| 71 | hfront-porch = <2>; |
| 72 | hback-porch = <2>; |
| 73 | vfront-porch = <2>; |
| 74 | vback-porch = <2>; |
| 75 | vsync-len = <11>; |
| 76 | u-boot,dm-pre-reloc; |
| 77 | }; |
| 78 | }; |
| 79 | }; |
| 80 | |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 81 | qspi0: spi@f0020000 { |
Cyrille Pitchen | 4eeedd0 | 2019-06-18 08:51:58 +0000 | [diff] [blame] | 82 | pinctrl-names = "default"; |
| 83 | pinctrl-0 = <&pinctrl_qspi0_sck_cs_default &pinctrl_qspi0_dat_default>; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 84 | status = "okay"; |
Cyrille Pitchen | 4eeedd0 | 2019-06-18 08:51:58 +0000 | [diff] [blame] | 85 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 86 | |
| 87 | flash@0 { |
Cyrille Pitchen | 4eeedd0 | 2019-06-18 08:51:58 +0000 | [diff] [blame] | 88 | compatible = "jedec,spi-nor"; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 89 | reg = <0>; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 90 | spi-max-frequency = <83000000>; |
Cyrille Pitchen | 4eeedd0 | 2019-06-18 08:51:58 +0000 | [diff] [blame] | 91 | spi-rx-bus-width = <4>; |
| 92 | spi-tx-bus-width = <4>; |
| 93 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 94 | }; |
| 95 | }; |
| 96 | |
| 97 | spi0: spi@f8000000 { |
| 98 | cs-gpios = <&pioA 17 0>, <0>, <0>, <0>; |
| 99 | pinctrl-names = "default"; |
| 100 | pinctrl-0 = <&pinctrl_spi0_default>; |
| 101 | status = "okay"; |
Wenyou Yang | 4529ee3 | 2017-03-23 14:26:23 +0800 | [diff] [blame] | 102 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 103 | |
| 104 | spi_flash@0 { |
Neil Armstrong | ffd4c7c | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 105 | compatible = "jedec,spi-nor"; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 106 | reg = <0>; |
| 107 | spi-max-frequency = <50000000>; |
Wenyou Yang | 4529ee3 | 2017-03-23 14:26:23 +0800 | [diff] [blame] | 108 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 109 | }; |
| 110 | }; |
| 111 | |
| 112 | macb0: ethernet@f8008000 { |
| 113 | pinctrl-names = "default"; |
| 114 | pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq>; |
| 115 | phy-mode = "rmii"; |
| 116 | status = "okay"; |
| 117 | |
| 118 | ethernet-phy@1 { |
| 119 | reg = <0x1>; |
| 120 | }; |
| 121 | }; |
| 122 | |
| 123 | uart1: serial@f8020000 { |
| 124 | pinctrl-names = "default"; |
| 125 | pinctrl-0 = <&pinctrl_uart1_default>; |
| 126 | status = "okay"; |
Wenyou Yang | 4529ee3 | 2017-03-23 14:26:23 +0800 | [diff] [blame] | 127 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 128 | }; |
| 129 | |
| 130 | i2c1: i2c@fc028000 { |
| 131 | pinctrl-names = "default"; |
| 132 | pinctrl-0 = <&pinctrl_i2c1_default>; |
| 133 | status = "okay"; |
Wenyou Yang | 34e2819 | 2017-09-01 16:26:17 +0800 | [diff] [blame] | 134 | |
| 135 | i2c_eeprom: i2c_eeprom@5c { |
| 136 | compatible = "atmel,24mac402"; |
| 137 | reg = <0x5c>; |
| 138 | }; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 139 | }; |
| 140 | |
| 141 | pioA: gpio@fc038000 { |
| 142 | pinctrl { |
| 143 | pinctrl_i2c1_default: i2c1_default { |
| 144 | pinmux = <PIN_PD4__TWD1>, |
| 145 | <PIN_PD5__TWCK1>; |
| 146 | bias-disable; |
| 147 | }; |
| 148 | |
Wenyou Yang | d2cd09b | 2017-09-18 15:25:57 +0800 | [diff] [blame] | 149 | pinctrl_lcd_base: pinctrl_lcd_base { |
| 150 | pinmux = <PIN_PC30__LCDVSYNC>, |
| 151 | <PIN_PC31__LCDHSYNC>, |
| 152 | <PIN_PD1__LCDDEN>, |
| 153 | <PIN_PD0__LCDPCK>; |
| 154 | bias-disable; |
| 155 | }; |
| 156 | |
| 157 | pinctrl_lcd_pwm: pinctrl_lcd_pwm { |
| 158 | pinmux = <PIN_PC28__LCDPWM>; |
| 159 | bias-disable; |
| 160 | }; |
| 161 | |
| 162 | pinctrl_lcd_rgb666: pinctrl_lcd_rgb666 { |
| 163 | pinmux = <PIN_PC10__LCDDAT2>, |
| 164 | <PIN_PC11__LCDDAT3>, |
| 165 | <PIN_PC12__LCDDAT4>, |
| 166 | <PIN_PC13__LCDDAT5>, |
| 167 | <PIN_PC14__LCDDAT6>, |
| 168 | <PIN_PC15__LCDDAT7>, |
| 169 | <PIN_PC16__LCDDAT10>, |
| 170 | <PIN_PC17__LCDDAT11>, |
| 171 | <PIN_PC18__LCDDAT12>, |
| 172 | <PIN_PC19__LCDDAT13>, |
| 173 | <PIN_PC20__LCDDAT14>, |
| 174 | <PIN_PC21__LCDDAT15>, |
| 175 | <PIN_PC22__LCDDAT18>, |
| 176 | <PIN_PC23__LCDDAT19>, |
| 177 | <PIN_PC24__LCDDAT20>, |
| 178 | <PIN_PC25__LCDDAT21>, |
| 179 | <PIN_PC26__LCDDAT22>, |
| 180 | <PIN_PC27__LCDDAT23>; |
| 181 | bias-disable; |
| 182 | }; |
| 183 | |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 184 | pinctrl_macb0_phy_irq: macb0_phy_irq { |
| 185 | pinmux = <PIN_PC9__GPIO>; |
| 186 | bias-disable; |
| 187 | }; |
| 188 | |
| 189 | pinctrl_macb0_rmii: macb0_rmii { |
| 190 | pinmux = <PIN_PB14__GTXCK>, |
| 191 | <PIN_PB15__GTXEN>, |
| 192 | <PIN_PB16__GRXDV>, |
| 193 | <PIN_PB17__GRXER>, |
| 194 | <PIN_PB18__GRX0>, |
| 195 | <PIN_PB19__GRX1>, |
| 196 | <PIN_PB20__GTX0>, |
| 197 | <PIN_PB21__GTX1>, |
| 198 | <PIN_PB22__GMDC>, |
| 199 | <PIN_PB23__GMDIO>; |
| 200 | bias-disable; |
| 201 | }; |
| 202 | |
Cyrille Pitchen | 4eeedd0 | 2019-06-18 08:51:58 +0000 | [diff] [blame] | 203 | pinctrl_qspi0_sck_cs_default: qspi0_sck_cs_default { |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 204 | pinmux = <PIN_PA22__QSPI0_SCK>, |
Cyrille Pitchen | 4eeedd0 | 2019-06-18 08:51:58 +0000 | [diff] [blame] | 205 | <PIN_PA23__QSPI0_CS>; |
| 206 | bias-disable; |
| 207 | u-boot,dm-pre-reloc; |
| 208 | }; |
| 209 | |
| 210 | pinctrl_qspi0_dat_default: qspi0_dat_default { |
| 211 | pinmux = <PIN_PA24__QSPI0_IO0>, |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 212 | <PIN_PA25__QSPI0_IO1>, |
| 213 | <PIN_PA26__QSPI0_IO2>, |
| 214 | <PIN_PA27__QSPI0_IO3>; |
Cyrille Pitchen | 4eeedd0 | 2019-06-18 08:51:58 +0000 | [diff] [blame] | 215 | bias-pull-up; |
| 216 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 217 | }; |
| 218 | |
| 219 | pinctrl_sdmmc0_cmd_dat_default: sdmmc0_cmd_dat_default { |
| 220 | pinmux = <PIN_PA1__SDMMC0_CMD>, |
| 221 | <PIN_PA2__SDMMC0_DAT0>, |
| 222 | <PIN_PA3__SDMMC0_DAT1>, |
| 223 | <PIN_PA4__SDMMC0_DAT2>, |
| 224 | <PIN_PA5__SDMMC0_DAT3>, |
| 225 | <PIN_PA6__SDMMC0_DAT4>, |
| 226 | <PIN_PA7__SDMMC0_DAT5>, |
| 227 | <PIN_PA8__SDMMC0_DAT6>, |
| 228 | <PIN_PA9__SDMMC0_DAT7>; |
| 229 | bias-pull-up; |
Wenyou Yang | 4529ee3 | 2017-03-23 14:26:23 +0800 | [diff] [blame] | 230 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 231 | }; |
| 232 | |
| 233 | pinctrl_sdmmc0_ck_cd_default: sdmmc0_ck_cd_default { |
| 234 | pinmux = <PIN_PA0__SDMMC0_CK>, |
| 235 | <PIN_PA10__SDMMC0_RSTN>, |
| 236 | <PIN_PA11__SDMMC0_VDDSEL>, |
| 237 | <PIN_PA13__SDMMC0_CD>; |
| 238 | bias-disable; |
Wenyou Yang | 4529ee3 | 2017-03-23 14:26:23 +0800 | [diff] [blame] | 239 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 240 | }; |
| 241 | |
| 242 | pinctrl_sdmmc1_cmd_dat_default: sdmmc1_cmd_dat_default { |
| 243 | pinmux = <PIN_PA28__SDMMC1_CMD>, |
| 244 | <PIN_PA18__SDMMC1_DAT0>, |
| 245 | <PIN_PA19__SDMMC1_DAT1>, |
| 246 | <PIN_PA20__SDMMC1_DAT2>, |
| 247 | <PIN_PA21__SDMMC1_DAT3>; |
| 248 | bias-pull-up; |
Wenyou Yang | 4529ee3 | 2017-03-23 14:26:23 +0800 | [diff] [blame] | 249 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 250 | }; |
| 251 | |
| 252 | pinctrl_sdmmc1_ck_cd_default: sdmmc1_ck_cd_default { |
| 253 | pinmux = <PIN_PA22__SDMMC1_CK>, |
| 254 | <PIN_PA30__SDMMC1_CD>; |
| 255 | bias-disable; |
Wenyou Yang | 4529ee3 | 2017-03-23 14:26:23 +0800 | [diff] [blame] | 256 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 257 | }; |
| 258 | |
| 259 | pinctrl_spi0_default: spi0_default { |
| 260 | pinmux = <PIN_PA14__SPI0_SPCK>, |
| 261 | <PIN_PA15__SPI0_MOSI>, |
| 262 | <PIN_PA16__SPI0_MISO>; |
| 263 | bias-disable; |
Wenyou Yang | 4529ee3 | 2017-03-23 14:26:23 +0800 | [diff] [blame] | 264 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 265 | }; |
| 266 | |
| 267 | pinctrl_uart1_default: uart1_default { |
| 268 | pinmux = <PIN_PD2__URXD1>, |
| 269 | <PIN_PD3__UTXD1>; |
| 270 | bias-disable; |
Wenyou Yang | 4529ee3 | 2017-03-23 14:26:23 +0800 | [diff] [blame] | 271 | u-boot,dm-pre-reloc; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 272 | }; |
| 273 | |
| 274 | pinctrl_usb_default: usb_default { |
| 275 | pinmux = <PIN_PB10__GPIO>; |
| 276 | bias-disable; |
| 277 | }; |
| 278 | |
| 279 | pinctrl_usba_vbus: usba_vbus { |
| 280 | pinmux = <PIN_PA31__GPIO>; |
| 281 | bias-disable; |
| 282 | }; |
Eugen Hristev | 7f0110d | 2018-09-18 10:35:53 +0300 | [diff] [blame] | 283 | |
| 284 | pinctrl_onewire_tm_default: onewire_tm_default { |
| 285 | pinmux = <PIN_PB0__GPIO>; |
| 286 | bias-pull-up; |
| 287 | }; |
Wenyou Yang | 2c4b2dd | 2016-07-25 17:46:17 +0800 | [diff] [blame] | 288 | }; |
| 289 | }; |
| 290 | }; |
| 291 | }; |
| 292 | }; |