Skip to content

Commit

Permalink
rk3588-fxblox-rk1a dd edp and user leds to dts
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdichi committed Dec 24, 2023
1 parent e04de16 commit e6a6f98
Showing 1 changed file with 91 additions and 7 deletions.
98 changes: 91 additions & 7 deletions arch/arm64/boot/dts/rockchip/rk3588-fxblox-rk1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,18 @@
led_blue {
gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};

user-led1 {
gpios = <&gpio4 RK_PA1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
default-state = "on";
};

user-led2 {
gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};

fan0: pwm-fan {
Expand All @@ -215,6 +226,39 @@
cooling-levels = <90 110 130 150 170 190 210 230 255>;
pwms = <&pwm1 0 10000 0>;
};

panel-edp0 {
compatible = "simple-panel";
prepare-delay-ms = <120>;
enable-delay-ms = <120>;
unprepare-delay-ms = <120>;
disable-delay-ms = <120>;
width-mm = <129>;
height-mm = <171>;

panel-timing {
clock-frequency = <148500000>;
hactive = <1920>;
vactive = <1080>;
hfront-porch = <88>;
hsync-len = <44>;
hback-porch = <148>;
vfront-porch = <4>;
vsync-len = <5>;
vback-porch = <36>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};

port {
panel_in_edp0: endpoint {
data-lanes = <2>;
remote-endpoint = <&edp0_out_panel>;
};
};
};
};

&av1d {
Expand Down Expand Up @@ -597,8 +641,8 @@

&display_subsystem {
clocks = <&hdptxphy_hdmi_clk0>, <&hdptxphy_hdmi_clk1>;
clock-names = "hdmi0_phy_pll", "hdmi1_phy_pll";

clock-names = "hdmi0_phy_pll", "hdmi1_phy_pll";
route {
route_dp0: route-dp0 {
status = "ok";
Expand All @@ -615,8 +659,17 @@
logo,kernel = "logo_kernel.bmp";
logo,mode = "center";
charge_logo,mode = "center";
connect = <&vp2_out_dp1>;
};
connect = <&vp1_out_dp1>;
};

route_edp0: route-edp0 {
status = "ok";
logo,uboot = "logo.bmp";
logo,kernel = "logo_kernel.bmp";
logo,mode = "center";
charge_logo,mode = "center";
connect = <&vp2_out_edp0>;
};
};
};

Expand Down Expand Up @@ -1030,7 +1083,7 @@
status = "okay";
};

&dp1_in_vp2 {
&dp1_in_vp1 {
status = "okay";
};

Expand All @@ -1041,7 +1094,7 @@

&route_dp1 {
status = "okay";
connect = <&vp2_out_dp1>;
connect = <&vp1_out_dp1>;
};

&spdif_tx2 {
Expand Down Expand Up @@ -1255,3 +1308,34 @@
};
};


&edp0 {
force-hpd;
status = "okay";

ports {
port@1 {
reg = <1>;
edp0_out_panel: endpoint {
remote-endpoint = <&panel_in_edp0>;
};
};
};
};


&edp0_in_vp2 {
status = "okay";
};

&hdptxphy0 {
status = "okay";
};

&spdif_tx3 {
status = "okay";
};

&hdptxphy0 {
status = "okay";
};

0 comments on commit e6a6f98

Please sign in to comment.