Skip to content

Commit

Permalink
Merge pull request radxa-pkg#187 from RadxaMitchell/main
Browse files Browse the repository at this point in the history
Add rock-pi-e overlay support
  • Loading branch information
RadxaYuntian authored Oct 10, 2023
2 parents 0e11b1a + 4c31668 commit ec2d8b7
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 0 deletions.
22 changes: 22 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rk3328-pwm2.dts
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 arch/arm64/boot/dts/rockchip/overlays/rk3328-spi0-spidev.dts
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>;
};
};
};
};
22 changes: 22 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rk3328-uart1.dts
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>;
};
};
};
22 changes: 22 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rk3328-uart2-m0.dts
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>;
};
};
};

0 comments on commit ec2d8b7

Please sign in to comment.