Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64: dts: rk3588-fxblox-rk1: add edp and user leds #134

Merged
merged 2 commits into from
Dec 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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";
amazingfate marked this conversation as resolved.
Show resolved Hide resolved
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";
};
Loading