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

6.1-rkr3: sync FriendlyElec's DTs from vendor (common, R6S, R6C, T6, CM3588) + add T6-LTS DT #209

Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/rockchip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-fxblox-rk1.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-hinlink-h88k.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-nanopc-cm3588-nas.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-nanopc-t6.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-nanopc-t6-lts.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-nvr-demo-v10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-nvr-demo-v10-android.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-nvr-demo-v10-ipc-4x-linux.dtb
Expand Down
7 changes: 6 additions & 1 deletion arch/arm64/boot/dts/rockchip/rk3588-nanopc-cm3588-nas.dts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@
status = "disabled";
compatible = "pwm-fan";
#cooling-cells = <2>;
fan-supply = <&vcc5v0_sys>;
pwms = <&pwm1 0 50000 0>;
cooling-levels = <0 50 100 150 200 255>;
cooling-levels = <0 35 64 100 150 255>;
rockchip,hold-time-ms = <2000>;
rockchip,temp-trips = <
50000 1
55000 2
Expand Down Expand Up @@ -293,6 +295,7 @@
status = "okay";

#sound-dai-cells = <1>;
edid-version = <3>;
/* Effective level used to trigger HPD: 0-low, 1-high */
hpd-trigger-level = <1>;
hdmirx-det-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
Expand Down Expand Up @@ -419,6 +422,7 @@
};

&i2c8 {
status = "okay";
pinctrl-0 = <&i2c8m2_xfer>;
/* connected with Header_2.54MM */
};
Expand All @@ -429,6 +433,7 @@
&i2s0_sclk
&i2s0_sdi0
&i2s0_sdo0>;
rockchip,trcm-sync-tx-only;
};

&i2s6_8ch {
Expand Down
29 changes: 29 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6-lts.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2023 FriendlyElec Computer Tech. Co., Ltd.
* (http://www.friendlyelec.com)
*/

/dts-v1/;
#include "rk3588-nanopc-t6.dts"

/ {
model = "FriendlyElec NanoPC-T6 LTS";
compatible = "friendlyelec,nanopc-t6", "rockchip,rk3588";

vcc5v0_host_20: vcc5v0-host-20 {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&vcc5v0_host20_en>;
regulator-name = "vcc5v0_host_20";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
vin-supply = <&vcc5v0_usb>;
};
};

&u2phy3_host {
phy-supply = <&vcc5v0_host_20>;
};
15 changes: 12 additions & 3 deletions arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@
status = "okay";
compatible = "pwm-fan";
#cooling-cells = <2>;
fan-supply = <&vcc5v0_sys>;
pwms = <&pwm1 0 50000 0>;
cooling-levels = <0 50 100 150 200 255>;
cooling-levels = <0 35 64 100 150 255>;
rockchip,hold-time-ms = <2000>;
rockchip,temp-trips = <
50000 1
55000 2
Expand Down Expand Up @@ -208,9 +210,9 @@
};

&hdmi0 {
cec-enable = "true";
enable-gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>;
status = "okay";
cec-enable = "true";
};

&hdmi0_in_vp0 {
Expand All @@ -230,9 +232,9 @@
};

&hdmi1 {
cec-enable = "true";
enable-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
status = "okay";
cec-enable = "true";
};

&hdmi1_in_vp0 {
Expand Down Expand Up @@ -260,6 +262,7 @@
status = "okay";

#sound-dai-cells = <1>;
edid-version = <3>;
/* Effective level used to trigger HPD: 0-low, 1-high */
hpd-trigger-level = <1>;
hdmirx-det-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
Expand Down Expand Up @@ -406,6 +409,7 @@
&i2s0_sclk
&i2s0_sdi0
&i2s0_sdo0>;
rockchip,trcm-sync-tx-only;
};

&i2s6_8ch {
Expand Down Expand Up @@ -572,6 +576,11 @@
vcc5v0_host30_en: vcc5v0-host30-en {
rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
};

/omit-if-no-ref/
vcc5v0_host20_en: vcc5v0-host20-en {
rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};

Expand Down
12 changes: 11 additions & 1 deletion arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@
status = "okay";
};

&avsd {
status = "okay";
};

&combphy0_ps {
status = "okay";
};
Expand Down Expand Up @@ -184,9 +188,9 @@
};

&hdmi0 {
cec-enable;
enable-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
status = "okay";
cec-enable = "true";
};

&hdmi0_in_vp0 {
Expand Down Expand Up @@ -526,6 +530,10 @@
status = "okay";
};

&rkvtunnel {
status = "okay";
};

&avcc_1v8_s0 {
regulator-state-mem {
regulator-on-in-suspend;
Expand Down Expand Up @@ -667,6 +675,8 @@
&vop {
assigned-clocks = <&cru ACLK_VOP>;
assigned-clock-rates = <800000000>;
vop-supply = <&vdd_log_s0>;
support-multi-area;
status = "okay";
disable-win-move;
};
Expand Down
14 changes: 13 additions & 1 deletion arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,17 @@
};

&pcie2x1l2 {
rockchip,skip-hw-retry;
/delete-node/ pcie@40;
};
};

/* GPIO Connector */
&pwm0 {
pinctrl-0 = <&pwm0m2_pins>;
status = "okay";
};

&pwm1 {
pinctrl-0 = <&pwm1m2_pins>;
status = "okay";
};
10 changes: 10 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,13 @@
status = "okay";
};


&uart4 {
pinctrl-0 = <&uart4m2_xfer>;
status = "disabled";
};

&uart5 {
pinctrl-0 = <&uart5m1_xfer>;
status = "okay";
};
Loading