Skip to content

Commit

Permalink
update some overlays for radxa cm5 io
Browse files Browse the repository at this point in the history
Signed-off-by: Ken Wang <[email protected]>
  • Loading branch information
Ken-Vamrs committed Aug 29, 2024
1 parent cfc96d0 commit bc53eef
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 16 deletions.
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,8 @@ dtb-$(CONFIG_CLK_RK3588) += \
rock-5d-rpi-camera-v2-mipi-rx1.dtbo

dtb-$(CONFIG_CPU_RK3588) += \
radxa-cm5-io-allnet-5inch-display.dtbo \
radxa-cm5-io-dwc3-host.dtbo \
radxa-cm5-io-okdo-5mp.dtbo \
radxa-cm5-io-radxa-display-8hd.dtbo \
radxa-cm5-io-radxa-camera-4k.dtbo \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/dts-v1/;
/plugin/;

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>

/ {
metadata {
title = "Enable ALLNET 5inch DSI Display on DSI0";
compatible = "radxa,cm5-io";
category = "display";
exclusive = "dsi0";
description = "Enable ALLNET 5inch DSI Display on DSI0.";
};
};

&dsi0 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
rockchip,lane-rate = <605>;

dsi0_panel: dsi-panel@0 {
compatible = "raspits,tc358762-5inch";
reg = <0x0>;
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
panel_in_dsi0: endpoint {
remote-endpoint = <&dsi0_out_panel>;
};
};
};
};

ports {
#address-cells = <1>;
#size-cells = <0>;

port@1 {
reg = <1>;
dsi0_out_panel: endpoint {
remote-endpoint = <&panel_in_dsi0>;
};
};
};
};

&i2c7 {
status = "okay";
pinctrl-0 = <&i2c7m2_xfer>;
#address-cells = <1>;
#size-cells = <0>;

raspits_ft5426: raspits_ft5426@38 {
compatible = "raspits_ft5426";
reg = <0x38>;
};

chipone_icn8952: chipone_icn8952@30 {
compatible = "chipone_icn8505";
reg = <0x30>;
};

rockpi_mcu: rockpi-mcu@45 {
compatible = "rockpi_mcu";
reg = <0x45>;
};
};

&mipi_dcphy0 {
status = "okay";
};

&route_dsi0 {
status = "okay";
connect = <&vp3_out_dsi0>;
};

&dsi0_in_vp2 {
status = "disabled";
};

&dsi0_in_vp3 {
status = "okay";
};
12 changes: 12 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/radxa-cm5-io-dwc3-host.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "rk3588-dwc3-host.dts"

/ {
metadata {
compatible = "radxa,cm5-io";
};
};

&vbus5v0_typec {
regulator-always-on;
regulator-boot-on;
};
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@

&csi2_dphy0 {
status = "okay";

#address-cells = <1>;
#size-cells = <0>;
ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;

mipidphy0_in_ucam1: endpoint@2 {
mipidphy0_in_ucam1: endpoint@1 {
reg = <2>;
remote-endpoint = <&imx219_out0>;
data-lanes = <1 2>;
Expand All @@ -99,11 +99,9 @@

&mipi2_csi2 {
status = "okay";

ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
#address-cells = <1>;
Expand All @@ -114,7 +112,6 @@
remote-endpoint = <&csidphy0_out>;
};
};

port@1 {
reg = <1>;
#address-cells = <1>;
Expand All @@ -134,7 +131,6 @@

&rkcif_mipi_lvds2 {
status = "okay";

port {
cif_mipi2_in0: endpoint {
remote-endpoint = <&mipi2_csi2_output>;
Expand All @@ -144,10 +140,9 @@

&rkcif_mipi_lvds2_sditf {
status = "okay";

port {
mipi_lvds2_sditf: endpoint {
remote-endpoint = <&isp0_vir0>;
remote-endpoint = <&isp1_vir0>;
};
};
};
Expand All @@ -156,22 +151,20 @@
status = "okay";
};

&isp0_mmu {
&isp1_mmu {
status = "okay";
};

&rkisp0 {
&rkisp1 {
status = "okay";
};

&rkisp0_vir0 {
&rkisp1_vir0 {
status = "okay";

port {
#address-cells = <1>;
#size-cells = <0>;

isp0_vir0: endpoint@0 {
isp1_vir0: endpoint@0 {
reg = <0>;
remote-endpoint = <&mipi_lvds2_sditf>;
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rk3588-dwc3-host.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/ {
metadata {
title = "Set OTG port 0 to Host mode";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5c", "radxa,rock-5d", "radxa,cm5-io", "radxa,nx5-io", "radxa,e52c";
compatible = "radxa,rock-5a", "radxa,rock-5b", "radxa,rock-5c", "radxa,rock-5d", "radxa,nx5-io", "radxa,e52c";
category = "misc";
exclusive = "usbdrd_dwc3-dr_mode";
description = "Set OTG port 0 to Host mode.
Expand Down

0 comments on commit bc53eef

Please sign in to comment.