Skip to content

Commit

Permalink
rock 2a: fix format and add usb otg support
Browse files Browse the repository at this point in the history
Signed-off-by: SongJun Li <[email protected]>
  • Loading branch information
lsj123lsjlsj committed Mar 26, 2024
1 parent 66a5588 commit 908b769
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 13 deletions.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/rockchip/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
18 changes: 18 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rk3528-dwc3-otg.dts
Original file line number Diff line number Diff line change
@@ -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";
};
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
};

&uart1 {
status = "disabled";
status = "disabled";
};
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
};

&uart3 {
status = "disabled";
status = "disabled";
};
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
};

&uart3 {
status = "disabled";
status = "disabled";
};
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
};

&uart7 {
status = "disabled";
status = "disabled";
};
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm0-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
};

&pwm0 {
status = "disabled";
status = "disabled";
pinctrl-names = "active";
pinctrl-0 = <&pwm0m0_pins>;
};
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm3-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
};

&pwm3 {
status = "disabled";
status = "disabled";
pinctrl-names = "active";
pinctrl-0 = <&pwm3m0_pins>;
};
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm4-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
};

&pwm4 {
status = "disabled";
status = "disabled";
pinctrl-names = "active";
pinctrl-0 = <&pwm4m0_pins>;
};
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3528-pwm5-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
};

&pwm5 {
status = "disabled";
status = "disabled";
pinctrl-names = "active";
pinctrl-0 = <&pwm5m0_pins>;
};
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3528-uart0-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
};

&uart0 {
status = "okay";
status = "okay";
};
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3528-uart1-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
};

&uart1 {
status = "okay";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart1m0_xfer>;
};
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3528-uart3-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
};

&uart3 {
status = "okay";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart3m0_xfer>;
};
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3528-uart3-m1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
};

&uart3 {
status = "okay";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart3m1_xfer>;
};
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3528-uart7-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
};

&uart7 {
status = "okay";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart7m0_xfer>;
};

0 comments on commit 908b769

Please sign in to comment.