Merge branch 'xtensa-sim-params' into xtensa-fixes
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / exynos4412-odroidu3.dts
1 /*
2  * Hardkernel's Exynos4412 based ODROID-U3 board device tree source
3  *
4  * Copyright (c) 2014 Marek Szyprowski <m.szyprowski@samsung.com>
5  *
6  * Device tree source file for Hardkernel's ODROID-U3 board which is based
7  * on Samsung's Exynos4412 SoC.
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License version 2 as
11  * published by the Free Software Foundation.
12 */
13
14 /dts-v1/;
15 #include "exynos4412-odroid-common.dtsi"
16 #include "exynos4412-prime.dtsi"
17
18 / {
19         model = "Hardkernel ODROID-U3 board based on Exynos4412";
20         compatible = "hardkernel,odroid-u3", "samsung,exynos4412", "samsung,exynos4";
21
22         memory@40000000 {
23                 device_type = "memory";
24                 reg = <0x40000000 0x7FF00000>;
25         };
26
27         leds {
28                 compatible = "gpio-leds";
29                 led1 {
30                         label = "led1:heart";
31                         gpios = <&gpc1 0 GPIO_ACTIVE_LOW>;
32                         default-state = "on";
33                         linux,default-trigger = "heartbeat";
34                 };
35         };
36
37         fan0: pwm-fan {
38                 compatible = "pwm-fan";
39                 pwms = <&pwm 0 10000 0>;
40                 cooling-min-state = <0>;
41                 cooling-max-state = <3>;
42                 #cooling-cells = <2>;
43                 cooling-levels = <0 102 170 230>;
44         };
45
46         thermal-zones {
47                 cpu_thermal: cpu-thermal {
48                         cooling-maps {
49                                 map0 {
50                                      trip = <&cpu_alert1>;
51                                      cooling-device = <&cpu0 9 9>;
52                                 };
53                                 map1 {
54                                      trip = <&cpu_alert2>;
55                                      cooling-device = <&cpu0 15 15>;
56                                 };
57                                 map2 {
58                                      trip = <&cpu_alert0>;
59                                      cooling-device = <&fan0 0 1>;
60                                 };
61                                 map3 {
62                                      trip = <&cpu_alert1>;
63                                      cooling-device = <&fan0 1 2>;
64                                 };
65                                 map4 {
66                                      trip = <&cpu_alert2>;
67                                      cooling-device = <&fan0 2 3>;
68                                 };
69                         };
70                 };
71         };
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 /* VDDQ for MSHC (eMMC card) */
82 &ldo22_reg {
83         regulator-name = "LDO22_VDDQ_MMC4_2.8V";
84         regulator-min-microvolt = <2800000>;
85         regulator-max-microvolt = <2800000>;
86 };
87
88 &mshc_0 {
89         vqmmc-supply = <&ldo22_reg>;
90 };
91
92 &pwm {
93         pinctrl-0 = <&pwm0_out>;
94         pinctrl-names = "default";
95         samsung,pwm-outputs = <0>;
96         status = "okay";
97 };
98
99 &usb3503 {
100         clock-names = "refclk";
101         clocks = <&pmu_system_controller 0>;
102         refclk-frequency = <24000000>;
103 };
104
105 &ehci {
106         port@1 {
107                 status = "okay";
108         };
109         port@2 {
110                 status = "okay";
111         };
112 };
113
114 &sound {
115         simple-audio-card,name = "Odroid-U3";
116         simple-audio-card,widgets =
117                 "Headphone", "Headphone Jack",
118                 "Speakers", "Speakers";
119         simple-audio-card,routing =
120                 "Headphone Jack", "HPL",
121                 "Headphone Jack", "HPR",
122                 "Headphone Jack", "MICBIAS",
123                 "IN1", "Headphone Jack",
124                 "Speakers", "SPKL",
125                 "Speakers", "SPKR";
126 };
127
128 &spi_1 {
129         pinctrl-names = "default";
130         pinctrl-0 = <&spi1_bus>;
131         cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
132         status = "okay";
133 };