255 lines
4.0 KiB
Plaintext
255 lines
4.0 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||
/*
|
||
* Copyright (c) 2024 Rockchip Electronics Co., Ltd.
|
||
*
|
||
*/
|
||
|
||
/dts-v1/;
|
||
|
||
#include <dt-bindings/gpio/gpio.h>
|
||
#include <dt-bindings/pinctrl/rockchip.h>
|
||
#include "rk3576.dtsi"
|
||
#include "rk3576-rk806.dtsi"
|
||
|
||
/ {
|
||
model = "ArmSoM CM5 IO";
|
||
compatible = "armsom,cm5", "rockchip,rk3576";
|
||
|
||
sdio_pwrseq: sdio-pwrseq {
|
||
compatible = "mmc-pwrseq-simple";
|
||
pinctrl-names = "default";
|
||
pinctrl-0 = <&wifi_poweren_gpio>;
|
||
|
||
/*
|
||
* On the module itself this is one of these (depending
|
||
* on the actual card populated):
|
||
* - SDIO_RESET_L_WL_REG_ON
|
||
* - PDN (power down when low)
|
||
*/
|
||
post-power-on-delay-ms = <200>;
|
||
reset-gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>;
|
||
};
|
||
|
||
wireless_bluetooth: wireless-bluetooth {
|
||
compatible = "bluetooth-platdata";
|
||
//wifi-bt-power-toggle;
|
||
uart_rts_gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
|
||
pinctrl-names = "default", "rts_gpio";
|
||
pinctrl-0 = <&uart4m1_rtsn>;
|
||
pinctrl-1 = <&uart4m1_rts_gpio>;
|
||
BT,power_gpio = <&gpio1 RK_PC7 GPIO_ACTIVE_HIGH>;
|
||
//BT,reset_gpio = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>;
|
||
//BT,wake_host_irq = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>;
|
||
status = "okay";
|
||
};
|
||
|
||
wireless_wlan: wireless-wlan {
|
||
compatible = "wlan-platdata";
|
||
wifi_chip_type = "rtl8852bs";
|
||
clocks = <&hym8563>; //如果使用hym8563,只能配置一个
|
||
clock-names = "ext_clock";
|
||
pinctrl-names = "default";
|
||
pinctrl-0 = <&wifi_host_wake_irq>;
|
||
WIFI,host_wake_irq = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
|
||
status = "okay";
|
||
};
|
||
};
|
||
|
||
&cpu_l0 {
|
||
cpu-supply = <&vdd_cpu_lit_s0>;
|
||
};
|
||
|
||
&cpu_b0 {
|
||
cpu-supply = <&vdd_cpu_big_s0>;
|
||
};
|
||
|
||
&gpu {
|
||
mali-supply = <&vdd_gpu_s0>;
|
||
status = "okay";
|
||
};
|
||
|
||
&i2c2 {
|
||
status = "okay";
|
||
|
||
hym8563: hym8563@51 {
|
||
compatible = "haoyu,hym8563";
|
||
reg = <0x51>;
|
||
#clock-cells = <0>;
|
||
clock-frequency = <32768>;
|
||
clock-output-names = "hym8563";
|
||
pinctrl-names = "default";
|
||
pinctrl-0 = <&hym8563_int>;
|
||
interrupt-parent = <&gpio0>;
|
||
interrupts = <RK_PA0 IRQ_TYPE_LEVEL_LOW>;
|
||
wakeup-source;
|
||
};
|
||
};
|
||
|
||
&iep {
|
||
status = "okay";
|
||
};
|
||
|
||
&iep_mmu {
|
||
status = "okay";
|
||
};
|
||
|
||
&jpegd {
|
||
status = "okay";
|
||
};
|
||
|
||
&jpege {
|
||
status = "okay";
|
||
};
|
||
|
||
&jpeg_mmu {
|
||
status = "okay";
|
||
};
|
||
|
||
&mpp_srv {
|
||
status = "okay";
|
||
};
|
||
|
||
&pinctrl {
|
||
hym8563 {
|
||
hym8563_int: hym8563-int {
|
||
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
|
||
};
|
||
};
|
||
|
||
wireless-bluetooth {
|
||
uart4m1_rts_gpio: uart4m1-rts-gpio {
|
||
rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
|
||
};
|
||
};
|
||
|
||
wireless-wlan {
|
||
wifi_host_wake_irq: wifi-host-wake-irq {
|
||
rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
|
||
};
|
||
|
||
wifi_poweren_gpio: wifi-poweren-gpio {
|
||
rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
|
||
};
|
||
};
|
||
};
|
||
|
||
&rga2_core0 {
|
||
status = "okay";
|
||
};
|
||
|
||
&rga2_core0_mmu {
|
||
status = "okay";
|
||
};
|
||
|
||
&rga2_core1 {
|
||
status = "okay";
|
||
};
|
||
|
||
&rga2_core1_mmu {
|
||
status = "okay";
|
||
};
|
||
|
||
&rknpu {
|
||
rknpu-supply = <&vdd_npu_s0>;
|
||
status = "okay";
|
||
};
|
||
|
||
&rknpu_mmu {
|
||
status = "okay";
|
||
};
|
||
|
||
&rkvenc_ccu {
|
||
status = "okay";
|
||
};
|
||
|
||
&rkvenc0 {
|
||
status = "okay";
|
||
};
|
||
|
||
&rkvenc0_mmu {
|
||
status = "okay";
|
||
};
|
||
|
||
&rkvenc1 {
|
||
status = "okay";
|
||
};
|
||
|
||
&rkvenc1_mmu {
|
||
status = "okay";
|
||
|
||
};
|
||
|
||
&rkvdec {
|
||
status = "okay";
|
||
};
|
||
|
||
&rkvdec_mmu {
|
||
status = "okay";
|
||
};
|
||
|
||
&rockchip_suspend {
|
||
status = "okay";
|
||
rockchip,sleep-debug-en = <1>;
|
||
|
||
rockchip,sleep-io-ret-config = <
|
||
(0
|
||
| RKPM_VCCIO3_RET_EN
|
||
)
|
||
>;
|
||
|
||
rockchip,regulator-on-before-mem = <&vdd_npu_s0>;
|
||
};
|
||
|
||
&saradc {
|
||
status = "okay";
|
||
vref-supply = <&vcca_1v8_s0>;
|
||
};
|
||
|
||
&sdhci {
|
||
bus-width = <8>;
|
||
no-sdio;
|
||
no-sd;
|
||
non-removable;
|
||
max-frequency = <200000000>;
|
||
mmc-hs400-1_8v;
|
||
mmc-hs400-enhanced-strobe;
|
||
full-pwr-cycle-in-suspend;
|
||
status = "okay";
|
||
};
|
||
|
||
&sdio {
|
||
max-frequency = <200000000>;
|
||
no-sd;
|
||
no-mmc;
|
||
bus-width = <4>;
|
||
disable-wp;
|
||
cap-sd-highspeed;
|
||
cap-sdio-irq;
|
||
keep-power-in-suspend;
|
||
mmc-pwrseq = <&sdio_pwrseq>;
|
||
non-removable;
|
||
pinctrl-names = "default";
|
||
pinctrl-0 = <&sdmmc1m0_bus4 &sdmmc1m0_clk &sdmmc1m0_cmd>;
|
||
sd-uhs-sdr104;
|
||
status = "okay";
|
||
};
|
||
|
||
&tsadc {
|
||
status = "okay";
|
||
};
|
||
|
||
&uart4 {
|
||
status = "okay";
|
||
pinctrl-names = "default";
|
||
pinctrl-0 = <&uart4m1_xfer &uart4m1_ctsn>;
|
||
};
|
||
|
||
&vdpp {
|
||
status = "okay";
|
||
};
|
||
|
||
/* watchdog */
|
||
&wdt {
|
||
status = "okay";
|
||
};
|