Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 1 | /* |
| 2 | * at91-sama5d27_som1_ek.dts - Device Tree file for SAMA5D27 SOM1 EK board |
| 3 | * |
| 4 | * Copyright (C) 2017 Microchip Corporation |
| 5 | * Wenyou Yang <wenyou.yang@microchip.com> |
| 6 | * |
| 7 | * This file is dual-licensed: you can use it either under the terms |
| 8 | * of the GPL or the X11 license, at your option. Note that this dual |
| 9 | * licensing only applies to this file, and not this project as a |
| 10 | * whole. |
| 11 | * |
| 12 | * a) This file is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU General Public License as |
| 14 | * published by the Free Software Foundation; either version 2 of the |
| 15 | * License, or (at your option) any later version. |
| 16 | * |
| 17 | * This file is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * Or, alternatively, |
| 23 | * |
| 24 | * b) Permission is hereby granted, free of charge, to any person |
| 25 | * obtaining a copy of this software and associated documentation |
| 26 | * files (the "Software"), to deal in the Software without |
| 27 | * restriction, including without limitation the rights to use, |
| 28 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 29 | * sell copies of the Software, and to permit persons to whom the |
| 30 | * Software is furnished to do so, subject to the following |
| 31 | * conditions: |
| 32 | * |
| 33 | * The above copyright notice and this permission notice shall be |
| 34 | * included in all copies or substantial portions of the Software. |
| 35 | * |
| 36 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 37 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 38 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 39 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 40 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 41 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 42 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 43 | * OTHER DEALINGS IN THE SOFTWARE. |
| 44 | */ |
| 45 | /dts-v1/; |
Eugen Hristev | 87a31d7 | 2021-06-23 16:13:35 +0300 | [diff] [blame] | 46 | #include <dt-bindings/gpio/gpio.h> |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 47 | #include "sama5d27_som1.dtsi" |
| 48 | |
| 49 | / { |
| 50 | model = "Atmel SAMA5D27 SOM1 EK"; |
| 51 | compatible = "atmel,sama5d27-som1-ek", "atmel,sama5d2", "atmel,sama5"; |
| 52 | |
| 53 | chosen { |
| 54 | u-boot,dm-pre-reloc; |
| 55 | stdout-path = &uart1; |
| 56 | }; |
| 57 | |
Eugen Hristev | 25c62c7 | 2018-09-18 10:35:55 +0300 | [diff] [blame] | 58 | onewire_tm: onewire { |
Eugen Hristev | 87a31d7 | 2021-06-23 16:13:35 +0300 | [diff] [blame] | 59 | gpios = <&pioA 17 GPIO_ACTIVE_HIGH>; |
Eugen Hristev | 25c62c7 | 2018-09-18 10:35:55 +0300 | [diff] [blame] | 60 | pinctrl-names = "default"; |
| 61 | pinctrl-0 = <&pinctrl_onewire_tm_default>; |
| 62 | status = "okay"; |
| 63 | |
| 64 | w1_eeprom: w1_eeprom@0 { |
| 65 | compatible = "maxim,ds24b33"; |
| 66 | status = "okay"; |
| 67 | }; |
| 68 | }; |
| 69 | |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 70 | ahb { |
Eugen Hristev | 21de284 | 2021-08-17 13:29:24 +0300 | [diff] [blame] | 71 | usb1: ohci@400000 { |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 72 | num-ports = <3>; |
| 73 | atmel,vbus-gpio = <&pioA 42 0>; |
| 74 | pinctrl-names = "default"; |
| 75 | pinctrl-0 = <&pinctrl_usb_default>; |
| 76 | status = "okay"; |
| 77 | }; |
| 78 | |
Eugen Hristev | 21de284 | 2021-08-17 13:29:24 +0300 | [diff] [blame] | 79 | usb2: ehci@500000 { |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 80 | status = "okay"; |
| 81 | }; |
| 82 | |
| 83 | sdmmc0: sdio-host@a0000000 { |
| 84 | bus-width = <8>; |
| 85 | pinctrl-names = "default"; |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 86 | pinctrl-0 = <&pinctrl_sdmmc0_default>; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 87 | status = "okay"; |
| 88 | u-boot,dm-pre-reloc; |
| 89 | }; |
| 90 | |
| 91 | sdmmc1: sdio-host@b0000000 { |
| 92 | bus-width = <4>; |
| 93 | pinctrl-names = "default"; |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 94 | pinctrl-0 = <&pinctrl_sdmmc1_default>; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 95 | status = "okay"; /* conflict with qspi0 */ |
| 96 | u-boot,dm-pre-reloc; |
| 97 | }; |
| 98 | |
| 99 | apb { |
| 100 | hlcdc: hlcdc@f0000000 { |
| 101 | atmel,vl-bpix = <4>; |
| 102 | atmel,guard-time = <1>; |
| 103 | pinctrl-names = "default"; |
| 104 | pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_pwm &pinctrl_lcd_rgb666>; |
| 105 | status = "okay"; |
| 106 | u-boot,dm-pre-reloc; |
| 107 | |
| 108 | display-timings { |
| 109 | u-boot,dm-pre-reloc; |
| 110 | 480x272 { |
| 111 | clock-frequency = <9000000>; |
| 112 | hactive = <480>; |
| 113 | vactive = <272>; |
| 114 | hsync-len = <41>; |
| 115 | hfront-porch = <2>; |
| 116 | hback-porch = <2>; |
| 117 | vfront-porch = <2>; |
| 118 | vback-porch = <2>; |
| 119 | vsync-len = <11>; |
| 120 | u-boot,dm-pre-reloc; |
| 121 | }; |
| 122 | }; |
| 123 | }; |
| 124 | |
| 125 | uart1: serial@f8020000 { |
| 126 | pinctrl-names = "default"; |
| 127 | pinctrl-0 = <&pinctrl_uart1_default>; |
| 128 | status = "okay"; |
| 129 | u-boot,dm-pre-reloc; |
| 130 | }; |
| 131 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 132 | pioA: pinctrl@fc038000 { |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 133 | pinctrl { |
| 134 | pinctrl_lcd_base: pinctrl_lcd_base { |
| 135 | pinmux = <PIN_PC5__LCDVSYNC>, |
| 136 | <PIN_PC6__LCDHSYNC>, |
| 137 | <PIN_PC8__LCDDEN>, |
| 138 | <PIN_PC7__LCDPCK>; |
| 139 | bias-disable; |
| 140 | }; |
| 141 | |
| 142 | pinctrl_lcd_pwm: pinctrl_lcd_pwm { |
| 143 | pinmux = <PIN_PC3__LCDPWM>; |
| 144 | bias-disable; |
| 145 | }; |
| 146 | |
| 147 | pinctrl_lcd_rgb666: pinctrl_lcd_rgb666 { |
| 148 | pinmux = <PIN_PB13__LCDDAT2>, |
| 149 | <PIN_PB14__LCDDAT3>, |
| 150 | <PIN_PB15__LCDDAT4>, |
| 151 | <PIN_PB16__LCDDAT5>, |
| 152 | <PIN_PB17__LCDDAT6>, |
| 153 | <PIN_PB18__LCDDAT7>, |
| 154 | <PIN_PB21__LCDDAT10>, |
| 155 | <PIN_PB22__LCDDAT11>, |
| 156 | <PIN_PB23__LCDDAT12>, |
| 157 | <PIN_PB24__LCDDAT13>, |
| 158 | <PIN_PB25__LCDDAT14>, |
| 159 | <PIN_PB26__LCDDAT15>, |
| 160 | <PIN_PB29__LCDDAT18>, |
| 161 | <PIN_PB30__LCDDAT19>, |
| 162 | <PIN_PB31__LCDDAT20>, |
| 163 | <PIN_PC0__LCDDAT21>, |
| 164 | <PIN_PC1__LCDDAT22>, |
| 165 | <PIN_PC2__LCDDAT23>; |
| 166 | bias-disable; |
| 167 | }; |
| 168 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 169 | pinctrl_sdmmc0_default: sdmmc0_default { |
| 170 | cmd_dat { |
| 171 | pinmux = <PIN_PA1__SDMMC0_CMD>, |
| 172 | <PIN_PA2__SDMMC0_DAT0>, |
| 173 | <PIN_PA3__SDMMC0_DAT1>, |
| 174 | <PIN_PA4__SDMMC0_DAT2>, |
| 175 | <PIN_PA5__SDMMC0_DAT3>, |
| 176 | <PIN_PA6__SDMMC0_DAT4>, |
| 177 | <PIN_PA7__SDMMC0_DAT5>, |
| 178 | <PIN_PA8__SDMMC0_DAT6>, |
| 179 | <PIN_PA9__SDMMC0_DAT7>; |
| 180 | bias-pull-up; |
| 181 | u-boot,dm-pre-reloc; |
| 182 | }; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 183 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 184 | ck_cd { |
| 185 | pinmux = <PIN_PA0__SDMMC0_CK>, |
| 186 | <PIN_PA10__SDMMC0_RSTN>, |
| 187 | <PIN_PA13__SDMMC0_CD>; |
| 188 | bias-disable; |
| 189 | u-boot,dm-pre-reloc; |
| 190 | }; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 191 | }; |
| 192 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 193 | pinctrl_sdmmc1_default: sdmmc1_default { |
| 194 | cmd_dat { |
| 195 | pinmux = <PIN_PA28__SDMMC1_CMD>, |
| 196 | <PIN_PA18__SDMMC1_DAT0>, |
| 197 | <PIN_PA19__SDMMC1_DAT1>, |
| 198 | <PIN_PA20__SDMMC1_DAT2>, |
| 199 | <PIN_PA21__SDMMC1_DAT3>; |
| 200 | bias-pull-up; |
| 201 | u-boot,dm-pre-reloc; |
| 202 | }; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 203 | |
Sergiu Moga | 7c8ad0e | 2022-09-01 17:22:39 +0300 | [diff] [blame] | 204 | ck_cd { |
| 205 | pinmux = <PIN_PA22__SDMMC1_CK>, |
| 206 | <PIN_PA30__SDMMC1_CD>; |
| 207 | bias-disable; |
| 208 | u-boot,dm-pre-reloc; |
| 209 | }; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 210 | }; |
| 211 | |
| 212 | pinctrl_uart1_default: uart1_default { |
| 213 | pinmux = <PIN_PD2__URXD1>, |
| 214 | <PIN_PD3__UTXD1>; |
| 215 | bias-disable; |
| 216 | u-boot,dm-pre-reloc; |
| 217 | }; |
| 218 | |
| 219 | pinctrl_usb_default: usb_default { |
| 220 | pinmux = <PIN_PB10__GPIO>; |
| 221 | bias-disable; |
| 222 | }; |
| 223 | |
| 224 | pinctrl_usba_vbus: usba_vbus { |
| 225 | pinmux = <PIN_PA31__GPIO>; |
| 226 | bias-disable; |
| 227 | }; |
Eugen Hristev | 25c62c7 | 2018-09-18 10:35:55 +0300 | [diff] [blame] | 228 | |
| 229 | pinctrl_onewire_tm_default: onewire_tm_default { |
| 230 | pinmux = <PIN_PA17__GPIO>; |
| 231 | bias-pull-up; |
| 232 | }; |
Wenyou Yang | eebb073 | 2017-09-13 14:58:54 +0800 | [diff] [blame] | 233 | }; |
| 234 | }; |
| 235 | }; |
| 236 | }; |
| 237 | }; |