xref: /OK3568_Linux_fs/kernel/scripts/dtc/include-prefixes/arm/rv1106g-smart-door-lock-rmsl-v10.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2022 Rockchip Electronics Co., Ltd.
4 */
5
6/dts-v1/;
7
8#include "rv1106.dtsi"
9#include "rv1106-evb.dtsi"
10#include "rv1106-thunder-boot-spi-nor.dtsi"
11#include "rv1106-smd-cam.dtsi"
12
13/ {
14	model = "Rockchip RV1106G Smart Door Lock RMSL V10 Board";
15	compatible = "rockchip,rv1106g-smart-door-lock-rmsl-v10", "rockchip,rv1106";
16
17	/* rkaiq_prd_type: 1 for one camera, 2 for multi camera */
18	chosen {
19		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";
20	};
21
22	acodec_sound: acodec-sound {
23		compatible = "simple-audio-card";
24		simple-audio-card,name = "rv1106-acodec";
25		simple-audio-card,format = "i2s";
26		simple-audio-card,mclk-fs = <256>;
27		simple-audio-card,cpu {
28			sound-dai = <&i2s0_8ch>;
29		};
30		simple-audio-card,codec {
31			sound-dai = <&acodec>;
32		};
33	};
34
35	vcc_1v8: vcc-1v8 {
36		compatible = "regulator-fixed";
37		regulator-name = "vcc_1v8";
38		regulator-always-on;
39		regulator-boot-on;
40		regulator-min-microvolt = <1800000>;
41		regulator-max-microvolt = <1800000>;
42	};
43
44	vcc_3v3: vcc-3v3 {
45		compatible = "regulator-fixed";
46		regulator-name = "vcc_3v3";
47		regulator-always-on;
48		regulator-boot-on;
49		regulator-min-microvolt = <3300000>;
50		regulator-max-microvolt = <3300000>;
51	};
52
53	vdd_arm: vdd-arm {
54		compatible = "pwm-regulator";
55		pwms = <&pwm0 0 5000 1>;
56		regulator-name = "vdd_arm";
57		regulator-min-microvolt = <724000>;
58		regulator-max-microvolt = <1078000>;
59		regulator-init-microvolt = <950000>;
60		regulator-always-on;
61		regulator-boot-on;
62		regulator-settling-time-up-us = <250>;
63	};
64
65	wireless_wlan: wireless-wlan {
66		compatible = "wlan-platdata";
67		wifi_chip_type = "Hi3861L";
68		WIFI,host_wake_irq = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
69		WIFI,poweren_gpio = <&gpio2 RK_PA5 GPIO_ACTIVE_HIGH>;
70		status = "okay";
71	};
72};
73
74&acodec {
75	#sound-dai-cells = <0>;
76	pa-ctl-gpios = <&gpio2 RK_PA4 GPIO_ACTIVE_HIGH>;
77	status = "okay";
78};
79
80&cpu0 {
81	cpu-supply = <&vdd_arm>;
82};
83
84&dsm {
85	status = "disabled";
86};
87
88&emmc {
89	status = "disabled";
90};
91
92&fiq_debugger {
93	rockchip,baudrate = <1500000>;
94	pinctrl-names = "default";
95	pinctrl-0 = <&uart2m1_xfer>;
96};
97
98&gmac {
99	status = "disabled";
100};
101
102&pinctrl {
103	mcu {
104		/omit-if-no-ref/
105		mcu_wake_det: mcu-wake-det {
106			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
107		};
108
109	};
110
111	pow_hold: pow-hold {
112		rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
113	};
114};
115
116&pwm0 {
117	status = "okay";
118};
119
120&sdmmc {
121	max-frequency = <50000000>;
122	bus-width = <1>;
123	cap-sd-highspeed;
124	cap-sdio-irq;
125	keep-power-in-suspend;
126	non-removable;
127	rockchip,default-sample-phase = <90>;
128	supports-sdio;
129	supports-chip-alive;
130	//logic-remove-card;
131	pinctrl-names = "default";
132	pinctrl-0 = <&sdmmc0_cmd &sdmmc0_clk &sdmmc0_bus4>;
133	status = "okay";
134};
135
136&sfc {
137	assigned-clocks = <&cru SCLK_SFC>;
138	assigned-clock-rates = <125000000>;
139	status = "okay";
140
141	flash@0 {
142		compatible = "jedec,spi-nor";
143		reg = <0>;
144		spi-max-frequency = <125000000>;
145		spi-rx-bus-width = <4>;
146		spi-tx-bus-width = <1>;
147	};
148};
149
150&thunder_boot_service {
151	status = "okay";
152};
153
154&u2phy_otg {
155	status = "okay";
156};
157
158&uart0 {
159	status = "okay";
160};
161