Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / omap3-gta04a5.dts
1 /*
2  * Copyright (C) 2014-18 H. Nikolaus Schaller <hns@goldelico.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
8
9 #include "omap3-gta04.dtsi"
10
11 / {
12         model = "Goldelico GTA04A5/Letux 2804";
13
14         sound {
15                 ti,jack-det-gpio = <&twl_gpio 2 GPIO_ACTIVE_HIGH>;      /* GTA04A5 only */
16         };
17
18         wlan_en: wlan_en_regulator {
19                 compatible = "regulator-fixed";
20                 pinctrl-names = "default";
21                 pinctrl-0 = <&wlan_pins>;
22                 regulator-name = "wlan-en-regulator";
23                 regulator-min-microvolt = <1800000>;
24                 regulator-max-microvolt = <1800000>;
25
26                 gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>;    /* GPIO_138 */
27
28                 startup-delay-us = <70000>;
29                 enable-active-high;
30         };
31
32         pps {
33                 compatible = "pps-gpio";
34                 pinctrl-names = "default";
35                 pinctrl-0 = <&pps_pins>;
36
37                 gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>; /* GPIN_114 */
38         };
39
40 };
41
42 &gpio5 {
43         irda_en {
44                 gpio-hog;
45                 gpios = <(175-160) GPIO_ACTIVE_HIGH>;
46                 output-high;    /* activate gpio_175 to disable IrDA receiver */
47         };
48 };
49
50 &omap3_pmx_core {
51         bt_pins: pinmux_bt_pins {
52                 pinctrl-single,pins = <
53                         OMAP3_CORE1_IOPAD(0x2166, PIN_OUTPUT | MUX_MODE4)       /* mmc2_dat5 = mmc3_dat1 = gpio137 */
54                 >;
55         };
56
57         wlan_pins: pinmux_wlan_pins {
58                 pinctrl-single,pins = <
59                         OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT | MUX_MODE4)       /* mmc2_dat6 = mmc3_dat2 = gpio138 */
60                 >;
61         };
62
63         wlan_irq_pin: pinmux_wlan_irq_pin {
64                 pinctrl-single,pins = <
65                         OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE4) /* mmc2_dat7 = mmc3_dat3 = gpio139 */
66                 >;
67         };
68
69         irda_pins: pinmux_irda {
70                 pinctrl-single,pins = <
71                         OMAP3_CORE1_IOPAD(0x21d0, PIN_OUTPUT_PULLUP | MUX_MODE4)        /* mcspi1_cs1 = gpio175 */
72                 >;
73         };
74
75         pps_pins: pinmux_pps_pins {
76                 pinctrl-single,pins = <
77                         OMAP3_CORE1_IOPAD(0x2138, PIN_INPUT | MUX_MODE4) /* gpin114 */
78                 >;
79         };
80
81 };
82
83 /*
84  * for WL183x module see
85  * http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/net/wireless/ti,wlcore.txt
86  */
87
88 &wifi_pwrseq {
89         /delete-property/ reset-gpios;
90 };
91
92 &mmc2 {
93         vmmc-supply = <&wlan_en>;
94         bus-width = <4>;
95         cap-power-off-card;
96         non-removable;
97
98         pinctrl-names = "default";
99         pinctrl-0 = <&wlan_irq_pin>;
100
101         #address-cells = <1>;
102         #size-cells = <0>;
103
104         /delete-property/ mmc-pwrseq;
105
106         wlcore: wlcore@2 {
107                 compatible = "ti,wl1837";
108                 reg = <2>;
109                 interrupt-parent = <&gpio5>;
110                 interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;  /* GPIO_139 */
111                 ref-clock-frequency = <26000000>;
112         };
113 };
114
115 &i2c2 {
116         /delete-node/ bmp085@77;
117         /delete-node/ bma180@41;
118         /delete-node/ itg3200@68;
119         /delete-node/ hmc5843@1e;
120
121         bmg160@69 {
122                 compatible = "bosch,bmg160";
123                 reg = <0x69>;
124         };
125
126         bmc150@10 {
127                 compatible = "bosch,bmc150_accel";
128                 reg = <0x10>;
129         };
130
131         bmc150@12 {
132                 compatible = "bosch,bmc150_magn";
133                 reg = <0x12>;
134         };
135
136         bme280@76 {
137                 compatible = "bosch,bme280";
138                 reg = <0x76>;
139         };
140 };