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