~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/arm/st/ste-ux500-samsung-codina-tmo.dts

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /scripts/dtc/include-prefixes/arm/st/ste-ux500-samsung-codina-tmo.dts (Version linux-6.12-rc7) and /scripts/dtc/include-prefixes/arm/st/ste-ux500-samsung-codina-tmo.dts (Version linux-6.9.12)


  1 // SPDX-License-Identifier: GPL-2.0-only            1 // SPDX-License-Identifier: GPL-2.0-only
  2 /*                                                  2 /*
  3  * Devicetree for the Samsung Galaxy Exhibit S      3  * Devicetree for the Samsung Galaxy Exhibit SGH-T599 also known as Codina-TMO,
  4  * the "TMO" shall be read "T-Mobile" as this       4  * the "TMO" shall be read "T-Mobile" as this phone was produced exlusively
  5  * for T-Mobile in the United States.               5  * for T-Mobile in the United States.
  6  *                                                  6  *
  7  * This phone is closely related to the Codina      7  * This phone is closely related to the Codina, but has:
  8  * - No CPU speed cap, full ~1GHz rate              8  * - No CPU speed cap, full ~1GHz rate
  9  * - Different power management IC, AB8505          9  * - Different power management IC, AB8505
 10  * - As AB8505 has a micro USB phy, no TI TSU6     10  * - As AB8505 has a micro USB phy, no TI TSU6111
 11  * - Different power routing such as the remov     11  * - Different power routing such as the removal of the external LDO for the
 12  *   touchscreen in favor of using the AB8505      12  *   touchscreen in favor of using the AB8505
 13  * - Using a regulator for the key backlight L     13  * - Using a regulator for the key backlight LED
 14  * - Using the Samsung S6D27A1 panel by defaul     14  * - Using the Samsung S6D27A1 panel by default
 15  * - The panel is using one of the ordinary AB     15  * - The panel is using one of the ordinary AB8505 regulators for 1.8V
 16  * - WiFi/Bluetooth combi chip upgraded to BCM     16  * - WiFi/Bluetooth combi chip upgraded to BCM4334
 17  * - GPIO for backlight control moved from 68      17  * - GPIO for backlight control moved from 68 to 69
 18  */                                                18  */
 19                                                    19 
 20 /dts-v1/;                                          20 /dts-v1/;
 21 #include "ste-db8500.dtsi"                         21 #include "ste-db8500.dtsi"
 22 #include "ste-ab8505.dtsi"                         22 #include "ste-ab8505.dtsi"
 23 #include "ste-dbx5x0-pinctrl.dtsi"                 23 #include "ste-dbx5x0-pinctrl.dtsi"
 24 #include <dt-bindings/gpio/gpio.h>                 24 #include <dt-bindings/gpio/gpio.h>
 25 #include <dt-bindings/leds/common.h>               25 #include <dt-bindings/leds/common.h>
 26 #include <dt-bindings/input/input.h>               26 #include <dt-bindings/input/input.h>
 27 #include <dt-bindings/interrupt-controller/irq     27 #include <dt-bindings/interrupt-controller/irq.h>
 28                                                    28 
 29 / {                                                29 / {
 30         model = "Samsung Galaxy Exhibit (SGH-T     30         model = "Samsung Galaxy Exhibit (SGH-T599)";
 31         compatible = "samsung,codina-tmo", "st     31         compatible = "samsung,codina-tmo", "st-ericsson,u8500";
 32                                                    32 
 33         chosen {                                   33         chosen {
 34                 stdout-path = &serial2;            34                 stdout-path = &serial2;
 35         };                                         35         };
 36                                                    36 
 37         battery: battery {                         37         battery: battery {
 38                 compatible = "samsung,eb425161     38                 compatible = "samsung,eb425161lu";
 39         };                                         39         };
 40                                                    40 
 41         thermal-zones {                            41         thermal-zones {
 42                 battery-thermal {                  42                 battery-thermal {
 43                         /* This zone will be p     43                         /* This zone will be polled by the battery temperature code */
 44                         polling-delay = <0>;       44                         polling-delay = <0>;
 45                         polling-delay-passive      45                         polling-delay-passive = <0>;
 46                         thermal-sensors = <&ba     46                         thermal-sensors = <&bat_therm>;
 47                                                    47 
 48                         trips {                    48                         trips {
 49                                 battery-crit-h     49                                 battery-crit-hi {
 50                                         temper     50                                         temperature = <70000>;
 51                                         hyster     51                                         hysteresis = <2000>;
 52                                         type =     52                                         type = "critical";
 53                                 };                 53                                 };
 54                         };                         54                         };
 55                 };                                 55                 };
 56         };                                         56         };
 57                                                    57 
 58         bat_therm: thermistor {                    58         bat_therm: thermistor {
 59                 compatible = "samsung,1404-001     59                 compatible = "samsung,1404-001221";
 60                 io-channels = <&gpadc 0x02>; /     60                 io-channels = <&gpadc 0x02>; /* BatTemp */
 61                 pullup-uv = <1800000>;             61                 pullup-uv = <1800000>;
 62                 pullup-ohm = <230000>;             62                 pullup-ohm = <230000>;
 63                 pulldown-ohm = <0>;                63                 pulldown-ohm = <0>;
 64                 #thermal-sensor-cells = <0>;       64                 #thermal-sensor-cells = <0>;
 65         };                                         65         };
 66                                                    66 
 67         /* TI TXS0206 level translator for 2.9     67         /* TI TXS0206 level translator for 2.9 V */
 68         sd_level_translator: regulator-gpio {      68         sd_level_translator: regulator-gpio {
 69                 compatible = "regulator-fixed"     69                 compatible = "regulator-fixed";
 70                                                    70 
 71                 /* GPIO87 EN */                    71                 /* GPIO87 EN */
 72                 gpios = <&gpio2 23 GPIO_ACTIVE     72                 gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>;
 73                 enable-active-high;                73                 enable-active-high;
 74                                                    74 
 75                 regulator-name = "sd-level-tra     75                 regulator-name = "sd-level-translator";
 76                 regulator-min-microvolt = <290     76                 regulator-min-microvolt = <2900000>;
 77                 regulator-max-microvolt = <290     77                 regulator-max-microvolt = <2900000>;
 78                 regulator-type = "voltage";        78                 regulator-type = "voltage";
 79                                                    79 
 80                 startup-delay-us = <200>;          80                 startup-delay-us = <200>;
 81                                                    81 
 82                 pinctrl-names = "default";         82                 pinctrl-names = "default";
 83                 pinctrl-0 = <&sd_level_transla     83                 pinctrl-0 = <&sd_level_translator_default>;
 84         };                                         84         };
 85                                                    85 
 86         /* External LDO MIC5366-3.3YMT for eMM     86         /* External LDO MIC5366-3.3YMT for eMMC */
 87         ldo_3v3_reg: regulator-gpio-ldo-3v3 {      87         ldo_3v3_reg: regulator-gpio-ldo-3v3 {
 88                 compatible = "regulator-fixed"     88                 compatible = "regulator-fixed";
 89                 /* Supplied in turn by VBAT */     89                 /* Supplied in turn by VBAT */
 90                 regulator-name = "VMEM_3V3";       90                 regulator-name = "VMEM_3V3";
 91                 regulator-min-microvolt = <330     91                 regulator-min-microvolt = <3300000>;
 92                 regulator-max-microvolt = <330     92                 regulator-max-microvolt = <3300000>;
 93                 gpios = <&gpio6 31 GPIO_ACTIVE     93                 gpios = <&gpio6 31 GPIO_ACTIVE_HIGH>;
 94                 startup-delay-us = <5000>;         94                 startup-delay-us = <5000>;
 95                 enable-active-high;                95                 enable-active-high;
 96                 pinctrl-names = "default";         96                 pinctrl-names = "default";
 97                 pinctrl-0 = <&emmc_ldo_en_defa     97                 pinctrl-0 = <&emmc_ldo_en_default_mode>;
 98         };                                         98         };
 99                                                    99 
100         /*                                        100         /*
101          * External Ricoh RP152L010B-TR LCD LD    101          * External Ricoh RP152L010B-TR LCD LDO regulator for the display.
102          * LCD_PWR_EN controls both the 3.0V o    102          * LCD_PWR_EN controls both the 3.0V output.
103          */                                       103          */
104         lcd_3v0_reg: regulator-gpio-lcd-3v0 {     104         lcd_3v0_reg: regulator-gpio-lcd-3v0 {
105                 compatible = "regulator-fixed"    105                 compatible = "regulator-fixed";
106                 /* Supplied in turn by VBAT */    106                 /* Supplied in turn by VBAT */
107                 regulator-name = "VREG_LCD_3.0    107                 regulator-name = "VREG_LCD_3.0V";
108                 regulator-min-microvolt = <300    108                 regulator-min-microvolt = <3000000>;
109                 regulator-max-microvolt = <300    109                 regulator-max-microvolt = <3000000>;
110                 /* GPIO219 controls this regul    110                 /* GPIO219 controls this regulator */
111                 gpio = <&gpio6 27 GPIO_ACTIVE_    111                 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
112                 enable-active-high;               112                 enable-active-high;
113                 pinctrl-names = "default";        113                 pinctrl-names = "default";
114                 pinctrl-0 = <&lcd_pwr_en_defau    114                 pinctrl-0 = <&lcd_pwr_en_default_mode>;
115         };                                        115         };
116                                                   116 
117         /*                                        117         /*
118          * This regulator is a GPIO line that     118          * This regulator is a GPIO line that drives the Broadcom WLAN
119          * line WL_REG_ON high and enables the    119          * line WL_REG_ON high and enables the internal regulators
120          * inside the chip. Unfortunatley it i    120          * inside the chip. Unfortunatley it is erroneously named
121          * WLAN_RST_N on the schematic but it     121          * WLAN_RST_N on the schematic but it is not a reset line.
122          *                                        122          *
123          * The voltage specified here is only     123          * The voltage specified here is only used to determine the OCR mask,
124          * the for the SDIO connector, the chi    124          * the for the SDIO connector, the chip is actually connected
125          * directly to VBAT.                      125          * directly to VBAT.
126          */                                       126          */
127         wl_reg: regulator-gpio-wlan {             127         wl_reg: regulator-gpio-wlan {
128                 compatible = "regulator-fixed"    128                 compatible = "regulator-fixed";
129                 regulator-name = "WL_REG_ON";     129                 regulator-name = "WL_REG_ON";
130                 regulator-min-microvolt = <300    130                 regulator-min-microvolt = <3000000>;
131                 regulator-max-microvolt = <300    131                 regulator-max-microvolt = <3000000>;
132                 startup-delay-us = <100000>;      132                 startup-delay-us = <100000>;
133                 /* GPIO215 (WLAN_RST_N to WL_R    133                 /* GPIO215 (WLAN_RST_N to WL_REG_ON) */
134                 gpio = <&gpio6 23 GPIO_ACTIVE_    134                 gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>;
135                 enable-active-high;               135                 enable-active-high;
136                 pinctrl-names = "default";        136                 pinctrl-names = "default";
137                 pinctrl-0 = <&wlan_ldo_en_defa    137                 pinctrl-0 = <&wlan_ldo_en_default>;
138         };                                        138         };
139                                                   139 
140         vibrator {                                140         vibrator {
141                 compatible = "gpio-vibrator";     141                 compatible = "gpio-vibrator";
142                 /* GPIO195 "MOT_EN" */            142                 /* GPIO195 "MOT_EN" */
143                 enable-gpios = <&gpio6 3 GPIO_    143                 enable-gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>;
144                 pinctrl-names = "default";        144                 pinctrl-names = "default";
145                 pinctrl-0 = <&vibrator_default    145                 pinctrl-0 = <&vibrator_default>;
146         };                                        146         };
147                                                   147 
148         gpio-keys {                               148         gpio-keys {
149                 compatible = "gpio-keys";         149                 compatible = "gpio-keys";
150                 pinctrl-names = "default";        150                 pinctrl-names = "default";
151                 pinctrl-0 = <&gpio_keys_defaul    151                 pinctrl-0 = <&gpio_keys_default_mode>;
152                                                   152 
153                 button-home {                     153                 button-home {
154                         linux,code = <KEY_HOME    154                         linux,code = <KEY_HOME>;
155                         label = "HOME";           155                         label = "HOME";
156                         /* GPIO91 */              156                         /* GPIO91 */
157                         gpios = <&gpio2 27 GPI    157                         gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
158                 };                                158                 };
159                 button-volup {                    159                 button-volup {
160                         linux,code = <KEY_VOLU    160                         linux,code = <KEY_VOLUMEUP>;
161                         label = "VOL+";           161                         label = "VOL+";
162                         /* GPIO67 */              162                         /* GPIO67 */
163                         gpios = <&gpio2 3 GPIO    163                         gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
164                 };                                164                 };
165                 button-voldown {                  165                 button-voldown {
166                         linux,code = <KEY_VOLU    166                         linux,code = <KEY_VOLUMEDOWN>;
167                         label = "VOL-";           167                         label = "VOL-";
168                         /* GPIO92 */              168                         /* GPIO92 */
169                         gpios = <&gpio2 28 GPI    169                         gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
170                 };                                170                 };
171         };                                        171         };
172                                                   172 
173         led-touchkeys {                           173         led-touchkeys {
174                 compatible = "regulator-led";     174                 compatible = "regulator-led";
175                 vled-supply = <&ab8500_ldo_aux    175                 vled-supply = <&ab8500_ldo_aux4_reg>; // 3.3V
176                 default-state = "on";             176                 default-state = "on";
177                 function = LED_FUNCTION_KBD_BA    177                 function = LED_FUNCTION_KBD_BACKLIGHT;
178                 color = <LED_COLOR_ID_WHITE>;     178                 color = <LED_COLOR_ID_WHITE>;
179         };                                        179         };
180                                                   180 
181         ktd253: backlight {                       181         ktd253: backlight {
182                 compatible = "kinetic,ktd253";    182                 compatible = "kinetic,ktd253";
183                 /* GPIO69 is used on Codina R0    183                 /* GPIO69 is used on Codina R0.4 and Codina TMO */
184                 enable-gpios = <&gpio2 5 GPIO_    184                 enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
185                 /* Default to 13/32 brightness    185                 /* Default to 13/32 brightness */
186                 default-brightness = <13>;        186                 default-brightness = <13>;
187                 pinctrl-names = "default";        187                 pinctrl-names = "default";
188                 pinctrl-0 = <&ktd253_backlight    188                 pinctrl-0 = <&ktd253_backlight_default_mode>;
189         };                                        189         };
190                                                   190 
191         /* Richtek RT8515GQW Flash LED Driver     191         /* Richtek RT8515GQW Flash LED Driver IC */
192         flash {                                   192         flash {
193                 compatible = "richtek,rt8515";    193                 compatible = "richtek,rt8515";
194                 /* GPIO 140 */                    194                 /* GPIO 140 */
195                 enf-gpios = <&gpio4 12 GPIO_AC    195                 enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
196                 /* GPIO 141 */                    196                 /* GPIO 141 */
197                 ent-gpios = <&gpio4 13 GPIO_AC    197                 ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
198                 /*                                198                 /*
199                  * RFS is 16 kOhm and RTS is 1    199                  * RFS is 16 kOhm and RTS is 100 kOhm giving
200                  * the flash max current 343mA    200                  * the flash max current 343mA and torch max
201                  * current 55 mA.                 201                  * current 55 mA.
202                  */                               202                  */
203                 richtek,rfs-ohms = <16000>;       203                 richtek,rfs-ohms = <16000>;
204                 richtek,rts-ohms = <100000>;      204                 richtek,rts-ohms = <100000>;
205                 pinctrl-names = "default";        205                 pinctrl-names = "default";
206                 pinctrl-0 = <&gpio_flash_defau    206                 pinctrl-0 = <&gpio_flash_default_mode>;
207                                                   207 
208                 led {                             208                 led {
209                         function = LED_FUNCTIO    209                         function = LED_FUNCTION_FLASH;
210                         color = <LED_COLOR_ID_    210                         color = <LED_COLOR_ID_WHITE>;
211                         flash-max-timeout-us =    211                         flash-max-timeout-us = <250000>;
212                         flash-max-microamp = <    212                         flash-max-microamp = <343750>;
213                         led-max-microamp = <55    213                         led-max-microamp = <55000>;
214                 };                                214                 };
215         };                                        215         };
216                                                   216 
217         /* Bit-banged I2C on GPIO143 and GPIO1    217         /* Bit-banged I2C on GPIO143 and GPIO144 also called "SUBPMU I2C" */
218         i2c-gpio-0 {                              218         i2c-gpio-0 {
219                 compatible = "i2c-gpio";          219                 compatible = "i2c-gpio";
220                 sda-gpios = <&gpio4 16 (GPIO_A    220                 sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
221                 scl-gpios = <&gpio4 15 (GPIO_A    221                 scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
222                 pinctrl-names = "default";        222                 pinctrl-names = "default";
223                 pinctrl-0 = <&i2c_gpio_0_defau    223                 pinctrl-0 = <&i2c_gpio_0_default>;
224                 #address-cells = <1>;             224                 #address-cells = <1>;
225                 #size-cells = <0>;                225                 #size-cells = <0>;
226                                                   226 
227                 /* TODO: this should also be u    227                 /* TODO: this should also be used by the SM5103 Camera power management unit */
228         };                                        228         };
229                                                   229 
230         /* Bit-banged I2C on GPIO151 and GPIO1    230         /* Bit-banged I2C on GPIO151 and GPIO152 also called "COMP I2C" */
231         i2c-gpio-1 {                              231         i2c-gpio-1 {
232                 compatible = "i2c-gpio";          232                 compatible = "i2c-gpio";
233                 sda-gpios = <&gpio4 24 (GPIO_A    233                 sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
234                 scl-gpios = <&gpio4 23 (GPIO_A    234                 scl-gpios = <&gpio4 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
235                 pinctrl-names = "default";        235                 pinctrl-names = "default";
236                 pinctrl-0 = <&i2c_gpio_1_defau    236                 pinctrl-0 = <&i2c_gpio_1_default>;
237                 #address-cells = <1>;             237                 #address-cells = <1>;
238                 #size-cells = <0>;                238                 #size-cells = <0>;
239                                                   239 
240                 magnetometer@c {                  240                 magnetometer@c {
241                         compatible = "alps,hsc    241                         compatible = "alps,hscdtd008a";
242                         reg = <0x0c>;             242                         reg = <0x0c>;
243                         clock-frequency = <400    243                         clock-frequency = <400000>;
244                                                   244 
245                         avdd-supply = <&ab8500    245                         avdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
246                         dvdd-supply = <&ab8500    246                         dvdd-supply = <&ab8500_ldo_aux8_reg>; // 1.8V
247                 };                                247                 };
248         };                                        248         };
249                                                   249 
250         spi {                                     250         spi {
251                 compatible = "spi-gpio";          251                 compatible = "spi-gpio";
252                 /* Clock on GPIO220, pin SCL *    252                 /* Clock on GPIO220, pin SCL */
253                 sck-gpios = <&gpio6 28 GPIO_AC    253                 sck-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>;
254                 /* MOSI on GPIO224, pin SDI "s    254                 /* MOSI on GPIO224, pin SDI "slave data in" */
255                 mosi-gpios = <&gpio7 0 GPIO_AC    255                 mosi-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
256                 /* MISO on GPIO225, pin SDO "s    256                 /* MISO on GPIO225, pin SDO "slave data out" */
257                 miso-gpios = <&gpio7 1 GPIO_AC    257                 miso-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
258                 /* Chip select on GPIO201 */      258                 /* Chip select on GPIO201 */
259                 cs-gpios = <&gpio6 9 GPIO_ACTI    259                 cs-gpios = <&gpio6 9 GPIO_ACTIVE_LOW>;
260                 num-chipselects = <1>;            260                 num-chipselects = <1>;
261                                                   261 
262                 pinctrl-names = "default";        262                 pinctrl-names = "default";
263                 pinctrl-0 = <&spi_gpio_0_defau    263                 pinctrl-0 = <&spi_gpio_0_default>;
264                 #address-cells = <1>;             264                 #address-cells = <1>;
265                 #size-cells = <0>;                265                 #size-cells = <0>;
266                                                   266 
267                 panel@0 {                         267                 panel@0 {
268                         compatible = "samsung,    268                         compatible = "samsung,s6d27a1";
269                         spi-max-frequency = <1    269                         spi-max-frequency = <1200000>;
270                         /* TYPE 3: inverse clo    270                         /* TYPE 3: inverse clock polarity and phase */
271                         spi-cpha;                 271                         spi-cpha;
272                         spi-cpol;                 272                         spi-cpol;
273                                                   273 
274                         reg = <0>;                274                         reg = <0>;
275                         vci-supply = <&lcd_3v0    275                         vci-supply = <&lcd_3v0_reg>;
276                         vccio-supply = <&ab850    276                         vccio-supply = <&ab8500_ldo_aux6_reg>;
277                                                   277 
278                         /* Reset on GPIO139 */    278                         /* Reset on GPIO139 */
279                         reset-gpios = <&gpio4     279                         reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
280                         /* LCD_VGH/LCD_DETECT,    280                         /* LCD_VGH/LCD_DETECT, ESD IRQ on GPIO93 */
281                         interrupt-parent = <&g    281                         interrupt-parent = <&gpio2>;
282                         interrupts = <29 IRQ_T    282                         interrupts = <29 IRQ_TYPE_EDGE_RISING>;
283                                                   283 
284                         pinctrl-names = "defau    284                         pinctrl-names = "default";
285                         pinctrl-0 = <&panel_de    285                         pinctrl-0 = <&panel_default_mode>;
286                         backlight = <&ktd253>;    286                         backlight = <&ktd253>;
287                                                   287 
288                         port {                    288                         port {
289                                 panel_in: endp    289                                 panel_in: endpoint {
290                                         remote    290                                         remote-endpoint = <&display_out>;
291                                 };                291                                 };
292                         };                        292                         };
293                 };                                293                 };
294         };                                        294         };
295                                                   295 
296         soc {                                     296         soc {
297                 /* External Micro SD slot */      297                 /* External Micro SD slot */
298                 mmc@80126000 {                    298                 mmc@80126000 {
299                         arm,primecell-periphid    299                         arm,primecell-periphid = <0x10480180>;
300                         max-frequency = <10000    300                         max-frequency = <100000000>;
301                         bus-width = <4>;          301                         bus-width = <4>;
302                         cap-sd-highspeed;         302                         cap-sd-highspeed;
303                         cap-mmc-highspeed;        303                         cap-mmc-highspeed;
304                         st,sig-pin-fbclk;         304                         st,sig-pin-fbclk;
305                         full-pwr-cycle;           305                         full-pwr-cycle;
306                         /* MMC is powered by A    306                         /* MMC is powered by AUX3 1.2V .. 2.91V */
307                         vmmc-supply = <&ab8500    307                         vmmc-supply = <&ab8500_ldo_aux3_reg>;
308                         /* 2.9 V level transla    308                         /* 2.9 V level translator is using AUX3 at 2.9 V as well */
309                         vqmmc-supply = <&sd_le    309                         vqmmc-supply = <&sd_level_translator>;
310                         pinctrl-names = "defau    310                         pinctrl-names = "default", "sleep";
311                         pinctrl-0 = <&mc0_a_2_    311                         pinctrl-0 = <&mc0_a_2_default>;
312                         pinctrl-1 = <&mc0_a_2_    312                         pinctrl-1 = <&mc0_a_2_sleep>;
313                         cd-gpios = <&gpio6 25     313                         cd-gpios = <&gpio6 25 GPIO_ACTIVE_LOW>; // GPIO217
314                         status = "okay";          314                         status = "okay";
315                 };                                315                 };
316                                                   316 
317                 /* WLAN SDIO channel */           317                 /* WLAN SDIO channel */
318                 mmc@80118000 {                    318                 mmc@80118000 {
319                         arm,primecell-periphid    319                         arm,primecell-periphid = <0x10480180>;
320                         max-frequency = <50000    320                         max-frequency = <50000000>;
321                         bus-width = <4>;          321                         bus-width = <4>;
322                         non-removable;            322                         non-removable;
323                         cap-sd-highspeed;         323                         cap-sd-highspeed;
324                         pinctrl-names = "defau    324                         pinctrl-names = "default", "sleep";
325                         pinctrl-0 = <&mc1_a_2_    325                         pinctrl-0 = <&mc1_a_2_default>;
326                         pinctrl-1 = <&mc1_a_2_    326                         pinctrl-1 = <&mc1_a_2_sleep>;
327                         /*                        327                         /*
328                          * GPIO-controlled vol    328                          * GPIO-controlled voltage enablement: this drives
329                          * the WL_REG_ON line     329                          * the WL_REG_ON line high when we use this device.
330                          * Represented as regu    330                          * Represented as regulator to fill OCR mask.
331                          */                       331                          */
332                         vmmc-supply = <&wl_reg    332                         vmmc-supply = <&wl_reg>;
333                                                   333 
334                         #address-cells = <1>;     334                         #address-cells = <1>;
335                         #size-cells = <0>;        335                         #size-cells = <0>;
336                         status = "okay";          336                         status = "okay";
337                                                   337 
338                         wifi@1 {                  338                         wifi@1 {
339                                 compatible = "    339                                 compatible = "brcm,bcm4334-fmac", "brcm,bcm4329-fmac";
340                                 reg = <1>;        340                                 reg = <1>;
341                                 /* GPIO216 WL_    341                                 /* GPIO216 WL_HOST_WAKE */
342                                 interrupt-pare    342                                 interrupt-parent = <&gpio6>;
343                                 interrupts = <    343                                 interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
344                                 interrupt-name    344                                 interrupt-names = "host-wake";
345                                 pinctrl-names     345                                 pinctrl-names = "default";
346                                 pinctrl-0 = <&    346                                 pinctrl-0 = <&wlan_default_mode>;
347                         };                        347                         };
348                 };                                348                 };
349                                                   349 
350                 /* eMMC */                        350                 /* eMMC */
351                 mmc@80005000 {                    351                 mmc@80005000 {
352                         arm,primecell-periphid    352                         arm,primecell-periphid = <0x10480180>;
353                         max-frequency = <10000    353                         max-frequency = <100000000>;
354                         bus-width = <8>;          354                         bus-width = <8>;
355                         non-removable;            355                         non-removable;
356                         cap-mmc-highspeed;        356                         cap-mmc-highspeed;
357                         mmc-ddr-1_8v;             357                         mmc-ddr-1_8v;
358                         no-sdio;                  358                         no-sdio;
359                         no-sd;                    359                         no-sd;
360                         vmmc-supply = <&ldo_3v    360                         vmmc-supply = <&ldo_3v3_reg>;
361                         pinctrl-names = "defau    361                         pinctrl-names = "default", "sleep";
362                         /*                        362                         /*
363                          * GPIO130 will be set    363                          * GPIO130 will be set to input no pull-up resulting in a resistor
364                          * pulling the reset h    364                          * pulling the reset high and taking the memory out of reset.
365                          */                       365                          */
366                         pinctrl-0 = <&mc2_a_1_    366                         pinctrl-0 = <&mc2_a_1_default>;
367                         pinctrl-1 = <&mc2_a_1_    367                         pinctrl-1 = <&mc2_a_1_sleep>;
368                         status = "okay";          368                         status = "okay";
369                 };                                369                 };
370                                                   370 
371                 /* GBF (Bluetooth) UART */        371                 /* GBF (Bluetooth) UART */
372                 serial@80120000 {                 372                 serial@80120000 {
373                         pinctrl-names = "defau    373                         pinctrl-names = "default", "sleep";
374                         pinctrl-0 = <&u0_a_1_d    374                         pinctrl-0 = <&u0_a_1_default>;
375                         pinctrl-1 = <&u0_a_1_s    375                         pinctrl-1 = <&u0_a_1_sleep>;
376                         status = "okay";          376                         status = "okay";
377                                                   377 
378                         bluetooth {               378                         bluetooth {
379                                 /* BCM4334B0 a    379                                 /* BCM4334B0 actually */
380                                 compatible = "    380                                 compatible = "brcm,bcm4330-bt";
381                                 /* GPIO222 rai    381                                 /* GPIO222 rail BT_VREG_EN to BT_REG_ON */
382                                 shutdown-gpios    382                                 shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
383                                 /* BT_WAKE on     383                                 /* BT_WAKE on GPIO199 */
384                                 device-wakeup-    384                                 device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
385                                 /* BT_HOST_WAK    385                                 /* BT_HOST_WAKE on GPIO97 */
386                                 /* FIXME: conv    386                                 /* FIXME: convert to interrupt */
387                                 host-wakeup-gp    387                                 host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
388                                 /* BT_RST_N on    388                                 /* BT_RST_N on GPIO209 */
389                                 reset-gpios =     389                                 reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>;
390                                 pinctrl-names     390                                 pinctrl-names = "default";
391                                 pinctrl-0 = <&    391                                 pinctrl-0 = <&bluetooth_default_mode>;
392                         };                        392                         };
393                 };                                393                 };
394                                                   394 
395                 /* GPS UART */                    395                 /* GPS UART */
396                 serial@80121000 {                 396                 serial@80121000 {
397                         status = "okay";          397                         status = "okay";
398                         pinctrl-names = "defau    398                         pinctrl-names = "default", "sleep";
399                         /* CTS/RTS is not used    399                         /* CTS/RTS is not used, CTS is repurposed as GPIO */
400                         pinctrl-0 = <&u1rxtx_a    400                         pinctrl-0 = <&u1rxtx_a_1_default>;
401                         pinctrl-1 = <&u1rxtx_a    401                         pinctrl-1 = <&u1rxtx_a_1_sleep>;
402                         /* FIXME: add a device    402                         /* FIXME: add a device for the GPS here */
403                 };                                403                 };
404                                                   404 
405                 /* Debugging console UART conn    405                 /* Debugging console UART connected to AB8505 */
406                 serial@80007000 {                 406                 serial@80007000 {
407                         status = "okay";          407                         status = "okay";
408                         pinctrl-names = "defau    408                         pinctrl-names = "default", "sleep";
409                         pinctrl-0 = <&u2rxtx_c    409                         pinctrl-0 = <&u2rxtx_c_1_default>;
410                         pinctrl-1 = <&u2rxtx_c    410                         pinctrl-1 = <&u2rxtx_c_1_sleep>;
411                 };                                411                 };
412                                                   412 
413                 prcmu@80157000 {                  413                 prcmu@80157000 {
414                         ab8505 {                  414                         ab8505 {
415                                 phy {             415                                 phy {
416                                         pinctr    416                                         pinctrl-names = "default", "sleep";
417                                         pinctr    417                                         pinctrl-0 = <&usb_a_1_default>;
418                                         pinctr    418                                         pinctrl-1 = <&usb_a_1_sleep>;
419                                 };                419                                 };
420                                                   420 
421                                 ab8500_fg {       421                                 ab8500_fg {
422                                         line-i    422                                         line-impedance-micro-ohms = <36000>;
423                                 };                423                                 };
424                                                   424 
425                                 /* This is mos    425                                 /* This is mostly identical to the Codina v0.4 regulators */
426                                 regulator {       426                                 regulator {
427                                         ab8500    427                                         ab8500_ldo_aux1 {
428                                                   428                                                 regulator-name = "v-sensors-vdd";
429                                                   429                                                 regulator-min-microvolt = <3000000>;
430                                                   430                                                 regulator-max-microvolt = <3300000>;
431                                         };        431                                         };
432                                                   432 
433                                         ab8500    433                                         ab8500_ldo_aux2 {
434                                                   434                                                 regulator-name = "v-aux2";
435                                                   435                                                 regulator-min-microvolt = <3300000>;
436                                                   436                                                 regulator-max-microvolt = <3300000>;
437                                         };        437                                         };
438                                                   438 
439                                         ab8500    439                                         ab8500_ldo_aux3 {
440                                                   440                                                 regulator-name = "v-mmc-sd";
441                                         };        441                                         };
442                                                   442 
443                                         ab8500    443                                         ab8500_ldo_aux4 {
444                                                   444                                                 regulator-name = "v-aux4";
445                                                   445                                                 /*
446                                                   446                                                  * Providing some span here makes the touchkey
447                                                   447                                                  * LEDs actually dimmable.
448                                                   448                                                  */
449                                                   449                                                 regulator-min-microvolt = <1100000>;
450                                                   450                                                 regulator-max-microvolt = <3300000>;
451                                         };        451                                         };
452                                                   452 
453                                         ab8500    453                                         ab8500_ldo_aux5 {
454                                                   454                                                 regulator-name = "v-aux5";
455                                                   455                                                 regulator-min-microvolt = <1800000>;
456                                                   456                                                 regulator-max-microvolt = <1800000>;
457                                         };        457                                         };
458                                                   458 
459                                         ab8500    459                                         ab8500_ldo_aux6 {
460                                                   460                                                 /* 1.8 V to the display */
461                                                   461                                                 regulator-name = "v-aux6";
462                                                   462                                                 regulator-min-microvolt = <1800000>;
463                                                   463                                                 regulator-max-microvolt = <1800000>;
464                                         };        464                                         };
465                                                   465 
466                                         ab8500    466                                         ab8500_ldo_aux8 {
467                                                   467                                                 regulator-name = "v-sensors-vio";
468                                         };        468                                         };
469                                 };                469                                 };
470                         };                        470                         };
471                 };                                471                 };
472                                                   472 
473                 /* I2C0 also known as "AGC I2C    473                 /* I2C0 also known as "AGC I2C" */
474                 i2c@80004000 {                    474                 i2c@80004000 {
475                         status = "okay";          475                         status = "okay";
476                         pinctrl-names = "defau    476                         pinctrl-names = "default", "sleep";
477                         pinctrl-0 = <&i2c0_a_1    477                         pinctrl-0 = <&i2c0_a_1_default>;
478                         pinctrl-1 = <&i2c0_a_1    478                         pinctrl-1 = <&i2c0_a_1_sleep>;
479                                                   479 
480                         proximity@39 {            480                         proximity@39 {
481                                 /* Codina has     481                                 /* Codina has the Amstaos TMD2672 */
482                                 compatible = "    482                                 compatible = "amstaos,tmd2672";
483                                 clock-frequenc    483                                 clock-frequency = <400000>;
484                                 reg = <0x39>;     484                                 reg = <0x39>;
485                                                   485 
486                                 /* IRQ on GPIO    486                                 /* IRQ on GPIO146 "PS_INT" */
487                                 interrupt-pare    487                                 interrupt-parent = <&gpio4>;
488                                 interrupts = <    488                                 interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
489                                 vdd-supply = <    489                                 vdd-supply = <&ab8500_ldo_aux1_reg>;
490                                 vddio-supply =    490                                 vddio-supply = <&ab8500_ldo_aux8_reg>;
491                                 pinctrl-names     491                                 pinctrl-names = "default";
492                                 pinctrl-0 = <&    492                                 pinctrl-0 = <&tmd2672_codina_default>;
493                         };                        493                         };
494                 };                                494                 };
495                                                   495 
496                 /* I2C2 on GPIO10 and GPIO11 a    496                 /* I2C2 on GPIO10 and GPIO11 also called "SENSORS I2C" */
497                 i2c@80128000 {                    497                 i2c@80128000 {
498                         status = "okay";          498                         status = "okay";
499                         pinctrl-names = "defau    499                         pinctrl-names = "default", "sleep";
500                         pinctrl-0 = <&i2c2_b_2    500                         pinctrl-0 = <&i2c2_b_2_default>;
501                         pinctrl-1 = <&i2c2_b_2    501                         pinctrl-1 = <&i2c2_b_2_sleep>;
502                                                   502 
503                         /* Bosch BMA254 accele    503                         /* Bosch BMA254 accelerometer */
504                         accelerometer@18 {        504                         accelerometer@18 {
505                                 compatible = "    505                                 compatible = "bosch,bma254";
506                                 reg = <0x18>;     506                                 reg = <0x18>;
507                                 mount-matrix =    507                                 mount-matrix = "0", "1", "0",
508                                                   508                                                "-1", "0", "0",
509                                                   509                                                "0", "0", "1";
510                                 vddio-supply =    510                                 vddio-supply = <&ab8500_ldo_aux8_reg>; // 1.8V
511                                 vdd-supply = <    511                                 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
512                         };                        512                         };
513                 };                                513                 };
514                                                   514 
515                 /* I2C3 */                        515                 /* I2C3 */
516                 i2c@80110000 {                    516                 i2c@80110000 {
517                         status = "okay";          517                         status = "okay";
518                                                   518 
519                         pinctrl-names = "defau    519                         pinctrl-names = "default", "sleep";
520                         pinctrl-0 = <&i2c3_c_2    520                         pinctrl-0 = <&i2c3_c_2_default>;
521                         pinctrl-1 = <&i2c3_c_2    521                         pinctrl-1 = <&i2c3_c_2_sleep>;
522                                                   522 
523                         /* TODO: write binding    523                         /* TODO: write bindings and driver for this touchscreen */
524                                                   524 
525                         /* Zinitix BT404 ISP p    525                         /* Zinitix BT404 ISP part */
526                         isp@50 {                  526                         isp@50 {
527                                 compatible = "    527                                 compatible = "zinitix,bt404-isp";
528                                 reg = <0x50>;     528                                 reg = <0x50>;
529                                 pinctrl-names     529                                 pinctrl-names = "default";
530                                 pinctrl-0 = <&    530                                 pinctrl-0 = <&tsp_default>;
531                         };                        531                         };
532                                                   532 
533                         /* Zinitix BT404 touch    533                         /* Zinitix BT404 touchscreen, also has the touchkeys for menu and back */
534                         touchscreen@20 {          534                         touchscreen@20 {
535                                 compatible = "    535                                 compatible = "zinitix,bt404";
536                                 reg = <0x20>;     536                                 reg = <0x20>;
537                                 /* GPIO218 (TS    537                                 /* GPIO218 (TSP_INT_1V8) */
538                                 interrupt-pare    538                                 interrupt-parent = <&gpio6>;
539                                 interrupts = <    539                                 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
540                                 vcca-supply =     540                                 vcca-supply = <&ab8500_ldo_aux2_reg>; // 3.3V
541                                 vdd-supply = <    541                                 vdd-supply = <&ab8500_ldo_aux5_reg>; // 1.8V
542                                 zinitix,mode =    542                                 zinitix,mode = <2>;
543                                 touchscreen-si    543                                 touchscreen-size-x = <480>;
544                                 touchscreen-si    544                                 touchscreen-size-y = <800>;
545                                 pinctrl-names     545                                 pinctrl-names = "default";
546                                 pinctrl-0 = <&    546                                 pinctrl-0 = <&tsp_default>;
547                         };                        547                         };
548                 };                                548                 };
549                                                   549 
550                 mcde@a0350000 {                   550                 mcde@a0350000 {
551                         status = "okay";          551                         status = "okay";
552                         pinctrl-names = "defau    552                         pinctrl-names = "default";
553                         pinctrl-0 = <&dpi_defa    553                         pinctrl-0 = <&dpi_default_mode>;
554                                                   554 
555                         port {                    555                         port {
556                                 display_out: e    556                                 display_out: endpoint {
557                                         remote    557                                         remote-endpoint = <&panel_in>;
558                                 };                558                                 };
559                         };                        559                         };
560                 };                                560                 };
561         };                                        561         };
562 };                                                562 };
563                                                   563 
564 &pinctrl {                                        564 &pinctrl {
565         /*                                        565         /*
566          * This extends the MC0_A_2 default co    566          * This extends the MC0_A_2 default config to include
567          * the card detect GPIO217 line.          567          * the card detect GPIO217 line.
568          */                                       568          */
569         sdi0 {                                    569         sdi0 {
570                 mc0_a_2_default {                 570                 mc0_a_2_default {
571                         default_cfg4 {            571                         default_cfg4 {
572                                 pins = "GPIO21    572                                 pins = "GPIO217_AH12"; /* card detect */
573                                 ste,config = <    573                                 ste,config = <&gpio_in_pd>;
574                         };                        574                         };
575                 };                                575                 };
576         };                                        576         };
577         sdi2 {                                    577         sdi2 {
578                 /*                                578                 /*
579                  * GPIO130 should be set in GP    579                  * GPIO130 should be set in GPIO mode and
580                  * pulled down. (Not connected    580                  * pulled down. (Not connected.)
581                  */                               581                  */
582                 mc2_a_1_default {                 582                 mc2_a_1_default {
583                         default_cfg2 {            583                         default_cfg2 {
584                                 pins = "GPIO13    584                                 pins = "GPIO130_C8"; /* FBCLK */
585                                 ste,config = <    585                                 ste,config = <&gpio_in_pd>;
586                         };                        586                         };
587                 };                                587                 };
588         };                                        588         };
589         /* GPIO that enables the 2.9V SD card     589         /* GPIO that enables the 2.9V SD card level translator */
590         sd-level-translator {                     590         sd-level-translator {
591                 sd_level_translator_default: s    591                 sd_level_translator_default: sd_level_translator_default {
592                         /* level shifter on GP    592                         /* level shifter on GPIO87 */
593                         codina_cfg1 {             593                         codina_cfg1 {
594                                 pins = "GPIO87    594                                 pins = "GPIO87_B3";
595                                 ste,config = <    595                                 ste,config = <&gpio_out_hi>;
596                         };                        596                         };
597                 };                                597                 };
598         };                                        598         };
599         /* GPIO that enables the LDO regulator    599         /* GPIO that enables the LDO regulator for the eMMC */
600         emmc-ldo {                                600         emmc-ldo {
601                 emmc_ldo_en_default_mode: emmc    601                 emmc_ldo_en_default_mode: emmc_ldo_default {
602                         /* LDO enable on GPIO2    602                         /* LDO enable on GPIO223 */
603                         codina_cfg1 {             603                         codina_cfg1 {
604                                 pins = "GPIO22    604                                 pins = "GPIO223_AH9";
605                                 ste,config = <    605                                 ste,config = <&gpio_out_hi>;
606                         };                        606                         };
607                 };                                607                 };
608         };                                        608         };
609         /* GPIOs for panel control */             609         /* GPIOs for panel control */
610         panel {                                   610         panel {
611                 panel_default_mode: panel_defa    611                 panel_default_mode: panel_default {
612                         codina_cfg1 {             612                         codina_cfg1 {
613                                 /* Reset line     613                                 /* Reset line */
614                                 pins = "GPIO13    614                                 pins = "GPIO139_C9";
615                                 ste,config = <    615                                 ste,config = <&gpio_out_lo>;
616                         };                        616                         };
617                         codina_cfg2 {             617                         codina_cfg2 {
618                                 /* ESD IRQ lin    618                                 /* ESD IRQ line "LCD detect" */
619                                 pins = "GPIO93    619                                 pins = "GPIO93_B7";
620                                 ste,config = <    620                                 ste,config = <&gpio_in_nopull>;
621                         };                        621                         };
622                 };                                622                 };
623         };                                        623         };
624         /* GPIO that enables the LDO regulator    624         /* GPIO that enables the LDO regulator for the LCD display */
625         lcd-ldo {                                 625         lcd-ldo {
626                 lcd_pwr_en_default_mode: lcd_p    626                 lcd_pwr_en_default_mode: lcd_pwr_en_default {
627                         /* LCD_PWR_EN on GPIO2    627                         /* LCD_PWR_EN on GPIO219 */
628                         codina_cfg1 {             628                         codina_cfg1 {
629                                 pins = "GPIO21    629                                 pins = "GPIO219_AG10";
630                                 ste,config = <    630                                 ste,config = <&gpio_out_hi>;
631                         };                        631                         };
632                 };                                632                 };
633         };                                        633         };
634         /* GPIO that enables the WLAN internal    634         /* GPIO that enables the WLAN internal LDO regulators */
635         wlan-ldo {                                635         wlan-ldo {
636                 wlan_ldo_en_default: wlan_ldo_    636                 wlan_ldo_en_default: wlan_ldo_default {
637                         /* GPIO215 named WLAN_    637                         /* GPIO215 named WLAN_RST_N */
638                         codina_cfg1 {             638                         codina_cfg1 {
639                                 pins = "GPIO21    639                                 pins = "GPIO215_AH13";
640                                 ste,config = <    640                                 ste,config = <&gpio_out_lo>;
641                         };                        641                         };
642                 };                                642                 };
643         };                                        643         };
644         /* Backlight GPIO */                      644         /* Backlight GPIO */
645         backlight {                               645         backlight {
646                 ktd253_backlight_default_mode:    646                 ktd253_backlight_default_mode: backlight_default {
647                         skomer_cfg1 {             647                         skomer_cfg1 {
648                                 pins = "GPIO69    648                                 pins = "GPIO69_E2"; /* LCD_BL_CTRL */
649                                 ste,config = <    649                                 ste,config = <&gpio_out_lo>;
650                         };                        650                         };
651                 };                                651                 };
652         };                                        652         };
653         /* Flash and torch */                     653         /* Flash and torch */
654         flash {                                   654         flash {
655                 gpio_flash_default_mode: flash    655                 gpio_flash_default_mode: flash_default {
656                         codina_cfg1 {             656                         codina_cfg1 {
657                                 pins = "GPIO14    657                                 pins = "GPIO140_B11", "GPIO141_C12";
658                                 ste,config = <    658                                 ste,config = <&gpio_out_lo>;
659                         };                        659                         };
660                 };                                660                 };
661         };                                        661         };
662         /* GPIO keys */                           662         /* GPIO keys */
663         gpio-keys {                               663         gpio-keys {
664                 gpio_keys_default_mode: gpio_k    664                 gpio_keys_default_mode: gpio_keys_default {
665                         skomer_cfg1 {             665                         skomer_cfg1 {
666                                 pins = "GPIO67    666                                 pins = "GPIO67_G2", /* VOL UP */
667                                        "GPIO91    667                                        "GPIO91_B6", /* HOME */
668                                        "GPIO92    668                                        "GPIO92_D6"; /* VOL DOWN */
669                                 ste,config = <    669                                 ste,config = <&gpio_in_pu>;
670                         };                        670                         };
671                 };                                671                 };
672         };                                        672         };
673         /* Interrupt line for the Zinitix BT40    673         /* Interrupt line for the Zinitix BT404 touchscreen */
674         tsp {                                     674         tsp {
675                 tsp_default: tsp_default {        675                 tsp_default: tsp_default {
676                         codina_cfg1 {             676                         codina_cfg1 {
677                                 pins = "GPIO21    677                                 pins = "GPIO218_AH11";  /* TSP_INT_1V8 */
678                                 ste,config = <    678                                 ste,config = <&gpio_in_nopull>;
679                         };                        679                         };
680                 };                                680                 };
681         };                                        681         };
682         /* Interrupt line for light/proximity     682         /* Interrupt line for light/proximity sensor TMD2672 */
683         tmd2672 {                                 683         tmd2672 {
684                 tmd2672_codina_default: tmd267    684                 tmd2672_codina_default: tmd2672_codina {
685                         codina_cfg1 {             685                         codina_cfg1 {
686                                 pins = "GPIO14    686                                 pins = "GPIO146_D13";
687                                 ste,config = <    687                                 ste,config = <&gpio_in_nopull>;
688                         };                        688                         };
689                 };                                689                 };
690         };                                        690         };
691         /* GPIO-based I2C bus for subpmu */       691         /* GPIO-based I2C bus for subpmu */
692         i2c-gpio-0 {                              692         i2c-gpio-0 {
693                 i2c_gpio_0_default: i2c_gpio_0    693                 i2c_gpio_0_default: i2c_gpio_0 {
694                         codina_cfg1 {             694                         codina_cfg1 {
695                                 pins = "GPIO14    695                                 pins = "GPIO143_D12", "GPIO144_B13";
696                                 ste,config = <    696                                 ste,config = <&gpio_in_nopull>;
697                         };                        697                         };
698                 };                                698                 };
699         };                                        699         };
700         /* GPIO-based I2C bus for the NFC */      700         /* GPIO-based I2C bus for the NFC */
701         i2c-gpio-1 {                              701         i2c-gpio-1 {
702                 i2c_gpio_1_default: i2c_gpio_1    702                 i2c_gpio_1_default: i2c_gpio_1 {
703                         codina_cfg1 {             703                         codina_cfg1 {
704                                 pins = "GPIO15    704                                 pins = "GPIO151_D17", "GPIO152_D16";
705                                 ste,config = <    705                                 ste,config = <&gpio_in_nopull>;
706                         };                        706                         };
707                 };                                707                 };
708         };                                        708         };
709         /* GPIO-based SPI bus for the display     709         /* GPIO-based SPI bus for the display */
710         spi-gpio-0 {                              710         spi-gpio-0 {
711                 spi_gpio_0_default: spi_gpio_0    711                 spi_gpio_0_default: spi_gpio_0_d {
712                         codina_cfg1 {             712                         codina_cfg1 {
713                                 pins = "GPIO22    713                                 pins = "GPIO220_AH10", "GPIO201_AF24", "GPIO224_AG9";
714                                 ste,config = <    714                                 ste,config = <&gpio_out_hi>;
715                         };                        715                         };
716                         codina_cfg2 {             716                         codina_cfg2 {
717                                 pins = "GPIO22    717                                 pins = "GPIO225_AG8";
718                                 /* Needs pull     718                                 /* Needs pull down, no pull down resistor on board */
719                                 ste,config = <    719                                 ste,config = <&gpio_in_pd>;
720                         };                        720                         };
721                 };                                721                 };
722                 spi_gpio_0_sleep: spi_gpio_0_s    722                 spi_gpio_0_sleep: spi_gpio_0_s {
723                         codina_cfg1 {             723                         codina_cfg1 {
724                                 pins = "GPIO22    724                                 pins = "GPIO220_AH10", "GPIO201_AF24",
725                                        "GPIO22    725                                        "GPIO224_AG9", "GPIO225_AG8";
726                                 ste,config = <    726                                 ste,config = <&gpio_out_hi>;
727                         };                        727                         };
728                 };                                728                 };
729         };                                        729         };
730         wlan {                                    730         wlan {
731                 wlan_default_mode: wlan_defaul    731                 wlan_default_mode: wlan_default {
732                         /* GPIO216 for WL_HOST    732                         /* GPIO216 for WL_HOST_WAKE */
733                         codina_cfg2 {             733                         codina_cfg2 {
734                                 pins = "GPIO21    734                                 pins = "GPIO216_AG12";
735                                 ste,config = <    735                                 ste,config = <&gpio_in_pd>;
736                         };                        736                         };
737                 };                                737                 };
738         };                                        738         };
739         bluetooth {                               739         bluetooth {
740                 bluetooth_default_mode: blueto    740                 bluetooth_default_mode: bluetooth_default {
741                         /* GPIO199 BT_WAKE and    741                         /* GPIO199 BT_WAKE and GPIO222 BT_VREG_ON */
742                         codina_cfg1 {             742                         codina_cfg1 {
743                                 pins = "GPIO19    743                                 pins = "GPIO199_AH23", "GPIO222_AJ9";
744                                 ste,config = <    744                                 ste,config = <&gpio_out_lo>;
745                         };                        745                         };
746                         /* GPIO97 BT_HOST_WAKE    746                         /* GPIO97 BT_HOST_WAKE */
747                         codina_cfg2 {             747                         codina_cfg2 {
748                                 pins = "GPIO97    748                                 pins = "GPIO97_D9";
749                                 ste,config = <    749                                 ste,config = <&gpio_in_nopull>;
750                         };                        750                         };
751                         /* GPIO209 BT_RST_N */    751                         /* GPIO209 BT_RST_N */
752                         codina_cfg3 {             752                         codina_cfg3 {
753                                 pins = "GPIO20    753                                 pins = "GPIO209_AG15";
754                                 ste,config = <    754                                 ste,config = <&gpio_out_hi>;
755                         };                        755                         };
756                 };                                756                 };
757         };                                        757         };
758         vibrator {                                758         vibrator {
759                 vibrator_default: vibrator_def    759                 vibrator_default: vibrator_default {
760                         codina_cfg1 {             760                         codina_cfg1 {
761                                 pins = "GPIO19    761                                 pins = "GPIO195_AG28";  /* MOT_EN */
762                                 ste,config = <    762                                 ste,config = <&gpio_out_lo>;
763                         };                        763                         };
764                 };                                764                 };
765         };                                        765         };
766         mcde {                                    766         mcde {
767                 dpi_default_mode: dpi_default     767                 dpi_default_mode: dpi_default {
768                         default_mux1 {            768                         default_mux1 {
769                                 /* Mux in all     769                                 /* Mux in all the data lines */
770                                 function = "lc    770                                 function = "lcd";
771                                 groups =          771                                 groups =
772                                         /* Dat    772                                         /* Data lines D0-D7 GPIO70..GPIO77 */
773                                         "lcd_d    773                                         "lcd_d0_d7_a_1",
774                                         /* Dat    774                                         /* Data lines D8-D11 GPIO78..GPIO81 */
775                                         "lcd_d    775                                         "lcd_d8_d11_a_1",
776                                         /* Dat    776                                         /* Data lines D12-D15 GPIO82..GPIO85 */
777                                         "lcd_d    777                                         "lcd_d12_d15_a_1",
778                                         /* Dat    778                                         /* Data lines D16-D23 GPIO161..GPIO168 */
779                                         "lcd_d    779                                         "lcd_d16_d23_b_1";
780                         };                        780                         };
781                         default_mux2 {            781                         default_mux2 {
782                                 function = "lc    782                                 function = "lcda";
783                                 /* Clock line     783                                 /* Clock line on GPIO150, DE, VSO, HSO on GPIO169..GPIO171 */
784                                 groups = "lcda    784                                 groups = "lcdaclk_b_1", "lcda_b_1";
785                         };                        785                         };
786                         /* Input, no pull-up i    786                         /* Input, no pull-up is the default state for pins used for an alt function */
787                         default_cfg1 {            787                         default_cfg1 {
788                                 pins = "GPIO15    788                                 pins = "GPIO150_C14", "GPIO169_D22", "GPIO170_C23", "GPIO171_D23";
789                                 ste,config = <    789                                 ste,config = <&in_nopull>;
790                         };                        790                         };
791                 };                                791                 };
792         };                                        792         };
793 };                                                793 };
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php