Skip to content

Commit

Permalink
ARM: ux500: move BU21013 touchpad GPIOs into top-level DTS
Browse files Browse the repository at this point in the history
The BU21013 touchscreen GPIOs have been pretty confused, correct
them per board, and move the GPIO assignments up to the top
level DTS file so we can control it from there, and avoid defining
the GPIO assignments for non-ST UIB equipped boards.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Linus Walleij committed Oct 3, 2013
1 parent 84919b9 commit 741a6c4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
2 changes: 0 additions & 2 deletions arch/arm/boot/dts/ste-href-stuib.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
bu21013_tp@5c {
compatible = "rohm,bu21013_tp";
reg = <0x5c>;
touch-gpio = <&gpio2 20 0x4>;
avdd-supply = <&ab8500_ldo_aux1_reg>;

rohm,touch-max-x = <384>;
Expand All @@ -68,7 +67,6 @@
bu21013_tp@5d {
compatible = "rohm,bu21013_tp";
reg = <0x5d>;
touch-gpio = <&gpio2 20 0x4>;
avdd-supply = <&ab8500_ldo_aux1_reg>;

rohm,touch-max-x = <384>;
Expand Down
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/ste-hrefprev60-stuib.dts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@
soc {
/* Reset line for the BU21013 touchscreen */
i2c@80110000 {
/* Only one of these will be used */
bu21013_tp@5c {
touch-gpio = <&gpio2 12 0x4>;
reset-gpio = <&tc3589x_gpio 13 0x4>;
};
bu21013_tp@5d {
touch-gpio = <&gpio2 12 0x4>;
reset-gpio = <&tc3589x_gpio 13 0x4>;
};
};
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/boot/dts/ste-hrefprev60.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@
};
};

i2c@80110000 {
bu21013_tp@5c {
reset-gpio = <&tc3589x_gpio 13 0x4>;
};
};

vmmci: regulator-gpio {
gpios = <&tc3589x_gpio 18 0x4>;
enable-gpio = <&tc3589x_gpio 17 0x4>;
Expand Down
10 changes: 8 additions & 2 deletions arch/arm/boot/dts/ste-hrefv60plus-stuib.dts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@
soc {
/* Reset line for the BU21013 touchscreen */
i2c@80110000 {
bu21013_tp@0x5c {
reset-gpio = <&gpio4 15 0x4>;
/* Only one of these will be used */
bu21013_tp@5c {
touch-gpio = <&gpio2 20 0x4>;
reset-gpio = <&gpio4 17 0x4>;
};
bu21013_tp@5d {
touch-gpio = <&gpio2 20 0x4>;
reset-gpio = <&gpio4 17 0x4>;
};
};
};
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/boot/dts/ste-hrefv60plus.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@
};

soc {
i2c@80110000 {
bu21013_tp@0x5c {
reset-gpio = <&gpio4 15 0x4>;
};
};

// External Micro SD slot
sdi0_per1@80126000 {
arm,primecell-periphid = <0x10480180>;
Expand Down

0 comments on commit 741a6c4

Please sign in to comment.