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