2 #include <dt-bindings/gpio/gpio.h>
3 #include "sama5d2.dtsi"
4 #include "sama5d2-pinfunc.h"
7 model = "Atmel SAMA5D2 Xplained";
8 compatible = "atmel,sama5d2-xplained", "atmel,sama5d2", "atmel,sama5";
16 gpios = <&pioA PIN_PB0 GPIO_ACTIVE_HIGH>;
17 pinctrl-names = "default";
18 pinctrl-0 = <&pinctrl_onewire_tm_default>;
21 w1_eeprom: w1_eeprom@0 {
22 compatible = "maxim,ds24b33";
30 atmel,vbus-gpio = <&pioA 42 0>;
31 pinctrl-names = "default";
32 pinctrl-0 = <&pinctrl_usb_default>;
40 sdmmc0: sdio-host@a0000000 {
42 pinctrl-names = "default";
43 pinctrl-0 = <&pinctrl_sdmmc0_cmd_dat_default &pinctrl_sdmmc0_ck_cd_default>;
48 sdmmc1: sdio-host@b0000000 {
50 pinctrl-names = "default";
51 pinctrl-0 = <&pinctrl_sdmmc1_cmd_dat_default &pinctrl_sdmmc1_ck_cd_default>;
52 status = "okay"; /* conflict with qspi0 */
57 hlcdc: hlcdc@f0000000 {
59 atmel,guard-time = <1>;
60 pinctrl-names = "default";
61 pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_pwm &pinctrl_lcd_rgb666>;
68 clock-frequency = <9000000>;
83 pinctrl-names = "default";
84 pinctrl-0 = <&pinctrl_qspi0_sck_cs_default &pinctrl_qspi0_dat_default>;
89 compatible = "jedec,spi-nor";
91 spi-max-frequency = <83000000>;
92 spi-rx-bus-width = <4>;
93 spi-tx-bus-width = <4>;
99 cs-gpios = <&pioA 17 0>, <0>, <0>, <0>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&pinctrl_spi0_default>;
106 compatible = "jedec,spi-nor";
108 spi-max-frequency = <50000000>;
113 macb0: ethernet@f8008000 {
114 pinctrl-names = "default";
115 pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq>;
124 uart1: serial@f8020000 {
125 pinctrl-names = "default";
126 pinctrl-0 = <&pinctrl_uart1_default>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&pinctrl_i2c1_default>;
136 i2c_eeprom: i2c_eeprom@5c {
137 compatible = "atmel,24mac402";
142 pioA: gpio@fc038000 {
144 pinctrl_i2c1_default: i2c1_default {
145 pinmux = <PIN_PD4__TWD1>,
150 pinctrl_lcd_base: pinctrl_lcd_base {
151 pinmux = <PIN_PC30__LCDVSYNC>,
152 <PIN_PC31__LCDHSYNC>,
158 pinctrl_lcd_pwm: pinctrl_lcd_pwm {
159 pinmux = <PIN_PC28__LCDPWM>;
163 pinctrl_lcd_rgb666: pinctrl_lcd_rgb666 {
164 pinmux = <PIN_PC10__LCDDAT2>,
170 <PIN_PC16__LCDDAT10>,
171 <PIN_PC17__LCDDAT11>,
172 <PIN_PC18__LCDDAT12>,
173 <PIN_PC19__LCDDAT13>,
174 <PIN_PC20__LCDDAT14>,
175 <PIN_PC21__LCDDAT15>,
176 <PIN_PC22__LCDDAT18>,
177 <PIN_PC23__LCDDAT19>,
178 <PIN_PC24__LCDDAT20>,
179 <PIN_PC25__LCDDAT21>,
180 <PIN_PC26__LCDDAT22>,
181 <PIN_PC27__LCDDAT23>;
185 pinctrl_macb0_phy_irq: macb0_phy_irq {
186 pinmux = <PIN_PC9__GPIO>;
190 pinctrl_macb0_rmii: macb0_rmii {
191 pinmux = <PIN_PB14__GTXCK>,
204 pinctrl_qspi0_sck_cs_default: qspi0_sck_cs_default {
205 pinmux = <PIN_PA22__QSPI0_SCK>,
206 <PIN_PA23__QSPI0_CS>;
211 pinctrl_qspi0_dat_default: qspi0_dat_default {
212 pinmux = <PIN_PA24__QSPI0_IO0>,
213 <PIN_PA25__QSPI0_IO1>,
214 <PIN_PA26__QSPI0_IO2>,
215 <PIN_PA27__QSPI0_IO3>;
220 pinctrl_sdmmc0_cmd_dat_default: sdmmc0_cmd_dat_default {
221 pinmux = <PIN_PA1__SDMMC0_CMD>,
222 <PIN_PA2__SDMMC0_DAT0>,
223 <PIN_PA3__SDMMC0_DAT1>,
224 <PIN_PA4__SDMMC0_DAT2>,
225 <PIN_PA5__SDMMC0_DAT3>,
226 <PIN_PA6__SDMMC0_DAT4>,
227 <PIN_PA7__SDMMC0_DAT5>,
228 <PIN_PA8__SDMMC0_DAT6>,
229 <PIN_PA9__SDMMC0_DAT7>;
234 pinctrl_sdmmc0_ck_cd_default: sdmmc0_ck_cd_default {
235 pinmux = <PIN_PA0__SDMMC0_CK>,
236 <PIN_PA10__SDMMC0_RSTN>,
237 <PIN_PA11__SDMMC0_VDDSEL>,
238 <PIN_PA13__SDMMC0_CD>;
243 pinctrl_sdmmc1_cmd_dat_default: sdmmc1_cmd_dat_default {
244 pinmux = <PIN_PA28__SDMMC1_CMD>,
245 <PIN_PA18__SDMMC1_DAT0>,
246 <PIN_PA19__SDMMC1_DAT1>,
247 <PIN_PA20__SDMMC1_DAT2>,
248 <PIN_PA21__SDMMC1_DAT3>;
253 pinctrl_sdmmc1_ck_cd_default: sdmmc1_ck_cd_default {
254 pinmux = <PIN_PA22__SDMMC1_CK>,
255 <PIN_PA30__SDMMC1_CD>;
260 pinctrl_spi0_default: spi0_default {
261 pinmux = <PIN_PA14__SPI0_SPCK>,
262 <PIN_PA15__SPI0_MOSI>,
263 <PIN_PA16__SPI0_MISO>;
268 pinctrl_uart1_default: uart1_default {
269 pinmux = <PIN_PD2__URXD1>,
275 pinctrl_usb_default: usb_default {
276 pinmux = <PIN_PB10__GPIO>;
280 pinctrl_usba_vbus: usba_vbus {
281 pinmux = <PIN_PA31__GPIO>;
285 pinctrl_onewire_tm_default: onewire_tm_default {
286 pinmux = <PIN_PB0__GPIO>;