xref: /freebsd/sys/contrib/device-tree/src/arm/ti/omap/omap3-gta04a5.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2014-18 H. Nikolaus Schaller <hns@goldelico.com>
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot#include "omap3-gta04.dtsi"
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot/ {
9*f126890aSEmmanuel Vadot	model = "Goldelico GTA04A5/Letux 2804";
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot	sound {
12*f126890aSEmmanuel Vadot		ti,jack-det-gpio = <&twl_gpio 2 GPIO_ACTIVE_HIGH>;	/* GTA04A5 only */
13*f126890aSEmmanuel Vadot	};
14*f126890aSEmmanuel Vadot
15*f126890aSEmmanuel Vadot	wlan_en: wlan_en_regulator {
16*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
17*f126890aSEmmanuel Vadot		pinctrl-names = "default";
18*f126890aSEmmanuel Vadot		pinctrl-0 = <&wlan_pins>;
19*f126890aSEmmanuel Vadot		regulator-name = "wlan-en-regulator";
20*f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
21*f126890aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot		gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>;	/* GPIO_138 */
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot		startup-delay-us = <70000>;
26*f126890aSEmmanuel Vadot		enable-active-high;
27*f126890aSEmmanuel Vadot	};
28*f126890aSEmmanuel Vadot
29*f126890aSEmmanuel Vadot	pps {
30*f126890aSEmmanuel Vadot		compatible = "pps-gpio";
31*f126890aSEmmanuel Vadot		pinctrl-names = "default";
32*f126890aSEmmanuel Vadot		pinctrl-0 = <&pps_pins>;
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot		gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>; /* GPIN_114 */
35*f126890aSEmmanuel Vadot	};
36*f126890aSEmmanuel Vadot
37*f126890aSEmmanuel Vadot};
38*f126890aSEmmanuel Vadot
39*f126890aSEmmanuel Vadot&gpio5 {
40*f126890aSEmmanuel Vadot	irda-en-hog {
41*f126890aSEmmanuel Vadot		gpio-hog;
42*f126890aSEmmanuel Vadot		gpios = <(175-160) GPIO_ACTIVE_HIGH>;
43*f126890aSEmmanuel Vadot		output-high;	/* activate gpio_175 to disable IrDA receiver */
44*f126890aSEmmanuel Vadot	};
45*f126890aSEmmanuel Vadot};
46*f126890aSEmmanuel Vadot
47*f126890aSEmmanuel Vadot&omap3_pmx_core {
48*f126890aSEmmanuel Vadot	bt_pins: bt-pins {
49*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
50*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2166, PIN_OUTPUT | MUX_MODE4)	/* mmc2_dat5 = mmc3_dat1 = gpio137 */
51*f126890aSEmmanuel Vadot		>;
52*f126890aSEmmanuel Vadot	};
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot	wlan_pins: wlan-pins {
55*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
56*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT | MUX_MODE4)	/* mmc2_dat6 = mmc3_dat2 = gpio138 */
57*f126890aSEmmanuel Vadot		>;
58*f126890aSEmmanuel Vadot	};
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot	wlan_irq_pin: wlan-irq-pins {
61*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
62*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE4)	/* mmc2_dat7 = mmc3_dat3 = gpio139 */
63*f126890aSEmmanuel Vadot		>;
64*f126890aSEmmanuel Vadot	};
65*f126890aSEmmanuel Vadot
66*f126890aSEmmanuel Vadot	irda_pins: irda-pins {
67*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
68*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21d0, PIN_OUTPUT_PULLUP | MUX_MODE4)	/* mcspi1_cs1 = gpio175 */
69*f126890aSEmmanuel Vadot		>;
70*f126890aSEmmanuel Vadot	};
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot	pps_pins: pps-pins {
73*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
74*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2138, PIN_INPUT | MUX_MODE4) /* gpin114 */
75*f126890aSEmmanuel Vadot		>;
76*f126890aSEmmanuel Vadot	};
77*f126890aSEmmanuel Vadot
78*f126890aSEmmanuel Vadot	bno050_pins: pinmux-bno050-pins {
79*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
80*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2136, PIN_INPUT | MUX_MODE4) /* gpin113 */
81*f126890aSEmmanuel Vadot		>;
82*f126890aSEmmanuel Vadot	};
83*f126890aSEmmanuel Vadot};
84*f126890aSEmmanuel Vadot
85*f126890aSEmmanuel Vadot/*
86*f126890aSEmmanuel Vadot * for WL183x module see
87*f126890aSEmmanuel Vadot * Documentation/devicetree/bindings/net/wireless/ti,wlcore.yaml
88*f126890aSEmmanuel Vadot */
89*f126890aSEmmanuel Vadot
90*f126890aSEmmanuel Vadot&wifi_pwrseq {
91*f126890aSEmmanuel Vadot	/delete-property/ reset-gpios;
92*f126890aSEmmanuel Vadot};
93*f126890aSEmmanuel Vadot
94*f126890aSEmmanuel Vadot&mmc2 {
95*f126890aSEmmanuel Vadot	vmmc-supply = <&wlan_en>;
96*f126890aSEmmanuel Vadot	bus-width = <4>;
97*f126890aSEmmanuel Vadot	cap-power-off-card;
98*f126890aSEmmanuel Vadot	non-removable;
99*f126890aSEmmanuel Vadot
100*f126890aSEmmanuel Vadot	pinctrl-names = "default";
101*f126890aSEmmanuel Vadot	pinctrl-0 = <&wlan_irq_pin>;
102*f126890aSEmmanuel Vadot
103*f126890aSEmmanuel Vadot	#address-cells = <1>;
104*f126890aSEmmanuel Vadot	#size-cells = <0>;
105*f126890aSEmmanuel Vadot
106*f126890aSEmmanuel Vadot	/delete-property/ mmc-pwrseq;
107*f126890aSEmmanuel Vadot
108*f126890aSEmmanuel Vadot	wlcore: wlcore@2 {
109*f126890aSEmmanuel Vadot		compatible = "ti,wl1837";
110*f126890aSEmmanuel Vadot		reg = <2>;
111*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio5>;
112*f126890aSEmmanuel Vadot		interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;	/* GPIO_139 */
113*f126890aSEmmanuel Vadot		ref-clock-frequency = <26000000>;
114*f126890aSEmmanuel Vadot	};
115*f126890aSEmmanuel Vadot};
116*f126890aSEmmanuel Vadot
117*f126890aSEmmanuel Vadot&i2c2 {
118*f126890aSEmmanuel Vadot	/delete-node/ bmp085@77;
119*f126890aSEmmanuel Vadot	/delete-node/ bma180@41;
120*f126890aSEmmanuel Vadot	/delete-node/ itg3200@68;
121*f126890aSEmmanuel Vadot	/delete-node/ hmc5843@1e;
122*f126890aSEmmanuel Vadot
123*f126890aSEmmanuel Vadot	gyrometer@69 {
124*f126890aSEmmanuel Vadot		compatible = "bosch,bmg160";
125*f126890aSEmmanuel Vadot		reg = <0x69>;
126*f126890aSEmmanuel Vadot	};
127*f126890aSEmmanuel Vadot
128*f126890aSEmmanuel Vadot	accelerometer@10 {
129*f126890aSEmmanuel Vadot		compatible = "bosch,bmc150_accel";
130*f126890aSEmmanuel Vadot		reg = <0x10>;
131*f126890aSEmmanuel Vadot	};
132*f126890aSEmmanuel Vadot
133*f126890aSEmmanuel Vadot	magnetometer@12 {
134*f126890aSEmmanuel Vadot		compatible = "bosch,bmc150_magn";
135*f126890aSEmmanuel Vadot		reg = <0x12>;
136*f126890aSEmmanuel Vadot	};
137*f126890aSEmmanuel Vadot
138*f126890aSEmmanuel Vadot	bme280@76 {
139*f126890aSEmmanuel Vadot		compatible = "bosch,bme280";
140*f126890aSEmmanuel Vadot		reg = <0x76>;
141*f126890aSEmmanuel Vadot		vdda-supply = <&vio>;
142*f126890aSEmmanuel Vadot		vddd-supply = <&vio>;
143*f126890aSEmmanuel Vadot	};
144*f126890aSEmmanuel Vadot
145*f126890aSEmmanuel Vadot	imu@29 {
146*f126890aSEmmanuel Vadot		compatible = "bosch,bno055";
147*f126890aSEmmanuel Vadot		reg = <0x29>;
148*f126890aSEmmanuel Vadot		pinctrl-names = "default";
149*f126890aSEmmanuel Vadot		pinctrl-0 = <&bno050_pins>;
150*f126890aSEmmanuel Vadot		/* interrupt at &gpio4 17 */
151*f126890aSEmmanuel Vadot	};
152*f126890aSEmmanuel Vadot};
153