1295011Sandrew/* 2295011Sandrew * This program is free software; you can redistribute it and/or modify 3295011Sandrew * it under the terms of the GNU General Public License version 2 as 4295011Sandrew * published by the Free Software Foundation. 5295011Sandrew */ 6295011Sandrew 7295011Sandrew#include <dt-bindings/input/input.h> 8295011Sandrew 9295011Sandrew/ { 10295011Sandrew cpus { 11295011Sandrew cpu@0 { 12295011Sandrew cpu0-supply = <&vcc>; 13295011Sandrew }; 14295011Sandrew }; 15295011Sandrew 16295011Sandrew leds { 17295011Sandrew compatible = "gpio-leds"; 18295011Sandrew user0 { 19295011Sandrew label = "user0"; 20295011Sandrew gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>; /* LEDA */ 21295011Sandrew linux,default-trigger = "none"; 22295011Sandrew }; 23295011Sandrew }; 24295011Sandrew 25295011Sandrew wl12xx_vmmc: wl12xx_vmmc { 26295011Sandrew compatible = "regulator-fixed"; 27295011Sandrew regulator-name = "vwl1271"; 28295011Sandrew regulator-min-microvolt = <1800000>; 29295011Sandrew regulator-max-microvolt = <1800000>; 30295011Sandrew gpio = <&gpio5 29 0>; /* gpio157 */ 31295011Sandrew startup-delay-us = <70000>; 32295011Sandrew enable-active-high; 33295011Sandrew vin-supply = <&vmmc2>; 34295011Sandrew }; 35295011Sandrew}; 36295011Sandrew 37295011Sandrew&gpmc { 38295011Sandrew ranges = <0 0 0x00000000 0x1000000>; /* CS0: 16MB for NAND */ 39295011Sandrew 40295011Sandrew nand@0,0 { 41295011Sandrew linux,mtd-name = "micron,mt29f4g16abbda3w"; 42295011Sandrew reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ 43295011Sandrew nand-bus-width = <16>; 44295011Sandrew ti,nand-ecc-opt = "bch8"; 45295011Sandrew gpmc,sync-clk-ps = <0>; 46295011Sandrew gpmc,cs-on-ns = <0>; 47295011Sandrew gpmc,cs-rd-off-ns = <44>; 48295011Sandrew gpmc,cs-wr-off-ns = <44>; 49295011Sandrew gpmc,adv-on-ns = <6>; 50295011Sandrew gpmc,adv-rd-off-ns = <34>; 51295011Sandrew gpmc,adv-wr-off-ns = <44>; 52295011Sandrew gpmc,we-off-ns = <40>; 53295011Sandrew gpmc,oe-off-ns = <54>; 54295011Sandrew gpmc,access-ns = <64>; 55295011Sandrew gpmc,rd-cycle-ns = <82>; 56295011Sandrew gpmc,wr-cycle-ns = <82>; 57295011Sandrew gpmc,wr-access-ns = <40>; 58295011Sandrew gpmc,wr-data-mux-bus-ns = <0>; 59295011Sandrew gpmc,device-width = <2>; 60295011Sandrew #address-cells = <1>; 61295011Sandrew #size-cells = <1>; 62295011Sandrew 63295011Sandrew /* u-boot uses mtdparts=omap2-nand.0:512k(x-loader),1920k(u-boot),128k(u-boot-env),4m(kernel),-(fs) */ 64295011Sandrew 65295011Sandrew x-loader@0 { 66295011Sandrew label = "x-loader"; 67295011Sandrew reg = <0 0x80000>; 68295011Sandrew }; 69295011Sandrew 70295011Sandrew bootloaders@80000 { 71295011Sandrew label = "u-boot"; 72295011Sandrew reg = <0x80000 0x1e0000>; 73295011Sandrew }; 74295011Sandrew 75295011Sandrew bootloaders_env@260000 { 76295011Sandrew label = "u-boot-env"; 77295011Sandrew reg = <0x260000 0x20000>; 78295011Sandrew }; 79295011Sandrew 80295011Sandrew kernel@280000 { 81295011Sandrew label = "kernel"; 82295011Sandrew reg = <0x280000 0x400000>; 83295011Sandrew }; 84295011Sandrew 85295011Sandrew filesystem@680000 { 86295011Sandrew label = "fs"; 87295011Sandrew reg = <0x680000 0>; /* 0 = MTDPART_SIZ_FULL */ 88295011Sandrew }; 89295011Sandrew }; 90295011Sandrew}; 91295011Sandrew 92295011Sandrew&i2c1 { 93295011Sandrew clock-frequency = <2600000>; 94295011Sandrew 95295011Sandrew twl: twl@48 { 96295011Sandrew reg = <0x48>; 97295011Sandrew interrupts = <7>; /* SYS_NIRQ cascaded to intc */ 98295011Sandrew interrupt-parent = <&intc>; 99295011Sandrew twl_audio: audio { 100295011Sandrew compatible = "ti,twl4030-audio"; 101295011Sandrew codec { 102295011Sandrew }; 103295011Sandrew }; 104295011Sandrew }; 105295011Sandrew}; 106295011Sandrew 107295011Sandrew&i2c2 { 108295011Sandrew clock-frequency = <400000>; 109295011Sandrew}; 110295011Sandrew 111295011Sandrew&i2c3 { 112295011Sandrew clock-frequency = <400000>; 113295011Sandrew}; 114295011Sandrew 115295011Sandrew&i2c2 { 116295011Sandrew clock-frequency = <400000>; 117295011Sandrew}; 118295011Sandrew 119295011Sandrew&i2c3 { 120295011Sandrew clock-frequency = <400000>; 121295011Sandrew}; 122295011Sandrew 123295011Sandrew/* 124295011Sandrew * Only found on the wireless SOM. For the SOM without wireless, the pins for 125295011Sandrew * MMC3 can be routed with jumpers to the second MMC slot on the devkit and 126295011Sandrew * gpio157 is not connected. So this should be OK to keep common for now, 127295011Sandrew * probably device tree overlays is the way to go with the various SOM and 128295011Sandrew * jumpering combinations for the long run. 129295011Sandrew */ 130295011Sandrew&mmc3 { 131295011Sandrew interrupts-extended = <&intc 94 &omap3_pmx_core2 0x46>; 132295011Sandrew pinctrl-0 = <&mmc3_pins &mmc3_core2_pins>; 133295011Sandrew pinctrl-names = "default"; 134295011Sandrew vmmc-supply = <&wl12xx_vmmc>; 135295011Sandrew non-removable; 136295011Sandrew bus-width = <4>; 137295011Sandrew cap-power-off-card; 138295011Sandrew #address-cells = <1>; 139295011Sandrew #size-cells = <0>; 140295011Sandrew wlcore: wlcore@2 { 141295011Sandrew compatible = "ti,wl1283"; 142295011Sandrew reg = <2>; 143295011Sandrew interrupt-parent = <&gpio5>; 144295011Sandrew interrupts = <24 IRQ_TYPE_LEVEL_HIGH>; /* gpio 152 */ 145295011Sandrew ref-clock-frequency = <26000000>; 146295011Sandrew }; 147295011Sandrew}; 148295011Sandrew 149295011Sandrew&omap3_pmx_core { 150295011Sandrew mmc3_pins: pinmux_mm3_pins { 151295011Sandrew pinctrl-single,pins = < 152295011Sandrew OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat4.sdmmc3_dat0 */ 153295011Sandrew OMAP3_CORE1_IOPAD(0x2166, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat5.sdmmc3_dat1 */ 154295011Sandrew OMAP3_CORE1_IOPAD(0x2168, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat6.sdmmc3_dat2 */ 155295011Sandrew OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE3) /* sdmmc2_dat6.sdmmc3_dat3 */ 156295011Sandrew OMAP3_CORE1_IOPAD(0x2184, PIN_INPUT_PULLUP | MUX_MODE4) /* mcbsp4_clkx.gpio_152 */ 157295011Sandrew OMAP3_CORE1_IOPAD(0x218e, PIN_OUTPUT | MUX_MODE4) /* mcbsp1_fsr.gpio_157 */ 158295011Sandrew >; 159295011Sandrew }; 160295011Sandrew mcbsp2_pins: pinmux_mcbsp2_pins { 161295011Sandrew pinctrl-single,pins = < 162295011Sandrew OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx */ 163295011Sandrew OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx */ 164295011Sandrew OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0) /* mcbsp2_dr */ 165295011Sandrew OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx */ 166295011Sandrew >; 167295011Sandrew }; 168295011Sandrew uart2_pins: pinmux_uart2_pins { 169295011Sandrew pinctrl-single,pins = < 170295011Sandrew OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT | MUX_MODE0) /* uart2_cts.uart2_cts */ 171295011Sandrew OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE0) /* uart2_rts .uart2_rts*/ 172295011Sandrew OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */ 173295011Sandrew OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */ 174295011Sandrew OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4) /* GPIO_162,BT_EN */ 175295011Sandrew >; 176295011Sandrew }; 177295011Sandrew}; 178295011Sandrew 179295011Sandrew&uart2 { 180295011Sandrew interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>; 181295011Sandrew pinctrl-names = "default"; 182295011Sandrew pinctrl-0 = <&uart2_pins>; 183295011Sandrew}; 184295011Sandrew 185295011Sandrew&omap3_pmx_core2 { 186295011Sandrew mmc3_core2_pins: pinmux_mmc3_core2_pins { 187295011Sandrew pinctrl-single,pins = < 188295011Sandrew OMAP3630_CORE2_IOPAD(0x25d8, PIN_INPUT_PULLUP | MUX_MODE2) /* etk_clk.sdmmc3_clk */ 189295011Sandrew OMAP3630_CORE2_IOPAD(0x25da, PIN_INPUT_PULLUP | MUX_MODE2) /* etk_ctl.sdmmc3_cmd */ 190295011Sandrew >; 191295011Sandrew }; 192295011Sandrew}; 193295011Sandrew 194295011Sandrew#include "twl4030.dtsi" 195295011Sandrew#include "twl4030_omap3.dtsi" 196295011Sandrew 197295011Sandrew&twl { 198295011Sandrew twl_power: power { 199295011Sandrew compatible = "ti,twl4030-power-idle-osc-off", "ti,twl4030-power-idle"; 200295011Sandrew ti,use_poweroff; 201295011Sandrew }; 202295011Sandrew}; 203295011Sandrew 204295011Sandrew&twl_gpio { 205295011Sandrew ti,use-leds; 206295011Sandrew}; 207