1 // SPDX-License-Identifier: GPL-2.0
3 * TOPEET's Exynos4412 based itop board device tree source
5 * Copyright (c) 2016 SUMOMO Computer Association
6 * https://www.sumomo.mobi
7 * Randy Li <ayaka@soulik.info>
9 * Device tree source file for TOPEET iTop Exynos 4412 core board
10 * which is based on Samsung's Exynos4412 SoC.
14 #include <dt-bindings/leds/common.h>
15 #include <dt-bindings/pwm/pwm.h>
16 #include <dt-bindings/sound/samsung-i2s.h>
17 #include "exynos4412-itop-scp-core.dtsi"
20 model = "TOPEET iTop 4412 Elite board based on Exynos4412";
21 compatible = "topeet,itop4412-elite", "samsung,exynos4412", "samsung,exynos4";
24 bootargs = "root=/dev/mmcblk0p2 rw rootfstype=ext4 rootdelay=1 rootwait";
25 stdout-path = "serial2:115200n8";
29 compatible = "gpio-leds";
32 function = LED_FUNCTION_HEARTBEAT;
33 color = <LED_COLOR_ID_RED>;
34 gpios = <&gpx1 0 GPIO_ACTIVE_HIGH>;
35 default-state = "off";
36 linux,default-trigger = "heartbeat";
41 color = <LED_COLOR_ID_RED>;
42 gpios = <&gpk1 1 GPIO_ACTIVE_HIGH>;
43 default-state = "off";
48 compatible = "gpio-keys";
51 label = "GPIO Key Home";
52 linux,code = <KEY_HOME>;
53 gpios = <&gpx1 1 GPIO_ACTIVE_LOW>;
57 label = "GPIO Key Back";
58 linux,code = <KEY_BACK>;
59 gpios = <&gpx1 2 GPIO_ACTIVE_LOW>;
63 label = "GPIO Key Sleep";
64 linux,code = <KEY_POWER>;
65 gpios = <&gpx3 3 GPIO_ACTIVE_LOW>;
69 label = "GPIO Key Vol+";
70 linux,code = <KEY_UP>;
71 gpios = <&gpx2 1 GPIO_ACTIVE_LOW>;
75 label = "GPIO Key Vol-";
76 linux,code = <KEY_DOWN>;
77 gpios = <&gpx2 0 GPIO_ACTIVE_LOW>;
82 compatible = "simple-audio-card";
83 simple-audio-card,name = "wm-sound";
85 simple-audio-card,format = "i2s";
86 simple-audio-card,bitclock-master = <&link0_codec>;
87 simple-audio-card,frame-master = <&link0_codec>;
89 simple-audio-card,widgets =
90 "Microphone", "Mic Jack",
94 "Headphone", "Headphone Jack";
95 simple-audio-card,routing =
96 "Headphone Jack", "HP_L",
97 "Headphone Jack", "HP_R",
102 "LINPUT1", "Mic Jack",
103 "LINPUT3", "Mic Jack",
104 "RINPUT1", "Mic Jack",
105 "RINPUT2", "Mic Jack";
107 simple-audio-card,cpu {
108 sound-dai = <&i2s0 0>;
111 link0_codec: simple-audio-card,codec {
112 sound-dai = <&codec>;
113 clocks = <&i2s0 CLK_I2S_CDCLK>;
114 system-clock-frequency = <11289600>;
119 compatible = "pwm-beeper";
120 pwms = <&pwm 0 4000000 PWM_POLARITY_INVERTED>;
125 vdd-supply = <&ldo3_reg>;
130 pinctrl-0 = <&cam_port_a_clk_active>;
131 pinctrl-names = "default";
133 assigned-clocks = <&clock CLK_MOUT_CAM0>;
134 assigned-clock-parents = <&clock CLK_XUSBXTI>;
138 assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
139 <&clock_audss EXYNOS_MOUT_I2S>,
140 <&clock_audss EXYNOS_DOUT_SRP>,
141 <&clock_audss EXYNOS_DOUT_AUD_BUS>;
142 assigned-clock-parents = <&clock CLK_FOUT_EPLL>,
143 <&clock_audss EXYNOS_MOUT_AUDSS>;
144 assigned-clock-rates = <0>, <0>, <112896000>, <11289600>;
149 /* In order to reset USB ethernet */
150 samsung,vbus-gpio = <&gpc0 1 GPIO_ACTIVE_HIGH>;
152 phys = <&exynos_usbphy 1>, <&exynos_usbphy 3>;
153 phy-names = "host", "hsic1";
162 assigned-clocks = <&clock CLK_MOUT_FIMC0>,
163 <&clock CLK_SCLK_FIMC0>;
164 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
165 assigned-clock-rates = <0>, <176000000>;
169 dr_mode = "peripheral";
174 samsung,i2c-sda-delay = <100>;
175 samsung,i2c-slave-addr = <0x10>;
176 samsung,i2c-max-bus-freq = <100000>;
177 pinctrl-0 = <&i2c4_bus>;
178 pinctrl-names = "default";
181 codec: audio-codec@1a {
182 compatible = "wlf,wm8960";
184 clocks = <&pmu_system_controller 0>;
185 clock-names = "mclk";
187 #sound-dai-cells = <0>;
192 pinctrl-0 = <&i2s0_bus>;
193 pinctrl-names = "default";
199 samsung,pins = "gpc0-1";
200 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
201 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
202 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
208 pinctrl-0 = <&pwm0_out>;
209 pinctrl-names = "default";
210 samsung,pwm-outputs = <0>;
215 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4>;
216 pinctrl-names = "default";
217 cd-gpio = <&gpx0 7 GPIO_ACTIVE_LOW>;
219 vmmc-supply = <&ldo23_reg>;
220 vqmmc-supply = <&ldo17_reg>;