Merge tag 'trace-v4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / at91-nattis-2-natte-2.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * at91-nattis-2-natte-2.dts - Device Tree file for the Linea/Nattis board
4  *
5  * Copyright (C) 2017 Axentia Technologies AB
6  *
7  * Author: Peter Rosin <peda@axentia.se>
8  */
9 /dts-v1/;
10 #include "at91-linea.dtsi"
11 #include "sama5d3_lcd.dtsi"
12 #include "at91-natte.dtsi"
13
14 / {
15         model = "Axentia Linea-Nattis v2 Natte v2";
16         compatible = "axentia,nattis-2", "axentia,natte-2", "axentia,linea",
17                      "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
18
19         ahb {
20                 apb {
21                         pinctrl@fffff200 {
22                                 nattis {
23                                         pinctrl_usba_vbus: usba_vbus {
24                                                 atmel,pins =
25                                                         <AT91_PIOD 28
26                                                          AT91_PERIPH_GPIO
27                                                          AT91_PINCTRL_DEGLITCH>;
28                                         };
29
30                                         pinctrl_mmc0_cd: mmc0_cd {
31                                                 atmel,pins =
32                                                         <AT91_PIOD 5
33                                                          AT91_PERIPH_GPIO
34                                                          AT91_PINCTRL_PULL_UP_DEGLITCH>;
35                                         };
36
37                                         pinctrl_lcd_prlud0: lcd_prlud0 {
38                                                 atmel,pins =
39                                                         <AT91_PIOA 21
40                                                          AT91_PERIPH_GPIO
41                                                          AT91_PINCTRL_OUTPUT_VAL(0)>;
42                                         };
43
44                                         pinctrl_lcd_hipow0: lcd_hipow0 {
45                                                 atmel,pins =
46                                                         <AT91_PIOA 23
47                                                          AT91_PERIPH_GPIO
48                                                          AT91_PINCTRL_OUTPUT_VAL(0)>;
49                                         };
50                                 };
51                         };
52
53                         watchdog@fffffe40 {
54                                 status = "okay";
55                         };
56                 };
57         };
58
59         gpio-keys {
60                 compatible = "gpio-keys";
61
62                 wakeup {
63                         label = "Wakeup";
64                         linux,code = <10>;
65                         gpio-key,wakeup;
66                         gpios = <&pioB 27 GPIO_ACTIVE_LOW>;
67                 };
68         };
69
70         panel_reg: panel-regulator {
71                 compatible = "regulator-fixed";
72                 regulator-name = "panel-VCC";
73                 regulator-min-microvolt = <3300000>;
74                 regulator-max-microvolt = <3300000>;
75         };
76
77         bl_reg: backlight-regulator {
78                 compatible = "regulator-fixed";
79                 regulator-name = "panel-VDD";
80                 regulator-min-microvolt = <12000000>;
81                 regulator-max-microvolt = <12000000>;
82         };
83
84         panel_bl: backlight {
85                 compatible = "pwm-backlight";
86                 pwms = <&hlcdc_pwm 0 100000 0>;
87
88                 brightness-levels = < 0  1  2  3  4  5  6  7  8  9
89                                      10 11 12 13 14 15 16 17 18 19
90                                      20 21 22 23 24 25 26 27 28 29
91                                      30 31 32 33 34 35 36 37 38 39
92                                      40 41 42 43 44 45 46 47 48 49
93                                      50 51 52 53 54 55 56 57 58 59
94                                      60 61 62 63 64 65 66 67 68 69
95                                      70 71 72 73 74 75 76 77 78 79
96                                      80 81 82 83 84 85 86 87 88 89
97                                      90 91 92 93 94 95 96 97 98 99
98                                     100>;
99                 default-brightness-level = <40>;
100
101                 power-supply = <&bl_reg>;
102                 enable-gpios = <&pioA 20 GPIO_ACTIVE_HIGH>;
103         };
104
105         panel: panel {
106                 compatible = "sharp,lq150x1lg11";
107                 backlight = <&panel_bl>;
108                 power-supply = <&panel_reg>;
109
110                 port {
111                         panel_input: endpoint {
112                                 remote-endpoint = <&hlcdc_panel_output>;
113                         };
114                 };
115         };
116
117         sound {
118                 compatible = "simple-audio-card";
119
120                 simple-audio-card,name = "nattis-tfa9879";
121                 simple-audio-card,format = "i2s";
122                 simple-audio-card,bitclock-master = <&cpu_dai>;
123                 simple-audio-card,frame-master = <&cpu_dai>;
124                 simple-audio-card,widgets = "Line", "Line Out Jack";
125                 simple-audio-card,routing = "Line Out Jack", "LINEOUT";
126
127                 cpu_dai: simple-audio-card,cpu {
128                         sound-dai = <&ssc0>;
129                 };
130
131                 simple-audio-card,codec {
132                         sound-dai = <&amp>;
133                 };
134         };
135 };
136
137 &i2c0 {
138         status = "okay";
139
140         clock-frequency = <100000>;
141
142         temp@18 {
143                 compatible = "nxp,se97b", "jedec,jc-42.4-temp";
144                 reg = <0x18>;
145                 smbus-timeout-disable;
146         };
147
148         eeprom@50 {
149                 compatible = "nxp,24c02";
150                 reg = <0x50>;
151                 pagesize = <16>;
152         };
153
154         amp: amplifier@6c {
155                  compatible = "nxp,tfa9879";
156                  reg = <0x6c>;
157                  #sound-dai-cells = <0>;
158         };
159 };
160
161 &ssc0 {
162         status = "okay";
163
164         atmel,clk-from-rk-pin;
165         #sound-dai-cells = <0>;
166 };
167
168 &hlcdc {
169         status = "okay";
170
171         hlcdc-display-controller {
172                 pinctrl-names = "default";
173                 pinctrl-0 = <&pinctrl_lcd_base
174                              &pinctrl_lcd_rgb565
175                              &pinctrl_lcd_prlud0
176                              &pinctrl_lcd_hipow0>;
177
178                 port@0 {
179                         hlcdc_panel_output: endpoint {
180                                 remote-endpoint = <&panel_input>;
181                         };
182                 };
183         };
184 };
185
186 &mmc0 {
187         status = "okay";
188
189         pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0
190                      &pinctrl_mmc0_dat1_3
191                      &pinctrl_mmc0_cd>;
192
193         slot@0 {
194                 reg = <0>;
195                 bus-width = <4>;
196                 cd-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
197         };
198 };
199
200 &usart0 {
201         status = "okay";
202
203         pinctrl-names = "default";
204         pinctrl-0 = <&pinctrl_usart0>;
205         atmel,use-dma-rx;
206 };
207
208 &nand {
209         partitions {
210                 compatible = "fixed-partitions";
211                 #address-cells = <1>;
212                 #size-cells = <1>;
213
214                 at91bootstrap@0 {
215                         label = "at91bootstrap";
216                         reg = <0x0 0x40000>;
217                 };
218
219                 bootloader@40000 {
220                         label = "bootloader";
221                         reg = <0x40000 0x80000>;
222                 };
223
224                 bootloaderenv@c0000 {
225                         label = "bootloader env";
226                         reg = <0xc0000 0xc0000>;
227                 };
228
229                 dtb@180000 {
230                         label = "device tree";
231                         reg = <0x180000 0x80000>;
232                 };
233
234                 kernel@200000 {
235                         label = "kernel";
236                         reg = <0x200000 0x600000>;
237                 };
238
239                 rootfs@800000 {
240                         label = "rootfs";
241                         reg = <0x800000 0x0f800000>;
242                 };
243         };
244 };
245
246 &dbgu {
247         status = "okay";
248
249         atmel,use-dma-rx;
250 };
251
252 &usb0 {
253         status = "okay";
254
255         atmel,vbus-gpio = <&pioD 28 GPIO_ACTIVE_HIGH>;
256         pinctrl-names = "default";
257         pinctrl-0 = <&pinctrl_usba_vbus>;
258 };