0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2014-18 H. Nikolaus Schaller <hns@goldelico.com>
0004 */
0005
0006 #include "omap3-gta04.dtsi"
0007
0008 / {
0009 model = "Goldelico GTA04A5/Letux 2804";
0010
0011 sound {
0012 ti,jack-det-gpio = <&twl_gpio 2 GPIO_ACTIVE_HIGH>; /* GTA04A5 only */
0013 };
0014
0015 wlan_en: wlan_en_regulator {
0016 compatible = "regulator-fixed";
0017 pinctrl-names = "default";
0018 pinctrl-0 = <&wlan_pins>;
0019 regulator-name = "wlan-en-regulator";
0020 regulator-min-microvolt = <1800000>;
0021 regulator-max-microvolt = <1800000>;
0022
0023 gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>; /* GPIO_138 */
0024
0025 startup-delay-us = <70000>;
0026 enable-active-high;
0027 };
0028
0029 pps {
0030 compatible = "pps-gpio";
0031 pinctrl-names = "default";
0032 pinctrl-0 = <&pps_pins>;
0033
0034 gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>; /* GPIN_114 */
0035 };
0036
0037 };
0038
0039 &gpio5 {
0040 irda-en-hog {
0041 gpio-hog;
0042 gpios = <(175-160) GPIO_ACTIVE_HIGH>;
0043 output-high; /* activate gpio_175 to disable IrDA receiver */
0044 };
0045 };
0046
0047 &omap3_pmx_core {
0048 bt_pins: pinmux_bt_pins {
0049 pinctrl-single,pins = <
0050 OMAP3_CORE1_IOPAD(0x2166, PIN_OUTPUT | MUX_MODE4) /* mmc2_dat5 = mmc3_dat1 = gpio137 */
0051 >;
0052 };
0053
0054 wlan_pins: pinmux_wlan_pins {
0055 pinctrl-single,pins = <
0056 OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT | MUX_MODE4) /* mmc2_dat6 = mmc3_dat2 = gpio138 */
0057 >;
0058 };
0059
0060 wlan_irq_pin: pinmux_wlan_irq_pin {
0061 pinctrl-single,pins = <
0062 OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE4) /* mmc2_dat7 = mmc3_dat3 = gpio139 */
0063 >;
0064 };
0065
0066 irda_pins: pinmux_irda {
0067 pinctrl-single,pins = <
0068 OMAP3_CORE1_IOPAD(0x21d0, PIN_OUTPUT_PULLUP | MUX_MODE4) /* mcspi1_cs1 = gpio175 */
0069 >;
0070 };
0071
0072 pps_pins: pinmux_pps_pins {
0073 pinctrl-single,pins = <
0074 OMAP3_CORE1_IOPAD(0x2138, PIN_INPUT | MUX_MODE4) /* gpin114 */
0075 >;
0076 };
0077
0078 };
0079
0080 /*
0081 * for WL183x module see
0082 * Documentation/devicetree/bindings/net/wireless/ti,wlcore.yaml
0083 */
0084
0085 &wifi_pwrseq {
0086 /delete-property/ reset-gpios;
0087 };
0088
0089 &mmc2 {
0090 vmmc-supply = <&wlan_en>;
0091 bus-width = <4>;
0092 cap-power-off-card;
0093 non-removable;
0094
0095 pinctrl-names = "default";
0096 pinctrl-0 = <&wlan_irq_pin>;
0097
0098 #address-cells = <1>;
0099 #size-cells = <0>;
0100
0101 /delete-property/ mmc-pwrseq;
0102
0103 wlcore: wlcore@2 {
0104 compatible = "ti,wl1837";
0105 reg = <2>;
0106 interrupt-parent = <&gpio5>;
0107 interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; /* GPIO_139 */
0108 ref-clock-frequency = <26000000>;
0109 };
0110 };
0111
0112 &i2c2 {
0113 /delete-node/ bmp085@77;
0114 /delete-node/ bma180@41;
0115 /delete-node/ itg3200@68;
0116 /delete-node/ hmc5843@1e;
0117
0118 bmg160@69 {
0119 compatible = "bosch,bmg160";
0120 reg = <0x69>;
0121 };
0122
0123 bmc150@10 {
0124 compatible = "bosch,bmc150_accel";
0125 reg = <0x10>;
0126 };
0127
0128 bmc150@12 {
0129 compatible = "bosch,bmc150_magn";
0130 reg = <0x12>;
0131 };
0132
0133 bme280@76 {
0134 compatible = "bosch,bme280";
0135 reg = <0x76>;
0136 vdda-supply = <&vio>;
0137 vddd-supply = <&vio>;
0138 };
0139 };