update rk35xx legacy kernel to 5.10

This commit is contained in:
amazingfate
2023-02-02 12:00:55 +08:00
committed by Igor
parent babc8d52fe
commit d005dc8574
8 changed files with 3302 additions and 684 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile
index f4c886a8a..6639fa6c6 100644
--- a/arch/arm64/boot/dts/rockchip/Makefile
+++ b/arch/arm64/boot/dts/rockchip/Makefile
@@ -135,6 +135,8 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nvr-demo-v10-linux.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nvr-demo-v10-linux-spi-nand.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nvr-demo-v12-linux.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-nvr-demo-v12-linux-spi-nand.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-rock-3a.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-rock-3-a.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-evb1-lp4-v10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-evb1-lp4-v10-ipc-6x-linux.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-evb1-lp4-v10-linux.dtb

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,8 @@
diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3-a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3-a.dts
new file mode 120000
index 000000000..81a81de4d
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3-a.dts
@@ -0,0 +1 @@
+rk3568-rock-3a.dts
\ No newline at end of file

View File

@@ -0,0 +1,106 @@
diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a-display.dtsi b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a-display.dtsi
new file mode 100644
index 0000000..b98b78e
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a-display.dtsi
@@ -0,0 +1,100 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2022 Radxa Limited.
+ *
+ */
+
+/ {
+ compatible = "radxa,rock-3a", "rockchip,rk3568";
+
+ vcc_mipi: vcc-mipi {
+ status = "disabled";
+ compatible = "regulator-fixed";
+ regulator-name = "vcc_mipi";
+ regulator-boot-on;
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ enable-active-high;
+ regulator-always-on;
+ gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
+ vin-supply = <&vcc3v3_sys>;
+
+ regulator-state-mem {
+ regulator-off-in-suspend;
+ };
+ };
+};
+
+&video_phy1 {
+ status = "disabled";
+};
+
+&dsi1 {
+ status = "disabled";
+ power-supply = <&vcc_mipi>;
+
+ dsi1_panel: dsi-panel@0 {
+ compatible = "rockpi,tc358762";
+ reg = <0x0>;
+ status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ panel_in_dsi1: endpoint {
+ remote-endpoint = <&dsi1_out_panel>;
+ };
+ };
+ };
+ };
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@1 {
+ reg = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ dsi1_out_panel: endpoint@0 {
+ reg = <0>;
+ remote-endpoint = <&panel_in_dsi1>;
+ };
+ };
+ };
+};
+
+&dsi1_in_vp0 {
+ status = "disabled";
+};
+
+&dsi1_in_vp1 {
+ status = "disabled";
+};
+
+&route_dsi1 {
+ status = "disabled";
+ connect = <&vp1_out_dsi1>;
+};
+
+&i2c3 {
+ status = "disabled";
+ pinctrl-0 = <&i2c3m1_xfer>;
+
+ rockpi_mcu: rockpi-mcu@45 {
+ compatible = "rockpi_mcu";
+ reg = <0x45>;
+ status = "disabled";
+ };
+
+ rockpi_ft5406: rockpi-ft5406@38 {
+ compatible = "rockpi_ft5406";
+ reg = <0x38>;
+ status = "disabled";
+ };
+};

View File

@@ -0,0 +1,158 @@
diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3ab-cameras.dtsi b/arch/arm64/boot/dts/rockchip/rk3568-rock-3ab-cameras.dtsi
new file mode 100644
index 0000000..5ceac78
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3ab-cameras.dtsi
@@ -0,0 +1,152 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2022 Radxa Limited.
+ *
+ */
+
+/ {
+ ext_cam_clk: ext-cam-clk {
+ status = "disabled";
+ compatible = "fixed-clock";
+ clock-frequency = <25000000>;
+ clock-output-names = "ext_cam_clk";
+ #clock-cells = <0>;
+ };
+
+ ext_cam_clk_imx219: ext-cam-clk-imx219 {
+ status = "disabled";
+ compatible = "fixed-clock";
+ clock-frequency = <24000000>;
+ clock-output-names = "ext_cam_clk_imx219";
+ #clock-cells = <0>;
+ };
+
+ vcc_camera: vcc-camera {
+ status = "disabled";
+ compatible = "regulator-fixed";
+ regulator-name = "vcc_camera";
+ gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ regulator-boot-on;
+ };
+};
+
+&i2c5 {
+ status = "disabled";
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c5m0_xfer>;
+
+ ov5647: ov5647@36 {
+ status = "disabled";
+ compatible = "ovti,ov5647";
+ reg = <0x36>;
+
+ clocks = <&ext_cam_clk>;
+ clock-names = "ext_cam_clk";
+ pwdn-gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_LOW>;
+
+ port {
+ ov5647_out: endpoint {
+ remote-endpoint = <&mipi_in_ucam0>;
+ data-lanes = <1 2>;
+ };
+ };
+ };
+
+ imx219: imx219@10 {
+ status = "disabled";
+ compatible = "sony,imx219";
+ reg = <0x10>;
+
+ clocks = <&ext_cam_clk_imx219>;
+ clock-names = "ext_cam_clk_imx219";
+ pwdn-gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
+
+ rockchip,camera-module-index = <1>;
+ rockchip,camera-module-facing = "front";
+ rockchip,camera-module-name = "rpi-camera-v2";
+ rockchip,camera-module-lens-name = "default";
+
+ port {
+ imx219_out: endpoint {
+ remote-endpoint = <&mipi_in_ucam1>;
+ data-lanes = <1 2>;
+ };
+ };
+ };
+};
+
+&csi2_dphy_hw {
+ status = "disabled";
+};
+
+&csi2_dphy0 {
+ status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ mipi_in_ucam0: endpoint@1 {
+ reg = <1>;
+ remote-endpoint = <&ov5647_out>;
+ data-lanes = <1 2>;
+ };
+
+ mipi_in_ucam1: endpoint@2 {
+ reg = <2>;
+ remote-endpoint = <&imx219_out>;
+ data-lanes = <1 2>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ dphy0_out: endpoint@1 {
+ reg = <1>;
+ remote-endpoint = <&isp0_in>;
+ };
+ };
+ };
+};
+
+&rkisp_vir0 {
+ status = "disabled";
+
+ port {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ isp0_in: endpoint@0 {
+ reg = <0>;
+ remote-endpoint = <&dphy0_out>;
+ };
+ };
+};
+
+&rkisp {
+ status = "disabled";
+};
+
+&rkisp_mmu {
+ status = "disabled";
+};
+
+&rkcif_mmu {
+ status = "disabled";
+};
+
+&rkcif {
+ status = "disabled";
+};

View File

@@ -1 +1 @@
archive/rk35xx-4.19
archive/rk35xx-5.10