1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Samsung's S5PV210 SoC device tree source 4 * 5 * Copyright (c) 2013-2014 Samsung Electronics 6 * 7 * Mateusz Krawczuk <m.krawczuk@partner.samsung 8 * Tomasz Figa <t.figa@samsung.com> 9 * 10 * Board device tree source for Samsung Goni b 11 */ 12 13 /dts-v1/; 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/interrupt-controller/irq 16 #include <dt-bindings/input/input.h> 17 #include "s5pv210.dtsi" 18 19 / { 20 model = "Samsung Goni based on S5PC110 21 compatible = "samsung,goni", "samsung, 22 23 aliases { 24 i2c3 = &i2c_pmic; 25 }; 26 27 chosen { 28 bootargs = "console=ttySAC0,11 29 }; 30 31 memory@30000000 { 32 device_type = "memory"; 33 reg = <0x30000000 0x05000000>, 34 <0x40000000 0x10000000 35 <0x50000000 0x08000000 36 }; 37 38 pmic_ap_clk: clock-0 { 39 /* Workaround for missing cloc 40 compatible = "fixed-clock"; 41 #clock-cells = <0>; 42 clock-frequency = <32768>; 43 }; 44 45 vtf_reg: regulator-0 { 46 compatible = "regulator-fixed" 47 regulator-name = "V_TF_2.8V"; 48 regulator-min-microvolt = <280 49 regulator-max-microvolt = <280 50 gpio = <&mp05 4 GPIO_ACTIVE_HI 51 enable-active-high; 52 }; 53 54 pda_reg: regulator-1 { 55 compatible = "regulator-fixed" 56 regulator-name = "VCC_1.8V_PDA 57 regulator-min-microvolt = <180 58 regulator-max-microvolt = <180 59 }; 60 61 bat_reg: regulator-2 { 62 compatible = "regulator-fixed" 63 regulator-name = "V_BAT"; 64 regulator-min-microvolt = <370 65 regulator-max-microvolt = <370 66 }; 67 68 tsp_reg: regulator-3 { 69 compatible = "regulator-fixed" 70 regulator-name = "TSP_VDD"; 71 regulator-min-microvolt = <280 72 regulator-max-microvolt = <280 73 gpio = <&gpj1 3 GPIO_ACTIVE_HI 74 enable-active-high; 75 }; 76 77 i2c_pmic: i2c-pmic { 78 compatible = "i2c-gpio"; 79 sda-gpios = <&gpj4 0 GPIO_ACTI 80 scl-gpios = <&gpj4 3 GPIO_ACTI 81 i2c-gpio,delay-us = <2>; 82 #address-cells = <1>; 83 #size-cells = <0>; 84 85 pmic@66 { 86 compatible = "national 87 reg = <0x66>; 88 89 max8998,pmic-buck1-def 90 max8998,pmic-buck1-dvs 91 92 max8998,pmic-buck1-dvs 93 94 95 max8998,pmic-buck2-def 96 max8998,pmic-buck2-dvs 97 max8998,pmic-buck2-dvs 98 99 regulators { 100 ldo2_reg: LDO2 101 regula 102 regula 103 regula 104 regula 105 }; 106 107 ldo3_reg: LDO3 108 regula 109 regula 110 regula 111 regula 112 }; 113 114 ldo4_reg: LDO4 115 regula 116 regula 117 regula 118 }; 119 120 ldo5_reg: LDO5 121 regula 122 regula 123 regula 124 }; 125 126 ldo6_reg: LDO6 127 regula 128 regula 129 regula 130 }; 131 132 ldo7_reg: LDO7 133 regula 134 regula 135 regula 136 regula 137 }; 138 139 ldo8_reg: LDO8 140 regula 141 regula 142 regula 143 }; 144 145 ldo9_reg: LDO9 146 regula 147 regula 148 regula 149 }; 150 151 ldo10_reg: LDO 152 regula 153 regula 154 regula 155 regula 156 }; 157 158 ldo11_reg: LDO 159 regula 160 regula 161 regula 162 }; 163 164 ldo12_reg: LDO 165 regula 166 regula 167 regula 168 }; 169 170 ldo13_reg: LDO 171 regula 172 regula 173 regula 174 }; 175 176 ldo14_reg: LDO 177 regula 178 regula 179 regula 180 }; 181 182 ldo15_reg: LDO 183 regula 184 regula 185 regula 186 }; 187 188 ldo16_reg: LDO 189 regula 190 regula 191 regula 192 }; 193 194 ldo17_reg: LDO 195 regula 196 regula 197 regula 198 regula 199 }; 200 201 buck1_reg: BUC 202 regula 203 regula 204 regula 205 }; 206 207 buck2_reg: BUC 208 regula 209 regula 210 regula 211 }; 212 213 buck3_reg: BUC 214 regula 215 regula 216 regula 217 regula 218 }; 219 220 buck4_reg: BUC 221 regula 222 regula 223 regula 224 regula 225 }; 226 227 ap32khz_reg: E 228 regula 229 regula 230 }; 231 }; 232 }; 233 }; 234 235 gpio-keys { 236 compatible = "gpio-keys"; 237 238 power-key { 239 gpios = <&gph2 6 1>; 240 linux,code = <KEY_POWE 241 label = "power"; 242 debounce-interval = <1 243 wakeup-source; 244 }; 245 }; 246 }; 247 248 &xusbxti { 249 clock-frequency = <24000000>; 250 }; 251 252 &keypad { 253 linux,input-no-autorepeat; 254 wakeup-source; 255 samsung,keypad-num-rows = <3>; 256 samsung,keypad-num-columns = <3>; 257 pinctrl-names = "default"; 258 pinctrl-0 = <&keypad_row0>, <&keypad_r 259 <&keypad_col0>, <&keyp 260 status = "okay"; 261 262 key-1 { 263 keypad,row = <0>; 264 keypad,column = <1>; 265 linux,code = <KEY_CONNECT>; 266 }; 267 268 key-2 { 269 keypad,row = <0>; 270 keypad,column = <2>; 271 linux,code = <KEY_BACK>; 272 }; 273 274 key-3 { 275 keypad,row = <1>; 276 keypad,column = <1>; 277 linux,code = <KEY_CAMERA_FOCUS 278 }; 279 280 key-4 { 281 keypad,row = <1>; 282 keypad,column = <2>; 283 linux,code = <KEY_VOLUMEUP>; 284 }; 285 286 key-5 { 287 keypad,row = <2>; 288 keypad,column = <1>; 289 linux,code = <KEY_CAMERA>; 290 }; 291 292 key-6 { 293 keypad,row = <2>; 294 keypad,column = <2>; 295 linux,code = <KEY_VOLUMEDOWN>; 296 }; 297 }; 298 299 &uart0 { 300 status = "okay"; 301 }; 302 303 &uart1 { 304 status = "okay"; 305 }; 306 307 &uart2 { 308 status = "okay"; 309 }; 310 311 &uart3 { 312 status = "okay"; 313 }; 314 315 &rtc { 316 clocks = <&clocks CLK_RTC>, <&pmic_ap_ 317 clock-names = "rtc", "rtc_src"; 318 }; 319 320 &sdhci0 { 321 bus-width = <4>; 322 non-removable; 323 vmmc-supply = <&ldo5_reg>; 324 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd 325 pinctrl-names = "default"; 326 status = "okay"; 327 }; 328 329 &sdhci2 { 330 bus-width = <4>; 331 cd-gpios = <&gph3 4 1>; 332 vmmc-supply = <&vtf_reg>; 333 cd-inverted; 334 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bu 335 pinctrl-names = "default"; 336 status = "okay"; 337 }; 338 339 &hsotg { 340 vusb_a-supply = <&ldo3_reg>; 341 vusb_d-supply = <&ldo8_reg>; 342 dr_mode = "peripheral"; 343 status = "okay"; 344 }; 345 346 &usbphy { 347 status = "okay"; 348 }; 349 350 &i2c2 { 351 samsung,i2c-sda-delay = <100>; 352 samsung,i2c-max-bus-freq = <400000>; 353 samsung,i2c-slave-addr = <0x10>; 354 status = "okay"; 355 356 touchscreen@4a { 357 compatible = "atmel,maxtouch"; 358 reg = <0x4a>; 359 interrupt-parent = <&gpj0>; 360 interrupts = <5 IRQ_TYPE_EDGE_ 361 vdd-supply = <&tsp_reg>; 362 }; 363 }; 364 365 &i2c0 { 366 samsung,i2c-sda-delay = <100>; 367 samsung,i2c-max-bus-freq = <100000>; 368 samsung,i2c-slave-addr = <0x10>; 369 status = "okay"; 370 371 noon010pc30: sensor@30 { 372 compatible = "siliconfile,noon 373 reg = <0x30>; 374 vddio-supply = <&ldo11_reg>; 375 vdda-supply = <&ldo13_reg>; 376 vdd_core-supply = <&ldo14_reg> 377 378 clock-frequency = <16000000>; 379 clocks = <&camera 0>; 380 clock-names = "mclk"; 381 nreset-gpios = <&gpb 2 GPIO_AC 382 nstby-gpios = <&gpb 0 GPIO_ACT 383 384 port { 385 noon010pc30_ep: endpoi 386 remote-endpoin 387 bus-width = <8 388 hsync-active = 389 vsync-active = 390 pclk-sample = 391 }; 392 }; 393 }; 394 }; 395 396 &camera { 397 pinctrl-0 = <&cam_port_a_io &cam_port_ 398 pinctrl-1 = <&cam_port_a_io &cam_port_ 399 pinctrl-names = "default", "idle"; 400 401 parallel-ports { 402 #address-cells = <1>; 403 #size-cells = <0>; 404 405 /* camera A input */ 406 port@1 { 407 reg = <1>; 408 fimc0_ep: endpoint { 409 remote-endpoin 410 bus-width = <8 411 hsync-active = 412 vsync-active = 413 pclk-sample = 414 }; 415 }; 416 }; 417 }; 418 419 &fimd { 420 pinctrl-0 = <&lcd_clk &lcd_data24>; 421 pinctrl-names = "default"; 422 status = "okay"; 423 424 display-timings { 425 native-mode = <&timing0>; 426 timing0: timing { 427 /* 480x800@55Hz */ 428 clock-frequency = <234 429 hactive = <480>; 430 hfront-porch = <16>; 431 hback-porch = <16>; 432 hsync-len = <2>; 433 vactive = <800>; 434 vback-porch = <2>; 435 vfront-porch = <28>; 436 vsync-len = <1>; 437 hsync-active = <0>; 438 vsync-active = <0>; 439 de-active = <0>; 440 pixelclk-active = <0>; 441 }; 442 }; 443 }; 444 445 &onenand { 446 status = "okay"; 447 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.