1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (C) 2016 Derald D. Woods <woods.technical@gmail.com> 4*f126890aSEmmanuel Vadot * 5*f126890aSEmmanuel Vadot * Based on am3517-evm.dts 6*f126890aSEmmanuel Vadot */ 7*f126890aSEmmanuel Vadot 8*f126890aSEmmanuel Vadot/ { 9*f126890aSEmmanuel Vadot cpus { 10*f126890aSEmmanuel Vadot cpu@0 { 11*f126890aSEmmanuel Vadot cpu0-supply = <&vdd_core_reg>; 12*f126890aSEmmanuel Vadot }; 13*f126890aSEmmanuel Vadot }; 14*f126890aSEmmanuel Vadot 15*f126890aSEmmanuel Vadot wl12xx_buffer: wl12xx_buf { 16*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 17*f126890aSEmmanuel Vadot regulator-name = "wl1271_buf"; 18*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 19*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 20*f126890aSEmmanuel Vadot pinctrl-names = "default"; 21*f126890aSEmmanuel Vadot pinctrl-0 = <&wl12xx_buffer_pins>; 22*f126890aSEmmanuel Vadot gpio = <&gpio5 1 GPIO_ACTIVE_LOW>; /* gpio 129 */ 23*f126890aSEmmanuel Vadot regulator-always-on; 24*f126890aSEmmanuel Vadot vin-supply = <&vdd_1v8_reg>; 25*f126890aSEmmanuel Vadot }; 26*f126890aSEmmanuel Vadot 27*f126890aSEmmanuel Vadot wl12xx_vmmc2: wl12xx_vmmc2 { 28*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 29*f126890aSEmmanuel Vadot regulator-name = "vwl1271"; 30*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 31*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 32*f126890aSEmmanuel Vadot pinctrl-names = "default"; 33*f126890aSEmmanuel Vadot pinctrl-0 = <&wl12xx_wkup_pins>; 34*f126890aSEmmanuel Vadot gpio = <&gpio1 3 GPIO_ACTIVE_HIGH >; /* gpio 3 */ 35*f126890aSEmmanuel Vadot startup-delay-us = <70000>; 36*f126890aSEmmanuel Vadot enable-active-high; 37*f126890aSEmmanuel Vadot regulator-always-on; 38*f126890aSEmmanuel Vadot vin-supply = <&wl12xx_buffer>; 39*f126890aSEmmanuel Vadot }; 40*f126890aSEmmanuel Vadot}; 41*f126890aSEmmanuel Vadot 42*f126890aSEmmanuel Vadot&gpmc { 43*f126890aSEmmanuel Vadot ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */ 44*f126890aSEmmanuel Vadot 45*f126890aSEmmanuel Vadot nand@0,0 { 46*f126890aSEmmanuel Vadot compatible = "ti,omap2-nand"; 47*f126890aSEmmanuel Vadot linux,mtd-name = "micron,mt29f4g16abchch"; 48*f126890aSEmmanuel Vadot reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ 49*f126890aSEmmanuel Vadot nand-bus-width = <16>; 50*f126890aSEmmanuel Vadot ti,nand-ecc-opt = "bch8"; 51*f126890aSEmmanuel Vadot gpmc,sync-clk-ps = <0>; 52*f126890aSEmmanuel Vadot gpmc,cs-on-ns = <0>; 53*f126890aSEmmanuel Vadot gpmc,cs-rd-off-ns = <44>; 54*f126890aSEmmanuel Vadot gpmc,cs-wr-off-ns = <44>; 55*f126890aSEmmanuel Vadot gpmc,adv-on-ns = <6>; 56*f126890aSEmmanuel Vadot gpmc,adv-rd-off-ns = <34>; 57*f126890aSEmmanuel Vadot gpmc,adv-wr-off-ns = <44>; 58*f126890aSEmmanuel Vadot gpmc,we-off-ns = <40>; 59*f126890aSEmmanuel Vadot gpmc,oe-off-ns = <54>; 60*f126890aSEmmanuel Vadot gpmc,access-ns = <64>; 61*f126890aSEmmanuel Vadot gpmc,rd-cycle-ns = <82>; 62*f126890aSEmmanuel Vadot gpmc,wr-cycle-ns = <82>; 63*f126890aSEmmanuel Vadot gpmc,wr-access-ns = <40>; 64*f126890aSEmmanuel Vadot gpmc,wr-data-mux-bus-ns = <0>; 65*f126890aSEmmanuel Vadot gpmc,device-width = <2>; 66*f126890aSEmmanuel Vadot #address-cells = <1>; 67*f126890aSEmmanuel Vadot #size-cells = <1>; 68*f126890aSEmmanuel Vadot }; 69*f126890aSEmmanuel Vadot}; 70*f126890aSEmmanuel Vadot 71*f126890aSEmmanuel Vadot&i2c1 { 72*f126890aSEmmanuel Vadot pinctrl-names = "default"; 73*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c1_pins>; 74*f126890aSEmmanuel Vadot clock-frequency = <400000>; 75*f126890aSEmmanuel Vadot 76*f126890aSEmmanuel Vadot s35390a: s35390a@30 { 77*f126890aSEmmanuel Vadot compatible = "sii,s35390a"; 78*f126890aSEmmanuel Vadot reg = <0x30>; 79*f126890aSEmmanuel Vadot 80*f126890aSEmmanuel Vadot pinctrl-names = "default"; 81*f126890aSEmmanuel Vadot pinctrl-0 = <&rtc_pins>; 82*f126890aSEmmanuel Vadot interrupts-extended = <&gpio2 23 IRQ_TYPE_EDGE_FALLING>; /* gpio_55 */ 83*f126890aSEmmanuel Vadot }; 84*f126890aSEmmanuel Vadot 85*f126890aSEmmanuel Vadot tps: tps65023@48 { 86*f126890aSEmmanuel Vadot compatible = "ti,tps65023"; 87*f126890aSEmmanuel Vadot reg = <0x48>; 88*f126890aSEmmanuel Vadot 89*f126890aSEmmanuel Vadot regulators { 90*f126890aSEmmanuel Vadot vdd_core_reg: VDCDC1 { 91*f126890aSEmmanuel Vadot regulator-name = "vdd_core"; 92*f126890aSEmmanuel Vadot regulator-always-on; 93*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 94*f126890aSEmmanuel Vadot regulator-max-microvolt = <1200000>; 95*f126890aSEmmanuel Vadot }; 96*f126890aSEmmanuel Vadot 97*f126890aSEmmanuel Vadot vdd_io_reg: VDCDC2 { 98*f126890aSEmmanuel Vadot regulator-name = "vdd_io"; 99*f126890aSEmmanuel Vadot regulator-always-on; 100*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 101*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 102*f126890aSEmmanuel Vadot }; 103*f126890aSEmmanuel Vadot 104*f126890aSEmmanuel Vadot vdd_1v8_reg: VDCDC3 { 105*f126890aSEmmanuel Vadot regulator-name = "vdd_1v8"; 106*f126890aSEmmanuel Vadot regulator-always-on; 107*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 108*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 109*f126890aSEmmanuel Vadot }; 110*f126890aSEmmanuel Vadot 111*f126890aSEmmanuel Vadot vdd_usb18_reg: LDO1 { 112*f126890aSEmmanuel Vadot regulator-name = "vdd_usb18"; 113*f126890aSEmmanuel Vadot regulator-always-on; 114*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 115*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 116*f126890aSEmmanuel Vadot }; 117*f126890aSEmmanuel Vadot 118*f126890aSEmmanuel Vadot vdd_usb33_reg: LDO2 { 119*f126890aSEmmanuel Vadot regulator-name = "vdd_usb33"; 120*f126890aSEmmanuel Vadot regulator-always-on; 121*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 122*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 123*f126890aSEmmanuel Vadot }; 124*f126890aSEmmanuel Vadot }; 125*f126890aSEmmanuel Vadot }; 126*f126890aSEmmanuel Vadot 127*f126890aSEmmanuel Vadot touchscreen: tsc2004@4b { 128*f126890aSEmmanuel Vadot compatible = "ti,tsc2004"; 129*f126890aSEmmanuel Vadot reg = <0x4b>; 130*f126890aSEmmanuel Vadot 131*f126890aSEmmanuel Vadot vio-supply = <&vdd_io_reg>; 132*f126890aSEmmanuel Vadot 133*f126890aSEmmanuel Vadot pinctrl-names = "default"; 134*f126890aSEmmanuel Vadot pinctrl-0 = <&tsc2004_pins>; 135*f126890aSEmmanuel Vadot interrupts-extended = <&gpio3 1 IRQ_TYPE_EDGE_RISING>; /* gpio_65 */ 136*f126890aSEmmanuel Vadot 137*f126890aSEmmanuel Vadot touchscreen-fuzz-x = <4>; 138*f126890aSEmmanuel Vadot touchscreen-fuzz-y = <7>; 139*f126890aSEmmanuel Vadot touchscreen-fuzz-pressure = <2>; 140*f126890aSEmmanuel Vadot touchscreen-size-x = <480>; 141*f126890aSEmmanuel Vadot touchscreen-size-y = <272>; 142*f126890aSEmmanuel Vadot touchscreen-max-pressure = <2048>; 143*f126890aSEmmanuel Vadot 144*f126890aSEmmanuel Vadot ti,x-plate-ohms = <280>; 145*f126890aSEmmanuel Vadot ti,esd-recovery-timeout-ms = <8000>; 146*f126890aSEmmanuel Vadot }; 147*f126890aSEmmanuel Vadot}; 148*f126890aSEmmanuel Vadot 149*f126890aSEmmanuel Vadot&mmc2 { 150*f126890aSEmmanuel Vadot interrupts-extended = <&intc 86 /* &omap3_pmx_core 0x12c */>; 151*f126890aSEmmanuel Vadot 152*f126890aSEmmanuel Vadot status = "okay"; 153*f126890aSEmmanuel Vadot pinctrl-names = "default"; 154*f126890aSEmmanuel Vadot pinctrl-0 = <&mmc2_pins>; 155*f126890aSEmmanuel Vadot vmmc-supply = <&wl12xx_vmmc2>; 156*f126890aSEmmanuel Vadot non-removable; 157*f126890aSEmmanuel Vadot bus-width = <4>; 158*f126890aSEmmanuel Vadot cap-power-off-card; 159*f126890aSEmmanuel Vadot #address-cells = <1>; 160*f126890aSEmmanuel Vadot #size-cells = <0>; 161*f126890aSEmmanuel Vadot wlcore: wlcore@2 { 162*f126890aSEmmanuel Vadot compatible = "ti,wl1271"; 163*f126890aSEmmanuel Vadot reg = <2>; 164*f126890aSEmmanuel Vadot interrupt-parent = <&gpio6>; 165*f126890aSEmmanuel Vadot interrupts = <10 IRQ_TYPE_EDGE_RISING>; /* gpio_170 */ 166*f126890aSEmmanuel Vadot ref-clock-frequency = <26000000>; 167*f126890aSEmmanuel Vadot tcxo-clock-frequency = <26000000>; 168*f126890aSEmmanuel Vadot }; 169*f126890aSEmmanuel Vadot}; 170*f126890aSEmmanuel Vadot 171*f126890aSEmmanuel Vadot&uart2 { 172*f126890aSEmmanuel Vadot pinctrl-names = "default"; 173*f126890aSEmmanuel Vadot pinctrl-0 = <&uart2_pins>; 174*f126890aSEmmanuel Vadot 175*f126890aSEmmanuel Vadot bluetooth { 176*f126890aSEmmanuel Vadot compatible = "ti,wl1271-st"; 177*f126890aSEmmanuel Vadot enable-gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>; /* gpio 56 */ 178*f126890aSEmmanuel Vadot max-speed = <3000000>; 179*f126890aSEmmanuel Vadot }; 180*f126890aSEmmanuel Vadot}; 181*f126890aSEmmanuel Vadot 182*f126890aSEmmanuel Vadot&omap3_pmx_core { 183*f126890aSEmmanuel Vadot 184*f126890aSEmmanuel Vadot i2c1_pins: i2c1-pins { 185*f126890aSEmmanuel Vadot pinctrl-single,pins = < 186*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */ 187*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */ 188*f126890aSEmmanuel Vadot >; 189*f126890aSEmmanuel Vadot }; 190*f126890aSEmmanuel Vadot 191*f126890aSEmmanuel Vadot wl12xx_buffer_pins: wl12xx-buffer-pins { 192*f126890aSEmmanuel Vadot pinctrl-single,pins = < 193*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x2156, PIN_OUTPUT | MUX_MODE4) /* mmc1_dat7.gpio_129 */ 194*f126890aSEmmanuel Vadot >; 195*f126890aSEmmanuel Vadot }; 196*f126890aSEmmanuel Vadot 197*f126890aSEmmanuel Vadot mmc2_pins: mmc2-pins { 198*f126890aSEmmanuel Vadot pinctrl-single,pins = < 199*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc2_clk.mmc2_clk */ 200*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc2_cmd.mmc2_cmd */ 201*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc2_dat0.mmc2_dat0 */ 202*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc2_dat1.mmc2_dat1 */ 203*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc2_dat2.mmc2_dat2 */ 204*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc2_dat3.mmc2_dat3 */ 205*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x2164, PIN_OUTPUT | MUX_MODE1) /* mmc2_dat4.mmc2_dir_dat0 */ 206*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x2166, PIN_OUTPUT | MUX_MODE1) /* mmc2_dat5.mmc2_dir_dat1 */ 207*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT | MUX_MODE1) /* mmc2_dat6.mmc2_dir_cmd */ 208*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT | MUX_MODE1) /* mmc2_dat7.mmc2_clkin */ 209*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE4) /* hdq_sio.gpio_170 */ 210*f126890aSEmmanuel Vadot >; 211*f126890aSEmmanuel Vadot }; 212*f126890aSEmmanuel Vadot 213*f126890aSEmmanuel Vadot rtc_pins: rtc-pins { 214*f126890aSEmmanuel Vadot pinctrl-single,pins = < 215*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x20b6, PIN_INPUT_PULLUP | MUX_MODE4) /* gpmc_ncs4.gpio_55 */ 216*f126890aSEmmanuel Vadot >; 217*f126890aSEmmanuel Vadot }; 218*f126890aSEmmanuel Vadot 219*f126890aSEmmanuel Vadot tsc2004_pins: tsc2004-pins { 220*f126890aSEmmanuel Vadot pinctrl-single,pins = < 221*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x20d2, PIN_INPUT | MUX_MODE4) /* gpmc_wait3.gpio_65 */ 222*f126890aSEmmanuel Vadot >; 223*f126890aSEmmanuel Vadot }; 224*f126890aSEmmanuel Vadot 225*f126890aSEmmanuel Vadot uart2_pins: uart2-pins { 226*f126890aSEmmanuel Vadot pinctrl-single,pins = < 227*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_cts */ 228*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT_PULLUP | MUX_MODE0) /* uart2_rts */ 229*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx */ 230*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx */ 231*f126890aSEmmanuel Vadot OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT | MUX_MODE0) /* gpio_56 */ 232*f126890aSEmmanuel Vadot >; 233*f126890aSEmmanuel Vadot }; 234*f126890aSEmmanuel Vadot}; 235*f126890aSEmmanuel Vadot 236*f126890aSEmmanuel Vadot&omap3_pmx_wkup { 237*f126890aSEmmanuel Vadot 238*f126890aSEmmanuel Vadot wl12xx_wkup_pins: wl12xx-wkup-pins { 239*f126890aSEmmanuel Vadot pinctrl-single,pins = < 240*f126890aSEmmanuel Vadot OMAP3_WKUP_IOPAD(0x2a0c, PIN_OUTPUT | MUX_MODE4) /* sys_boot1.gpio_3 */ 241*f126890aSEmmanuel Vadot >; 242*f126890aSEmmanuel Vadot }; 243*f126890aSEmmanuel Vadot}; 244