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/pwm/pwm.h>
15 #include <dt-bindings/sound/samsung-i2s.h>
16 #include "exynos4412-itop-scp-core.dtsi"
19 model = "TOPEET iTop 4412 Elite board based on Exynos4412";
20 compatible = "topeet,itop4412-elite", "samsung,exynos4412", "samsung,exynos4";
23 bootargs = "root=/dev/mmcblk0p2 rw rootfstype=ext4 rootdelay=1 rootwait";
24 stdout-path = "serial2:115200n8";
28 compatible = "gpio-leds";
32 gpios = <&gpx1 0 GPIO_ACTIVE_HIGH>;
33 default-state = "off";
34 linux,default-trigger = "heartbeat";
39 gpios = <&gpk1 1 GPIO_ACTIVE_HIGH>;
40 default-state = "off";
45 compatible = "gpio-keys";
48 label = "GPIO Key Home";
49 linux,code = <KEY_HOME>;
50 gpios = <&gpx1 1 GPIO_ACTIVE_LOW>;
54 label = "GPIO Key Back";
55 linux,code = <KEY_BACK>;
56 gpios = <&gpx1 2 GPIO_ACTIVE_LOW>;
60 label = "GPIO Key Sleep";
61 linux,code = <KEY_POWER>;
62 gpios = <&gpx3 3 GPIO_ACTIVE_LOW>;
66 label = "GPIO Key Vol+";
67 linux,code = <KEY_UP>;
68 gpios = <&gpx2 1 GPIO_ACTIVE_LOW>;
72 label = "GPIO Key Vol-";
73 linux,code = <KEY_DOWN>;
74 gpios = <&gpx2 0 GPIO_ACTIVE_LOW>;
79 compatible = "simple-audio-card";
80 simple-audio-card,name = "wm-sound";
82 simple-audio-card,format = "i2s";
83 simple-audio-card,bitclock-master = <&link0_codec>;
84 simple-audio-card,frame-master = <&link0_codec>;
86 simple-audio-card,widgets =
87 "Microphone", "Mic Jack",
91 "Headphone", "Headphone Jack";
92 simple-audio-card,routing =
93 "Headphone Jack", "HP_L",
94 "Headphone Jack", "HP_R",
99 "LINPUT1", "Mic Jack",
100 "LINPUT3", "Mic Jack",
101 "RINPUT1", "Mic Jack",
102 "RINPUT2", "Mic Jack";
104 simple-audio-card,cpu {
105 sound-dai = <&i2s0 0>;
108 link0_codec: simple-audio-card,codec {
109 sound-dai = <&codec>;
110 clocks = <&i2s0 CLK_I2S_CDCLK>;
111 system-clock-frequency = <11289600>;
116 compatible = "pwm-beeper";
117 pwms = <&pwm 0 4000000 PWM_POLARITY_INVERTED>;
122 vdd-supply = <&ldo3_reg>;
127 pinctrl-0 = <&cam_port_a_clk_active>;
128 pinctrl-names = "default";
130 assigned-clocks = <&clock CLK_MOUT_CAM0>;
131 assigned-clock-parents = <&clock CLK_XUSBXTI>;
135 assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
136 <&clock_audss EXYNOS_MOUT_I2S>,
137 <&clock_audss EXYNOS_DOUT_SRP>,
138 <&clock_audss EXYNOS_DOUT_AUD_BUS>;
139 assigned-clock-parents = <&clock CLK_FOUT_EPLL>,
140 <&clock_audss EXYNOS_MOUT_AUDSS>;
141 assigned-clock-rates = <0>, <0>, <112896000>, <11289600>;
146 /* In order to reset USB ethernet */
147 samsung,vbus-gpio = <&gpc0 1 GPIO_ACTIVE_HIGH>;
164 assigned-clocks = <&clock CLK_MOUT_FIMC0>,
165 <&clock CLK_SCLK_FIMC0>;
166 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
167 assigned-clock-rates = <0>, <176000000>;
171 dr_mode = "peripheral";
176 samsung,i2c-sda-delay = <100>;
177 samsung,i2c-slave-addr = <0x10>;
178 samsung,i2c-max-bus-freq = <100000>;
179 pinctrl-0 = <&i2c4_bus>;
180 pinctrl-names = "default";
184 compatible = "wlf,wm8960";
186 clocks = <&pmu_system_controller 0>;
187 clock-names = "MCLK1";
189 #sound-dai-cells = <0>;
194 pinctrl-0 = <&i2s0_bus>;
195 pinctrl-names = "default";
201 samsung,pins = "gpc0-1";
202 samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
203 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
204 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
210 pinctrl-0 = <&pwm0_out>;
211 pinctrl-names = "default";
212 samsung,pwm-outputs = <0>;
217 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4>;
218 pinctrl-names = "default";
219 cd-gpio = <&gpx0 7 GPIO_ACTIVE_LOW>;
221 vmmc-supply = <&ldo23_reg>;
222 vqmmc-supply = <&ldo17_reg>;