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

ARM: dts: sun8i: a83t: Correct USB3503 GPIOs polarity

Current USB3503 driver ignores GPIO polarity and always operates as if the
GPIO lines were flagged as ACTIVE_HIGH. Fix the polarity for the existing
USB3503 chip applications to match the chip specification and common
convention for naming the pins. The only pin, which has to be ACTIVE_LOW
is the reset pin. The remaining are ACTIVE_HIGH. This change allows later
to fix the USB3503 driver to properly use generic GPIO bindings and read
polarity from DT.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>

authored by

Marek Szyprowski and committed by
Maxime Ripard
1c226017 3d615c2f

+1 -1
+1 -1
arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
··· 101 101 initial-mode = <1>; /* initialize in HUB mode */ 102 102 disabled-ports = <1>; 103 103 intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ 104 - reset-gpios = <&pio 4 16 GPIO_ACTIVE_HIGH>; /* PE16 */ 104 + reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */ 105 105 connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */ 106 106 refclk-frequency = <19200000>; 107 107 };