1/dts-v1/; 2 3/include/ "tegra20.dtsi" 4 5/ { 6 model = "Compulab TrimSlice board"; 7 compatible = "compulab,trimslice", "nvidia,tegra20"; 8 9 memory { 10 reg = <0x00000000 0x40000000>; 11 }; 12 13 host1x { 14 hdmi { 15 status = "okay"; 16 17 vdd-supply = <&hdmi_vdd_reg>; 18 pll-supply = <&hdmi_pll_reg>; 19 20 nvidia,ddc-i2c-bus = <&hdmi_ddc>; 21 nvidia,hpd-gpio = <&gpio 111 0>; /* PN7 */ 22 }; 23 }; 24 25 pinmux { 26 pinctrl-names = "default"; 27 pinctrl-0 = <&state_default>; 28 29 state_default: pinmux { 30 ata { 31 nvidia,pins = "ata"; 32 nvidia,function = "ide"; 33 }; 34 atb { 35 nvidia,pins = "atb", "gma"; 36 nvidia,function = "sdio4"; 37 }; 38 atc { 39 nvidia,pins = "atc", "gmb"; 40 nvidia,function = "nand"; 41 }; 42 atd { 43 nvidia,pins = "atd", "ate", "gme", "pta"; 44 nvidia,function = "gmi"; 45 }; 46 cdev1 { 47 nvidia,pins = "cdev1"; 48 nvidia,function = "plla_out"; 49 }; 50 cdev2 { 51 nvidia,pins = "cdev2"; 52 nvidia,function = "pllp_out4"; 53 }; 54 crtp { 55 nvidia,pins = "crtp"; 56 nvidia,function = "crt"; 57 }; 58 csus { 59 nvidia,pins = "csus"; 60 nvidia,function = "vi_sensor_clk"; 61 }; 62 dap1 { 63 nvidia,pins = "dap1"; 64 nvidia,function = "dap1"; 65 }; 66 dap2 { 67 nvidia,pins = "dap2"; 68 nvidia,function = "dap2"; 69 }; 70 dap3 { 71 nvidia,pins = "dap3"; 72 nvidia,function = "dap3"; 73 }; 74 dap4 { 75 nvidia,pins = "dap4"; 76 nvidia,function = "dap4"; 77 }; 78 ddc { 79 nvidia,pins = "ddc"; 80 nvidia,function = "i2c2"; 81 }; 82 dta { 83 nvidia,pins = "dta", "dtb", "dtc", "dtd", "dte"; 84 nvidia,function = "vi"; 85 }; 86 dtf { 87 nvidia,pins = "dtf"; 88 nvidia,function = "i2c3"; 89 }; 90 gmc { 91 nvidia,pins = "gmc", "gmd"; 92 nvidia,function = "sflash"; 93 }; 94 gpu { 95 nvidia,pins = "gpu"; 96 nvidia,function = "uarta"; 97 }; 98 gpu7 { 99 nvidia,pins = "gpu7"; 100 nvidia,function = "rtck"; 101 }; 102 gpv { 103 nvidia,pins = "gpv", "slxa", "slxk"; 104 nvidia,function = "pcie"; 105 }; 106 hdint { 107 nvidia,pins = "hdint"; 108 nvidia,function = "hdmi"; 109 }; 110 i2cp { 111 nvidia,pins = "i2cp"; 112 nvidia,function = "i2cp"; 113 }; 114 irrx { 115 nvidia,pins = "irrx", "irtx"; 116 nvidia,function = "uartb"; 117 }; 118 kbca { 119 nvidia,pins = "kbca", "kbcb", "kbcc", "kbcd", 120 "kbce", "kbcf"; 121 nvidia,function = "kbc"; 122 }; 123 lcsn { 124 nvidia,pins = "lcsn", "ld0", "ld1", "ld2", 125 "ld3", "ld4", "ld5", "ld6", "ld7", 126 "ld8", "ld9", "ld10", "ld11", "ld12", 127 "ld13", "ld14", "ld15", "ld16", "ld17", 128 "ldc", "ldi", "lhp0", "lhp1", "lhp2", 129 "lhs", "lm0", "lm1", "lpp", "lpw0", 130 "lpw1", "lpw2", "lsc0", "lsc1", "lsck", 131 "lsda", "lsdi", "lspi", "lvp0", "lvp1", 132 "lvs"; 133 nvidia,function = "displaya"; 134 }; 135 owc { 136 nvidia,pins = "owc", "uac"; 137 nvidia,function = "rsvd2"; 138 }; 139 pmc { 140 nvidia,pins = "pmc"; 141 nvidia,function = "pwr_on"; 142 }; 143 rm { 144 nvidia,pins = "rm"; 145 nvidia,function = "i2c1"; 146 }; 147 sdb { 148 nvidia,pins = "sdb", "sdc", "sdd"; 149 nvidia,function = "pwm"; 150 }; 151 sdio1 { 152 nvidia,pins = "sdio1"; 153 nvidia,function = "sdio1"; 154 }; 155 slxc { 156 nvidia,pins = "slxc", "slxd"; 157 nvidia,function = "sdio3"; 158 }; 159 spdi { 160 nvidia,pins = "spdi", "spdo"; 161 nvidia,function = "spdif"; 162 }; 163 spia { 164 nvidia,pins = "spia", "spib", "spic"; 165 nvidia,function = "spi2"; 166 }; 167 spid { 168 nvidia,pins = "spid", "spie", "spif"; 169 nvidia,function = "spi1"; 170 }; 171 spig { 172 nvidia,pins = "spig", "spih"; 173 nvidia,function = "spi2_alt"; 174 }; 175 uaa { 176 nvidia,pins = "uaa", "uab", "uda"; 177 nvidia,function = "ulpi"; 178 }; 179 uad { 180 nvidia,pins = "uad"; 181 nvidia,function = "irda"; 182 }; 183 uca { 184 nvidia,pins = "uca", "ucb"; 185 nvidia,function = "uartc"; 186 }; 187 conf_ata { 188 nvidia,pins = "ata", "atc", "atd", "ate", 189 "crtp", "dap2", "dap3", "dap4", "dta", 190 "dtb", "dtc", "dtd", "dte", "gmb", 191 "gme", "i2cp", "pta", "slxc", "slxd", 192 "spdi", "spdo", "uda"; 193 nvidia,pull = <0>; 194 nvidia,tristate = <1>; 195 }; 196 conf_atb { 197 nvidia,pins = "atb", "cdev1", "cdev2", "dap1", 198 "gma", "gmc", "gmd", "gpu", "gpu7", 199 "gpv", "sdio1", "slxa", "slxk", "uac"; 200 nvidia,pull = <0>; 201 nvidia,tristate = <0>; 202 }; 203 conf_ck32 { 204 nvidia,pins = "ck32", "ddrc", "pmca", "pmcb", 205 "pmcc", "pmcd", "pmce", "xm2c", "xm2d"; 206 nvidia,pull = <0>; 207 }; 208 conf_csus { 209 nvidia,pins = "csus", "spia", "spib", 210 "spid", "spif"; 211 nvidia,pull = <1>; 212 nvidia,tristate = <1>; 213 }; 214 conf_ddc { 215 nvidia,pins = "ddc", "dtf", "rm", "sdc", "sdd"; 216 nvidia,pull = <2>; 217 nvidia,tristate = <0>; 218 }; 219 conf_hdint { 220 nvidia,pins = "hdint", "lcsn", "ldc", "lm1", 221 "lpw1", "lsc1", "lsck", "lsda", "lsdi", 222 "lvp0", "pmc"; 223 nvidia,tristate = <1>; 224 }; 225 conf_irrx { 226 nvidia,pins = "irrx", "irtx", "kbca", "kbcb", 227 "kbcc", "kbcd", "kbce", "kbcf", "owc", 228 "spic", "spie", "spig", "spih", "uaa", 229 "uab", "uad", "uca", "ucb"; 230 nvidia,pull = <2>; 231 nvidia,tristate = <1>; 232 }; 233 conf_lc { 234 nvidia,pins = "lc", "ls"; 235 nvidia,pull = <2>; 236 }; 237 conf_ld0 { 238 nvidia,pins = "ld0", "ld1", "ld2", "ld3", "ld4", 239 "ld5", "ld6", "ld7", "ld8", "ld9", 240 "ld10", "ld11", "ld12", "ld13", "ld14", 241 "ld15", "ld16", "ld17", "ldi", "lhp0", 242 "lhp1", "lhp2", "lhs", "lm0", "lpp", 243 "lpw0", "lpw2", "lsc0", "lspi", "lvp1", 244 "lvs", "sdb"; 245 nvidia,tristate = <0>; 246 }; 247 conf_ld17_0 { 248 nvidia,pins = "ld17_0", "ld19_18", "ld21_20", 249 "ld23_22"; 250 nvidia,pull = <1>; 251 }; 252 conf_spif { 253 nvidia,pins = "spif"; 254 nvidia,pull = <1>; 255 nvidia,tristate = <0>; 256 }; 257 }; 258 }; 259 260 i2s@70002800 { 261 status = "okay"; 262 }; 263 264 serial@70006000 { 265 status = "okay"; 266 }; 267 268 dvi_ddc: i2c@7000c000 { 269 status = "okay"; 270 clock-frequency = <100000>; 271 }; 272 273 spi@7000c380 { 274 status = "okay"; 275 spi-max-frequency = <48000000>; 276 spi-flash@0 { 277 compatible = "winbond,w25q80bl"; 278 reg = <0>; 279 spi-max-frequency = <48000000>; 280 }; 281 }; 282 283 hdmi_ddc: i2c@7000c400 { 284 status = "okay"; 285 clock-frequency = <100000>; 286 }; 287 288 i2c@7000c500 { 289 status = "okay"; 290 clock-frequency = <400000>; 291 292 codec: codec@1a { 293 compatible = "ti,tlv320aic23"; 294 reg = <0x1a>; 295 }; 296 297 rtc@56 { 298 compatible = "emmicro,em3027"; 299 reg = <0x56>; 300 }; 301 }; 302 303 pmc { 304 nvidia,suspend-mode = <2>; 305 nvidia,cpu-pwr-good-time = <5000>; 306 nvidia,cpu-pwr-off-time = <5000>; 307 nvidia,core-pwr-good-time = <3845 3845>; 308 nvidia,core-pwr-off-time = <3875>; 309 nvidia,sys-clock-req-active-high; 310 }; 311 312 usb@c5000000 { 313 status = "okay"; 314 nvidia,vbus-gpio = <&gpio 170 0>; /* gpio PV2 */ 315 }; 316 317 usb@c5004000 { 318 status = "okay"; 319 nvidia,phy-reset-gpio = <&gpio 168 0>; /* gpio PV0 */ 320 }; 321 322 usb@c5008000 { 323 status = "okay"; 324 }; 325 326 usb-phy@c5004400 { 327 nvidia,phy-reset-gpio = <&gpio 168 0>; /* gpio PV0 */ 328 }; 329 330 sdhci@c8000000 { 331 status = "okay"; 332 bus-width = <4>; 333 }; 334 335 sdhci@c8000600 { 336 status = "okay"; 337 cd-gpios = <&gpio 121 1>; /* gpio PP1 */ 338 wp-gpios = <&gpio 122 0>; /* gpio PP2 */ 339 bus-width = <4>; 340 }; 341 342 clocks { 343 compatible = "simple-bus"; 344 #address-cells = <1>; 345 #size-cells = <0>; 346 347 clk32k_in: clock { 348 compatible = "fixed-clock"; 349 reg=<0>; 350 #clock-cells = <0>; 351 clock-frequency = <32768>; 352 }; 353 }; 354 355 gpio-keys { 356 compatible = "gpio-keys"; 357 358 power { 359 label = "Power"; 360 gpios = <&gpio 190 1>; /* gpio PX6, active low */ 361 linux,code = <116>; /* KEY_POWER */ 362 gpio-key,wakeup; 363 }; 364 }; 365 366 poweroff { 367 compatible = "gpio-poweroff"; 368 gpios = <&gpio 191 1>; /* gpio PX7, active low */ 369 }; 370 371 regulators { 372 compatible = "simple-bus"; 373 #address-cells = <1>; 374 #size-cells = <0>; 375 376 hdmi_vdd_reg: regulator@0 { 377 compatible = "regulator-fixed"; 378 reg = <0>; 379 regulator-name = "avdd_hdmi"; 380 regulator-min-microvolt = <3300000>; 381 regulator-max-microvolt = <3300000>; 382 regulator-always-on; 383 }; 384 385 hdmi_pll_reg: regulator@1 { 386 compatible = "regulator-fixed"; 387 reg = <1>; 388 regulator-name = "avdd_hdmi_pll"; 389 regulator-min-microvolt = <1800000>; 390 regulator-max-microvolt = <1800000>; 391 regulator-always-on; 392 }; 393 }; 394 395 sound { 396 compatible = "nvidia,tegra-audio-trimslice"; 397 nvidia,i2s-controller = <&tegra_i2s1>; 398 nvidia,audio-codec = <&codec>; 399 400 clocks = <&tegra_car 112>, <&tegra_car 113>, <&tegra_car 94>; 401 clock-names = "pll_a", "pll_a_out0", "mclk"; 402 }; 403}; 404