// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
/*
|
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
|
*/
|
|
/dts-v1/;
|
|
#include "rv1106.dtsi"
|
#include "rv1106-evb.dtsi"
|
#include "rv1106-thunder-boot-spi-nor.dtsi"
|
#include "rv1106-smd-cam.dtsi"
|
|
/ {
|
model = "Rockchip RV1106G Smart Door Lock RMSL V10 Board";
|
compatible = "rockchip,rv1106g-smart-door-lock-rmsl-v10", "rockchip,rv1106";
|
|
/* rkaiq_prd_type: 1 for one camera, 2 for multi camera */
|
chosen {
|
bootargs = "loglevel=0 rootfstype=erofs rootflags=dax console=ttyFIQ0 root=/dev/rd0 snd_soc_core.prealloc_buffer_size_kbytes=16 coherent_pool=0 driver_async_probe=dwmmc_rockchip";
|
};
|
|
acodec_sound: acodec-sound {
|
compatible = "simple-audio-card";
|
simple-audio-card,name = "rv1106-acodec";
|
simple-audio-card,format = "i2s";
|
simple-audio-card,mclk-fs = <256>;
|
simple-audio-card,cpu {
|
sound-dai = <&i2s0_8ch>;
|
};
|
simple-audio-card,codec {
|
sound-dai = <&acodec>;
|
};
|
};
|
|
vcc_1v8: vcc-1v8 {
|
compatible = "regulator-fixed";
|
regulator-name = "vcc_1v8";
|
regulator-always-on;
|
regulator-boot-on;
|
regulator-min-microvolt = <1800000>;
|
regulator-max-microvolt = <1800000>;
|
};
|
|
vcc_3v3: vcc-3v3 {
|
compatible = "regulator-fixed";
|
regulator-name = "vcc_3v3";
|
regulator-always-on;
|
regulator-boot-on;
|
regulator-min-microvolt = <3300000>;
|
regulator-max-microvolt = <3300000>;
|
};
|
|
vdd_arm: vdd-arm {
|
compatible = "pwm-regulator";
|
pwms = <&pwm0 0 5000 1>;
|
regulator-name = "vdd_arm";
|
regulator-min-microvolt = <724000>;
|
regulator-max-microvolt = <1078000>;
|
regulator-init-microvolt = <950000>;
|
regulator-always-on;
|
regulator-boot-on;
|
regulator-settling-time-up-us = <250>;
|
};
|
|
wireless_wlan: wireless-wlan {
|
compatible = "wlan-platdata";
|
wifi_chip_type = "Hi3861L";
|
WIFI,host_wake_irq = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
|
WIFI,poweren_gpio = <&gpio2 RK_PA5 GPIO_ACTIVE_HIGH>;
|
status = "okay";
|
};
|
};
|
|
&acodec {
|
#sound-dai-cells = <0>;
|
pa-ctl-gpios = <&gpio2 RK_PA4 GPIO_ACTIVE_HIGH>;
|
status = "okay";
|
};
|
|
&cpu0 {
|
cpu-supply = <&vdd_arm>;
|
};
|
|
&dsm {
|
status = "disabled";
|
};
|
|
&emmc {
|
status = "disabled";
|
};
|
|
&fiq_debugger {
|
rockchip,baudrate = <1500000>;
|
pinctrl-names = "default";
|
pinctrl-0 = <&uart2m1_xfer>;
|
};
|
|
&gmac {
|
status = "disabled";
|
};
|
|
&pinctrl {
|
mcu {
|
/omit-if-no-ref/
|
mcu_wake_det: mcu-wake-det {
|
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
|
};
|
|
};
|
|
pow_hold: pow-hold {
|
rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
|
};
|
};
|
|
&pwm0 {
|
status = "okay";
|
};
|
|
&ramdisk_r {
|
reg = <0x12ec000 (15 * 0x00100000)>;
|
};
|
|
&ramdisk_c {
|
reg = <0x21ec000 (7 * 0x00100000)>;
|
};
|
|
&sdmmc {
|
max-frequency = <50000000>;
|
bus-width = <1>;
|
cap-sd-highspeed;
|
cap-sdio-irq;
|
keep-power-in-suspend;
|
non-removable;
|
rockchip,default-sample-phase = <90>;
|
supports-sdio;
|
supports-chip-alive;
|
//logic-remove-card;
|
pinctrl-names = "default";
|
pinctrl-0 = <&sdmmc0_cmd &sdmmc0_clk &sdmmc0_bus4>;
|
status = "okay";
|
};
|
|
&sfc {
|
assigned-clocks = <&cru SCLK_SFC>;
|
assigned-clock-rates = <125000000>;
|
status = "okay";
|
|
flash@0 {
|
compatible = "jedec,spi-nor";
|
reg = <0>;
|
spi-max-frequency = <125000000>;
|
spi-rx-bus-width = <4>;
|
spi-tx-bus-width = <1>;
|
};
|
};
|
|
&thunder_boot_service {
|
status = "okay";
|
};
|
|
&u2phy_otg {
|
status = "okay";
|
};
|
|
&uart0 {
|
status = "okay";
|
};
|