arm64:dts: Add new board rock-3a

This commit is contained in:
amazingfate
2023-05-19 15:44:10 +08:00
committed by Mecid Urganci
parent 416a4bc157
commit f8d9efe0b1
4 changed files with 939 additions and 352 deletions

View File

@@ -202,6 +202,7 @@ 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-pcie-ep-lp4x-v10-linux.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-radxa-e25.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-rock-3a.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-toybrick-sd0-android.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-toybrick-sd0-linux.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-toybrick-x0-android.dtb

View File

@@ -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";
};
};

File diff suppressed because it is too large Load Diff

View File

@@ -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";
};