Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
arm64: dts: rockchip: add cm3 sodimm io board (torvalds#147)
Browse files Browse the repository at this point in the history
Signed-off-by: Feng Zhang <feng@radxa.com>
  • Loading branch information
vamrs-feng authored Jul 6, 2023
1 parent 8befe32 commit 32ec54f
Show file tree
Hide file tree
Showing 3 changed files with 1,035 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/rockchip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-rk817-tablet-rkg11.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-rk817-tablet-v10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-ddr4-v10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-rock-3c.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-radxa-cm3s-io.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-ddr4-v10-dual-camera.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-ddr4-v10-linux.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-ddr4-v10-linux-spi-nor.dtb
Expand Down
322 changes: 322 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3s-io.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,322 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
* Copyright (c) 2022 Radxa Limited.
*
*/

/dts-v1/;

#include <dt-bindings/display/rockchip_vop.h>
#include "rk3566-radxa-cm3s.dtsi"

/ {
model = "Radxa CM3 SODIMM IO";
compatible = "radxa,radxa-cm3-sodimm-io", "rockchip,rk3566";

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

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

vcc5v0_usb20: vcc5v0-usb20-regulator {
compatible = "regulator-fixed";
enable-active-low;
gpio = <&gpio0 RK_PC0 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&vcc5v0_usb20_en>;
regulator-name = "vcc5v0_usb20";
regulator-always-on;
regulator-boot-on;
};

vcc_sd: sdmmc-regulator {
compatible = "regulator-fixed";
gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&sdmmc_pwren>;
regulator-name = "vcc_sd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
startup-delay-us = <100000>;
vin-supply = <&vcc3v3_sys>;
};

vcc_ch482d: vcc-ch482d {
compatible = "regulator-fixed";
enable-active-low;
gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&ch482d_en>;
regulator-name = "vcc_ch482d";
regulator-always-on;
regulator-boot-on;
};
};

&gpio_leds {
board-led {
gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&board_led>;
linux,default-trigger = "heartbeat";
};

sata2-led {
gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&sata2_led>;
linux,default-trigger = "disk-activity";
trigger-sources = <&sata2>;
};
};

&fiq_debugger {
status = "okay";
};

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

/* GPIO0_B0-B3 */
"", "", "", "PIN_5",
/* GPIO0_B4-B7 */
"PIN_3", "PIN_13", "PIN_37", "PIN_32",

/* GPIO0_C0-C3 */
"", "", "", "",
/* GPIO0_C4-C7 */
"PIN_16", "PIN_22", "PIN_18", "",

/* 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 */
"", "", "", "",
/* GPIO2_D4-D7 */
"", "", "", "";
};

&gpio3 {
gpio-line-names =
/* GPIO3_A0-A3 */
"", "PIN_12", "", "",
/* GPIO3_A4-A7 */
"", "", "", "",

/* GPIO3_B0-B3 */
"", "", "", "",
/* GPIO3_B4-B7 */
"", "", "", "",

/* GPIO3_C0-C3 */
"", "PIN_38", "PIN_35", "PIN_40",
/* GPIO3_C4-C7 */
"", "", "", "",

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

&gpio4 {
gpio-line-names =
/* GPIO4_A0-A3 */
"PIN_15", "", "PIN_36", "PIN_11",
/* GPIO4_A4-A7 */
"", "", "PIN_24", "PIN_26",

/* GPIO4_B0-B3 */
"PIN_21", "", "PIN_19", "PIN_23",
/* GPIO4_B4-B7 */
"PIN_27", "PIN_28", "", "PIN_29",

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

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

&i2s0_8ch {
status = "okay";
};

&display_subsystem {
status = "okay";
};

&hdmi {
status = "okay";
};

&hdmi_in_vp0 {
status = "okay";
};

&hdmi_in_vp1 {
status = "disabled";
};

&hdmi_sound {
status = "okay";
};

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

&rk817_sound {
status = "disabled";
};

&i2s1_8ch {
status = "okay";
};

&sdmmc0 {
max-frequency = <150000000>;
supports-sd;
no-sdio;
no-mmc;
bus-width = <4>;
cap-mmc-highspeed;
cap-sd-highspeed;
disable-wp;
num-slots = <1>;
sd-uhs-sdr104;
vmmc-supply = <&vcc_sd>;
vqmmc-supply = <&vccio_sd>;
pinctrl-names = "default";
pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
status = "okay";
};

&u2phy0_host {
phy-supply = <&vcc5v0_usb20>;
status = "okay";
};

&combphy2_psq {
status = "okay";
};

&pcie2x1 {
reset-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
vpcie3v3-supply = <&vcc3v3_sys>;
pinctrl-0 = <&pcie20m2_pins>;
status = "okay";
};

&sata2 {
status = "disabled";
};

&rockchip_suspend {
status = "okay";
rockchip,sleep-debug-en = <1>;
rockchip,sleep-mode-config = <
(0
| RKPM_SLP_CENTER_OFF
| RKPM_SLP_HW_PLLS_OFF
| RKPM_SLP_PMUALIVE_32K
| RKPM_SLP_32K_PVTM
)
>;
rockchip,wakeup-config = <
(0
| RKPM_GPIO_WKUP_EN
| RKPM_USB_WKUP_EN
)
>;
};

&pinctrl {
usb {
vcc5v0_usb20_en: vcc5v0-host-en {
rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
};
};

sdcard {
sdmmc_pwren: sdmmc-pwren {
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};

ch482d {
ch482d_en: ch482d-en {
rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
};
};

leds {
board_led: board-led {
rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
};

sata2_led: sata2-led{
rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
Loading

0 comments on commit 32ec54f

Please sign in to comment.