Skip to content

Commit

Permalink
arm64: dts: rockchip: add GPIO nodes for NanoPi R6 and NanoPC T6
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Riek authored and igorpecovnik committed Sep 17, 2023
1 parent 52790ed commit d94def8
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 2 deletions.
58 changes: 58 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
Original file line number Diff line number Diff line change
Expand Up @@ -721,3 +721,61 @@
clock-names = "hdmi0_phy_pll", "hdmi1_phy_pll";
};

&pwm5 {
pinctrl-0 = <&pwm5m1_pins>;
status = "okay";
};

&pwm9 {
pinctrl-0 = <&pwm9m0_pins>;
status = "okay";
};

&spi0 {
num-cs = <1>;
pinctrl-0 = <&spi0m2_cs0 &spi0m2_pins>;
status = "disabled";

spidev0: spidev@0 {
compatible = "rockchip,spidev";
reg = <0>;
spi-max-frequency = <5000000>;
status = "disabled";
};
};

&spi4 {
num-cs = <1>;
pinctrl-0 = <&spi4m1_cs0 &spi4m1_pins>;
status = "disabled";
};

&uart0 {
pinctrl-0 = <&uart0m0_xfer>;
status = "disabled";
};

&uart3 {
pinctrl-0 = <&uart3m1_xfer>;
status = "disabled";
};

&uart4 {
pinctrl-0 = <&uart4m2_xfer>;
status = "disabled";
};

&uart6 {
pinctrl-0 = <&uart6m1_xfer>;
status = "okay";
};

&uart7 {
pinctrl-0 = <&uart7m2_xfer>;
status = "disabled";
};

&uart8 {
pinctrl-0 = <&uart8m1_xfer>;
status = "disabled";
};
24 changes: 23 additions & 1 deletion arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -696,4 +696,26 @@
&display_subsystem {
clocks = <&hdptxphy_hdmi_clk0>;
clock-names = "hdmi0_phy_pll";
};
};

&spi0 {
pinctrl-0 = <&spi0m2_cs0 &spi0m2_pins>;
status = "disabled";

spidev0: spidev@0 {
compatible = "rockchip,spidev";
reg = <0>;
spi-max-frequency = <10000000>;
status = "disabled";
};
};

&uart4 {
pinctrl-0 = <&uart4m2_xfer>;
status = "disabled";
};

&uart5 {
pinctrl-0 = <&uart5m1_xfer>;
status = "okay";
};
12 changes: 11 additions & 1 deletion arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,14 @@

&pcie2x1l2 {
/delete-node/ pcie@40;
};
};

&pwm0 {
pinctrl-0 = <&pwm0m2_pins>;
status = "okay";
};

&pwm1 {
pinctrl-0 = <&pwm1m2_pins>;
status = "okay";
};

0 comments on commit d94def8

Please sign in to comment.