Skip to content

Commit e6777b8

Browse files
committed
Merge tag 'stm32-dt-for-v5.11-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32 into arm/fixes
STM32 DT fixes for v5.11, round 1 Highlights: ----------- -Fixes are for DHCOM/DHCOR boards: - Fix DRC02 uSD card detect polarity - use uSD card detect on DHCOM - Disable uSD WP on DHCOM - Disable TSC2004 on DRC02 - Fix GPIO hogs on DHCOM boards * tag 'stm32-dt-for-v5.11-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32: ARM: dts: stm32: Fix GPIO hog flags on DHCOM DRC02 ARM: dts: stm32: Fix GPIO hog flags on DHCOM PicoITX ARM: dts: stm32: Fix GPIO hog names on DHCOM ARM: dts: stm32: Disable optional TSC2004 on DRC02 board ARM: dts: stm32: Disable WP on DHCOM uSD slot ARM: dts: stm32: Connect card-detect signal on DHCOM ARM: dts: stm32: Fix polarity of the DH DRC02 uSD card detect Link: https://lore.kernel.org/r/b7379980-857e-736a-85d8-58e2bd300141@foss.st.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents e49c24c + 83d4112 commit e6777b8

3 files changed

Lines changed: 15 additions & 8 deletions

File tree

arch/arm/boot/dts/stm32mp15xx-dhcom-drc02.dtsi

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
* during TX anyway and that it only controls drive enable DE
3434
* line. Hence, the RX is always enabled here.
3535
*/
36-
rs485-rx-en {
36+
rs485-rx-en-hog {
3737
gpio-hog;
38-
gpios = <8 GPIO_ACTIVE_HIGH>;
38+
gpios = <8 0>;
3939
output-low;
4040
line-name = "rs485-rx-en";
4141
};
@@ -61,9 +61,9 @@
6161
* order to reset the Hub when USB bus is powered down, but
6262
* so far there is no such functionality.
6363
*/
64-
usb-hub {
64+
usb-hub-hog {
6565
gpio-hog;
66-
gpios = <2 GPIO_ACTIVE_HIGH>;
66+
gpios = <2 0>;
6767
output-high;
6868
line-name = "usb-hub-reset";
6969
};
@@ -87,6 +87,12 @@
8787
};
8888
};
8989

90+
&i2c4 {
91+
touchscreen@49 {
92+
status = "disabled";
93+
};
94+
};
95+
9096
&i2c5 { /* TP7/TP8 */
9197
pinctrl-names = "default";
9298
pinctrl-0 = <&i2c5_pins_a>;
@@ -104,7 +110,7 @@
104110
* are used for on-board microSD slot instead.
105111
*/
106112
/delete-property/broken-cd;
107-
cd-gpios = <&gpioi 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
113+
cd-gpios = <&gpioi 10 GPIO_ACTIVE_HIGH>;
108114
disable-wp;
109115
};
110116

arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
* in order to turn on port power when USB bus is powered up, but so
4444
* far there is no such functionality.
4545
*/
46-
usb-port-power {
46+
usb-port-power-hog {
4747
gpio-hog;
48-
gpios = <13 GPIO_ACTIVE_LOW>;
48+
gpios = <13 0>;
4949
output-low;
5050
line-name = "usb-port-power";
5151
};

arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@
390390
pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>;
391391
pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>;
392392
pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>;
393-
broken-cd;
393+
cd-gpios = <&gpiog 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
394+
disable-wp;
394395
st,sig-dir;
395396
st,neg-edge;
396397
st,use-ckin;

0 commit comments

Comments
 (0)