diff --git a/patch/kernel/archive/meson64-6.0/board-radxa-zero-dts-add-support-for-the-usb-c-controller.patch b/patch/kernel/archive/meson64-6.0/board-radxa-zero-dts-add-support-for-the-usb-c-controller.patch index cb9eb74135d2..820b3ea747d6 100644 --- a/patch/kernel/archive/meson64-6.0/board-radxa-zero-dts-add-support-for-the-usb-c-controller.patch +++ b/patch/kernel/archive/meson64-6.0/board-radxa-zero-dts-add-support-for-the-usb-c-controller.patch @@ -1,8 +1,8 @@ -From 795fad491189f7fd6034d6d639602119a4e60755 Mon Sep 17 00:00:00 2001 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Christian Hewitt Date: Tue, 17 Aug 2021 16:16:43 +0000 -Subject: [PATCH 68/90] WIP: arm64: dts: meson: radxa-zero: add support for the - usb type-c controller +Subject: [PATCH] arm64: dts: meson: radxa-zero: add support for the usb type-c + controller Radxa Zero uses an FUSB302 type-c controller, so lets enable it. @@ -10,14 +10,20 @@ NB: Polarity swapping via GPIO is not implemented in the current driver (see drivers/usb/typec/tcpm/fusb302.c) so it is not possible to handle GPIOAO_6 for USB3 polarity control. +Includes: +- arm64: dts: amlogic: fix interrupt storm from fusb302 on Radxa Zero + it makes load average >1. use correct pin for interrupt from fusb302. + +Signed-off-by: FUKAUMI Naoki Suggested-by: Neil Armstrong Signed-off-by: Christian Hewitt +Signed-off-by: Yuntian Zhang --- - .../dts/amlogic/meson-g12a-radxa-zero.dts | 44 +++++++++++++++++++ + .../dts/amlogic/meson-g12a-radxa-zero.dts | 48 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dts -index e3bb6df42ff3..5e3dc013409f 100644 +index e3bb6df42..5e3dc0134 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dts @@ -60,6 +60,14 @@ sdio_pwrseq: sdio-pwrseq { @@ -54,11 +60,15 @@ index e3bb6df42ff3..5e3dc013409f 100644 &arb { status = "okay"; }; -@@ -278,6 +298,22 @@ &ir { +@@ -278,6 +298,26 @@ &ir { pinctrl-names = "default"; }; -+&i2c_AO { ++&i2c3 { ++ pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>; ++ pinctrl-names = "default"; ++ status = "okay"; ++ + fusb302@22 { + compatible = "fcs,fusb302"; + reg = <0x22>; @@ -66,7 +76,7 @@ index e3bb6df42ff3..5e3dc013409f 100644 + pinctrl-0 = <&fusb302_irq_pins>; + pinctrl-names = "default"; + interrupt-parent = <&gpio_intc>; -+ interrupts = <59 IRQ_TYPE_LEVEL_LOW>; ++ interrupts = <5 IRQ_TYPE_LEVEL_LOW>; + + vbus-supply = <&typec2_vbus>; + @@ -90,5 +100,4 @@ index e3bb6df42ff3..5e3dc013409f 100644 + phy-supply = <&typec2_vbus>; +}; -- -2.35.1 - +2.36.1