Mateusz Krawczuk | b672b27 | 2013-09-28 18:25:30 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Samsung's S5PV210 SoC device tree source |
| 3 | * |
| 4 | * Copyright (c) 2013-2014 Samsung Electronics, Co. Ltd. |
| 5 | * |
| 6 | * Mateusz Krawczuk <m.krawczuk@partner.samsung.com> |
| 7 | * Tomasz Figa <t.figa@samsung.com> |
| 8 | * |
| 9 | * Board device tree source for YIC System SMDV210 board. |
| 10 | * |
| 11 | * NOTE: This file is completely based on original board file for mach-smdkv210 |
| 12 | * available in Linux 3.15 and intends to provide equivalent level of hardware |
| 13 | * support. Due to lack of hardware, _no_ testing has been performed. |
| 14 | * |
| 15 | * This program is free software; you can redistribute it and/or modify |
| 16 | * it under the terms of the GNU General Public License version 2 as |
| 17 | * published by the Free Software Foundation. |
| 18 | */ |
| 19 | |
| 20 | /dts-v1/; |
| 21 | #include <dt-bindings/input/input.h> |
| 22 | #include "s5pv210.dtsi" |
| 23 | |
| 24 | / { |
| 25 | model = "YIC System SMDKV210 based on S5PV210"; |
| 26 | compatible = "yic,smdkv210", "samsung,s5pv210"; |
| 27 | |
| 28 | chosen { |
| 29 | bootargs = "console=ttySAC0,115200n8 root=/dev/mmcblk0p1 rw rootwait ignore_loglevel earlyprintk"; |
| 30 | }; |
| 31 | |
| 32 | memory { |
| 33 | device_type = "memory"; |
| 34 | reg = <0x20000000 0x40000000>; |
| 35 | }; |
| 36 | |
| 37 | ethernet@18000000 { |
| 38 | compatible = "davicom,dm9000"; |
| 39 | reg = <0xA8000000 0x2 0xA8000002 0x2>; |
| 40 | interrupt-parent = <&gph1>; |
| 41 | interrupts = <1 4>; |
| 42 | local-mac-address = [00 00 de ad be ef]; |
| 43 | davicom,no-eeprom; |
| 44 | }; |
| 45 | |
| 46 | backlight { |
| 47 | compatible = "pwm-backlight"; |
| 48 | pwms = <&pwm 3 5000000 0>; |
| 49 | brightness-levels = <0 4 8 16 32 64 128 255>; |
| 50 | default-brightness-level = <6>; |
| 51 | pinctrl-names = "default"; |
| 52 | pinctrl-0 = <&pwm3_out>; |
| 53 | }; |
| 54 | }; |
| 55 | |
| 56 | &xusbxti { |
| 57 | clock-frequency = <24000000>; |
| 58 | }; |
| 59 | |
| 60 | &keypad { |
| 61 | linux,input-no-autorepeat; |
| 62 | linux,input-wakeup; |
| 63 | samsung,keypad-num-rows = <8>; |
| 64 | samsung,keypad-num-columns = <8>; |
| 65 | pinctrl-names = "default"; |
| 66 | pinctrl-0 = <&keypad_row0>, <&keypad_row1>, <&keypad_row2>, |
| 67 | <&keypad_row3>, <&keypad_row4>, <&keypad_row5>, |
| 68 | <&keypad_row6>, <&keypad_row7>, |
| 69 | <&keypad_col0>, <&keypad_col1>, <&keypad_col2>, |
| 70 | <&keypad_col3>, <&keypad_col4>, <&keypad_col5>, |
| 71 | <&keypad_col6>, <&keypad_col7>; |
| 72 | status = "okay"; |
| 73 | |
| 74 | key_1 { |
| 75 | keypad,row = <0>; |
| 76 | keypad,column = <3>; |
| 77 | linux,code = <KEY_1>; |
| 78 | }; |
| 79 | |
| 80 | key_2 { |
| 81 | keypad,row = <0>; |
| 82 | keypad,column = <4>; |
| 83 | linux,code = <KEY_2>; |
| 84 | }; |
| 85 | |
| 86 | key_3 { |
| 87 | keypad,row = <0>; |
| 88 | keypad,column = <5>; |
| 89 | linux,code = <KEY_3>; |
| 90 | }; |
| 91 | |
| 92 | key_4 { |
| 93 | keypad,row = <0>; |
| 94 | keypad,column = <6>; |
| 95 | linux,code = <KEY_4>; |
| 96 | }; |
| 97 | |
| 98 | key_5 { |
| 99 | keypad,row = <0 |
| 100 | >; |
| 101 | keypad,column = <7>; |
| 102 | linux,code = <KEY_5>; |
| 103 | }; |
| 104 | |
| 105 | key_6 { |
| 106 | keypad,row = <1>; |
| 107 | keypad,column = <3>; |
| 108 | linux,code = <KEY_A>; |
| 109 | }; |
| 110 | key_7 { |
| 111 | keypad,row = <1>; |
| 112 | keypad,column = <4>; |
| 113 | linux,code = <KEY_B>; |
| 114 | }; |
| 115 | |
| 116 | key_8 { |
| 117 | keypad,row = <1>; |
| 118 | keypad,column = <5>; |
| 119 | linux,code = <KEY_C>; |
| 120 | }; |
| 121 | |
| 122 | key_9 { |
| 123 | keypad,row = <1>; |
| 124 | keypad,column = <6>; |
| 125 | linux,code = <KEY_D>; |
| 126 | }; |
| 127 | |
| 128 | key_10 { |
| 129 | keypad,row = <1>; |
| 130 | keypad,column = <7>; |
| 131 | linux,code = <KEY_E>; |
| 132 | }; |
| 133 | }; |
| 134 | |
| 135 | &uart0 { |
| 136 | status = "okay"; |
| 137 | }; |
| 138 | |
| 139 | &uart1 { |
| 140 | status = "okay"; |
| 141 | }; |
| 142 | |
| 143 | &uart2 { |
| 144 | status = "okay"; |
| 145 | }; |
| 146 | |
| 147 | &uart3 { |
| 148 | status = "okay"; |
| 149 | }; |
| 150 | |
| 151 | &rtc { |
| 152 | status = "okay"; |
| 153 | }; |
| 154 | |
| 155 | &sdhci0 { |
| 156 | bus-width = <4>; |
| 157 | pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus1 &sd0_bus4>; |
| 158 | pinctrl-names = "default"; |
| 159 | status = "okay"; |
| 160 | }; |
| 161 | |
| 162 | &sdhci1 { |
| 163 | bus-width = <4>; |
| 164 | pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_bus1 &sd1_bus4>; |
| 165 | pinctrl-names = "default"; |
| 166 | status = "okay"; |
| 167 | }; |
| 168 | |
| 169 | &sdhci2 { |
| 170 | bus-width = <4>; |
| 171 | pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>; |
| 172 | pinctrl-names = "default"; |
| 173 | status = "okay"; |
| 174 | }; |
| 175 | |
| 176 | &sdhci3 { |
| 177 | bus-width = <4>; |
| 178 | pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_cd &sd3_bus1 &sd3_bus4>; |
| 179 | pinctrl-names = "default"; |
| 180 | status = "okay"; |
| 181 | }; |
| 182 | |
| 183 | &hsotg { |
| 184 | status = "okay"; |
| 185 | }; |
| 186 | |
| 187 | &usbphy { |
| 188 | status = "okay"; |
| 189 | }; |
| 190 | |
| 191 | &fimd { |
| 192 | pinctrl-0 = <&lcd_clk &lcd_data24>; |
| 193 | pinctrl-names = "default"; |
| 194 | status = "okay"; |
| 195 | |
| 196 | display-timings { |
| 197 | native-mode = <&timing0>; |
| 198 | |
| 199 | timing0: timing@0 { |
| 200 | /* 800x480@60Hz */ |
| 201 | clock-frequency = <24373920>; |
| 202 | hactive = <800>; |
| 203 | vactive = <480>; |
| 204 | hfront-porch = <8>; |
| 205 | hback-porch = <13>; |
| 206 | hsync-len = <3>; |
| 207 | vback-porch = <7>; |
| 208 | vfront-porch = <5>; |
| 209 | vsync-len = <1>; |
| 210 | hsync-active = <0>; |
| 211 | vsync-active = <0>; |
| 212 | de-active = <1>; |
| 213 | pixelclk-active = <1>; |
| 214 | }; |
| 215 | }; |
| 216 | }; |
| 217 | |
| 218 | &pwm { |
| 219 | samsung,pwm-outputs = <3>; |
| 220 | }; |
| 221 | |
| 222 | &i2c0 { |
| 223 | status = "okay"; |
| 224 | |
| 225 | audio-codec@1b { |
| 226 | compatible = "wlf,wm8580"; |
| 227 | reg = <0x1b>; |
| 228 | }; |
| 229 | |
| 230 | eeprom@50 { |
| 231 | compatible = "atmel,24c08"; |
| 232 | reg = <0x50>; |
| 233 | }; |
| 234 | }; |
| 235 | |
| 236 | &i2s0 { |
| 237 | status = "okay"; |
| 238 | }; |