forked from radxa-pkg/radxa-overlays
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request radxa-pkg#275 from lsj123lsjlsj/main
rock 2a: add pwm and uart support
- Loading branch information
Showing
15 changed files
with
303 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; |
25 changes: 25 additions & 0 deletions
25
arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart1m0.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable FIQ Debugger on UART1-M0"; | ||
compatible = "radxa,rock-2a"; | ||
category = "misc"; | ||
exclusive = "GPIO4_A7", "GPIO4_A6"; | ||
description = "Enable FIQ Debugger on UART1-M0."; | ||
}; | ||
}; | ||
|
||
&{/} { | ||
fiq-debugger { | ||
status = "okay"; | ||
rockchip,serial-id = <1>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&uart1m0_xfer>; | ||
}; | ||
}; | ||
|
||
&uart1 { | ||
status = "disabled"; | ||
}; |
25 changes: 25 additions & 0 deletions
25
arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart3m0.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable FIQ Debugger on UART3-M0"; | ||
compatible = "radxa,rock-2a"; | ||
category = "misc"; | ||
exclusive = "GPIO4_B0", "GPIO4_B1"; | ||
description = "Enable FIQ Debugger on UART3-M0."; | ||
}; | ||
}; | ||
|
||
&{/} { | ||
fiq-debugger { | ||
status = "okay"; | ||
rockchip,serial-id = <3>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&uart3m0_xfer>; | ||
}; | ||
}; | ||
|
||
&uart3 { | ||
status = "disabled"; | ||
}; |
25 changes: 25 additions & 0 deletions
25
arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart3m1.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable FIQ Debugger on UART3-M1"; | ||
compatible = "radxa,rock-2a"; | ||
category = "misc"; | ||
exclusive = "GPIO4_B7", "GPIO4_C0"; | ||
description = "Enable FIQ Debugger on UART3-M1."; | ||
}; | ||
}; | ||
|
||
&{/} { | ||
fiq-debugger { | ||
status = "okay"; | ||
rockchip,serial-id = <3>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&uart3m1_xfer>; | ||
}; | ||
}; | ||
|
||
&uart3 { | ||
status = "disabled"; | ||
}; |
25 changes: 25 additions & 0 deletions
25
arch/arm64/boot/dts/rockchip/overlays/rk3528-fiq-debugger-uart7m0.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable FIQ Debugger on UART7-M0"; | ||
compatible = "radxa,rock-2a"; | ||
category = "misc"; | ||
exclusive = "GPIO3_B3", "GPIO3_B2"; | ||
description = "Enable FIQ Debugger on UART7-M0."; | ||
}; | ||
}; | ||
|
||
&{/} { | ||
fiq-debugger { | ||
status = "okay"; | ||
rockchip,serial-id = <7>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&uart7m0_xfer>; | ||
}; | ||
}; | ||
|
||
&uart7 { | ||
status = "disabled"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable PWM0-M0"; | ||
compatible = "radxa,rock-2a"; | ||
category = "misc"; | ||
exclusive = "GPIO4_C3"; | ||
description = "Enable PWM0-M0.\nOn Radxa ROCK 2A this is pin 32."; | ||
}; | ||
}; | ||
|
||
&pwm0 { | ||
status = "disabled"; | ||
pinctrl-names = "active"; | ||
pinctrl-0 = <&pwm0m0_pins>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable PWM3-M0"; | ||
compatible = "radxa,rock-2a"; | ||
category = "misc"; | ||
exclusive = "GPIO4_C6"; | ||
description = "Enable PWM3-M0.\nOn Radxa ROCK 2A this is pin 15."; | ||
}; | ||
}; | ||
|
||
&pwm3 { | ||
status = "disabled"; | ||
pinctrl-names = "active"; | ||
pinctrl-0 = <&pwm3m0_pins>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable PWM4-M0"; | ||
compatible = "radxa,rock-2a"; | ||
category = "misc"; | ||
exclusive = "GPIO4_B7"; | ||
description = "Enable PWM5-M0.\nOn Radxa ROCK 2A this is pin 11."; | ||
}; | ||
}; | ||
|
||
&pwm4 { | ||
status = "disabled"; | ||
pinctrl-names = "active"; | ||
pinctrl-0 = <&pwm4m0_pins>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable PWM5-M0"; | ||
compatible = "radxa,rock-2a"; | ||
category = "misc"; | ||
exclusive = "GPIO4_C0"; | ||
description = "Enable PWM5-M0.\nOn Radxa ROCK 2A this is pin 13."; | ||
}; | ||
}; | ||
|
||
&pwm5 { | ||
status = "disabled"; | ||
pinctrl-names = "active"; | ||
pinctrl-0 = <&pwm5m0_pins>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable UART0-M0"; | ||
compatible = "radxa,rock-2a"; | ||
category = "misc"; | ||
exclusive = "GPIO4_C7", "GPIO4_D0"; | ||
description = "Enable UART0-M0.\nOn Radxa ROCK 2A this is RX pin 10 & TX pin 8."; | ||
}; | ||
}; | ||
|
||
&{/} { | ||
fiq-debugger { | ||
status = "disabled"; | ||
}; | ||
}; | ||
|
||
&uart0 { | ||
status = "okay"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable UART1-M0"; | ||
compatible = "radxa,rock-2a"; | ||
category = "misc"; | ||
exclusive = "GPIO4_A7", "GPIO4_A6"; | ||
description = "Enable UART1-M0.\nOn Radxa ROCK 2A this is RX pin 40 & TX pin 36."; | ||
}; | ||
}; | ||
|
||
&uart1 { | ||
status = "okay"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&uart1m0_xfer>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable UART3-M0"; | ||
compatible = "radxa,rock-2a"; | ||
category = "misc"; | ||
exclusive = "GPIO4_B0", "GPIO4_B1"; | ||
description = "Enable UART3-M0.\nOn Radxa ROCK 2A this is RX pin 16 & TX pin 18."; | ||
}; | ||
}; | ||
|
||
&uart3 { | ||
status = "okay"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&uart3m0_xfer>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable UART3-M1"; | ||
compatible = "radxa,rock-2a"; | ||
category = "misc"; | ||
exclusive = "GPIO4_B7", "GPIO4_C0"; | ||
description = "Enable UART3-M1.\nOn Radxa ROCK 2A this is RX pin 11 & TX pin 13."; | ||
}; | ||
}; | ||
|
||
&uart3 { | ||
status = "okay"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&uart3m1_xfer>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable UART7-M0"; | ||
compatible = "radxa,rock-2a"; | ||
category = "misc"; | ||
exclusive = "GPIO3_B3", "GPIO3_B2"; | ||
description = "Enable UART7-M0.\nOn Radxa ROCK 2A this is RX pin 27 & TX pin 28."; | ||
}; | ||
}; | ||
|
||
&uart7 { | ||
status = "okay"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&uart7m0_xfer>; | ||
}; |