1279377Simp/* 2279377Simp * Samsung's Exynos4210 based Trats board device tree source 3279377Simp * 4279377Simp * Copyright (c) 2012 Samsung Electronics Co., Ltd. 5279377Simp * http://www.samsung.com 6279377Simp * 7279377Simp * Device tree source file for Samsung's Trats board which is based on 8279377Simp * Samsung's Exynos4210 SoC. 9279377Simp * 10279377Simp * This program is free software; you can redistribute it and/or modify 11279377Simp * it under the terms of the GNU General Public License version 2 as 12279377Simp * published by the Free Software Foundation. 13279377Simp*/ 14279377Simp 15279377Simp/dts-v1/; 16279377Simp#include "exynos4210.dtsi" 17295436Sandrew#include <dt-bindings/gpio/gpio.h> 18279377Simp 19279377Simp/ { 20279377Simp model = "Samsung Trats based on Exynos4210"; 21279377Simp compatible = "samsung,trats", "samsung,exynos4210", "samsung,exynos4"; 22279377Simp 23279377Simp memory { 24279377Simp reg = <0x40000000 0x10000000 25279377Simp 0x50000000 0x10000000 26279377Simp 0x60000000 0x10000000 27279377Simp 0x70000000 0x10000000>; 28279377Simp }; 29279377Simp 30279377Simp chosen { 31279377Simp bootargs = "console=ttySAC2,115200N8 root=/dev/mmcblk0p5 rootwait earlyprintk panic=5"; 32279377Simp stdout-path = &serial_2; 33279377Simp }; 34279377Simp 35279377Simp regulators { 36279377Simp compatible = "simple-bus"; 37279377Simp 38279377Simp vemmc_reg: regulator-0 { 39279377Simp compatible = "regulator-fixed"; 40279377Simp regulator-name = "VMEM_VDD_2.8V"; 41279377Simp regulator-min-microvolt = <2800000>; 42279377Simp regulator-max-microvolt = <2800000>; 43295436Sandrew gpio = <&gpk0 2 GPIO_ACTIVE_HIGH>; 44279377Simp enable-active-high; 45279377Simp }; 46279377Simp 47279377Simp tsp_reg: regulator-1 { 48279377Simp compatible = "regulator-fixed"; 49279377Simp regulator-name = "TSP_FIXED_VOLTAGES"; 50279377Simp regulator-min-microvolt = <2800000>; 51279377Simp regulator-max-microvolt = <2800000>; 52295436Sandrew gpio = <&gpl0 3 GPIO_ACTIVE_HIGH>; 53279377Simp enable-active-high; 54279377Simp }; 55279377Simp 56279377Simp cam_af_28v_reg: regulator-2 { 57279377Simp compatible = "regulator-fixed"; 58279377Simp regulator-name = "8M_AF_2.8V_EN"; 59279377Simp regulator-min-microvolt = <2800000>; 60279377Simp regulator-max-microvolt = <2800000>; 61295436Sandrew gpio = <&gpk1 1 GPIO_ACTIVE_HIGH>; 62279377Simp enable-active-high; 63279377Simp }; 64279377Simp 65279377Simp cam_io_en_reg: regulator-3 { 66279377Simp compatible = "regulator-fixed"; 67279377Simp regulator-name = "CAM_IO_EN"; 68279377Simp regulator-min-microvolt = <2800000>; 69279377Simp regulator-max-microvolt = <2800000>; 70295436Sandrew gpio = <&gpe2 1 GPIO_ACTIVE_HIGH>; 71279377Simp enable-active-high; 72279377Simp }; 73279377Simp 74279377Simp cam_io_12v_reg: regulator-4 { 75279377Simp compatible = "regulator-fixed"; 76279377Simp regulator-name = "8M_1.2V_EN"; 77279377Simp regulator-min-microvolt = <1200000>; 78279377Simp regulator-max-microvolt = <1200000>; 79295436Sandrew gpio = <&gpe2 5 GPIO_ACTIVE_HIGH>; 80279377Simp enable-active-high; 81279377Simp }; 82279377Simp 83279377Simp vt_core_15v_reg: regulator-5 { 84279377Simp compatible = "regulator-fixed"; 85279377Simp regulator-name = "VT_CORE_1.5V"; 86279377Simp regulator-min-microvolt = <1500000>; 87279377Simp regulator-max-microvolt = <1500000>; 88295436Sandrew gpio = <&gpe2 2 GPIO_ACTIVE_HIGH>; 89279377Simp enable-active-high; 90279377Simp }; 91279377Simp }; 92279377Simp 93279377Simp gpio-keys { 94279377Simp compatible = "gpio-keys"; 95279377Simp 96279377Simp vol-down-key { 97295436Sandrew gpios = <&gpx2 1 GPIO_ACTIVE_LOW>; 98279377Simp linux,code = <114>; 99279377Simp label = "volume down"; 100279377Simp debounce-interval = <10>; 101279377Simp }; 102279377Simp 103279377Simp vol-up-key { 104295436Sandrew gpios = <&gpx2 0 GPIO_ACTIVE_LOW>; 105279377Simp linux,code = <115>; 106279377Simp label = "volume up"; 107279377Simp debounce-interval = <10>; 108279377Simp }; 109279377Simp 110279377Simp power-key { 111295436Sandrew gpios = <&gpx2 7 GPIO_ACTIVE_LOW>; 112279377Simp linux,code = <116>; 113279377Simp label = "power"; 114279377Simp debounce-interval = <10>; 115279377Simp gpio-key,wakeup; 116279377Simp }; 117279377Simp 118279377Simp ok-key { 119295436Sandrew gpios = <&gpx3 5 GPIO_ACTIVE_LOW>; 120279377Simp linux,code = <352>; 121279377Simp label = "ok"; 122279377Simp debounce-interval = <10>; 123279377Simp }; 124279377Simp }; 125279377Simp 126295436Sandrew fixed-rate-clocks { 127295436Sandrew xxti { 128295436Sandrew compatible = "samsung,clock-xxti"; 129295436Sandrew clock-frequency = <0>; 130295436Sandrew }; 131279377Simp 132295436Sandrew xusbxti { 133295436Sandrew compatible = "samsung,clock-xusbxti"; 134295436Sandrew clock-frequency = <24000000>; 135279377Simp }; 136279377Simp }; 137279377Simp 138295436Sandrew thermal-zones { 139295436Sandrew cpu_thermal: cpu-thermal { 140295436Sandrew cooling-maps { 141295436Sandrew map0 { 142295436Sandrew /* Corresponds to 800MHz at freq_table */ 143295436Sandrew cooling-device = <&cpu0 2 2>; 144295436Sandrew }; 145295436Sandrew map1 { 146295436Sandrew /* Corresponds to 200MHz at freq_table */ 147295436Sandrew cooling-device = <&cpu0 4 4>; 148295436Sandrew }; 149295436Sandrew }; 150295436Sandrew }; 151295436Sandrew }; 152295436Sandrew 153295436Sandrew camera { 154279377Simp pinctrl-names = "default"; 155295436Sandrew pinctrl-0 = <>; 156279377Simp status = "okay"; 157279377Simp 158295436Sandrew fimc_0: fimc@11800000 { 159295436Sandrew status = "okay"; 160295436Sandrew assigned-clocks = <&clock CLK_MOUT_FIMC0>, 161295436Sandrew <&clock CLK_SCLK_FIMC0>; 162295436Sandrew assigned-clock-parents = <&clock CLK_SCLK_MPLL>; 163295436Sandrew assigned-clock-rates = <0>, <160000000>; 164295436Sandrew }; 165279377Simp 166295436Sandrew fimc_1: fimc@11810000 { 167295436Sandrew status = "okay"; 168295436Sandrew assigned-clocks = <&clock CLK_MOUT_FIMC1>, 169295436Sandrew <&clock CLK_SCLK_FIMC1>; 170295436Sandrew assigned-clock-parents = <&clock CLK_SCLK_MPLL>; 171295436Sandrew assigned-clock-rates = <0>, <160000000>; 172295436Sandrew }; 173279377Simp 174295436Sandrew fimc_2: fimc@11820000 { 175295436Sandrew status = "okay"; 176295436Sandrew assigned-clocks = <&clock CLK_MOUT_FIMC2>, 177295436Sandrew <&clock CLK_SCLK_FIMC2>; 178295436Sandrew assigned-clock-parents = <&clock CLK_SCLK_MPLL>; 179295436Sandrew assigned-clock-rates = <0>, <160000000>; 180295436Sandrew }; 181279377Simp 182295436Sandrew fimc_3: fimc@11830000 { 183295436Sandrew status = "okay"; 184295436Sandrew assigned-clocks = <&clock CLK_MOUT_FIMC3>, 185295436Sandrew <&clock CLK_SCLK_FIMC3>; 186295436Sandrew assigned-clock-parents = <&clock CLK_SCLK_MPLL>; 187295436Sandrew assigned-clock-rates = <0>, <160000000>; 188295436Sandrew }; 189295436Sandrew }; 190295436Sandrew}; 191279377Simp 192295436Sandrew&cpu0 { 193295436Sandrew cpu0-supply = <&varm_breg>; 194295436Sandrew}; 195279377Simp 196295436Sandrew&dsi_0 { 197295436Sandrew vddcore-supply = <&vusb_reg>; 198295436Sandrew vddio-supply = <&vmipi_reg>; 199295436Sandrew samsung,pll-clock-frequency = <24000000>; 200295436Sandrew status = "okay"; 201279377Simp 202295436Sandrew ports { 203295436Sandrew #address-cells = <1>; 204295436Sandrew #size-cells = <0>; 205279377Simp 206295436Sandrew port@1 { 207295436Sandrew reg = <1>; 208279377Simp 209295436Sandrew dsi_out: endpoint { 210295436Sandrew remote-endpoint = <&dsi_in>; 211295436Sandrew samsung,burst-clock-frequency = <500000000>; 212295436Sandrew samsung,esc-clock-frequency = <20000000>; 213295436Sandrew }; 214295436Sandrew }; 215295436Sandrew }; 216279377Simp 217295436Sandrew panel@0 { 218295436Sandrew reg = <0>; 219295436Sandrew compatible = "samsung,s6e8aa0"; 220295436Sandrew vdd3-supply = <&vcclcd_reg>; 221295436Sandrew vci-supply = <&vlcd_reg>; 222295436Sandrew reset-gpios = <&gpy4 5 GPIO_ACTIVE_HIGH>; 223295436Sandrew power-on-delay= <50>; 224295436Sandrew reset-delay = <100>; 225295436Sandrew init-delay = <100>; 226295436Sandrew flip-horizontal; 227295436Sandrew flip-vertical; 228295436Sandrew panel-width-mm = <58>; 229295436Sandrew panel-height-mm = <103>; 230279377Simp 231295436Sandrew display-timings { 232295436Sandrew timing-0 { 233295436Sandrew clock-frequency = <57153600>; 234295436Sandrew hactive = <720>; 235295436Sandrew vactive = <1280>; 236295436Sandrew hfront-porch = <5>; 237295436Sandrew hback-porch = <5>; 238295436Sandrew hsync-len = <5>; 239295436Sandrew vfront-porch = <13>; 240295436Sandrew vback-porch = <1>; 241295436Sandrew vsync-len = <2>; 242295436Sandrew }; 243295436Sandrew }; 244279377Simp 245295436Sandrew port { 246295436Sandrew dsi_in: endpoint { 247295436Sandrew remote-endpoint = <&dsi_out>; 248295436Sandrew }; 249295436Sandrew }; 250295436Sandrew }; 251295436Sandrew}; 252279377Simp 253295436Sandrew&exynos_usbphy { 254295436Sandrew status = "okay"; 255295436Sandrew vbus-supply = <&safe1_sreg>; 256295436Sandrew}; 257279377Simp 258295436Sandrew&fimd { 259295436Sandrew status = "okay"; 260295436Sandrew}; 261279377Simp 262295436Sandrew&hsotg { 263295436Sandrew vusb_d-supply = <&vusb_reg>; 264295436Sandrew vusb_a-supply = <&vusbdac_reg>; 265295436Sandrew dr_mode = "peripheral"; 266295436Sandrew status = "okay"; 267295436Sandrew}; 268279377Simp 269295436Sandrew&i2c_3 { 270295436Sandrew samsung,i2c-sda-delay = <100>; 271295436Sandrew samsung,i2c-slave-addr = <0x10>; 272295436Sandrew samsung,i2c-max-bus-freq = <400000>; 273295436Sandrew pinctrl-0 = <&i2c3_bus>; 274295436Sandrew pinctrl-names = "default"; 275295436Sandrew status = "okay"; 276279377Simp 277295436Sandrew mms114-touchscreen@48 { 278295436Sandrew compatible = "melfas,mms114"; 279295436Sandrew reg = <0x48>; 280295436Sandrew interrupt-parent = <&gpx0>; 281295436Sandrew interrupts = <4 2>; 282295436Sandrew x-size = <720>; 283295436Sandrew y-size = <1280>; 284295436Sandrew avdd-supply = <&tsp_reg>; 285295436Sandrew vdd-supply = <&tsp_reg>; 286295436Sandrew }; 287295436Sandrew}; 288279377Simp 289295436Sandrew&i2c_5 { 290295436Sandrew samsung,i2c-sda-delay = <100>; 291295436Sandrew samsung,i2c-slave-addr = <0x10>; 292295436Sandrew samsung,i2c-max-bus-freq = <100000>; 293295436Sandrew pinctrl-0 = <&i2c5_bus>; 294295436Sandrew pinctrl-names = "default"; 295295436Sandrew status = "okay"; 296279377Simp 297295436Sandrew max8997_pmic@66 { 298295436Sandrew compatible = "maxim,max8997-pmic"; 299279377Simp 300295436Sandrew reg = <0x66>; 301279377Simp 302295436Sandrew max8997,pmic-buck1-uses-gpio-dvs; 303295436Sandrew max8997,pmic-buck2-uses-gpio-dvs; 304295436Sandrew max8997,pmic-buck5-uses-gpio-dvs; 305279377Simp 306295436Sandrew max8997,pmic-ignore-gpiodvs-side-effect; 307295436Sandrew max8997,pmic-buck125-default-dvs-idx = <0>; 308279377Simp 309295436Sandrew max8997,pmic-buck125-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>, 310295436Sandrew <&gpx0 6 GPIO_ACTIVE_HIGH>, 311295436Sandrew <&gpl0 0 GPIO_ACTIVE_HIGH>; 312279377Simp 313295436Sandrew max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>, 314295436Sandrew <1250000>, <1200000>, 315295436Sandrew <1150000>, <1100000>, 316295436Sandrew <1000000>, <950000>; 317279377Simp 318295436Sandrew max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>, 319295436Sandrew <950000>, <900000>, 320295436Sandrew <1100000>, <1000000>, 321295436Sandrew <950000>, <900000>; 322279377Simp 323295436Sandrew max8997,pmic-buck5-dvs-voltage = <1200000>, <1200000>, 324295436Sandrew <1200000>, <1200000>, 325295436Sandrew <1200000>, <1200000>, 326295436Sandrew <1200000>, <1200000>; 327279377Simp 328295436Sandrew regulators { 329295436Sandrew valive_reg: LDO2 { 330295436Sandrew regulator-name = "VALIVE_1.1V_C210"; 331295436Sandrew regulator-min-microvolt = <1100000>; 332295436Sandrew regulator-max-microvolt = <1100000>; 333295436Sandrew regulator-always-on; 334295436Sandrew }; 335279377Simp 336295436Sandrew vusb_reg: LDO3 { 337295436Sandrew regulator-name = "VUSB_1.1V_C210"; 338295436Sandrew regulator-min-microvolt = <1100000>; 339295436Sandrew regulator-max-microvolt = <1100000>; 340279377Simp }; 341279377Simp 342295436Sandrew vmipi_reg: LDO4 { 343295436Sandrew regulator-name = "VMIPI_1.8V"; 344295436Sandrew regulator-min-microvolt = <1800000>; 345295436Sandrew regulator-max-microvolt = <1800000>; 346295436Sandrew }; 347279377Simp 348295436Sandrew vpda_reg: LDO6 { 349295436Sandrew regulator-name = "VCC_1.8V_PDA"; 350295436Sandrew regulator-min-microvolt = <1800000>; 351295436Sandrew regulator-max-microvolt = <1800000>; 352295436Sandrew regulator-always-on; 353295436Sandrew }; 354279377Simp 355295436Sandrew vcam_reg: LDO7 { 356295436Sandrew regulator-name = "CAM_ISP_1.8V"; 357295436Sandrew regulator-min-microvolt = <1800000>; 358295436Sandrew regulator-max-microvolt = <1800000>; 359295436Sandrew }; 360279377Simp 361295436Sandrew vusbdac_reg: LDO8 { 362295436Sandrew regulator-name = "VUSB/VDAC_3.3V_C210"; 363295436Sandrew regulator-min-microvolt = <3300000>; 364295436Sandrew regulator-max-microvolt = <3300000>; 365295436Sandrew }; 366279377Simp 367295436Sandrew vccpda_reg: LDO9 { 368295436Sandrew regulator-name = "VCC_2.8V_PDA"; 369295436Sandrew regulator-min-microvolt = <2800000>; 370295436Sandrew regulator-max-microvolt = <2800000>; 371295436Sandrew regulator-always-on; 372295436Sandrew }; 373279377Simp 374295436Sandrew vpll_reg: LDO10 { 375295436Sandrew regulator-name = "VPLL_1.1V_C210"; 376295436Sandrew regulator-min-microvolt = <1100000>; 377295436Sandrew regulator-max-microvolt = <1100000>; 378295436Sandrew regulator-always-on; 379279377Simp }; 380279377Simp 381295436Sandrew vtcam_reg: LDO12 { 382295436Sandrew regulator-name = "VT_CAM_1.8V"; 383295436Sandrew regulator-min-microvolt = <1800000>; 384295436Sandrew regulator-max-microvolt = <1800000>; 385295436Sandrew }; 386279377Simp 387295436Sandrew vcclcd_reg: LDO13 { 388295436Sandrew regulator-name = "VCC_3.3V_LCD"; 389295436Sandrew regulator-min-microvolt = <3300000>; 390295436Sandrew regulator-max-microvolt = <3300000>; 391279377Simp }; 392279377Simp 393295436Sandrew vlcd_reg: LDO15 { 394295436Sandrew regulator-name = "VLCD_2.2V"; 395295436Sandrew regulator-min-microvolt = <2200000>; 396295436Sandrew regulator-max-microvolt = <2200000>; 397279377Simp }; 398279377Simp 399295436Sandrew camsensor_reg: LDO16 { 400295436Sandrew regulator-name = "CAM_SENSOR_IO_1.8V"; 401295436Sandrew regulator-min-microvolt = <1800000>; 402295436Sandrew regulator-max-microvolt = <1800000>; 403295436Sandrew }; 404279377Simp 405295436Sandrew vddq_reg: LDO21 { 406295436Sandrew regulator-name = "VDDQ_M1M2_1.2V"; 407295436Sandrew regulator-min-microvolt = <1200000>; 408295436Sandrew regulator-max-microvolt = <1200000>; 409295436Sandrew regulator-always-on; 410295436Sandrew }; 411279377Simp 412295436Sandrew varm_breg: BUCK1 { 413295436Sandrew /* 414295436Sandrew * HACK: The real name is VARM_1.2V_C210, 415295436Sandrew * but exynos-cpufreq does not support 416295436Sandrew * DT-based regulator lookup yet. 417295436Sandrew */ 418295436Sandrew regulator-name = "vdd_arm"; 419295436Sandrew regulator-min-microvolt = <900000>; 420295436Sandrew regulator-max-microvolt = <1350000>; 421295436Sandrew regulator-always-on; 422295436Sandrew }; 423279377Simp 424295436Sandrew vint_breg: BUCK2 { 425295436Sandrew regulator-name = "VINT_1.1V_C210"; 426295436Sandrew regulator-min-microvolt = <900000>; 427295436Sandrew regulator-max-microvolt = <1100000>; 428295436Sandrew regulator-always-on; 429295436Sandrew }; 430279377Simp 431295436Sandrew camisp_breg: BUCK4 { 432295436Sandrew regulator-name = "CAM_ISP_CORE_1.2V"; 433295436Sandrew regulator-min-microvolt = <1200000>; 434295436Sandrew regulator-max-microvolt = <1200000>; 435295436Sandrew }; 436279377Simp 437295436Sandrew vmem_breg: BUCK5 { 438295436Sandrew regulator-name = "VMEM_1.2V_C210"; 439295436Sandrew regulator-min-microvolt = <1200000>; 440295436Sandrew regulator-max-microvolt = <1200000>; 441295436Sandrew regulator-always-on; 442295436Sandrew }; 443295436Sandrew 444295436Sandrew vccsub_breg: BUCK7 { 445295436Sandrew regulator-name = "VCC_SUB_2.0V"; 446295436Sandrew regulator-min-microvolt = <2000000>; 447295436Sandrew regulator-max-microvolt = <2000000>; 448295436Sandrew regulator-always-on; 449295436Sandrew }; 450295436Sandrew 451295436Sandrew safe1_sreg: ESAFEOUT1 { 452295436Sandrew regulator-name = "SAFEOUT1"; 453295436Sandrew }; 454295436Sandrew 455295436Sandrew safe2_sreg: ESAFEOUT2 { 456295436Sandrew regulator-name = "SAFEOUT2"; 457295436Sandrew regulator-boot-on; 458295436Sandrew }; 459279377Simp }; 460279377Simp }; 461279377Simp}; 462295436Sandrew 463295436Sandrew&sdhci_0 { 464295436Sandrew bus-width = <8>; 465295436Sandrew non-removable; 466295436Sandrew pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus8>; 467295436Sandrew pinctrl-names = "default"; 468295436Sandrew vmmc-supply = <&vemmc_reg>; 469295436Sandrew status = "okay"; 470295436Sandrew}; 471295436Sandrew 472295436Sandrew&serial_0 { 473295436Sandrew status = "okay"; 474295436Sandrew}; 475295436Sandrew 476295436Sandrew&serial_1 { 477295436Sandrew status = "okay"; 478295436Sandrew}; 479295436Sandrew 480295436Sandrew&serial_2 { 481295436Sandrew status = "okay"; 482295436Sandrew}; 483295436Sandrew 484295436Sandrew&serial_3 { 485295436Sandrew status = "okay"; 486295436Sandrew}; 487295436Sandrew 488295436Sandrew&tmu { 489295436Sandrew status = "okay"; 490295436Sandrew}; 491