0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Samsung's S5PV210 SoC device tree source
0004 *
0005 * Copyright (c) 2013-2014 Samsung Electronics, Co. Ltd.
0006 *
0007 * Mateusz Krawczuk <m.krawczuk@partner.samsung.com>
0008 * Tomasz Figa <t.figa@samsung.com>
0009 *
0010 * Board device tree source for YIC System SMDV210 board.
0011 *
0012 * NOTE: This file is completely based on original board file for mach-smdkv210
0013 * available in Linux 3.15 and intends to provide equivalent level of hardware
0014 * support. Due to lack of hardware, _no_ testing has been performed.
0015 */
0016
0017 /dts-v1/;
0018 #include <dt-bindings/interrupt-controller/irq.h>
0019 #include <dt-bindings/input/input.h>
0020 #include "s5pv210.dtsi"
0021
0022 / {
0023 model = "YIC System SMDKV210 based on S5PV210";
0024 compatible = "yic,smdkv210", "samsung,s5pv210";
0025
0026 chosen {
0027 bootargs = "console=ttySAC0,115200n8 root=/dev/mmcblk0p1 rw rootwait ignore_loglevel earlyprintk";
0028 };
0029
0030 memory@20000000 {
0031 device_type = "memory";
0032 reg = <0x20000000 0x40000000>;
0033 };
0034
0035 pmic_ap_clk: clock-0 {
0036 /* Workaround for missing PMIC and its clock */
0037 compatible = "fixed-clock";
0038 #clock-cells = <0>;
0039 clock-frequency = <32768>;
0040 };
0041
0042 ethernet@a8000000 {
0043 compatible = "davicom,dm9000";
0044 reg = <0xA8000000 0x2 0xA8000002 0x2>;
0045 interrupt-parent = <&gph1>;
0046 interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
0047 local-mac-address = [00 00 de ad be ef];
0048 davicom,no-eeprom;
0049 };
0050
0051 backlight {
0052 compatible = "pwm-backlight";
0053 pwms = <&pwm 3 5000000 0>;
0054 brightness-levels = <0 4 8 16 32 64 128 255>;
0055 default-brightness-level = <6>;
0056 pinctrl-names = "default";
0057 pinctrl-0 = <&pwm3_out>;
0058 };
0059 };
0060
0061 &xusbxti {
0062 clock-frequency = <24000000>;
0063 };
0064
0065 &keypad {
0066 linux,input-no-autorepeat;
0067 wakeup-source;
0068 samsung,keypad-num-rows = <8>;
0069 samsung,keypad-num-columns = <8>;
0070 pinctrl-names = "default";
0071 pinctrl-0 = <&keypad_row0>, <&keypad_row1>, <&keypad_row2>,
0072 <&keypad_row3>, <&keypad_row4>, <&keypad_row5>,
0073 <&keypad_row6>, <&keypad_row7>,
0074 <&keypad_col0>, <&keypad_col1>, <&keypad_col2>,
0075 <&keypad_col3>, <&keypad_col4>, <&keypad_col5>,
0076 <&keypad_col6>, <&keypad_col7>;
0077 status = "okay";
0078
0079 key-1 {
0080 keypad,row = <0>;
0081 keypad,column = <3>;
0082 linux,code = <KEY_1>;
0083 };
0084
0085 key-2 {
0086 keypad,row = <0>;
0087 keypad,column = <4>;
0088 linux,code = <KEY_2>;
0089 };
0090
0091 key-3 {
0092 keypad,row = <0>;
0093 keypad,column = <5>;
0094 linux,code = <KEY_3>;
0095 };
0096
0097 key-4 {
0098 keypad,row = <0>;
0099 keypad,column = <6>;
0100 linux,code = <KEY_4>;
0101 };
0102
0103 key-5 {
0104 keypad,row = <0
0105 >;
0106 keypad,column = <7>;
0107 linux,code = <KEY_5>;
0108 };
0109
0110 key-6 {
0111 keypad,row = <1>;
0112 keypad,column = <3>;
0113 linux,code = <KEY_A>;
0114 };
0115 key-7 {
0116 keypad,row = <1>;
0117 keypad,column = <4>;
0118 linux,code = <KEY_B>;
0119 };
0120
0121 key-8 {
0122 keypad,row = <1>;
0123 keypad,column = <5>;
0124 linux,code = <KEY_C>;
0125 };
0126
0127 key-9 {
0128 keypad,row = <1>;
0129 keypad,column = <6>;
0130 linux,code = <KEY_D>;
0131 };
0132
0133 key-10 {
0134 keypad,row = <1>;
0135 keypad,column = <7>;
0136 linux,code = <KEY_E>;
0137 };
0138 };
0139
0140 &uart0 {
0141 status = "okay";
0142 };
0143
0144 &uart1 {
0145 status = "okay";
0146 };
0147
0148 &uart2 {
0149 status = "okay";
0150 };
0151
0152 &uart3 {
0153 status = "okay";
0154 };
0155
0156 &rtc {
0157 status = "okay";
0158 clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>;
0159 clock-names = "rtc", "rtc_src";
0160 };
0161
0162 &sdhci0 {
0163 bus-width = <4>;
0164 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus1 &sd0_bus4>;
0165 pinctrl-names = "default";
0166 status = "okay";
0167 };
0168
0169 &sdhci1 {
0170 bus-width = <4>;
0171 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_bus1 &sd1_bus4>;
0172 pinctrl-names = "default";
0173 status = "okay";
0174 };
0175
0176 &sdhci2 {
0177 bus-width = <4>;
0178 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
0179 pinctrl-names = "default";
0180 status = "okay";
0181 };
0182
0183 &sdhci3 {
0184 bus-width = <4>;
0185 pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_cd &sd3_bus1 &sd3_bus4>;
0186 pinctrl-names = "default";
0187 status = "okay";
0188 };
0189
0190 &hsotg {
0191 dr_mode = "peripheral";
0192 status = "okay";
0193 };
0194
0195 &usbphy {
0196 status = "okay";
0197 };
0198
0199 &fimd {
0200 pinctrl-0 = <&lcd_clk &lcd_data24>;
0201 pinctrl-names = "default";
0202 status = "okay";
0203
0204 display-timings {
0205 native-mode = <&timing0>;
0206
0207 timing0: timing {
0208 /* 800x480@60Hz */
0209 clock-frequency = <24373920>;
0210 hactive = <800>;
0211 vactive = <480>;
0212 hfront-porch = <8>;
0213 hback-porch = <13>;
0214 hsync-len = <3>;
0215 vback-porch = <7>;
0216 vfront-porch = <5>;
0217 vsync-len = <1>;
0218 hsync-active = <0>;
0219 vsync-active = <0>;
0220 de-active = <1>;
0221 pixelclk-active = <1>;
0222 };
0223 };
0224 };
0225
0226 &pwm {
0227 samsung,pwm-outputs = <3>;
0228 };
0229
0230 &i2c0 {
0231 status = "okay";
0232
0233 audio-codec@1b {
0234 compatible = "wlf,wm8580";
0235 reg = <0x1b>;
0236 };
0237
0238 eeprom@50 {
0239 compatible = "atmel,24c08";
0240 reg = <0x50>;
0241 };
0242 };
0243
0244 &i2s0 {
0245 status = "okay";
0246 };