Few device fixes for omaps

Here's a collection of minor fixes for annoying usability issues
 people have noticed using various devices.
 
 There are two regression fixes:
 
 - A regression fix for omap5 usb3 dual role mode
 
 - A regression fix to ams-delta audio being muted permanently
 
 And two one-liners:
 
 - Fix polarity for am335x-pdu001 SD card detection
 
 - Fix non-working omap4-sdp Ethernet startup for rebind
 
 It would be nice to get these merged during the -rc cycle if
 possible. Naturally these can all wait for the merge window too
 if we start running out of time.
 -----BEGIN PGP SIGNATURE-----
 
 iQJFBAABCAAvFiEEkgNvrZJU/QSQYIcQG9Q+yVyrpXMFAlwP3icRHHRvbnlAYXRv
 bWlkZS5jb20ACgkQG9Q+yVyrpXNP7A//aAbGiahFlabg4gaSh/e9p1lvrOx2jQT8
 yMM3gQyq7f9S1T/ptM8yF+EY1BPRM8YZNy6lAYMRbx8cIuP+PXyZpsfF7/A6ONGp
 e6jpK+kb7QNedJGvlA+oW+OmsxeW65duywjIStn66JqYLJ10f4skE7mEFJOvbGp9
 mBSiFJdbN/Sfn6VxgGAXnHTTq1CZa/WjHIKtPhTiImRDA293iIdZESgH2VIZAr+f
 maBqrgg55MsNNVbfc5ah0Euqec9NZB8g0pf0CcyC9eQiOtJLy7E2IdIlWKZS2iir
 lG8lCW1+3jw86fXgM92gim54VqWGLMN4a2SxQW6yBf9pjapf4EqWwYWC2pSzKRns
 kaKY0qe96kl32/KyoN96Qx26YAAJZQ1FfbcW0/1gOJWiHgtOuOv3HKTZYlggIrGB
 v5iIdyUhGmOFKgWRSjYDwl355tyuP9qk3ibeWoD4SVvNdsIq7HRv1jAaAMclNgqc
 w+zvly4Mf5S9CAhAZdZQg5l/6fG7Y0v3vNzM139fKXcQZPw353qRvMvJz7ryZrfv
 HjTYgECAYOIpVN+3hP04S83DH614hHzfoNfrDnMtsDOog3Aa60v0cP8l4Ip5qdGg
 XVTV33hBRbnpQRS0aY4j5AGvxKnJu7hgTOOz00buq2NsMuhnrM9Fh8OlYuJ3BM3o
 lNFIe3k36b8=
 =mhE2
 -----END PGP SIGNATURE-----

Merge tag 'omap-for-v4.20/fixes-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes

Few device fixes for omaps

Here's a collection of minor fixes for annoying usability issues
people have noticed using various devices.

There are two regression fixes:

- A regression fix for omap5 usb3 dual role mode

- A regression fix to ams-delta audio being muted permanently

And two one-liners:

- Fix polarity for am335x-pdu001 SD card detection

- Fix non-working omap4-sdp Ethernet startup for rebind

It would be nice to get these merged during the -rc cycle if
possible. Naturally these can all wait for the merge window too
if we start running out of time.

* tag 'omap-for-v4.20/fixes-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
  ARM: dts: Fix OMAP4430 SDP Ethernet startup
  ARM: dts: am335x-pdu001: Fix polarity of card detection input
  ARM: OMAP1: ams-delta: Fix audio permanently muted
  ARM: dts: omap5: Fix dual-role mode on Super-Speed port

Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
Olof Johansson 2018-12-12 14:20:02 -08:00
commit 24161e726f
4 changed files with 7 additions and 3 deletions

View file

@ -585,7 +585,7 @@ &mmc2 {
bus-width = <4>;
pinctrl-names = "default";
pinctrl-0 = <&mmc2_pins>;
cd-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
cd-gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
};
&sham {

View file

@ -33,6 +33,7 @@ vdd_eth: fixedregulator-vdd-eth {
gpio = <&gpio2 16 GPIO_ACTIVE_HIGH>; /* gpio line 48 */
enable-active-high;
regulator-boot-on;
startup-delay-us = <25000>;
};
vbat: fixedregulator-vbat {

View file

@ -701,6 +701,7 @@ &usb3 {
};
&dwc3 {
extcon = <&extcon_usb3>;
dr_mode = "otg";
};

View file

@ -247,8 +247,8 @@ static struct platform_device latch2_gpio_device = {
#define LATCH2_PIN_SCARD_CMDVCC 11
#define LATCH2_PIN_MODEM_NRESET 12
#define LATCH2_PIN_MODEM_CODEC 13
#define LATCH2_PIN_HOOKFLASH1 14
#define LATCH2_PIN_HOOKFLASH2 15
#define LATCH2_PIN_AUDIO_MUTE 14
#define LATCH2_PIN_HOOKFLASH 15
static struct regulator_consumer_supply modem_nreset_consumers[] = {
REGULATOR_SUPPLY("RESET#", "serial8250.1"),
@ -588,6 +588,8 @@ static int gpiochip_match_by_label(struct gpio_chip *chip, void *data)
static struct gpiod_hog ams_delta_gpio_hogs[] = {
GPIO_HOG(LATCH2_LABEL, LATCH2_PIN_KEYBRD_DATAOUT, "keybrd_dataout",
GPIO_ACTIVE_HIGH, GPIOD_OUT_LOW),
GPIO_HOG(LATCH2_LABEL, LATCH2_PIN_AUDIO_MUTE, "audio_mute",
GPIO_ACTIVE_HIGH, GPIOD_OUT_LOW),
{},
};