With the aid of Claude.Ai ..
v26.5.1 for Rock 5A running Armbian Linux 6.18.35-current-rockchip64
Starting Point is the Radxa DTS
needed to add an include ...
#include <dt-bindings/soc/rockchip,vop2.h>
Modified this section. Changed the compatible string, added the power-supply key and fixed the active area (width and height)
dsi0_panel: panel@0 {
status = "okay";
compatible = "panel-dsi-simple";
reg = <0>;
backlight = <&dsi0_backlight>;
power-supply = <&vcc_lcd_mipi0>;
vdd-supply = <&vcc_lcd_mipi0>;
vccio-supply = <&vcc_1v8_s0>;
reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&dsi0_lcd_rst_gpio>;
prepare-delay-ms = <120>;
reset-delay-ms = <120>;
init-delay-ms = <120>;
enable-delay-ms = <100>;
disable-delay-ms = <120>;
unprepare-delay-ms = <120>;
width-mm = <135>;
height-mm = <217>;
Modified this section (renamed the endpoint)
&mipi_dcphy0 {
status = "okay";
};
&route_dsi0 {
status = "okay";
connect = <&vp3_out_dsi0>;
};
&dsi0_in_vp2 {
status = "disabled";
};
&dsi0_in_vp3 {
status = "okay";
};
to simply
&mipidcphy0 {
status = "okay";
};
Added this section / endpoint
&vp3 {
#address-cells = <1>;
#size-cells = <0>;
vp3_out_dsi0: endpoint@ROCKCHIP_VOP2_EP_MIPI0 {
reg = <ROCKCHIP_VOP2_EP_MIPI0>;
remote-endpoint = <&dsi0_in_vp3>;
};
};
And then completely redid the i2c touch controller section to be
&i2c5 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c5m2_xfer>;
clock-frequency = <400000>;
#address-cells = <1>;
#size-cells = <0>;
gt9xx: gt9271@14 {
status = "okay";
compatible = "goodix,gt9271";
reg = <0x14>;
pinctrl-names = "default";
pinctrl-0 = <>9xx_gpio>;
interrupt-parent = <&gpio3>;
interrupts = <RK_PC6 IRQ_TYPE_EDGE_FALLING>;
irq-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
touchscreen-size-x = <1200>;
touchscreen-size-y = <1920>;
AVDD28-supply = <&vcc_tp>;
VDDIO-supply = <&vcc_tp>;
};
Final DTS is attached.
Worked for 6.18.53.
I had Claude write a bash script to pull everything and make the required changes and compile the device tree and can make it available, if needed.
rock-5a-radxa-display-10fhd.dts