Merge tag 'zynqmp-dt-for-v5.2' of https://github.com/Xilinx/linux-xlnx into arm/dt
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / exynos4412-odroidu3.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Hardkernel's Exynos4412 based ODROID-U3 board device tree source
4  *
5  * Copyright (c) 2014 Marek Szyprowski <m.szyprowski@samsung.com>
6  *
7  * Device tree source file for Hardkernel's ODROID-U3 board which is based
8  * on Samsung's Exynos4412 SoC.
9  */
10
11 /dts-v1/;
12 #include "exynos4412-odroid-common.dtsi"
13 #include "exynos4412-prime.dtsi"
14
15 / {
16         model = "Hardkernel ODROID-U3 board based on Exynos4412";
17         compatible = "hardkernel,odroid-u3", "samsung,exynos4412", "samsung,exynos4";
18
19         memory@40000000 {
20                 device_type = "memory";
21                 reg = <0x40000000 0x7FF00000>;
22         };
23
24         leds {
25                 compatible = "gpio-leds";
26                 led1 {
27                         label = "led1:heart";
28                         gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
29                         default-state = "on";
30                         linux,default-trigger = "heartbeat";
31                 };
32         };
33
34         fan0: pwm-fan {
35                 compatible = "pwm-fan";
36                 pwms = <&pwm 0 10000 0>;
37                 cooling-min-state = <0>;
38                 cooling-max-state = <3>;
39                 #cooling-cells = <2>;
40                 cooling-levels = <0 102 170 230>;
41         };
42
43         thermal-zones {
44                 cpu_thermal: cpu-thermal {
45                         cooling-maps {
46                                 map0 {
47                                      trip = <&cpu_alert1>;
48                                      cooling-device = <&cpu0 9 9>, <&cpu1 9 9>,
49                                                       <&cpu2 9 9>, <&cpu3 9 9>,
50                                                       <&fan0 1 2>;
51                                 };
52                                 map1 {
53                                      trip = <&cpu_alert2>;
54                                      cooling-device = <&cpu0 15 15>,
55                                                       <&cpu1 15 15>,
56                                                       <&cpu2 15 15>,
57                                                       <&cpu3 15 15>,
58                                                       <&fan0 2 3>;
59                                 };
60                                 map2 {
61                                      trip = <&cpu_alert0>;
62                                      cooling-device = <&fan0 0 1>;
63                                 };
64                         };
65                 };
66         };
67 };
68
69 &adc {
70         vdd-supply = <&ldo10_reg>;
71         /* Nothing connected to ADC inputs, keep it disabled */
72 };
73
74 /* Supply for LAN9730/SMSC95xx */
75 &buck8_reg {
76         regulator-name = "BUCK8_P3V3";
77         regulator-min-microvolt = <3300000>;
78         regulator-max-microvolt = <3300000>;
79 };
80
81 &hdmicec {
82         needs-hpd;
83 };
84
85 /* VDDQ for MSHC (eMMC card) */
86 &ldo22_reg {
87         regulator-name = "LDO22_VDDQ_MMC4_2.8V";
88         regulator-min-microvolt = <2800000>;
89         regulator-max-microvolt = <2800000>;
90 };
91
92 &mshc_0 {
93         vqmmc-supply = <&ldo22_reg>;
94 };
95
96 &pwm {
97         pinctrl-0 = <&pwm0_out>;
98         pinctrl-names = "default";
99         samsung,pwm-outputs = <0>;
100         status = "okay";
101 };
102
103 &usb3503 {
104         clock-names = "refclk";
105         clocks = <&pmu_system_controller 0>;
106         refclk-frequency = <24000000>;
107 };
108
109 &ehci {
110         port@1 {
111                 status = "okay";
112         };
113         port@2 {
114                 status = "okay";
115         };
116 };
117
118 &sound {
119         model = "Odroid-U3";
120         samsung,audio-widgets =
121                 "Headphone", "Headphone Jack",
122                 "Speakers", "Speakers";
123         samsung,audio-routing =
124                 "Headphone Jack", "HPL",
125                 "Headphone Jack", "HPR",
126                 "Headphone Jack", "MICBIAS",
127                 "IN1", "Headphone Jack",
128                 "Speakers", "SPKL",
129                 "Speakers", "SPKR";
130 };
131
132 &spi_1 {
133         pinctrl-names = "default";
134         pinctrl-0 = <&spi1_bus>;
135         cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
136         status = "okay";
137 };