1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only 2*724ba675SRob Herring 3*724ba675SRob Herring#include <dt-bindings/input/input.h> 4*724ba675SRob Herring 5*724ba675SRob Herring/ { 6*724ba675SRob Herring chosen { 7*724ba675SRob Herring stdout-path = &uart1; 8*724ba675SRob Herring }; 9*724ba675SRob Herring 10*724ba675SRob Herring cpus { 11*724ba675SRob Herring cpu@0 { 12*724ba675SRob Herring cpu0-supply = <&vcc>; 13*724ba675SRob Herring }; 14*724ba675SRob Herring }; 15*724ba675SRob Herring 16*724ba675SRob Herring memory@80000000 { 17*724ba675SRob Herring device_type = "memory"; 18*724ba675SRob Herring reg = <0x80000000 0>; 19*724ba675SRob Herring }; 20*724ba675SRob Herring 21*724ba675SRob Herring leds { 22*724ba675SRob Herring compatible = "gpio-leds"; 23*724ba675SRob Herring led-user0 { 24*724ba675SRob Herring label = "user0"; 25*724ba675SRob Herring gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>; /* LEDA */ 26*724ba675SRob Herring linux,default-trigger = "none"; 27*724ba675SRob Herring }; 28*724ba675SRob Herring }; 29*724ba675SRob Herring 30*724ba675SRob Herring /* fixed 26MHz oscillator */ 31*724ba675SRob Herring hfclk_26m: oscillator { 32*724ba675SRob Herring #clock-cells = <0>; 33*724ba675SRob Herring compatible = "fixed-clock"; 34*724ba675SRob Herring clock-frequency = <26000000>; 35*724ba675SRob Herring }; 36*724ba675SRob Herring}; 37*724ba675SRob Herring 38*724ba675SRob Herring/* The Torpedo doesn't route the USB host pins */ 39*724ba675SRob Herring&usbhshost { 40*724ba675SRob Herring status = "disabled"; 41*724ba675SRob Herring}; 42*724ba675SRob Herring 43*724ba675SRob Herring&gpmc { 44*724ba675SRob Herring ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */ 45*724ba675SRob Herring 46*724ba675SRob Herring nand@0,0 { 47*724ba675SRob Herring compatible = "ti,omap2-nand"; 48*724ba675SRob Herring reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ 49*724ba675SRob Herring interrupt-parent = <&gpmc>; 50*724ba675SRob Herring interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */ 51*724ba675SRob Herring <1 IRQ_TYPE_NONE>; /* termcount */ 52*724ba675SRob Herring linux,mtd-name = "micron,mt29f4g16abbda3w"; 53*724ba675SRob Herring nand-bus-width = <16>; 54*724ba675SRob Herring ti,nand-ecc-opt = "bch8"; 55*724ba675SRob Herring rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */ 56*724ba675SRob Herring gpmc,sync-clk-ps = <0>; 57*724ba675SRob Herring gpmc,cs-on-ns = <0>; 58*724ba675SRob Herring gpmc,cs-rd-off-ns = <44>; 59*724ba675SRob Herring gpmc,cs-wr-off-ns = <44>; 60*724ba675SRob Herring gpmc,adv-on-ns = <6>; 61*724ba675SRob Herring gpmc,adv-rd-off-ns = <34>; 62*724ba675SRob Herring gpmc,adv-wr-off-ns = <44>; 63*724ba675SRob Herring gpmc,we-off-ns = <40>; 64*724ba675SRob Herring gpmc,oe-off-ns = <54>; 65*724ba675SRob Herring gpmc,access-ns = <64>; 66*724ba675SRob Herring gpmc,rd-cycle-ns = <82>; 67*724ba675SRob Herring gpmc,wr-cycle-ns = <82>; 68*724ba675SRob Herring gpmc,wr-access-ns = <40>; 69*724ba675SRob Herring gpmc,wr-data-mux-bus-ns = <0>; 70*724ba675SRob Herring gpmc,device-width = <2>; 71*724ba675SRob Herring #address-cells = <1>; 72*724ba675SRob Herring #size-cells = <1>; 73*724ba675SRob Herring }; 74*724ba675SRob Herring}; 75*724ba675SRob Herring 76*724ba675SRob Herring&i2c1 { 77*724ba675SRob Herring pinctrl-names = "default"; 78*724ba675SRob Herring pinctrl-0 = <&i2c1_pins>; 79*724ba675SRob Herring clock-frequency = <2600000>; 80*724ba675SRob Herring 81*724ba675SRob Herring twl: twl@48 { 82*724ba675SRob Herring reg = <0x48>; 83*724ba675SRob Herring interrupts = <7>; /* SYS_NIRQ cascaded to intc */ 84*724ba675SRob Herring interrupt-parent = <&intc>; 85*724ba675SRob Herring clocks = <&hfclk_26m>; 86*724ba675SRob Herring clock-names = "fck"; 87*724ba675SRob Herring 88*724ba675SRob Herring twl_audio: audio { 89*724ba675SRob Herring compatible = "ti,twl4030-audio"; 90*724ba675SRob Herring codec { 91*724ba675SRob Herring }; 92*724ba675SRob Herring }; 93*724ba675SRob Herring }; 94*724ba675SRob Herring}; 95*724ba675SRob Herring 96*724ba675SRob Herring&i2c2 { 97*724ba675SRob Herring pinctrl-names = "default"; 98*724ba675SRob Herring pinctrl-0 = <&i2c2_pins>; 99*724ba675SRob Herring clock-frequency = <400000>; 100*724ba675SRob Herring}; 101*724ba675SRob Herring 102*724ba675SRob Herring&i2c3 { 103*724ba675SRob Herring pinctrl-names = "default"; 104*724ba675SRob Herring pinctrl-0 = <&i2c3_pins>; 105*724ba675SRob Herring clock-frequency = <400000>; 106*724ba675SRob Herring at24@50 { 107*724ba675SRob Herring compatible = "atmel,24c64"; 108*724ba675SRob Herring readonly; 109*724ba675SRob Herring reg = <0x50>; 110*724ba675SRob Herring }; 111*724ba675SRob Herring}; 112*724ba675SRob Herring 113*724ba675SRob Herring&omap3_pmx_core { 114*724ba675SRob Herring mcbsp2_pins: mcbsp2-pins { 115*724ba675SRob Herring pinctrl-single,pins = < 116*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx */ 117*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx */ 118*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0) /* mcbsp2_dr */ 119*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx */ 120*724ba675SRob Herring >; 121*724ba675SRob Herring }; 122*724ba675SRob Herring uart2_pins: uart2-pins { 123*724ba675SRob Herring pinctrl-single,pins = < 124*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT | MUX_MODE0) /* uart2_cts.uart2_cts */ 125*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE0) /* uart2_rts .uart2_rts*/ 126*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */ 127*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */ 128*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4) /* GPIO_162,BT_EN */ 129*724ba675SRob Herring >; 130*724ba675SRob Herring }; 131*724ba675SRob Herring mcspi1_pins: mcspi1-pins { 132*724ba675SRob Herring pinctrl-single,pins = < 133*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0) /* mcspi1_clk.mcspi1_clk */ 134*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21ca, PIN_OUTPUT | MUX_MODE0) /* mcspi1_simo.mcspi1_simo */ 135*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT_PULLUP | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */ 136*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21ce, PIN_OUTPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */ 137*724ba675SRob Herring >; 138*724ba675SRob Herring }; 139*724ba675SRob Herring hsusb_otg_pins: hsusb-otg-pins { 140*724ba675SRob Herring pinctrl-single,pins = < 141*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0) /* hsusb0_clk.hsusb0_clk */ 142*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0) /* hsusb0_stp.hsusb0_stp */ 143*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0) /* hsusb0_dir.hsusb0_dir */ 144*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0) /* hsusb0_nxt.hsusb0_nxt */ 145*724ba675SRob Herring 146*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0) /* hsusb0_data0.hsusb0_data0 */ 147*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0) /* hsusb0_data1.hsusb0_data1 */ 148*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0) /* hsusb0_data2.hsusb0_data2 */ 149*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0) /* hsusb0_data3.hsusb0_data3 */ 150*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0) /* hsusb0_data4.hsusb0_data4 */ 151*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0) /* hsusb0_data5.hsusb0_data5 */ 152*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0) /* hsusb0_data6.hsusb0_data6 */ 153*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0) /* hsusb0_data7.hsusb0_data7 */ 154*724ba675SRob Herring >; 155*724ba675SRob Herring }; 156*724ba675SRob Herring i2c1_pins: i2c1-pins { 157*724ba675SRob Herring pinctrl-single,pins = < 158*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0) /* i2c1_scl.i2c1_scl */ 159*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0) /* i2c1_sda.i2c1_sda */ 160*724ba675SRob Herring >; 161*724ba675SRob Herring }; 162*724ba675SRob Herring i2c2_pins: i2c2-pins { 163*724ba675SRob Herring pinctrl-single,pins = < 164*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT | MUX_MODE0) /* i2c2_scl */ 165*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT | MUX_MODE0) /* i2c2_sda */ 166*724ba675SRob Herring >; 167*724ba675SRob Herring }; 168*724ba675SRob Herring i2c3_pins: i2c3-pins { 169*724ba675SRob Herring pinctrl-single,pins = < 170*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0) /* i2c3_scl */ 171*724ba675SRob Herring OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0) /* i2c3_sda */ 172*724ba675SRob Herring >; 173*724ba675SRob Herring }; 174*724ba675SRob Herring}; 175*724ba675SRob Herring 176*724ba675SRob Herring&uart2 { 177*724ba675SRob Herring interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>; 178*724ba675SRob Herring pinctrl-names = "default"; 179*724ba675SRob Herring pinctrl-0 = <&uart2_pins>; 180*724ba675SRob Herring}; 181*724ba675SRob Herring 182*724ba675SRob Herring&mcspi1 { 183*724ba675SRob Herring pinctrl-names = "default"; 184*724ba675SRob Herring pinctrl-0 = <&mcspi1_pins>; 185*724ba675SRob Herring}; 186*724ba675SRob Herring 187*724ba675SRob Herring#include "twl4030.dtsi" 188*724ba675SRob Herring#include "twl4030_omap3.dtsi" 189*724ba675SRob Herring 190*724ba675SRob Herring&twl { 191*724ba675SRob Herring twl_power: power { 192*724ba675SRob Herring compatible = "ti,twl4030-power-idle-osc-off", "ti,twl4030-power-idle"; 193*724ba675SRob Herring ti,use_poweroff; 194*724ba675SRob Herring }; 195*724ba675SRob Herring}; 196*724ba675SRob Herring 197*724ba675SRob Herring&twl_gpio { 198*724ba675SRob Herring ti,use-leds; 199*724ba675SRob Herring}; 200*724ba675SRob Herring 201*724ba675SRob Herring&twl_keypad { 202*724ba675SRob Herring status = "disabled"; 203*724ba675SRob Herring}; 204