1279377Simp/* 2279377Simp * Copyright (C) 2014 Gumstix, Inc. - https://www.gumstix.com/ 3279377Simp * 4279377Simp * This program is free software; you can redistribute it and/or modify 5279377Simp * it under the terms of the GNU General Public License version 2 as 6279377Simp * published by the Free Software Foundation. 7279377Simp */ 8279377Simp/dts-v1/; 9279377Simp 10279377Simp#include <dt-bindings/input/input.h> 11279377Simp#include "am33xx.dtsi" 12279377Simp 13279377Simp/ { 14279377Simp model = "Gumstix Pepper"; 15279377Simp compatible = "gumstix,am335x-pepper", "ti,am33xx"; 16279377Simp 17279377Simp cpus { 18279377Simp cpu@0 { 19279377Simp cpu0-supply = <&dcdc3_reg>; 20279377Simp }; 21279377Simp }; 22279377Simp 23279377Simp memory { 24279377Simp device_type = "memory"; 25279377Simp reg = <0x80000000 0x20000000>; /* 512 MB */ 26279377Simp }; 27279377Simp 28279377Simp buttons: user_buttons { 29279377Simp compatible = "gpio-keys"; 30279377Simp }; 31279377Simp 32279377Simp leds: user_leds { 33279377Simp compatible = "gpio-leds"; 34279377Simp }; 35279377Simp 36279377Simp panel: lcd_panel { 37279377Simp compatible = "ti,tilcdc,panel"; 38279377Simp }; 39279377Simp 40279377Simp sound: sound_iface { 41279377Simp compatible = "ti,da830-evm-audio"; 42279377Simp }; 43279377Simp 44279377Simp vbat: fixedregulator@0 { 45279377Simp compatible = "regulator-fixed"; 46279377Simp }; 47279377Simp 48279377Simp v3v3c_reg: fixedregulator@1 { 49279377Simp compatible = "regulator-fixed"; 50279377Simp }; 51279377Simp 52279377Simp vdd5_reg: fixedregulator@2 { 53279377Simp compatible = "regulator-fixed"; 54279377Simp }; 55279377Simp}; 56279377Simp 57279377Simp/* I2C Busses */ 58279377Simp&i2c0 { 59279377Simp status = "okay"; 60279377Simp pinctrl-names = "default"; 61279377Simp pinctrl-0 = <&i2c0_pins>; 62279377Simp 63279377Simp clock-frequency = <400000>; 64279377Simp 65279377Simp tps: tps@24 { 66279377Simp reg = <0x24>; 67279377Simp }; 68279377Simp 69279377Simp eeprom: eeprom@50 { 70279377Simp compatible = "at,24c256"; 71279377Simp reg = <0x50>; 72279377Simp }; 73279377Simp 74279377Simp audio_codec: tlv320aic3106@1b { 75279377Simp compatible = "ti,tlv320aic3106"; 76279377Simp reg = <0x1b>; 77295436Sandrew ai3x-micbias-vg = <0x2>; 78279377Simp }; 79279377Simp 80279377Simp accel: lis331dlh@1d { 81279377Simp compatible = "st,lis3lv02d"; 82279377Simp reg = <0x1d>; 83279377Simp }; 84279377Simp}; 85279377Simp 86279377Simp&i2c1 { 87279377Simp status = "okay"; 88279377Simp pinctrl-names = "default"; 89279377Simp pinctrl-0 = <&i2c1_pins>; 90279377Simp clock-frequency = <400000>; 91279377Simp}; 92279377Simp 93279377Simp&am33xx_pinmux { 94279377Simp i2c0_pins: pinmux_i2c0 { 95279377Simp pinctrl-single,pins = < 96295436Sandrew AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */ 97295436Sandrew AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */ 98279377Simp >; 99279377Simp }; 100279377Simp i2c1_pins: pinmux_i2c1 { 101279377Simp pinctrl-single,pins = < 102295436Sandrew AM33XX_IOPAD(0x90C, PIN_INPUT_PULLUP | MUX_MODE3) /* mii1_crs,i2c1_sda */ 103295436Sandrew AM33XX_IOPAD(0x910, PIN_INPUT_PULLUP | MUX_MODE3) /* mii1_rxerr,i2c1_scl */ 104279377Simp >; 105279377Simp }; 106279377Simp}; 107279377Simp 108279377Simp/* Accelerometer */ 109279377Simp&accel { 110279377Simp pinctrl-names = "default"; 111279377Simp pinctrl-0 = <&accel_pins>; 112279377Simp 113279377Simp Vdd-supply = <&ldo3_reg>; 114279377Simp Vdd_IO-supply = <&ldo3_reg>; 115279377Simp st,irq1-click; 116279377Simp st,wakeup-x-lo; 117279377Simp st,wakeup-x-hi; 118279377Simp st,wakeup-y-lo; 119279377Simp st,wakeup-y-hi; 120279377Simp st,wakeup-z-lo; 121279377Simp st,wakeup-z-hi; 122279377Simp st,min-limit-x = <92>; 123279377Simp st,max-limit-x = <14>; 124279377Simp st,min-limit-y = <14>; 125279377Simp st,max-limit-y = <92>; 126279377Simp st,min-limit-z = <92>; 127279377Simp st,max-limit-z = <14>; 128279377Simp}; 129279377Simp 130279377Simp&am33xx_pinmux { 131279377Simp accel_pins: pinmux_accel { 132279377Simp pinctrl-single,pins = < 133295436Sandrew AM33XX_IOPAD(0x898, PIN_INPUT | MUX_MODE7) /* gpmc_wen.gpio2_4 */ 134279377Simp >; 135279377Simp }; 136279377Simp}; 137279377Simp 138279377Simp/* Audio */ 139279377Simp&audio_codec { 140279377Simp status = "okay"; 141279377Simp 142279377Simp gpio-reset = <&gpio1 16 GPIO_ACTIVE_LOW>; 143279377Simp AVDD-supply = <&ldo3_reg>; 144279377Simp IOVDD-supply = <&ldo3_reg>; 145279377Simp DRVDD-supply = <&ldo3_reg>; 146279377Simp DVDD-supply = <&dcdc1_reg>; 147279377Simp}; 148279377Simp 149279377Simp&sound { 150279377Simp ti,model = "AM335x-EVM"; 151279377Simp ti,audio-codec = <&audio_codec>; 152279377Simp ti,mcasp-controller = <&mcasp0>; 153279377Simp ti,codec-clock-rate = <12000000>; 154279377Simp ti,audio-routing = 155279377Simp "Headphone Jack", "HPLOUT", 156279377Simp "Headphone Jack", "HPROUT", 157295436Sandrew "MIC3L", "Mic3L Switch"; 158279377Simp}; 159279377Simp 160279377Simp&mcasp0 { 161279377Simp status = "okay"; 162279377Simp pinctrl-names = "default"; 163279377Simp pinctrl-0 = <&audio_pins>; 164279377Simp 165279377Simp op-mode = <0>; /* MCASP_ISS_MODE */ 166279377Simp tdm-slots = <2>; 167279377Simp serial-dir = < 168279377Simp 1 2 0 0 169279377Simp 0 0 0 0 170279377Simp 0 0 0 0 171279377Simp 0 0 0 0 172279377Simp >; 173279377Simp tx-num-evt = <1>; 174279377Simp rx-num-evt = <1>; 175279377Simp}; 176279377Simp 177279377Simp&am33xx_pinmux { 178279377Simp audio_pins: pinmux_audio { 179279377Simp pinctrl-single,pins = < 180295436Sandrew AM33XX_IOPAD(0x9ac, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_ahcklx.mcasp0_ahclkx */ 181295436Sandrew AM33XX_IOPAD(0x994, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_fsx.mcasp0_fsx */ 182295436Sandrew AM33XX_IOPAD(0x990, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_aclkx.mcasp0_aclkx */ 183295436Sandrew AM33XX_IOPAD(0x998, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr0.mcasp0_axr0 */ 184295436Sandrew AM33XX_IOPAD(0x9a8, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr1.mcasp0_axr1 */ 185295436Sandrew AM33XX_IOPAD(0x840, PIN_OUTPUT | MUX_MODE7) /* gpmc_a0.gpio1_16 */ 186279377Simp >; 187279377Simp }; 188279377Simp}; 189279377Simp 190279377Simp/* Display: 24-bit LCD Screen */ 191279377Simp&panel { 192279377Simp status = "okay"; 193279377Simp pinctrl-names = "default"; 194279377Simp pinctrl-0 = <&lcd_pins>; 195279377Simp panel-info { 196279377Simp ac-bias = <255>; 197279377Simp ac-bias-intrpt = <0>; 198279377Simp dma-burst-sz = <16>; 199279377Simp bpp = <32>; 200279377Simp fdd = <0x80>; 201279377Simp sync-edge = <0>; 202279377Simp sync-ctrl = <1>; 203279377Simp raster-order = <0>; 204279377Simp fifo-th = <0>; 205279377Simp }; 206279377Simp display-timings { 207279377Simp native-mode = <&timing0>; 208279377Simp timing0: 480x272 { 209279377Simp clock-frequency = <18400000>; 210279377Simp hactive = <480>; 211279377Simp vactive = <272>; 212279377Simp hfront-porch = <8>; 213279377Simp hback-porch = <4>; 214279377Simp hsync-len = <41>; 215279377Simp vfront-porch = <4>; 216279377Simp vback-porch = <2>; 217279377Simp vsync-len = <10>; 218279377Simp hsync-active = <1>; 219279377Simp vsync-active = <1>; 220279377Simp }; 221279377Simp }; 222279377Simp}; 223279377Simp 224279377Simp&lcdc { 225279377Simp status = "okay"; 226279377Simp}; 227279377Simp 228279377Simp&am33xx_pinmux { 229279377Simp lcd_pins: pinmux_lcd { 230279377Simp pinctrl-single,pins = < 231295436Sandrew AM33XX_IOPAD(0x8a0, PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */ 232295436Sandrew AM33XX_IOPAD(0x8a4, PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */ 233295436Sandrew AM33XX_IOPAD(0x8a8, PIN_OUTPUT | MUX_MODE0) /* lcd_data2.lcd_data2 */ 234295436Sandrew AM33XX_IOPAD(0x8ac, PIN_OUTPUT | MUX_MODE0) /* lcd_data3.lcd_data3 */ 235295436Sandrew AM33XX_IOPAD(0x8b0, PIN_OUTPUT | MUX_MODE0) /* lcd_data4.lcd_data4 */ 236295436Sandrew AM33XX_IOPAD(0x8b4, PIN_OUTPUT | MUX_MODE0) /* lcd_data5.lcd_data5 */ 237295436Sandrew AM33XX_IOPAD(0x8b8, PIN_OUTPUT | MUX_MODE0) /* lcd_data6.lcd_data6 */ 238295436Sandrew AM33XX_IOPAD(0x8bc, PIN_OUTPUT | MUX_MODE0) /* lcd_data7.lcd_data7 */ 239295436Sandrew AM33XX_IOPAD(0x8c0, PIN_OUTPUT | MUX_MODE0) /* lcd_data8.lcd_data8 */ 240295436Sandrew AM33XX_IOPAD(0x8c4, PIN_OUTPUT | MUX_MODE0) /* lcd_data9.lcd_data9 */ 241295436Sandrew AM33XX_IOPAD(0x8c8, PIN_OUTPUT | MUX_MODE0) /* lcd_data10.lcd_data10 */ 242295436Sandrew AM33XX_IOPAD(0x8cc, PIN_OUTPUT | MUX_MODE0) /* lcd_data11.lcd_data11 */ 243295436Sandrew AM33XX_IOPAD(0x8d0, PIN_OUTPUT | MUX_MODE0) /* lcd_data12.lcd_data12 */ 244295436Sandrew AM33XX_IOPAD(0x8d4, PIN_OUTPUT | MUX_MODE0) /* lcd_data13.lcd_data13 */ 245295436Sandrew AM33XX_IOPAD(0x8d8, PIN_OUTPUT | MUX_MODE0) /* lcd_data14.lcd_data14 */ 246295436Sandrew AM33XX_IOPAD(0x8dc, PIN_OUTPUT | MUX_MODE0) /* lcd_data15.lcd_data15 */ 247295436Sandrew AM33XX_IOPAD(0x820, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad8.lcd_data16 */ 248295436Sandrew AM33XX_IOPAD(0x824, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad9.lcd_data17 */ 249295436Sandrew AM33XX_IOPAD(0x828, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad10.lcd_data18 */ 250295436Sandrew AM33XX_IOPAD(0x82c, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad11.lcd_data19 */ 251295436Sandrew AM33XX_IOPAD(0x830, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad12.lcd_data20 */ 252295436Sandrew AM33XX_IOPAD(0x834, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad13.lcd_data21 */ 253295436Sandrew AM33XX_IOPAD(0x838, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad14.lcd_data22 */ 254295436Sandrew AM33XX_IOPAD(0x83c, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad15.lcd_data23 */ 255295436Sandrew AM33XX_IOPAD(0x8e0, PIN_OUTPUT | MUX_MODE0) /* lcd_vsync.lcd_vsync */ 256295436Sandrew AM33XX_IOPAD(0x8e4, PIN_OUTPUT | MUX_MODE0) /* lcd_hsync.lcd_hsync */ 257295436Sandrew AM33XX_IOPAD(0x8e8, PIN_OUTPUT | MUX_MODE0) /* lcd_pclk.lcd_pclk */ 258295436Sandrew AM33XX_IOPAD(0x8ec, PIN_OUTPUT | MUX_MODE0) /* lcd_ac_bias_en.lcd_ac_bias_en */ 259279377Simp /* Display Enable */ 260295436Sandrew AM33XX_IOPAD(0x86c, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a11.gpio1_27 */ 261279377Simp >; 262279377Simp }; 263279377Simp}; 264279377Simp 265279377Simp/* Ethernet */ 266279377Simp&cpsw_emac0 { 267279377Simp status = "okay"; 268279377Simp phy_id = <&davinci_mdio>, <0>; 269279377Simp phy-mode = "rgmii"; 270279377Simp}; 271279377Simp 272279377Simp&cpsw_emac1 { 273279377Simp status = "okay"; 274279377Simp phy_id = <&davinci_mdio>, <1>; 275279377Simp phy-mode = "rgmii"; 276279377Simp}; 277279377Simp 278279377Simp&davinci_mdio { 279279377Simp status = "okay"; 280279377Simp pinctrl-names = "default"; 281279377Simp pinctrl-0 = <&mdio_pins>; 282279377Simp}; 283279377Simp 284279377Simp&mac { 285279377Simp status = "okay"; 286279377Simp pinctrl-names = "default"; 287279377Simp pinctrl-0 = <ðernet_pins>; 288279377Simp}; 289279377Simp 290279377Simp 291279377Simp&am33xx_pinmux { 292279377Simp ethernet_pins: pinmux_ethernet { 293279377Simp pinctrl-single,pins = < 294295436Sandrew AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_tctl */ 295295436Sandrew AM33XX_IOPAD(0x918, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxdv.rgmii1_rctl */ 296295436Sandrew AM33XX_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd3.rgmii1_td3 */ 297295436Sandrew AM33XX_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd2.rgmii1_td2 */ 298295436Sandrew AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td1 */ 299295436Sandrew AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td0 */ 300295436Sandrew AM33XX_IOPAD(0x92c, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_txclk.rgmii1_tclk */ 301295436Sandrew AM33XX_IOPAD(0x930, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxclk.rgmii1_rclk */ 302295436Sandrew AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd3.rgmii1_rxd3 */ 303295436Sandrew AM33XX_IOPAD(0x938, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd2.rgmii1_rxd2 */ 304295436Sandrew AM33XX_IOPAD(0x93c, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd1.rgmii1_rxd1 */ 305295436Sandrew AM33XX_IOPAD(0x940, PIN_INPUT_PULLUP | MUX_MODE2) /* mii1_rxd0.rgmii1_rxd0 */ 306279377Simp /* ethernet interrupt */ 307295436Sandrew AM33XX_IOPAD(0x944, PIN_INPUT_PULLUP | MUX_MODE7) /* rmii2_refclk.gpio0_29 */ 308279377Simp /* ethernet PHY nReset */ 309295436Sandrew AM33XX_IOPAD(0x908, PIN_OUTPUT_PULLUP | MUX_MODE7) /* mii1_col.gpio3_0 */ 310279377Simp >; 311279377Simp }; 312279377Simp 313279377Simp mdio_pins: pinmux_mdio { 314279377Simp pinctrl-single,pins = < 315295436Sandrew AM33XX_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */ 316295436Sandrew AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */ 317279377Simp >; 318279377Simp }; 319279377Simp}; 320279377Simp 321279377Simp/* MMC */ 322279377Simp&mmc1 { 323279377Simp /* Bootable SD card slot */ 324279377Simp status = "okay"; 325279377Simp vmmc-supply = <&ldo3_reg>; 326279377Simp bus-width = <4>; 327279377Simp pinctrl-names = "default"; 328279377Simp pinctrl-0 = <&sd_pins>; 329279377Simp cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; 330279377Simp}; 331279377Simp 332279377Simp&mmc2 { 333279377Simp /* eMMC (not populated) on MMC #2 */ 334279377Simp status = "disabled"; 335279377Simp pinctrl-names = "default"; 336279377Simp pinctrl-0 = <&emmc_pins>; 337279377Simp vmmc-supply = <&ldo3_reg>; 338279377Simp bus-width = <8>; 339279377Simp ti,non-removable; 340279377Simp}; 341279377Simp 342279377Simp&mmc3 { 343279377Simp /* Wifi & Bluetooth on MMC #3 */ 344279377Simp status = "okay"; 345279377Simp pinctrl-names = "default"; 346279377Simp pinctrl-0 = <&wireless_pins>; 347279377Simp vmmmc-supply = <&v3v3c_reg>; 348279377Simp bus-width = <4>; 349279377Simp ti,non-removable; 350295436Sandrew dmas = <&edma_xbar 12 0 1 351295436Sandrew &edma_xbar 13 0 2>; 352279377Simp dma-names = "tx", "rx"; 353279377Simp}; 354279377Simp 355279377Simp 356279377Simp&am33xx_pinmux { 357279377Simp sd_pins: pinmux_sd_card { 358279377Simp pinctrl-single,pins = < 359295436Sandrew AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */ 360295436Sandrew AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */ 361295436Sandrew AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */ 362295436Sandrew AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */ 363295436Sandrew AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */ 364295436Sandrew AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */ 365295436Sandrew AM33XX_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */ 366279377Simp >; 367279377Simp }; 368279377Simp emmc_pins: pinmux_emmc { 369279377Simp pinctrl-single,pins = < 370295436Sandrew AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */ 371295436Sandrew AM33XX_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */ 372295436Sandrew AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */ 373295436Sandrew AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */ 374295436Sandrew AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */ 375295436Sandrew AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */ 376295436Sandrew AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */ 377295436Sandrew AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */ 378295436Sandrew AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */ 379295436Sandrew AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */ 380279377Simp /* EMMC nReset */ 381295436Sandrew AM33XX_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 */ 382279377Simp >; 383279377Simp }; 384279377Simp wireless_pins: pinmux_wireless { 385279377Simp pinctrl-single,pins = < 386295436Sandrew AM33XX_IOPAD(0x844, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a1.mmc2_dat0 */ 387295436Sandrew AM33XX_IOPAD(0x848, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a2.mmc2_dat1 */ 388295436Sandrew AM33XX_IOPAD(0x84c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a3.mmc2_dat2 */ 389295436Sandrew AM33XX_IOPAD(0x878, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_ben1.mmc2_dat3 */ 390295436Sandrew AM33XX_IOPAD(0x888, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_csn3.mmc2_cmd */ 391295436Sandrew AM33XX_IOPAD(0x88c, PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_clk.mmc1_clk */ 392279377Simp /* WLAN nReset */ 393295436Sandrew AM33XX_IOPAD(0x860, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */ 394279377Simp /* WLAN nPower down */ 395295436Sandrew AM33XX_IOPAD(0x870, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_wait0.gpio0_30 */ 396279377Simp /* 32kHz Clock */ 397295436Sandrew AM33XX_IOPAD(0x9b4, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */ 398279377Simp >; 399279377Simp }; 400279377Simp}; 401279377Simp 402279377Simp/* Power */ 403279377Simp&vbat { 404279377Simp regulator-name = "vbat"; 405279377Simp regulator-min-microvolt = <5000000>; 406279377Simp regulator-max-microvolt = <5000000>; 407279377Simp}; 408279377Simp 409279377Simp&v3v3c_reg { 410279377Simp regulator-name = "v3v3c_reg"; 411279377Simp regulator-min-microvolt = <3300000>; 412279377Simp regulator-max-microvolt = <3300000>; 413279377Simp vin-supply = <&vbat>; 414279377Simp}; 415279377Simp 416279377Simp&vdd5_reg { 417279377Simp regulator-name = "vdd5_reg"; 418279377Simp regulator-min-microvolt = <5000000>; 419279377Simp regulator-max-microvolt = <5000000>; 420279377Simp vin-supply = <&vbat>; 421279377Simp}; 422279377Simp 423295436Sandrew&tps { 424295436Sandrew compatible = "ti,tps65217"; 425279377Simp 426279377Simp backlight { 427279377Simp isel = <1>; /* ISET1 */ 428279377Simp fdim = <200>; /* TPS65217_BL_FDIM_200HZ */ 429279377Simp default-brightness = <80>; 430279377Simp }; 431279377Simp 432279377Simp regulators { 433295436Sandrew #address-cells = <1>; 434295436Sandrew #size-cells = <0>; 435295436Sandrew 436279377Simp dcdc1_reg: regulator@0 { 437295436Sandrew reg = <0>; 438279377Simp /* VDD_1V8 system supply */ 439295436Sandrew regulator-always-on; 440279377Simp }; 441279377Simp 442279377Simp dcdc2_reg: regulator@1 { 443295436Sandrew reg = <1>; 444279377Simp /* VDD_CORE voltage limits 0.95V - 1.26V with +/-4% tolerance */ 445279377Simp regulator-name = "vdd_core"; 446279377Simp regulator-min-microvolt = <925000>; 447295436Sandrew regulator-max-microvolt = <1150000>; 448279377Simp regulator-boot-on; 449295436Sandrew regulator-always-on; 450279377Simp }; 451279377Simp 452279377Simp dcdc3_reg: regulator@2 { 453295436Sandrew reg = <2>; 454279377Simp /* VDD_MPU voltage limits 0.95V - 1.1V with +/-4% tolerance */ 455279377Simp regulator-name = "vdd_mpu"; 456279377Simp regulator-min-microvolt = <925000>; 457295436Sandrew regulator-max-microvolt = <1325000>; 458279377Simp regulator-boot-on; 459295436Sandrew regulator-always-on; 460279377Simp }; 461279377Simp 462279377Simp ldo1_reg: regulator@3 { 463295436Sandrew reg = <3>; 464279377Simp /* VRTC 1.8V always-on supply */ 465295436Sandrew regulator-name = "vrtc,vdds"; 466279377Simp regulator-always-on; 467279377Simp }; 468279377Simp 469279377Simp ldo2_reg: regulator@4 { 470295436Sandrew reg = <4>; 471279377Simp /* 3.3V rail */ 472295436Sandrew regulator-name = "vdd_3v3aux"; 473295436Sandrew regulator-always-on; 474279377Simp }; 475279377Simp 476279377Simp ldo3_reg: regulator@5 { 477295436Sandrew reg = <5>; 478279377Simp /* VDD_3V3A 3.3V rail */ 479295436Sandrew regulator-name = "vdd_3v3a"; 480279377Simp regulator-min-microvolt = <3300000>; 481279377Simp regulator-max-microvolt = <3300000>; 482279377Simp }; 483279377Simp 484279377Simp ldo4_reg: regulator@6 { 485295436Sandrew reg = <6>; 486279377Simp /* VDD_3V3B 3.3V rail */ 487295436Sandrew regulator-name = "vdd_3v3b"; 488295436Sandrew regulator-always-on; 489279377Simp }; 490279377Simp }; 491279377Simp}; 492279377Simp 493279377Simp/* SPI Busses */ 494279377Simp&spi0 { 495279377Simp status = "okay"; 496279377Simp pinctrl-names = "default"; 497279377Simp pinctrl-0 = <&spi0_pins>; 498279377Simp}; 499279377Simp 500279377Simp&am33xx_pinmux { 501279377Simp spi0_pins: pinmux_spi0 { 502279377Simp pinctrl-single,pins = < 503295436Sandrew AM33XX_IOPAD(0x950, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_sclk.spi0_sclk */ 504295436Sandrew AM33XX_IOPAD(0x95C, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_cs0.spi0_cs0 */ 505295436Sandrew AM33XX_IOPAD(0x954, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d0.spi0_d0 */ 506295436Sandrew AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d1.spi0_d1 */ 507279377Simp >; 508279377Simp }; 509279377Simp}; 510279377Simp 511279377Simp/* Touch Screen */ 512279377Simp&tscadc { 513279377Simp status = "okay"; 514279377Simp tsc { 515279377Simp ti,wires = <4>; 516279377Simp ti,x-plate-resistance = <200>; 517279377Simp ti,coordinate-readouts = <5>; 518279377Simp ti,wire-config = <0x00 0x11 0x22 0x33>; 519279377Simp }; 520279377Simp 521279377Simp adc { 522279377Simp ti,adc-channels = <4 5 6 7>; 523279377Simp }; 524279377Simp}; 525279377Simp 526279377Simp/* UARTs */ 527279377Simp&uart0 { 528279377Simp /* Serial Console */ 529279377Simp status = "okay"; 530279377Simp pinctrl-names = "default"; 531279377Simp pinctrl-0 = <&uart0_pins>; 532279377Simp}; 533279377Simp 534279377Simp&uart1 { 535279377Simp /* Broken out to J6 header */ 536279377Simp status = "okay"; 537279377Simp pinctrl-names = "default"; 538279377Simp pinctrl-0 = <&uart1_pins>; 539279377Simp}; 540279377Simp 541279377Simp&am33xx_pinmux { 542279377Simp uart0_pins: pinmux_uart0 { 543279377Simp pinctrl-single,pins = < 544295436Sandrew AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */ 545295436Sandrew AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */ 546279377Simp >; 547279377Simp }; 548279377Simp uart1_pins: pinmux_uart1 { 549279377Simp pinctrl-single,pins = < 550295436Sandrew AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_ctsn.uart1_ctsn */ 551295436Sandrew AM33XX_IOPAD(0x97C, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_rtsn.uart1_rtsn */ 552295436Sandrew AM33XX_IOPAD(0x980, PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */ 553295436Sandrew AM33XX_IOPAD(0x984, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */ 554279377Simp >; 555279377Simp }; 556279377Simp}; 557279377Simp 558279377Simp/* USB */ 559279377Simp&usb { 560279377Simp status = "okay"; 561279377Simp 562279377Simp pinctrl-names = "default"; 563279377Simp pinctrl-0 = <&usb_pins>; 564279377Simp}; 565279377Simp 566279377Simp&usb_ctrl_mod { 567279377Simp status = "okay"; 568279377Simp}; 569279377Simp 570279377Simp&usb0_phy { 571279377Simp status = "okay"; 572279377Simp}; 573279377Simp 574279377Simp&usb1_phy { 575279377Simp status = "okay"; 576279377Simp}; 577279377Simp 578279377Simp&usb0 { 579279377Simp status = "okay"; 580279377Simp dr_mode = "host"; 581279377Simp}; 582279377Simp 583279377Simp&usb1 { 584279377Simp status = "okay"; 585279377Simp dr_mode = "host"; 586279377Simp}; 587279377Simp 588279377Simp&cppi41dma { 589279377Simp status = "okay"; 590279377Simp}; 591279377Simp 592279377Simp&am33xx_pinmux { 593279377Simp usb_pins: pinmux_usb { 594279377Simp pinctrl-single,pins = < 595279377Simp /* USB0 Over-Current (active low) */ 596295436Sandrew AM33XX_IOPAD(0x864, PIN_INPUT | MUX_MODE7) /* gpmc_a9.gpio1_25 */ 597279377Simp /* USB1 Over-Current (active low) */ 598295436Sandrew AM33XX_IOPAD(0x868, PIN_INPUT | MUX_MODE7) /* gpmc_a10.gpio1_26 */ 599279377Simp >; 600279377Simp }; 601279377Simp}; 602279377Simp 603279377Simp/* User IO */ 604279377Simp&leds { 605279377Simp pinctrl-names = "default"; 606279377Simp pinctrl-0 = <&user_leds_pins>; 607279377Simp 608279377Simp led@0 { 609279377Simp label = "pepper:user0:blue"; 610279377Simp gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>; 611279377Simp linux,default-trigger = "none"; 612279377Simp default-state = "off"; 613279377Simp }; 614279377Simp 615279377Simp led@1 { 616279377Simp label = "pepper:user1:red"; 617279377Simp gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>; 618279377Simp linux,default-trigger = "none"; 619279377Simp default-state = "off"; 620279377Simp }; 621279377Simp}; 622279377Simp 623279377Simp&buttons { 624279377Simp pinctrl-names = "default"; 625279377Simp pinctrl-0 = <&user_buttons_pins>; 626279377Simp #address-cells = <1>; 627279377Simp #size-cells = <0>; 628279377Simp 629279377Simp button@0 { 630279377Simp label = "home"; 631279377Simp linux,code = <KEY_HOME>; 632279377Simp gpios = <&gpio1 22 GPIO_ACTIVE_LOW>; 633295436Sandrew wakeup-source; 634279377Simp }; 635279377Simp 636279377Simp button@1 { 637279377Simp label = "menu"; 638279377Simp linux,code = <KEY_MENU>; 639279377Simp gpios = <&gpio1 23 GPIO_ACTIVE_LOW>; 640295436Sandrew wakeup-source; 641279377Simp }; 642279377Simp 643279377Simp buttons@2 { 644279377Simp label = "power"; 645279377Simp linux,code = <KEY_POWER>; 646279377Simp gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; 647295436Sandrew wakeup-source; 648279377Simp }; 649279377Simp}; 650279377Simp 651279377Simp&am33xx_pinmux { 652279377Simp user_leds_pins: pinmux_user_leds { 653279377Simp pinctrl-single,pins = < 654295436Sandrew AM33XX_IOPAD(0x850, PIN_OUTPUT | MUX_MODE7) /* gpmc_a4.gpio1_20 */ 655295436Sandrew AM33XX_IOPAD(0x854, PIN_OUTPUT | MUX_MODE7) /* gpmc_a5.gpio1_21 */ 656279377Simp >; 657279377Simp }; 658279377Simp 659279377Simp user_buttons_pins: pinmux_user_buttons { 660279377Simp pinctrl-single,pins = < 661295436Sandrew AM33XX_IOPAD(0x858, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */ 662295436Sandrew AM33XX_IOPAD(0x85C, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a7.gpio1_21 */ 663295436Sandrew AM33XX_IOPAD(0x964, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio0_7 */ 664279377Simp >; 665279377Simp }; 666279377Simp}; 667