0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2016 Derald D. Woods <woods.technical@gmail.com>
0004 *
0005 * Based on am3517-evm.dts
0006 */
0007
0008 / {
0009 cpus {
0010 cpu@0 {
0011 cpu0-supply = <&vdd_core_reg>;
0012 };
0013 };
0014
0015 wl12xx_buffer: wl12xx_buf {
0016 compatible = "regulator-fixed";
0017 regulator-name = "wl1271_buf";
0018 regulator-min-microvolt = <1800000>;
0019 regulator-max-microvolt = <1800000>;
0020 pinctrl-names = "default";
0021 pinctrl-0 = <&wl12xx_buffer_pins>;
0022 gpio = <&gpio5 1 GPIO_ACTIVE_LOW>; /* gpio 129 */
0023 regulator-always-on;
0024 vin-supply = <&vdd_1v8_reg>;
0025 };
0026
0027 wl12xx_vmmc2: wl12xx_vmmc2 {
0028 compatible = "regulator-fixed";
0029 regulator-name = "vwl1271";
0030 regulator-min-microvolt = <1800000>;
0031 regulator-max-microvolt = <1800000>;
0032 pinctrl-names = "default";
0033 pinctrl-0 = <&wl12xx_wkup_pins>;
0034 gpio = <&gpio1 3 GPIO_ACTIVE_HIGH >; /* gpio 3 */
0035 startup-delay-us = <70000>;
0036 enable-active-high;
0037 regulator-always-on;
0038 vin-supply = <&wl12xx_buffer>;
0039 };
0040 };
0041
0042 &gpmc {
0043 ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
0044
0045 nand@0,0 {
0046 compatible = "ti,omap2-nand";
0047 linux,mtd-name = "micron,mt29f4g16abchch";
0048 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
0049 nand-bus-width = <16>;
0050 ti,nand-ecc-opt = "bch8";
0051 gpmc,sync-clk-ps = <0>;
0052 gpmc,cs-on-ns = <0>;
0053 gpmc,cs-rd-off-ns = <44>;
0054 gpmc,cs-wr-off-ns = <44>;
0055 gpmc,adv-on-ns = <6>;
0056 gpmc,adv-rd-off-ns = <34>;
0057 gpmc,adv-wr-off-ns = <44>;
0058 gpmc,we-off-ns = <40>;
0059 gpmc,oe-off-ns = <54>;
0060 gpmc,access-ns = <64>;
0061 gpmc,rd-cycle-ns = <82>;
0062 gpmc,wr-cycle-ns = <82>;
0063 gpmc,wr-access-ns = <40>;
0064 gpmc,wr-data-mux-bus-ns = <0>;
0065 gpmc,device-width = <2>;
0066 #address-cells = <1>;
0067 #size-cells = <1>;
0068 };
0069 };
0070
0071 &i2c1 {
0072 pinctrl-names = "default";
0073 pinctrl-0 = <&i2c1_pins>;
0074 clock-frequency = <400000>;
0075
0076 s35390a: s35390a@30 {
0077 compatible = "sii,s35390a";
0078 reg = <0x30>;
0079
0080 pinctrl-names = "default";
0081 pinctrl-0 = <&rtc_pins>;
0082 interrupts-extended = <&gpio2 23 IRQ_TYPE_EDGE_FALLING>; /* gpio_55 */
0083 };
0084
0085 tps: tps65023@48 {
0086 compatible = "ti,tps65023";
0087 reg = <0x48>;
0088
0089 regulators {
0090 vdd_core_reg: VDCDC1 {
0091 regulator-name = "vdd_core";
0092 regulator-always-on;
0093 regulator-min-microvolt = <1200000>;
0094 regulator-max-microvolt = <1200000>;
0095 };
0096
0097 vdd_io_reg: VDCDC2 {
0098 regulator-name = "vdd_io";
0099 regulator-always-on;
0100 regulator-min-microvolt = <3300000>;
0101 regulator-max-microvolt = <3300000>;
0102 };
0103
0104 vdd_1v8_reg: VDCDC3 {
0105 regulator-name = "vdd_1v8";
0106 regulator-always-on;
0107 regulator-min-microvolt = <1800000>;
0108 regulator-max-microvolt = <1800000>;
0109 };
0110
0111 vdd_usb18_reg: LDO1 {
0112 regulator-name = "vdd_usb18";
0113 regulator-always-on;
0114 regulator-min-microvolt = <1800000>;
0115 regulator-max-microvolt = <1800000>;
0116 };
0117
0118 vdd_usb33_reg: LDO2 {
0119 regulator-name = "vdd_usb33";
0120 regulator-always-on;
0121 regulator-min-microvolt = <3300000>;
0122 regulator-max-microvolt = <3300000>;
0123 };
0124 };
0125 };
0126
0127 touchscreen: tsc2004@4b {
0128 compatible = "ti,tsc2004";
0129 reg = <0x4b>;
0130
0131 vio-supply = <&vdd_io_reg>;
0132
0133 pinctrl-names = "default";
0134 pinctrl-0 = <&tsc2004_pins>;
0135 interrupts-extended = <&gpio3 1 IRQ_TYPE_EDGE_RISING>; /* gpio_65 */
0136
0137 touchscreen-fuzz-x = <4>;
0138 touchscreen-fuzz-y = <7>;
0139 touchscreen-fuzz-pressure = <2>;
0140 touchscreen-size-x = <480>;
0141 touchscreen-size-y = <272>;
0142 touchscreen-max-pressure = <2048>;
0143
0144 ti,x-plate-ohms = <280>;
0145 ti,esd-recovery-timeout-ms = <8000>;
0146 };
0147 };
0148
0149 &mmc2 {
0150 interrupts-extended = <&intc 86 /* &omap3_pmx_core 0x12c */>;
0151
0152 status = "okay";
0153 pinctrl-names = "default";
0154 pinctrl-0 = <&mmc2_pins>;
0155 vmmc-supply = <&wl12xx_vmmc2>;
0156 non-removable;
0157 bus-width = <4>;
0158 cap-power-off-card;
0159 #address-cells = <1>;
0160 #size-cells = <0>;
0161 wlcore: wlcore@2 {
0162 compatible = "ti,wl1271";
0163 reg = <2>;
0164 interrupt-parent = <&gpio6>;
0165 interrupts = <10 IRQ_TYPE_EDGE_RISING>; /* gpio_170 */
0166 ref-clock-frequency = <26000000>;
0167 tcxo-clock-frequency = <26000000>;
0168 };
0169 };
0170
0171 &uart2 {
0172 pinctrl-names = "default";
0173 pinctrl-0 = <&uart2_pins>;
0174
0175 bluetooth {
0176 compatible = "ti,wl1271-st";
0177 enable-gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>; /* gpio 56 */
0178 max-speed = <3000000>;
0179 };
0180 };
0181
0182 &omap3_pmx_core {
0183
0184 i2c1_pins: pinmux_i2c1_pins {
0185 pinctrl-single,pins = <
0186 OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
0187 OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
0188 >;
0189 };
0190
0191 wl12xx_buffer_pins: pinmux_wl12xx_buffer_pins {
0192 pinctrl-single,pins = <
0193 OMAP3_CORE1_IOPAD(0x2156, PIN_OUTPUT | MUX_MODE4) /* mmc1_dat7.gpio_129 */
0194 >;
0195 };
0196
0197 mmc2_pins: pinmux_mmc2_pins {
0198 pinctrl-single,pins = <
0199 OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc2_clk.mmc2_clk */
0200 OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc2_cmd.mmc2_cmd */
0201 OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc2_dat0.mmc2_dat0 */
0202 OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc2_dat1.mmc2_dat1 */
0203 OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc2_dat2.mmc2_dat2 */
0204 OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc2_dat3.mmc2_dat3 */
0205 OMAP3_CORE1_IOPAD(0x2164, PIN_OUTPUT | MUX_MODE1) /* mmc2_dat4.mmc2_dir_dat0 */
0206 OMAP3_CORE1_IOPAD(0x2166, PIN_OUTPUT | MUX_MODE1) /* mmc2_dat5.mmc2_dir_dat1 */
0207 OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT | MUX_MODE1) /* mmc2_dat6.mmc2_dir_cmd */
0208 OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT | MUX_MODE1) /* mmc2_dat7.mmc2_clkin */
0209 OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE4) /* hdq_sio.gpio_170 */
0210 >;
0211 };
0212
0213 rtc_pins: pinmux_rtc_pins {
0214 pinctrl-single,pins = <
0215 OMAP3_CORE1_IOPAD(0x20b6, PIN_INPUT_PULLUP | MUX_MODE4) /* gpmc_ncs4.gpio_55 */
0216 >;
0217 };
0218
0219 tsc2004_pins: pinmux_tsc2004_pins {
0220 pinctrl-single,pins = <
0221 OMAP3_CORE1_IOPAD(0x20d2, PIN_INPUT | MUX_MODE4) /* gpmc_wait3.gpio_65 */
0222 >;
0223 };
0224
0225 uart2_pins: pinmux_uart2_pins {
0226 pinctrl-single,pins = <
0227 OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_cts */
0228 OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT_PULLUP | MUX_MODE0) /* uart2_rts */
0229 OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx */
0230 OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx */
0231 OMAP3_CORE1_IOPAD(0x20b8, PIN_INPUT | MUX_MODE0) /* gpio_56 */
0232 >;
0233 };
0234 };
0235
0236 &omap3_pmx_wkup {
0237
0238 wl12xx_wkup_pins: pinmux_wl12xx_wkup_pins {
0239 pinctrl-single,pins = <
0240 OMAP3_WKUP_IOPAD(0x2a0c, PIN_OUTPUT | MUX_MODE4) /* sys_boot1.gpio_3 */
0241 >;
0242 };
0243 };