WIP FPC-III support
[linux/fpc-iii.git] / arch / arm / boot / dts / exynos5410-odroidxu.dts
blob949c0721cdb4196162a78b1329b3095fd992086e
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Hardkernel Odroid XU board device tree source
4  *
5  * Copyright (c) 2013 Samsung Electronics Co., Ltd.
6  *              http://www.samsung.com
7  * Copyright (c) 2016 Krzysztof Kozlowski
8  */
10 /dts-v1/;
11 #include "exynos5410.dtsi"
12 #include <dt-bindings/clock/maxim,max77802.h>
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/interrupt-controller/irq.h>
15 #include <dt-bindings/sound/samsung-i2s.h>
16 #include "exynos54xx-odroidxu-leds.dtsi"
18 / {
19         model = "Hardkernel Odroid XU";
20         compatible = "hardkernel,odroid-xu", "samsung,exynos5410", "samsung,exynos5";
22         aliases {
23                 ethernet = &ethernet;
24         };
26         memory@40000000 {
27                 device_type = "memory";
28                 reg = <0x40000000 0x7ea00000>;
29         };
31         chosen {
32                 stdout-path = "serial2:115200n8";
33         };
35         emmc_pwrseq: pwrseq {
36                 pinctrl-0 = <&emmc_nrst_pin>;
37                 pinctrl-names = "default";
38                 compatible = "mmc-pwrseq-emmc";
39                 reset-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>;
40         };
42         fan0: pwm-fan {
43                 compatible = "pwm-fan";
44                 pwms = <&pwm 0 20972 0>;
45                 #cooling-cells = <2>;
46                 cooling-levels = <0 130 170 230>;
47         };
49         fin_pll: xxti {
50                 compatible = "fixed-clock";
51                 clock-frequency = <24000000>;
52                 clock-output-names = "fin_pll";
53                 #clock-cells = <0>;
54         };
56         firmware@2073000 {
57                 compatible = "samsung,secure-firmware";
58                 reg = <0x02073000 0x1000>;
59         };
61         sound: sound {
62                 compatible = "simple-audio-card";
64                 simple-audio-card,name = "Odroid-XU";
65                 simple-audio-card,widgets =
66                         "Headphone", "Headphone Jack",
67                         "Speakers", "Speakers";
68                 simple-audio-card,routing =
69                         "Headphone Jack", "HPL",
70                         "Headphone Jack", "HPR",
71                         "Headphone Jack", "MICBIAS",
72                         "IN1", "Headphone Jack",
73                         "Speakers", "SPKL",
74                         "Speakers", "SPKR";
76                 simple-audio-card,format = "i2s";
77                 simple-audio-card,bitclock-master = <&link0_codec>;
78                 simple-audio-card,frame-master = <&link0_codec>;
80                 simple-audio-card,cpu {
81                         sound-dai = <&audi2s0 0>;
82                         system-clock-frequency = <19200000>;
83                 };
85                 link0_codec: simple-audio-card,codec {
86                         sound-dai = <&max98090>;
87                         clocks = <&audi2s0 CLK_I2S_CDCLK>;
88                 };
89         };
92 &adc {
93         vdd-supply = <&ldo10_reg>;
94         status = "okay";
97 &audi2s0 {
98         status = "okay";
101 &clock {
102         clocks = <&fin_pll>;
103         assigned-clocks = <&clock CLK_FOUT_EPLL>;
104         assigned-clock-rates = <192000000>;
107 &clock_audss {
108         assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
109                         <&clock_audss EXYNOS_MOUT_I2S>,
110                         <&clock_audss EXYNOS_DOUT_SRP>,
111                         <&clock_audss EXYNOS_DOUT_AUD_BUS>;
113         assigned-clock-parents = <&clock CLK_FOUT_EPLL>,
114                         <&clock_audss EXYNOS_MOUT_AUDSS>;
116         assigned-clock-rates = <0>,
117                                <0>,
118                                <96000000>,
119                                <19200000>;
122 &cpu0_thermal {
123         thermal-sensors = <&tmu_cpu0 0>;
124         polling-delay-passive = <0>;
125         polling-delay = <0>;
127         trips {
128                 cpu_alert0: cpu-alert-0 {
129                         temperature = <50000>; /* millicelsius */
130                         hysteresis = <5000>; /* millicelsius */
131                         type = "active";
132                 };
133                 cpu_alert1: cpu-alert-1 {
134                         temperature = <60000>; /* millicelsius */
135                         hysteresis = <5000>; /* millicelsius */
136                         type = "active";
137                 };
138                 cpu_alert2: cpu-alert-2 {
139                         temperature = <70000>; /* millicelsius */
140                         hysteresis = <5000>; /* millicelsius */
141                         type = "active";
142                 };
143                 cpu_crit0: cpu-crit-0 {
144                         temperature = <120000>; /* millicelsius */
145                         hysteresis = <0>; /* millicelsius */
146                         type = "critical";
147                 };
148         };
150         cooling-maps {
151                 map0 {
152                         trip = <&cpu_alert0>;
153                         cooling-device = <&fan0 0 1>;
154                 };
155                 map1 {
156                         trip = <&cpu_alert1>;
157                         cooling-device = <&fan0 1 2>;
158                 };
159                 map2 {
160                         trip = <&cpu_alert2>;
161                         cooling-device = <&fan0 2 3>;
162                 };
163         };
166 &hsi2c_4 {
167         samsung,i2c-sda-delay = <100>;
168         samsung,i2c-max-bus-freq = <400000>;
169         status = "okay";
171         usb3503: usb-hub@8 {
172                 compatible = "smsc,usb3503";
173                 reg = <0x08>;
175                 intn-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>;
176                 connect-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
177                 reset-gpios = <&gpx1 4 GPIO_ACTIVE_LOW>;
178                 initial-mode = <1>;
180                 clock-names = "refclk";
181                 clocks = <&pmu_system_controller 0>;
182                 refclk-frequency = <24000000>;
183         };
185         max77802: pmic@9 {
186                 compatible = "maxim,max77802";
187                 reg = <0x9>;
188                 interrupt-parent = <&gpx0>;
189                 interrupts = <4 IRQ_TYPE_NONE>;
190                 pinctrl-names = "default";
191                 pinctrl-0 = <&max77802_irq>, <&pmic_dvs_1>, <&pmic_dvs_2>,
192                             <&pmic_dvs_3>;
193                 #clock-cells = <1>;
195                 inl1-supply = <&buck5_reg>;
196                 inl2-supply = <&buck7_reg>;
197                 inl3-supply = <&buck9_reg>;
198                 inl4-supply = <&buck9_reg>;
199                 inl5-supply = <&buck9_reg>;
200                 inl6-supply = <&buck10_reg>;
201                 inl7-supply = <&buck9_reg>;
202                 /* inl9 supply is BOOST, not configured here */
203                 inl10-supply = <&buck7_reg>;
205                 regulators {
206                         buck1_reg: BUCK1 {
207                                 regulator-name = "vdd_mif";
208                                 regulator-min-microvolt = <800000>;
209                                 regulator-max-microvolt = <1300000>;
210                                 regulator-always-on;
211                                 regulator-boot-on;
212                         };
214                         buck2_reg: BUCK2 {
215                                 regulator-name = "vdd_arm";
216                                 regulator-min-microvolt = <800000>;
217                                 regulator-max-microvolt = <1500000>;
218                                 regulator-always-on;
219                                 regulator-boot-on;
220                         };
222                         buck3_reg: BUCK3 {
223                                 regulator-name = "vdd_int";
224                                 regulator-min-microvolt = <800000>;
225                                 regulator-max-microvolt = <1400000>;
226                                 regulator-always-on;
227                                 regulator-boot-on;
228                         };
230                         buck4_reg: BUCK4 {
231                                 regulator-name = "vdd_g3d";
232                                 regulator-min-microvolt = <800000>;
233                                 regulator-max-microvolt = <1400000>;
234                                 regulator-always-on;
235                                 regulator-boot-on;
236                         };
238                         buck5_reg: BUCK5 {
239                                 regulator-name = "vdd_mem";
240                                 regulator-min-microvolt = <800000>;
241                                 regulator-max-microvolt = <1500000>;
242                                 regulator-always-on;
243                                 regulator-boot-on;
244                         };
246                         buck6_reg: BUCK6 {
247                                 regulator-name = "vdd_kfc";
248                                 regulator-min-microvolt = <800000>;
249                                 regulator-max-microvolt = <1500000>;
250                                 regulator-always-on;
251                                 regulator-boot-on;
252                         };
254                         buck7_reg: BUCK7 {
255                                 regulator-name = "buck7";
256                                 regulator-min-microvolt = <1300000>;
257                                 regulator-max-microvolt = <1300000>;
258                                 regulator-always-on;
259                                 regulator-boot-on;
260                         };
262                         buck8_reg: BUCK8 {
263                                 /* vdd_mmc0 */
264                                 regulator-name = "vddf_2v85";
265                                 regulator-min-microvolt = <2850000>;
266                                 regulator-max-microvolt = <2850000>;
267                                 regulator-always-on;
268                                 regulator-boot-on;
269                         };
271                         buck9_reg: BUCK9 {
272                                 regulator-name = "buck9";
273                                 regulator-min-microvolt = <3000000>;
274                                 regulator-max-microvolt = <3000000>;
275                                 regulator-always-on;
276                                 regulator-boot-on;
277                         };
279                         buck10_reg: BUCK10 {
280                                 regulator-name = "buck10";
281                                 regulator-min-microvolt = <2950000>;
282                                 regulator-max-microvolt = <2950000>;
283                                 regulator-always-on;
284                                 regulator-boot-on;
285                         };
287                         ldo1_reg: LDO1 {
288                                 regulator-name = "vdd_alive";
289                                 regulator-min-microvolt = <1000000>;
290                                 regulator-max-microvolt = <1000000>;
291                                 regulator-always-on;
292                         };
294                         ldo2_reg: LDO2 {
295                                 regulator-name = "vddq_m1_m2";
296                                 regulator-min-microvolt = <1200000>;
297                                 regulator-max-microvolt = <1200000>;
298                                 regulator-always-on;
299                         };
301                         ldo3_reg: LDO3 {
302                                 regulator-name = "vddq_gpio";
303                                 regulator-min-microvolt = <1800000>;
304                                 regulator-max-microvolt = <1800000>;
305                                 regulator-always-on;
306                         };
308                         ldo4_reg: LDO4 {
309                                 regulator-name = "vddq_mmc2";
310                                 regulator-min-microvolt = <1800000>;
311                                 regulator-max-microvolt = <3000000>;
312                                 /* Having it off prevents reboot */
313                                 regulator-always-on;
314                         };
316                         ldo5_reg: LDO5 {
317                                 regulator-name = "vdd18_hsic";
318                                 regulator-min-microvolt = <1800000>;
319                                 regulator-max-microvolt = <1800000>;
320                                 regulator-always-on;
321                         };
323                         ldo6_reg: LDO6 {
324                                 regulator-name = "vdd18_bpll";
325                                 regulator-min-microvolt = <1800000>;
326                                 regulator-max-microvolt = <1800000>;
327                                 regulator-always-on;
328                         };
330                         ldo7_reg: LDO7 {
331                                 regulator-name = "vddq_lcd";
332                                 regulator-min-microvolt = <1800000>;
333                                 regulator-max-microvolt = <1800000>;
334                                 /* Supplies also GPK and GPJ */
335                                 regulator-always-on;
336                         };
338                         ldo8_reg: LDO8 {
339                                 regulator-name = "vdd10_hdmi";
340                                 regulator-min-microvolt = <1000000>;
341                                 regulator-max-microvolt = <1000000>;
342                                 regulator-always-on;
343                         };
345                         ldo9_reg: LDO9 {
346                                 regulator-name = "ldo9";
347                         };
349                         ldo10_reg: LDO10 {
350                                 regulator-name = "vdd18_mipi";
351                                 regulator-min-microvolt = <1800000>;
352                                 regulator-max-microvolt = <1800000>;
353                                 regulator-always-on;
354                         };
356                         ldo11_reg: LDO11 {
357                                 regulator-name = "vddq_mmc01";
358                                 regulator-min-microvolt = <1800000>;
359                                 regulator-max-microvolt = <1800000>;
360                                 /*
361                                  * Having it off prevents accessing MMC after
362                                  * reboot with error:
363                                  * MMC Device 1: Clock OFF has been failed.
364                                  */
365                                 regulator-always-on;
366                         };
368                         ldo12_reg: LDO12 {
369                                 regulator-name = "vdd33_usb3";
370                                 regulator-min-microvolt = <3300000>;
371                                 regulator-max-microvolt = <3300000>;
372                                 regulator-always-on;
373                         };
375                         ldo13_reg: LDO13 {
376                                 regulator-name = "vddq_abbg0";
377                                 regulator-min-microvolt = <1800000>;
378                                 regulator-max-microvolt = <1800000>;
379                                 regulator-always-on;
380                         };
382                         ldo14_reg: LDO14 {
383                                 regulator-name = "vddq_abbg1";
384                                 regulator-min-microvolt = <1800000>;
385                                 regulator-max-microvolt = <1800000>;
386                                 regulator-always-on;
387                         };
389                         ldo15_reg: LDO15 {
390                                 regulator-name = "vdd10_usb3";
391                                 regulator-min-microvolt = <1000000>;
392                                 regulator-max-microvolt = <1000000>;
393                                 regulator-always-on;
394                         };
396                         ldo16_reg: LDO16 {
397                                 regulator-name = "ldo16";
398                         };
400                         ldo17_reg: LDO17 {
401                                 regulator-name = "cam_sensor_core";
402                                 regulator-min-microvolt = <1200000>;
403                                 regulator-max-microvolt = <1200000>;
404                         };
406                         ldo18_reg: LDO18 {
407                                 regulator-name = "ldo18";
408                                 regulator-min-microvolt = <1800000>;
409                                 regulator-max-microvolt = <1800000>;
410                         };
412                         ldo19_reg: LDO19 {
413                                 regulator-name = "ldo19";
414                         };
416                         ldo20_reg: LDO20 {
417                                 regulator-name = "vdd_mmc0";
418                                 regulator-min-microvolt = <1800000>;
419                                 regulator-max-microvolt = <1800000>;
420                         };
422                         ldo21_reg: LDO21 {
423                                 /* vdd_mmc2 */
424                                 regulator-name = "vddf_2v8";
425                                 regulator-min-microvolt = <2850000>;
426                                 regulator-max-microvolt = <2850000>;
427                         };
429                         ldo22_reg: LDO22 {
430                                 regulator-name = "ldo22";
431                         };
433                         ldo23_reg: LDO23 {
434                                 regulator-name = "dp_p3v3";
435                                 regulator-min-microvolt = <3300000>;
436                                 regulator-max-microvolt = <3300000>;
437                                 regulator-always-on;
438                         };
440                         ldo24_reg: LDO24 {
441                                 regulator-name = "cam_af";
442                                 regulator-min-microvolt = <2800000>;
443                                 regulator-max-microvolt = <2800000>;
444                         };
446                         ldo25_reg: LDO25 {
447                                 regulator-name = "eth_p3v3";
448                                 regulator-min-microvolt = <3300000>;
449                                 regulator-max-microvolt = <3300000>;
450                                 regulator-always-on;
451                         };
453                         ldo26_reg: LDO26 {
454                                 regulator-name = "usb30_extclk";
455                                 regulator-min-microvolt = <3300000>;
456                                 regulator-max-microvolt = <3300000>;
457                                 regulator-always-on;
458                         };
460                         ldo27_reg: LDO27 {
461                                 regulator-name = "ldo27";
462                         };
464                         ldo28_reg: LDO28 {
465                                 regulator-name = "ldo28";
466                         };
468                         ldo29_reg: LDO29 {
469                                 regulator-name = "ldo29";
470                         };
472                         ldo30_reg: LDO30 {
473                                 regulator-name = "vddq_e1_e2";
474                                 regulator-min-microvolt = <1200000>;
475                                 regulator-max-microvolt = <1200000>;
476                                 regulator-always-on;
477                         };
479                         ldo31_reg: LDO31 {
480                                 regulator-name = "ldo31";
481                         };
483                         /* On revisions with ti,ina231 this is sensor VS */
484                         ldo32_reg: LDO32 {
485                                 regulator-name = "vs_power_meter";
486                                 regulator-min-microvolt = <3300000>;
487                                 regulator-max-microvolt = <3300000>;
488                         };
490                         ldo33_reg: LDO33 {
491                                 regulator-name = "ldo33";
492                         };
494                         ldo34_reg: LDO34 {
495                                 regulator-name = "ldo34";
496                         };
498                         ldo35_reg: LDO35 {
499                                 regulator-name = "ldo35";
500                         };
501                 };
502         };
505 &i2c_1 {
506         status = "okay";
507         max98090: audio-codec@10 {
508                 compatible = "maxim,max98090";
509                 reg = <0x10>;
510                 interrupt-parent = <&gpj3>;
511                 interrupts = <0 IRQ_TYPE_NONE>;
512                 clocks = <&audi2s0 CLK_I2S_CDCLK>;
513                 clock-names = "mclk";
514                 #sound-dai-cells = <0>;
515         };
518 &mmc_0 {
519         status = "okay";
520         mmc-pwrseq = <&emmc_pwrseq>;
521         cd-gpios = <&gpc0 2 GPIO_ACTIVE_LOW>;
522         card-detect-delay = <200>;
523         samsung,dw-mshc-ciu-div = <3>;
524         samsung,dw-mshc-sdr-timing = <0 4>;
525         samsung,dw-mshc-ddr-timing = <0 2>;
526         pinctrl-names = "default";
527         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_cd>;
528         bus-width = <8>;
529         cap-mmc-highspeed;
530         mmc-hs200-1_8v;
531         vmmc-supply = <&ldo20_reg>;
532         vqmmc-supply = <&ldo11_reg>;
535 &mmc_2 {
536         status = "okay";
537         card-detect-delay = <200>;
538         samsung,dw-mshc-ciu-div = <3>;
539         samsung,dw-mshc-sdr-timing = <0 4>;
540         samsung,dw-mshc-ddr-timing = <0 2>;
541         pinctrl-names = "default";
542         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4 &sd2_wp>;
543         bus-width = <4>;
544         cap-sd-highspeed;
545         vmmc-supply = <&ldo21_reg>;
546         vqmmc-supply = <&ldo4_reg>;
549 &pinctrl_0 {
550         emmc_nrst_pin: emmc-nrst {
551                 samsung,pins = "gpd1-0";
552                 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
553                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
554                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
555         };
557         sd2_wp: sd2-wp {
558                 samsung,pins = "gpm5-0";
559                 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
560                 /* Pin is floating so be sure to disable write-protect */
561                 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
562                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
563         };
565         pmic_dvs_3: pmic-dvs-3 {
566                 samsung,pins = "gpx0-0";
567                 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
568                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
569                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
570         };
572         pmic_dvs_2: pmic-dvs-2 {
573                 samsung,pins = "gpx0-1";
574                 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
575                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
576                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
577         };
579         pmic_dvs_1: pmic-dvs-1 {
580                 samsung,pins = "gpx0-2";
581                 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
582                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
583                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
584                 samsung,pin-val = <1>;
585         };
587         max77802_irq: max77802-irq {
588                 samsung,pins = "gpx0-4";
589                 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
590                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
591                 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
592         };
595 &pwm {
596         /*
597          * PWM 0 -- fan
598          * PWM 1 -- Green LED
599          * PWM 2 -- Blue LED
600          * PWM 3 -- on MIPI connector for backlight
601          */
602         pinctrl-0 = <&pwm0_out &pwm1_out &pwm2_out &pwm3_out>;
603         pinctrl-names = "default";
604         status = "okay";
607 &rtc {
608         status = "okay";
609         clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>;
610         clock-names = "rtc", "rtc_src";
613 &serial_0 {
614         status = "okay";
617 &serial_1 {
618         status = "okay";
621 &serial_2 {
622         status = "okay";
625 &serial_3 {
626         status = "okay";
629 &tmu_cpu0 {
630         vtmu-supply = <&ldo10_reg>;
633 &tmu_cpu1 {
634         vtmu-supply = <&ldo10_reg>;
637 &tmu_cpu2 {
638         vtmu-supply = <&ldo10_reg>;
641 &tmu_cpu3 {
642         vtmu-supply = <&ldo10_reg>;
645 &usb3_0_oc {
646         /* External pull up */
647         samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
650 &usb3_1_oc {
651         /* External pull up */
652         samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
655 &usbdrd_dwc3_0 {
656         dr_mode = "peripheral";
659 &usbdrd_dwc3_1 {
660         dr_mode = "host";
663 &usbdrd3_0 {
664         vdd33-supply = <&ldo12_reg>;
665         vdd10-supply = <&ldo15_reg>;
668 &usbdrd3_1 {
669         vdd33-supply = <&ldo12_reg>;
670         vdd10-supply = <&ldo15_reg>;
673 &usbhost2 {
674         #address-cells = <1>;
675         #size-cells = <0>;
677         ethernet: usbether@2 {
678                 compatible = "usb0424,9730";
679                 reg = <2>;
680                 local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */
681         };