Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: ux500: Totally separate TVK R2 and R3

There is no point in sharing any definitions between
the R2 and R3 versions of the TVK1281618 UIB. The
proximity sensor collides with the touchscreen etc,
it is less confusing to get rid of the overarching
TVK1281618 UIB file and just use one for each.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+64 -55
+39 -1
arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi
··· 3 3 * Device Tree for the TVK1281618 R2 user interface board (UIB) 4 4 */ 5 5 6 + #include <dt-bindings/interrupt-controller/irq.h> 6 7 #include <dt-bindings/input/input.h> 7 - #include "ste-href-tvk1281618.dtsi" 8 8 9 9 / { 10 + gpio_keys { 11 + compatible = "gpio-keys"; 12 + #address-cells = <1>; 13 + #size-cells = <0>; 14 + vdd-supply = <&ab8500_ldo_aux1_reg>; 15 + pinctrl-names = "default"; 16 + pinctrl-0 = <&prox_tvk_mode>, <&hall_tvk_mode>; 17 + 18 + button@139 { 19 + /* Proximity sensor */ 20 + gpios = <&gpio6 25 GPIO_ACTIVE_HIGH>; 21 + linux,code = <11>; /* SW_FRONT_PROXIMITY */ 22 + label = "SFH7741 Proximity Sensor"; 23 + }; 24 + button@145 { 25 + /* Hall sensor */ 26 + gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>; 27 + linux,code = <0>; /* SW_LID */ 28 + label = "HED54XXU11 Hall Effect Sensor"; 29 + }; 30 + }; 31 + 10 32 soc { 11 33 i2c@80004000 { 12 34 tc35893@44 { ··· 217 195 }; 218 196 }; 219 197 pinctrl { 198 + prox { 199 + prox_tvk_mode: prox_tvk { 200 + tvk_cfg { 201 + pins = "GPIO217_AH12"; 202 + ste,config = <&gpio_in_pu>; 203 + }; 204 + }; 205 + }; 206 + hall { 207 + hall_tvk_mode: hall_tvk { 208 + tvk_cfg { 209 + pins = "GPIO145_C13"; 210 + ste,config = <&gpio_in_pu>; 211 + }; 212 + }; 213 + }; 220 214 tc35893 { 221 215 /* IRQ from the TC35893 */ 222 216 tc35893_tvk_mode: tc35893_tvk {
+25 -1
arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi
··· 4 4 * also known as the "CYTTSP board" 5 5 */ 6 6 7 + #include <dt-bindings/interrupt-controller/irq.h> 7 8 #include <dt-bindings/input/input.h> 8 - #include "ste-href-tvk1281618.dtsi" 9 9 10 10 / { 11 + gpio_keys { 12 + compatible = "gpio-keys"; 13 + #address-cells = <1>; 14 + #size-cells = <0>; 15 + vdd-supply = <&ab8500_ldo_aux1_reg>; 16 + pinctrl-names = "default"; 17 + pinctrl-0 = <&hall_tvk_mode>; 18 + 19 + button@145 { 20 + /* Hall sensor */ 21 + gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>; 22 + linux,code = <0>; /* SW_LID */ 23 + label = "HED54XXU11 Hall Effect Sensor"; 24 + }; 25 + }; 26 + 11 27 soc { 12 28 i2c@80004000 { 13 29 tc35893@44 { ··· 132 116 }; 133 117 134 118 pinctrl { 119 + hall { 120 + hall_tvk_mode: hall_tvk { 121 + tvk_cfg { 122 + pins = "GPIO145_C13"; 123 + ste,config = <&gpio_in_pu>; 124 + }; 125 + }; 126 + }; 135 127 tc35893 { 136 128 /* IRQ from the TC35893 */ 137 129 tc35893_tvk_mode: tc35893_tvk {
-53
arch/arm/boot/dts/ste-href-tvk1281618.dtsi
··· 1 - // SPDX-License-Identifier: GPL-2.0-or-later 2 - /* 3 - * Copyright 2012 ST-Ericsson AB 4 - * 5 - * Device Tree for the TVK1281618 family of UIBs 6 - */ 7 - 8 - #include <dt-bindings/interrupt-controller/irq.h> 9 - 10 - / { 11 - gpio_keys { 12 - compatible = "gpio-keys"; 13 - #address-cells = <1>; 14 - #size-cells = <0>; 15 - vdd-supply = <&ab8500_ldo_aux1_reg>; 16 - pinctrl-names = "default"; 17 - pinctrl-0 = <&prox_tvk_mode>, <&hall_tvk_mode>; 18 - 19 - button@139 { 20 - /* Proximity sensor */ 21 - gpios = <&gpio6 25 GPIO_ACTIVE_HIGH>; 22 - linux,code = <11>; /* SW_FRONT_PROXIMITY */ 23 - label = "SFH7741 Proximity Sensor"; 24 - }; 25 - button@145 { 26 - /* Hall sensor */ 27 - gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>; 28 - linux,code = <0>; /* SW_LID */ 29 - label = "HED54XXU11 Hall Effect Sensor"; 30 - }; 31 - }; 32 - 33 - soc { 34 - pinctrl { 35 - prox { 36 - prox_tvk_mode: prox_tvk { 37 - tvk_cfg { 38 - pins = "GPIO217_AH12"; 39 - ste,config = <&gpio_in_pu>; 40 - }; 41 - }; 42 - }; 43 - hall { 44 - hall_tvk_mode: hall_tvk { 45 - tvk_cfg { 46 - pins = "GPIO145_C13"; 47 - ste,config = <&gpio_in_pu>; 48 - }; 49 - }; 50 - }; 51 - }; 52 - }; 53 - };