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#187 from RadxaMitchell/main
Add rock-pi-e overlay support
- Loading branch information
Showing
4 changed files
with
96 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
metadata { | ||
title = "Enable PWM2"; | ||
compatible = "rockchip,rk3328"; | ||
category = "misc"; | ||
exclusive = "GPIO2_A6"; | ||
description = "Enable PWM2.\nOn Rock Pi E this is pin 33."; | ||
}; | ||
|
||
fragment@0 { | ||
target = <&pwm2>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pwm0_pin>; | ||
}; | ||
}; | ||
}; |
30 changes: 30 additions & 0 deletions
30
arch/arm64/boot/dts/rockchip/overlays/rk3328-spi0-spidev.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,30 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/{ | ||
metadata { | ||
title = "Enable spidev on SPI0"; | ||
compatible = "rockchip,rk3328"; | ||
category = "misc"; | ||
exclusive = "GPIO3_A0", "GPIO3_A1", "GPIO3_A2", "GPIO3_B0"; | ||
description = "Enable spidev on SPI0 on pin 19, 21, 23 & 24."; | ||
}; | ||
|
||
fragment@0 { | ||
target = <&spi0>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&spi0m2_clk &spi0m2_tx &spi0m2_rx &spi0m2_cs0>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
spidev@0 { | ||
compatible = "rockchip,spidev"; | ||
reg = <0>; | ||
spi-max-frequency = <50000000>; | ||
}; | ||
}; | ||
}; | ||
}; |
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 UART1"; | ||
compatible = "rockchip,rk3328"; | ||
category = "misc"; | ||
exclusive = "GPIO3_A4", "GPIO3_A5"; | ||
description = "Enable UART1"; | ||
}; | ||
|
||
fragment@0 { | ||
target = <&uart1>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>; | ||
}; | ||
}; | ||
}; |
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 UART2-M0"; | ||
compatible = "rockchip,rk3328"; | ||
category = "misc"; | ||
exclusive = "GPIO1_A0", "GPIO1_A1"; | ||
description = "Enable UART2-M0"; | ||
}; | ||
|
||
fragment@0 { | ||
target = <&uart2>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&uart2m1_xfer>; | ||
}; | ||
}; | ||
}; |