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