diff --git a/arch/arm64/boot/dts/rockchip/overlays/Makefile b/arch/arm64/boot/dts/rockchip/overlays/Makefile index 4088fe53..d3177d32 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/Makefile +++ b/arch/arm64/boot/dts/rockchip/overlays/Makefile @@ -105,6 +105,7 @@ dtb-$(CONFIG_CPU_RK3399) += \ rock-4-radxa-display-10hd.dtbo dtb-$(CONFIG_CLK_RK3528) += \ + rk3528-dwc3-otg.dtbo \ rk3528-fiq-debugger-uart1m0.dtbo \ rk3528-fiq-debugger-uart3m0.dtbo \ rk3528-fiq-debugger-uart3m1.dtbo \ diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-dwc3-otg.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-dwc3-otg.dts new file mode 100644 index 00000000..2895a65c --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-dwc3-otg.dts @@ -0,0 +1,18 @@ +// ROCK 2A USB OTG +/dts-v1/; +/plugin/; + +/ { + metadata { + title = "Set OTG port to be controlled by hardware switch"; + compatible = "radxa,rock-2a"; + category = "misc"; + exclusive = "usbdrd_dwc3-dr_mode"; + description = "Set OTG port to be controlled by hardware switch."; + }; +}; + +&usbdrd_dwc3 { + status = "okay"; + dr_mode = "otg"; +}; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart1m0.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart1m0.dts index 890d6a7a..37076830 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart1m0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart1m0.dts @@ -21,5 +21,5 @@ }; &uart1 { - status = "disabled"; + status = "disabled"; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart3m0.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart3m0.dts index d4937d21..55f38873 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart3m0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart3m0.dts @@ -21,5 +21,5 @@ }; &uart3 { - status = "disabled"; + status = "disabled"; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart3m1.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart3m1.dts index d007594a..3f982cd5 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart3m1.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart3m1.dts @@ -21,5 +21,5 @@ }; &uart3 { - status = "disabled"; + status = "disabled"; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart7m0.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart7m0.dts index dfa858a7..13fe4e60 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart7m0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart7m0.dts @@ -21,5 +21,5 @@ }; &uart7 { - status = "disabled"; + status = "disabled"; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm0-m0.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm0-m0.dts index e00ec2c5..cb1aae8f 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm0-m0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm0-m0.dts @@ -12,7 +12,7 @@ }; &pwm0 { - status = "disabled"; + status = "disabled"; pinctrl-names = "active"; pinctrl-0 = <&pwm0m0_pins>; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm3-m0.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm3-m0.dts index ccecd1f7..0b0c34eb 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm3-m0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm3-m0.dts @@ -12,7 +12,7 @@ }; &pwm3 { - status = "disabled"; + status = "disabled"; pinctrl-names = "active"; pinctrl-0 = <&pwm3m0_pins>; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm4-m0.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm4-m0.dts index 5f971f6f..9cdb6f7a 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm4-m0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm4-m0.dts @@ -12,7 +12,7 @@ }; &pwm4 { - status = "disabled"; + status = "disabled"; pinctrl-names = "active"; pinctrl-0 = <&pwm4m0_pins>; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm5-m0.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm5-m0.dts index f3b2cc9f..cf0501f4 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm5-m0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm5-m0.dts @@ -12,7 +12,7 @@ }; &pwm5 { - status = "disabled"; + status = "disabled"; pinctrl-names = "active"; pinctrl-0 = <&pwm5m0_pins>; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart0-m0.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart0-m0.dts index e6f166b5..200d782b 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart0-m0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart0-m0.dts @@ -18,5 +18,5 @@ }; &uart0 { - status = "okay"; + status = "okay"; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart1-m0.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart1-m0.dts index f38c269d..f29b3d90 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart1-m0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart1-m0.dts @@ -12,7 +12,7 @@ }; &uart1 { - status = "okay"; + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart1m0_xfer>; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart3-m0.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart3-m0.dts index ae955b0f..79e76979 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart3-m0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart3-m0.dts @@ -12,7 +12,7 @@ }; &uart3 { - status = "okay"; + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart3m0_xfer>; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart3-m1.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart3-m1.dts index 880ac3cf..1a43b974 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart3-m1.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart3-m1.dts @@ -12,7 +12,7 @@ }; &uart3 { - status = "okay"; + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart3m1_xfer>; }; diff --git a/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart7-m0.dts b/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart7-m0.dts index 31a98d90..8c1eac2c 100644 --- a/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart7-m0.dts +++ b/arch/arm64/boot/dts/rockchip/overlays/rk3528-uart7-m0.dts @@ -12,7 +12,7 @@ }; &uart7 { - status = "okay"; + status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&uart7m0_xfer>; };