]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/arm/exynos5250-arndale.dts
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / sys / gnu / dts / arm / exynos5250-arndale.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Samsung's Exynos5250 based Arndale board device tree source
4  *
5  * Copyright (c) 2013 Samsung Electronics Co., Ltd.
6  *              http://www.samsung.com
7  */
8
9 /dts-v1/;
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/clock/samsung,s2mps11.h>
14 #include <dt-bindings/sound/samsung-i2s.h>
15 #include "exynos5250.dtsi"
16
17 / {
18         model = "Insignal Arndale evaluation board based on Exynos5250";
19         compatible = "insignal,arndale", "samsung,exynos5250", "samsung,exynos5";
20
21         memory@40000000 {
22                 device_type = "memory";
23                 reg = <0x40000000 0x80000000>;
24         };
25
26         chosen {
27                 stdout-path = "serial2:115200n8";
28         };
29
30         gpio_keys {
31                 compatible = "gpio-keys";
32
33                 menu {
34                         label = "SW-TACT2";
35                         gpios = <&gpx1 4 GPIO_ACTIVE_LOW>;
36                         linux,code = <KEY_MENU>;
37                         wakeup-source;
38                 };
39
40                 home {
41                         label = "SW-TACT3";
42                         gpios = <&gpx1 5 GPIO_ACTIVE_LOW>;
43                         linux,code = <KEY_HOME>;
44                         wakeup-source;
45                 };
46
47                 up {
48                         label = "SW-TACT4";
49                         gpios = <&gpx1 6 GPIO_ACTIVE_LOW>;
50                         linux,code = <KEY_UP>;
51                         wakeup-source;
52                 };
53
54                 down {
55                         label = "SW-TACT5";
56                         gpios = <&gpx1 7 GPIO_ACTIVE_LOW>;
57                         linux,code = <KEY_DOWN>;
58                         wakeup-source;
59                 };
60
61                 back {
62                         label = "SW-TACT6";
63                         gpios = <&gpx2 0 GPIO_ACTIVE_LOW>;
64                         linux,code = <KEY_BACK>;
65                         wakeup-source;
66                 };
67
68                 wakeup {
69                         label = "SW-TACT7";
70                         gpios = <&gpx2 1 GPIO_ACTIVE_LOW>;
71                         linux,code = <KEY_WAKEUP>;
72                         wakeup-source;
73                 };
74         };
75
76         panel: panel {
77                 compatible = "boe,hv070wsa-100";
78                 power-supply = <&vcc_3v3_reg>;
79                 enable-gpios = <&gpd1 3 GPIO_ACTIVE_HIGH>;
80                 port {
81                         panel_ep: endpoint {
82                                 remote-endpoint = <&bridge_out_ep>;
83                         };
84                 };
85         };
86
87         regulators {
88                 compatible = "simple-bus";
89                 #address-cells = <1>;
90                 #size-cells = <0>;
91
92                 main_dc_reg: regulator@0 {
93                         compatible = "regulator-fixed";
94                         reg = <0>;
95                         regulator-name = "MAIN_DC";
96                         regulator-always-on;
97                 };
98
99                 mmc_reg: regulator@1 {
100                         compatible = "regulator-fixed";
101                         reg = <1>;
102                         regulator-name = "VDD_MMC";
103                         regulator-min-microvolt = <2800000>;
104                         regulator-max-microvolt = <2800000>;
105                         regulator-always-on;
106                 };
107
108                 reg_hdmi_en: regulator@2 {
109                         compatible = "regulator-fixed";
110                         reg = <2>;
111                         regulator-name = "hdmi-en";
112                         regulator-always-on;
113                 };
114
115                 vcc_1v2_reg: regulator@3 {
116                         compatible = "regulator-fixed";
117                         reg = <3>;
118                         regulator-name = "VCC_1V2";
119                         regulator-min-microvolt = <1200000>;
120                         regulator-max-microvolt = <1200000>;
121                         regulator-always-on;
122                 };
123
124                 vcc_1v8_reg: regulator@4 {
125                         compatible = "regulator-fixed";
126                         reg = <4>;
127                         regulator-name = "VCC_1V8";
128                         regulator-min-microvolt = <1800000>;
129                         regulator-max-microvolt = <1800000>;
130                         regulator-always-on;
131                 };
132
133                 vcc_3v3_reg: regulator@5 {
134                         compatible = "regulator-fixed";
135                         reg = <5>;
136                         regulator-name = "VCC_3V3";
137                         regulator-min-microvolt = <3300000>;
138                         regulator-max-microvolt = <3300000>;
139                         regulator-always-on;
140                 };
141         };
142
143         sound {
144                 compatible = "samsung,arndale-wm1811";
145                 samsung,audio-cpu = <&i2s0>;
146                 samsung,audio-codec = <&wm1811>;
147         };
148
149         fixed-rate-clocks {
150                 xxti {
151                         compatible = "samsung,clock-xxti";
152                         clock-frequency = <24000000>;
153                 };
154         };
155
156         // SMSC USB3503 connected in hardware only mode as a PHY
157         usb_hub: usb-hub {
158                 compatible = "smsc,usb3503a";
159
160                 reset-gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
161                 connect-gpios = <&gpd1 7 GPIO_ACTIVE_HIGH>;
162         };
163 };
164
165 &clock {
166         assigned-clocks = <&clock CLK_FOUT_EPLL>;
167         assigned-clock-rates = <49152000>;
168 };
169
170 &clock_audss {
171         assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>;
172         assigned-clock-parents = <&clock CLK_FOUT_EPLL>;
173 };
174
175 &cpu0 {
176         cpu0-supply = <&buck2_reg>;
177 };
178
179 &dsi_0 {
180         vddcore-supply = <&ldo8_reg>;
181         vddio-supply = <&ldo10_reg>;
182         samsung,pll-clock-frequency = <24000000>;
183         samsung,burst-clock-frequency = <320000000>;
184         samsung,esc-clock-frequency = <10000000>;
185         status = "okay";
186
187         bridge@0 {
188                 reg = <0>;
189                 compatible = "toshiba,tc358764";
190                 vddc-supply = <&vcc_1v2_reg>;
191                 vddio-supply = <&vcc_1v8_reg>;
192                 vddlvds-supply = <&vcc_3v3_reg>;
193                 reset-gpios = <&gpd1 6 GPIO_ACTIVE_LOW>;
194                 #address-cells = <1>;
195                 #size-cells = <0>;
196                 port@1 {
197                         reg = <1>;
198                         bridge_out_ep: endpoint {
199                                 remote-endpoint = <&panel_ep>;
200                         };
201                 };
202         };
203 };
204
205 &fimd {
206         status = "okay";
207 };
208
209 &hdmi {
210         pinctrl-names = "default";
211         pinctrl-0 = <&hdmi_hpd>;
212         status = "okay";
213         ddc = <&i2c_ddc>;
214         hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
215         vdd_osc-supply = <&ldo10_reg>;
216         vdd_pll-supply = <&ldo8_reg>;
217         vdd-supply = <&ldo8_reg>;
218 };
219
220 &i2c_0 {
221         status = "okay";
222         samsung,i2c-sda-delay = <100>;
223         samsung,i2c-max-bus-freq = <20000>;
224         samsung,i2c-slave-addr = <0x66>;
225
226         s5m8767_pmic@66 {
227                 compatible = "samsung,s5m8767-pmic";
228                 reg = <0x66>;
229                 interrupt-parent = <&gpx3>;
230                 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
231                 pinctrl-names = "default";
232                 pinctrl-0 = <&s5m8767_irq>;
233
234                 vinb1-supply = <&main_dc_reg>;
235                 vinb2-supply = <&main_dc_reg>;
236                 vinb3-supply = <&main_dc_reg>;
237                 vinb4-supply = <&main_dc_reg>;
238                 vinb5-supply = <&main_dc_reg>;
239                 vinb6-supply = <&main_dc_reg>;
240                 vinb7-supply = <&main_dc_reg>;
241                 vinb8-supply = <&main_dc_reg>;
242                 vinb9-supply = <&main_dc_reg>;
243
244                 vinl1-supply = <&buck7_reg>;
245                 vinl2-supply = <&buck7_reg>;
246                 vinl3-supply = <&buck7_reg>;
247                 vinl4-supply = <&main_dc_reg>;
248                 vinl5-supply = <&main_dc_reg>;
249                 vinl6-supply = <&main_dc_reg>;
250                 vinl7-supply = <&main_dc_reg>;
251                 vinl8-supply = <&buck8_reg>;
252                 vinl9-supply = <&buck8_reg>;
253
254                 s5m8767,pmic-buck2-dvs-voltage = <1300000>;
255                 s5m8767,pmic-buck3-dvs-voltage = <1100000>;
256                 s5m8767,pmic-buck4-dvs-voltage = <1200000>;
257                 s5m8767,pmic-buck-dvs-gpios = <&gpd1 0 GPIO_ACTIVE_HIGH>,
258                                               <&gpd1 1 GPIO_ACTIVE_HIGH>,
259                                               <&gpd1 2 GPIO_ACTIVE_HIGH>;
260                 s5m8767,pmic-buck-ds-gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>,
261                                              <&gpx2 4 GPIO_ACTIVE_HIGH>,
262                                              <&gpx2 5 GPIO_ACTIVE_HIGH>;
263
264                 s5m8767_osc: clocks {
265                         compatible = "samsung,s5m8767-clk";
266                         #clock-cells = <1>;
267                         clock-output-names = "s5m8767_ap", "unused1", "unused2";
268                 };
269
270                 regulators {
271                         ldo1_reg: LDO1 {
272                                 regulator-name = "VDD_ALIVE_1.0V";
273                                 regulator-min-microvolt = <1100000>;
274                                 regulator-max-microvolt = <1100000>;
275                                 regulator-always-on;
276                                 regulator-boot-on;
277                                 op_mode = <1>;
278                         };
279
280                         ldo2_reg: LDO2 {
281                                 regulator-name = "VDD_28IO_DP_1.35V";
282                                 regulator-min-microvolt = <1200000>;
283                                 regulator-max-microvolt = <1200000>;
284                                 regulator-always-on;
285                                 regulator-boot-on;
286                                 op_mode = <1>;
287                         };
288
289                         ldo3_reg: LDO3 {
290                                 regulator-name = "VDD_COMMON1_1.8V";
291                                 regulator-min-microvolt = <1800000>;
292                                 regulator-max-microvolt = <1800000>;
293                                 regulator-always-on;
294                                 regulator-boot-on;
295                                 op_mode = <1>;
296                         };
297
298                         ldo4_reg: LDO4 {
299                                 regulator-name = "VDD_IOPERI_1.8V";
300                                 regulator-min-microvolt = <1800000>;
301                                 regulator-max-microvolt = <1800000>;
302                                 regulator-always-on;
303                                 op_mode = <1>;
304                         };
305
306                         ldo5_reg: LDO5 {
307                                 regulator-name = "VDD_EXT_1.8V";
308                                 regulator-min-microvolt = <1800000>;
309                                 regulator-max-microvolt = <1800000>;
310                                 regulator-always-on;
311                                 regulator-boot-on;
312                                 op_mode = <1>;
313                         };
314
315                         ldo6_reg: LDO6 {
316                                 regulator-name = "VDD_MPLL_1.1V";
317                                 regulator-min-microvolt = <1100000>;
318                                 regulator-max-microvolt = <1100000>;
319                                 regulator-always-on;
320                                 regulator-boot-on;
321                                 op_mode = <1>;
322                         };
323
324                         ldo7_reg: LDO7 {
325                                 regulator-name = "VDD_XPLL_1.1V";
326                                 regulator-min-microvolt = <1100000>;
327                                 regulator-max-microvolt = <1100000>;
328                                 regulator-always-on;
329                                 regulator-boot-on;
330                                 op_mode = <1>;
331                         };
332
333                         ldo8_reg: LDO8 {
334                                 regulator-name = "VDD_COMMON2_1.0V";
335                                 regulator-min-microvolt = <1000000>;
336                                 regulator-max-microvolt = <1000000>;
337                                 regulator-always-on;
338                                 regulator-boot-on;
339                                 op_mode = <1>;
340                         };
341
342                         ldo9_reg: LDO9 {
343                                 regulator-name = "VDD_33ON_3.0V";
344                                 regulator-min-microvolt = <3000000>;
345                                 regulator-max-microvolt = <3000000>;
346                                 op_mode = <1>;
347                         };
348
349                         ldo10_reg: LDO10 {
350                                 regulator-name = "VDD_COMMON3_1.8V";
351                                 regulator-min-microvolt = <1800000>;
352                                 regulator-max-microvolt = <1800000>;
353                                 regulator-always-on;
354                                 regulator-boot-on;
355                                 op_mode = <1>;
356                         };
357
358                         ldo11_reg: LDO11 {
359                                 regulator-name = "VDD_ABB2_1.8V";
360                                 regulator-min-microvolt = <1800000>;
361                                 regulator-max-microvolt = <1800000>;
362                                 regulator-always-on;
363                                 regulator-boot-on;
364                                 op_mode = <1>;
365                         };
366
367                         ldo12_reg: LDO12 {
368                                 regulator-name = "VDD_USB_3.0V";
369                                 regulator-min-microvolt = <3000000>;
370                                 regulator-max-microvolt = <3000000>;
371                                 regulator-always-on;
372                                 regulator-boot-on;
373                                 op_mode = <1>;
374                         };
375
376                         ldo13_reg: LDO13 {
377                                 regulator-name = "VDDQ_C2C_W_1.8V";
378                                 regulator-min-microvolt = <1800000>;
379                                 regulator-max-microvolt = <1800000>;
380                                 regulator-always-on;
381                                 regulator-boot-on;
382                                 op_mode = <1>;
383                         };
384
385                         ldo14_reg: LDO14 {
386                                 regulator-name = "VDD18_ABB0_3_1.8V";
387                                 regulator-min-microvolt = <1800000>;
388                                 regulator-max-microvolt = <1800000>;
389                                 regulator-always-on;
390                                 regulator-boot-on;
391                                 op_mode = <1>;
392                         };
393
394                         ldo15_reg: LDO15 {
395                                 regulator-name = "VDD10_COMMON4_1.0V";
396                                 regulator-min-microvolt = <1000000>;
397                                 regulator-max-microvolt = <1000000>;
398                                 regulator-always-on;
399                                 regulator-boot-on;
400                                 op_mode = <1>;
401                         };
402
403                         ldo16_reg: LDO16 {
404                                 regulator-name = "VDD18_HSIC_1.8V";
405                                 regulator-min-microvolt = <1800000>;
406                                 regulator-max-microvolt = <1800000>;
407                                 regulator-always-on;
408                                 regulator-boot-on;
409                                 op_mode = <1>;
410                         };
411
412                         ldo17_reg: LDO17 {
413                                 regulator-name = "VDDQ_MMC2_3_2.8V";
414                                 regulator-min-microvolt = <2800000>;
415                                 regulator-max-microvolt = <2800000>;
416                                 regulator-always-on;
417                                 regulator-boot-on;
418                                 op_mode = <1>;
419                         };
420
421                         ldo18_reg: LDO18 {
422                                 regulator-name = "VDD_33ON_2.8V";
423                                 regulator-min-microvolt = <2800000>;
424                                 regulator-max-microvolt = <2800000>;
425                                 op_mode = <1>;
426                         };
427
428                         ldo22_reg: LDO22 {
429                                 regulator-name = "EXT_33_OFF";
430                                 regulator-min-microvolt = <3300000>;
431                                 regulator-max-microvolt = <3300000>;
432                                 op_mode = <1>;
433                         };
434
435                         ldo23_reg: LDO23 {
436                                 regulator-name = "EXT_28_OFF";
437                                 regulator-min-microvolt = <2800000>;
438                                 regulator-max-microvolt = <2800000>;
439                                 op_mode = <1>;
440                         };
441
442                         ldo25_reg: LDO25 {
443                                 regulator-name = "PVDD_LDO25";
444                                 regulator-min-microvolt = <1200000>;
445                                 regulator-max-microvolt = <1200000>;
446                                 op_mode = <1>;
447                         };
448
449                         ldo26_reg: LDO26 {
450                                 regulator-name = "EXT_18_OFF";
451                                 regulator-min-microvolt = <1800000>;
452                                 regulator-max-microvolt = <1800000>;
453                                 op_mode = <1>;
454                         };
455
456                         buck1_reg: BUCK1 {
457                                 regulator-name = "vdd_mif";
458                                 regulator-min-microvolt = <950000>;
459                                 regulator-max-microvolt = <1200000>;
460                                 regulator-always-on;
461                                 regulator-boot-on;
462                                 op_mode = <1>;
463                         };
464
465                         buck2_reg: BUCK2 {
466                                 regulator-name = "vdd_arm";
467                                 regulator-min-microvolt = <912500>;
468                                 regulator-max-microvolt = <1300000>;
469                                 regulator-always-on;
470                                 regulator-boot-on;
471                                 op_mode = <1>;
472                         };
473
474                         buck3_reg: BUCK3 {
475                                 regulator-name = "vdd_int";
476                                 regulator-min-microvolt = <900000>;
477                                 regulator-max-microvolt = <1200000>;
478                                 regulator-always-on;
479                                 regulator-boot-on;
480                                 op_mode = <1>;
481                         };
482
483                         buck4_reg: BUCK4 {
484                                 regulator-name = "vdd_g3d";
485                                 regulator-min-microvolt = <850000>;
486                                 regulator-max-microvolt = <1300000>;
487                                 regulator-always-on;
488                                 regulator-boot-on;
489                                 op_mode = <1>;
490                         };
491
492                         buck5_reg: BUCK5 {
493                                 regulator-name = "VDD_MEM_1.35V";
494                                 regulator-min-microvolt = <750000>;
495                                 regulator-max-microvolt = <1355000>;
496                                 regulator-always-on;
497                                 regulator-boot-on;
498                                 op_mode = <1>;
499                         };
500
501                         buck7_reg: BUCK7 {
502                                 regulator-name = "PVDD_BUCK7";
503                                 regulator-always-on;
504                                 op_mode = <1>;
505                         };
506
507                         buck8_reg: BUCK8 {
508                                 regulator-name = "PVDD_BUCK8";
509                                 regulator-always-on;
510                                 op_mode = <1>;
511                         };
512
513                         buck9_reg: BUCK9 {
514                                 regulator-name = "VDD_33_OFF_EXT1";
515                                 regulator-min-microvolt = <750000>;
516                                 regulator-max-microvolt = <3000000>;
517                                 op_mode = <1>;
518                         };
519                 };
520         };
521 };
522
523 &i2c_3 {
524         status = "okay";
525
526         wm1811: codec@1a {
527                 compatible = "wlf,wm1811";
528                 reg = <0x1a>;
529                 clocks = <&i2s0 CLK_I2S_CDCLK>;
530                 clock-names = "MCLK1";
531
532                 AVDD2-supply = <&main_dc_reg>;
533                 CPVDD-supply = <&main_dc_reg>;
534                 DBVDD1-supply = <&main_dc_reg>;
535                 DBVDD2-supply = <&main_dc_reg>;
536                 DBVDD3-supply = <&main_dc_reg>;
537                 LDO1VDD-supply = <&main_dc_reg>;
538                 SPKVDD1-supply = <&main_dc_reg>;
539                 SPKVDD2-supply = <&main_dc_reg>;
540
541                 wlf,ldo1ena = <&gpb0 0 GPIO_ACTIVE_HIGH>;
542                 wlf,ldo2ena = <&gpb0 1 GPIO_ACTIVE_HIGH>;
543         };
544 };
545
546 &i2c_8 {
547         status = "okay";
548         /* used by HDMI PHY */
549         samsung,i2c-sda-delay = <100>;
550         samsung,i2c-max-bus-freq = <66000>;
551 };
552
553 &i2c_9 {
554         status = "okay";
555         samsung,i2c-sda-delay = <100>;
556         samsung,i2c-max-bus-freq = <40000>;
557         samsung,i2c-slave-addr = <0x38>;
558
559         sata_phy_i2c:sata-phy@38 {
560                 compatible = "samsung,exynos-sataphy-i2c";
561                 reg = <0x38>;
562         };
563 };
564
565 &i2s0 {
566         assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>;
567         assigned-clock-parents = <&clock_audss EXYNOS_I2S_BUS>;
568         status = "okay";
569 };
570
571 &i2s0_bus {
572         samsung,pin-drv = <EXYNOS4_PIN_DRV_LV2>;
573 };
574
575 &mali {
576         mali-supply = <&buck4_reg>;
577         status = "okay";
578 };
579
580 &mixer {
581         status = "okay";
582 };
583
584 &mmc_0 {
585         status = "okay";
586         broken-cd;
587         card-detect-delay = <200>;
588         samsung,dw-mshc-ciu-div = <3>;
589         samsung,dw-mshc-sdr-timing = <2 3>;
590         samsung,dw-mshc-ddr-timing = <1 2>;
591         vmmc-supply = <&mmc_reg>;
592         pinctrl-names = "default";
593         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>;
594         bus-width = <8>;
595         cap-mmc-highspeed;
596 };
597
598 &mmc_2 {
599         status = "okay";
600         card-detect-delay = <200>;
601         samsung,dw-mshc-ciu-div = <3>;
602         samsung,dw-mshc-sdr-timing = <2 3>;
603         samsung,dw-mshc-ddr-timing = <1 2>;
604         vmmc-supply = <&mmc_reg>;
605         pinctrl-names = "default";
606         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
607         bus-width = <4>;
608         disable-wp;
609         cap-sd-highspeed;
610 };
611
612 &pinctrl_0 {
613         s5m8767_irq: s5m8767-irq {
614                 samsung,pins = "gpx3-2";
615                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
616         };
617 };
618
619 &rtc {
620         clocks = <&clock CLK_RTC>, <&s5m8767_osc S2MPS11_CLK_AP>;
621         clock-names = "rtc", "rtc_src";
622         status = "okay";
623 };
624
625 &sata {
626         status = "okay";
627 };
628
629 &sata_phy {
630         status = "okay";
631         samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>;
632 };
633
634 &soc {
635         /*
636          * For unknown reasons HDMI-DDC does not work with Exynos I2C
637          * controllers. Lets use software I2C over GPIO pins as a workaround.
638          */
639         i2c_ddc: i2c-gpio {
640                 pinctrl-names = "default";
641                 pinctrl-0 = <&i2c2_gpio_bus>;
642                 status = "okay";
643                 compatible = "i2c-gpio";
644                 gpios = <&gpa0 6 0 /* sda */
645                          &gpa0 7 0 /* scl */
646                         >;
647                 i2c-gpio,delay-us = <2>;
648                 #address-cells = <1>;
649                 #size-cells = <0>;
650         };
651 };