Skip to content
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 @@ -213,6 +213,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-cm3i-io.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-radxa-cm3j-rpi-cm4-io.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-radxa-e25.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-rock-3a.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-rock-3b.dtb
Expand Down
300 changes: 300 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3j-rpi-cm4-io.dts
Comment thread
RadxaYuntian marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,300 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2024 Radxa Limited.
*
*/

/dts-v1/;

#include "rk3568-radxa-cm3j.dtsi"

/ {
model = "Radxa CM3J RPI CM4 IO";
compatible = "radxa,cm3j-rpi-cm4-io", "radxa,cm3j", "rockchip,rk3568";

vcc12v_dcin: vcc12v-dcin {
compatible = "regulator-fixed";
regulator-name = "vcc12v_dcin";
regulator-always-on;
regulator-min-microvolt = <12000000>;
regulator-max-microvolt = <12000000>;
};

usb20_reset: usb20-reset-regulator {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&usb20_reset_pin>;
regulator-name = "usb20_reset";
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};

hdmi_sound: hdmi-sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,mclk-fs = <128>;
simple-audio-card,name = "rockchip-hdmi0";
status = "okay";

simple-audio-card,cpu {
sound-dai = <&i2s0_8ch>;
};
simple-audio-card,codec {
sound-dai = <&hdmi>;
};
};
};

&vcc5v0_sys {
vin-supply = <&vcc12v_dcin>;
};

&gmac1 {
status = "okay";
};

&mdio1 {
status = "okay";
};

&usb2phy0 {
status = "okay";
};

&u2phy0_host {
status = "okay";
};

&u2phy0_otg {
status = "okay";
};

&usbdrd_dwc3 {
dr_mode = "host";
extcon = <&usb2phy0>;
status = "okay";
};

&usbdrd30 {
status = "okay";
};

&combphy0_us {
status = "okay";
};

&hdmi {
status = "okay";
pinctrl-0 = <&hdmitx_scl &hdmitx_sda &hdmitxm0_cec>;
};

&hdmi_in_vp0 {
status = "okay";
};

&route_hdmi {
status = "okay";
connect = <&vp0_out_hdmi>;
};

&i2s0_8ch {
status = "okay";
};

&combphy2_psq {
status = "okay";
};

&pcie2x1 {
reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&pcie20m1_pins>;
status = "okay";
};

&soc_thermal {
sustainable-power = <5000>; /* milliwatts */
cooling-maps {
map2 {
trip = <&target>;
cooling-device =
<&emc2301 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <8192>;
};
map3 {
trip = <&threshold>;
cooling-device =
<&emc2301 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <8192>;
};
};
};

&threshold {
temperature = <60000>;
};

&i2c0 {
emc2301: emc2301@2f {
status = "okay";
compatible = "microchip,emc2301";
reg = <0x2f>;
#address-cells = <1>;
#size-cells = <0>;
#cooling-cells = <2>;
microchip,pwm-separate;
microchip,cooling-levels = <10>;
channel@0 {
reg = <0>;
pwm-min = <0>;
};
};

pcf85063: pcf85063@51 {
compatible = "nxp,pcf85063";
status = "okay";
reg = <0x51>;
quartz-load-femtofarads = <12500>;
};
};

&pinctrl {
usb {
usb20_reset_pin: usb20-reset {
rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};

&gpio0 {
gpio-line-names =
/* GPIO0_A0-A3 */
"", "", "", "",
/* GPIO0_A4-A7 */
"", "", "", "",

/* GPIO0_B0-B3 */
"", "", "", "",
/* GPIO0_B4-B7 */
"", "", "", "",

/* GPIO0_C0-C3 */
"", "", "", "",
/* GPIO0_C4-C7 */
"", "", "", "",

/* GPIO0_D0-D3 */
"PIN_10", "PIN_8", "", "",
/* GPIO0_D4-D7 */
"", "", "", "";
};

&gpio1 {
gpio-line-names =
/* GPIO1_A0-A3 */
"", "", "", "",
/* GPIO1_A4-A7 */
"", "", "", "",

/* GPIO1_B0-B3 */
"", "", "", "",
/* GPIO1_B4-B7 */
"", "", "", "",

/* GPIO1_C0-C3 */
"", "", "", "",
/* GPIO1_C4-C7 */
"", "", "", "",

/* GPIO1_D0-D3 */
"", "", "", "",
/* GPIO1_D4-D7 */
"", "", "", "";
};

&gpio2 {
gpio-line-names =
/* GPIO2_A0-A3 */
"", "", "", "",
/* GPIO2_A4-A7 */
"", "", "", "",

/* GPIO2_B0-B3 */
"", "", "", "",
/* GPIO2_B4-B7 */
"", "", "", "",

/* GPIO2_C0-C3 */
"", "", "", "",
/* GPIO2_C4-C7 */
"", "", "", "",

/* GPIO2_D0-D3 */
"PIN_21", "PIN_19", "PIN_24", "PIN_23",
/* GPIO2_D4-D7 */
"", "PIN_33", "PIN_7", "PIN_31";
};

&gpio3 {
gpio-line-names =
/* GPIO3_A0-A3 */
"PIN_29", "PIN_18", "PIN_22", "PIN_12",
/* GPIO3_A4-A7 */
"PIN_35", "PIN_40", "PIN_38", "",

/* GPIO3_B0-B3 */
"", "PIN_13", "PIN_11", "PIN_28",
/* GPIO3_B4-B7 */
"PIN_27", "PIN_5", "PIN_3", "PIN_32",

/* GPIO3_C0-C3 */
"PIN_15", "PIN_16", "PIN_26", "PIN_36",
/* GPIO3_C4-C7 */
"", "PIN_37", "", "",

/* GPIO3_D0-D3 */
"", "", "", "",
/* GPIO3_D4-D7 */
"", "", "", "";
};

&gpio4 {
gpio-line-names =
/* GPIO4_A0-A3 */
"", "", "", "",
/* GPIO4_A4-A7 */
"", "", "", "",

/* GPIO4_B0-B3 */
"", "", "", "",
/* GPIO4_B4-B7 */
"", "", "", "",

/* GPIO4_C0-C3 */
"", "", "", "",
/* GPIO4_C4-C7 */
"", "", "", "",

/* GPIO4_D0-D3 */
"", "", "", "",
/* GPIO4_D4-D7 */
"", "", "", "";
};

&gpio_leds {
led-pwr {
function = LED_FUNCTION_POWER;
default-state = "on";
color = <LED_COLOR_ID_RED>;
gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_LOW>;
};

led-heartbeat {
function = LED_FUNCTION_HEARTBEAT;
default-state = "off";
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_LOW>;
};
};
Loading