Skip to content

Commit

Permalink
dts: k230: fix LCD DTS
Browse files Browse the repository at this point in the history
Signed-off-by: 黄子懿 <[email protected]>
  • Loading branch information
MrThanlon committed Sep 13, 2024
1 parent 8a779a5 commit bd5e662
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 18 deletions.
21 changes: 21 additions & 0 deletions arch/riscv/boot/dts/canaan/display-hx8399-1080x1920.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
};

&dsi {
ports {
port@1 {
reg = <1>;
dsi_out_hx8399: endpoint {
remote-endpoint = <&hx8399_in>;
};
};
};

lcd: panel@0 {
compatible = "canaan,universal";
reg = <0>;
Expand Down Expand Up @@ -57,5 +66,17 @@
vsync-len = <5>;
};
};

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

port@0 {
reg = <0>;
hx8399_in: endpoint {
remote-endpoint = <&dsi_out_hx8399>;
};
};
};
};
};
16 changes: 16 additions & 0 deletions arch/riscv/boot/dts/canaan/display-st7701-480x800.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
};

&dsi {
ports {
port@1 {
reg = <1>;
dsi_out_st7701: endpoint {
remote-endpoint = <&st7701_in>;
};
};
};

lcd: panel@0 {
compatible = "canaan,universal";
reg = <0>;
Expand Down Expand Up @@ -76,6 +85,13 @@
ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
st7701_in: endpoint {
remote-endpoint = <&dsi_out_st7701>;
};
};
};
};
};
18 changes: 0 additions & 18 deletions arch/riscv/boot/dts/canaan/k230-canmv-lcd.dts
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,8 @@
interrupts = <22 IRQ_TYPE_EDGE_FALLING>;
};
};
&dsi {
ports {
port@1 {
reg = <1>;
dsi_out_st7701: endpoint {
remote-endpoint = <&st7701_in>;
};
};
};
};

&lcd {
dsi_reset-gpios = <&gpio0_ports 20 GPIO_ACTIVE_HIGH>;
backlight_gpio-gpios = <&gpio0_ports 25 GPIO_ACTIVE_HIGH>;
ports {
port@0 {
reg = <0>;
st7701_in: endpoint {
remote-endpoint = <&dsi_out_st7701>;
};
};
};
};

0 comments on commit bd5e662

Please sign in to comment.