blob: eff0e9175a42375e0cc8bb4582b96acf3308b358 [file] [log] [blame]
Mihai Sain87d1cac2023-07-24 14:35:10 +03001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * at91-sama5d29_curiosity.dts - Device Tree file for SAMA5D29 CURIOSITY board
4 *
5 * Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries
6 *
7 * Author: Mihai Sain <mihai.sain@microchip.com>
8 *
9 */
10/dts-v1/;
11#include <dt-bindings/gpio/gpio.h>
12#include <dt-bindings/pinctrl/at91.h>
13#include "sama5d2.dtsi"
14#include "sama5d2-pinfunc.h"
15
16/ {
17 model = "Microchip SAMA5D29-Curiosity";
18 compatible = "atmel,sama5d29-curiosity", "atmel,sama5d2", "atmel,sama5";
19
20 chosen {
21 bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait";
22 stdout-path = &uart0;
23 };
24
25 memory {
26 reg = <0x20000000 0x20000000>; // 512 MiB LPDDR2-333
27 };
28
29 clocks {
30 slow_xtal: slow_xtal {
31 clock-frequency = <32768>;
32 };
33
34 main_xtal: main_xtal {
35 clock-frequency = <24000000>;
36 };
37 };
38
39 onewire_tm: onewire {
40 gpios = <&pioA PIN_PC9 GPIO_ACTIVE_HIGH>;
41 pinctrl-names = "default";
42 pinctrl-0 = <&pinctrl_onewire_tm_default>;
43 status = "okay";
44
45 w1_eeprom: w1_eeprom@0 {
46 compatible = "maxim,ds24b33";
47 status = "okay";
48 };
49 };
50
51 ahb {
52 usb1: ohci@400000 {
53 num-ports = <3>;
54 atmel,vbus-gpio = <&pioA PIN_PB13 GPIO_ACTIVE_HIGH>;
55 pinctrl-names = "default";
56 pinctrl-0 = <&pinctrl_usb_default>;
57 status = "okay";
58 };
59
60 usb2: ehci@500000 {
61 status = "okay";
62 };
63
64 sdmmc0: sdio-host@a0000000 {
65 bus-width = <4>;
66 disable-wp;
67 pinctrl-names = "default";
68 pinctrl-0 = <&pinctrl_sdmmc0_default>;
69 status = "okay";
70 };
71
72 sdmmc1: sdio-host@b0000000 {
73 bus-width = <4>;
74 disable-wp;
75 pinctrl-names = "default";
76 pinctrl-0 = <&pinctrl_sdmmc1_default>;
77 status = "okay";
78 };
79
80 apb {
81 hlcdc: hlcdc@f0000000 {
82 atmel,vl-bpix = <4>;
83 atmel,output-mode = <24>;
84 atmel,guard-time = <1>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_pwm &pinctrl_lcd_rgb666>;
87 status = "okay";
88
89 display-timings { // PDA TM5000
90 800x480 {
91 clock-frequency = <33000000>;
92 xres = <800>;
93 yres = <480>;
94 hactive = <800>;
95 vactive = <480>;
96 hsync-len = <64>;
97 hfront-porch = <1>;
98 hback-porch = <64>;
99 vfront-porch = <1>;
100 vback-porch = <22>;
101 vsync-len = <23>;
102 };
103 };
104 };
105
106 qspi1: spi@f0024000 {
107 pinctrl-names = "default";
108 pinctrl-0 = <&pinctrl_qspi1_default>;
109 status = "okay";
110
111 flash@0 {
112 compatible = "jedec,spi-nor";
113 reg = <0>;
114 spi-max-frequency = <80000000>;
115 spi-rx-bus-width = <4>;
116 spi-tx-bus-width = <4>;
117 m25p,fast-read;
118 };
119 };
120
121 uart0: serial@f801c000 {
122 pinctrl-names = "default";
123 pinctrl-0 = <&pinctrl_uart0_default>;
124 status = "okay";
125 };
126
127 pioA: pinctrl@fc038000 {
128 pinctrl_lcd_base: lcd_base {
129 pinmux = <PIN_PC30__LCDVSYNC>,
130 <PIN_PC31__LCDHSYNC>,
131 <PIN_PD1__LCDDEN>,
132 <PIN_PD0__LCDPCK>;
133 bias-disable;
134 };
135
136 pinctrl_lcd_pwm: lcd_pwm {
137 pinmux = <PIN_PC28__LCDPWM>;
138 bias-disable;
139 };
140
141 pinctrl_lcd_rgb666: lcd_rgb666 {
142 pinmux = <PIN_PC10__LCDDAT2>,
143 <PIN_PC11__LCDDAT3>,
144 <PIN_PC12__LCDDAT4>,
145 <PIN_PC13__LCDDAT5>,
146 <PIN_PC14__LCDDAT6>,
147 <PIN_PC15__LCDDAT7>,
148 <PIN_PC16__LCDDAT10>,
149 <PIN_PC17__LCDDAT11>,
150 <PIN_PC18__LCDDAT12>,
151 <PIN_PC19__LCDDAT13>,
152 <PIN_PC20__LCDDAT14>,
153 <PIN_PC21__LCDDAT15>,
154 <PIN_PC22__LCDDAT18>,
155 <PIN_PC23__LCDDAT19>,
156 <PIN_PC24__LCDDAT20>,
157 <PIN_PC25__LCDDAT21>,
158 <PIN_PC26__LCDDAT22>,
159 <PIN_PC27__LCDDAT23>;
160 bias-disable;
161 };
162
163 pinctrl_qspi1_default: qspi1_default {
164 pinmux = <PIN_PB5__QSPI1_SCK>,
165 <PIN_PB6__QSPI1_CS>,
166 <PIN_PB7__QSPI1_IO0>,
167 <PIN_PB8__QSPI1_IO1>,
168 <PIN_PB9__QSPI1_IO2>,
169 <PIN_PB10__QSPI1_IO3>;
170 bias-pull-up;
171 };
172
173 pinctrl_sdmmc0_default: sdmmc0_default {
174 pinmux = <PIN_PA0__SDMMC0_CK>,
175 <PIN_PA1__SDMMC0_CMD>,
176 <PIN_PA2__SDMMC0_DAT0>,
177 <PIN_PA3__SDMMC0_DAT1>,
178 <PIN_PA4__SDMMC0_DAT2>,
179 <PIN_PA5__SDMMC0_DAT3>,
180 <PIN_PA11__SDMMC0_VDDSEL>,
181 <PIN_PA13__SDMMC0_CD>;
182 bias-disable;
183 };
184
185 pinctrl_sdmmc1_default: sdmmc1_default {
186 pinmux = <PIN_PA18__SDMMC1_DAT0>,
187 <PIN_PA19__SDMMC1_DAT1>,
188 <PIN_PA20__SDMMC1_DAT2>,
189 <PIN_PA21__SDMMC1_DAT3>,
190 <PIN_PA22__SDMMC1_CK>,
191 <PIN_PA28__SDMMC1_CMD>,
192 <PIN_PA30__SDMMC1_CD>;
193 bias-disable;
194 };
195
196 pinctrl_uart0_default: uart0_default {
197 pinmux = <PIN_PB26__URXD0>,
198 <PIN_PB27__UTXD0>;
199 bias-disable;
200 };
201
202 pinctrl_usb_default: usb_default {
203 pinmux = <PIN_PA6__GPIO>;
204 bias-disable;
205 };
206
207 pinctrl_usba_vbus: usba_vbus {
208 pinmux = <PIN_PB13__GPIO>;
209 bias-disable;
210 };
211
212 pinctrl_onewire_tm_default: onewire_tm_default {
213 pinmux = <PIN_PC9__GPIO>;
214 bias-pull-up;
215 };
216 };
217 };
218 };
219};