]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ARM: dts: sun8i: a83t: Correct USB3503 GPIOs polarity
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 11 Dec 2019 14:52:17 +0000 (15:52 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 17 Dec 2019 08:37:14 +0000 (09:37 +0100)
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>
arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts

index fb928503ad45da35e12b24189e3ece6ae66d1cca..d9be511f054f0ecf4e5be68bd68bfe7eb25d0d09 100644 (file)
                initial-mode = <1>; /* initialize in HUB mode */
                disabled-ports = <1>;
                intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
-               reset-gpios = <&pio 4 16 GPIO_ACTIVE_HIGH>; /* PE16 */
+               reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */
                connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */
                refclk-frequency = <19200000>;
        };