xref: /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/rk3528-demo1-lp4-v10.dtsi (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2022 Rockchip Electronics Co., Ltd.
4 *
5 */
6
7/dts-v1/;
8
9#include "rk3528.dtsi"
10#include "rk3528-demo.dtsi"
11
12/ {
13	model = "Rockchip RK3528 DEMO1 LP4 V10 Board";
14	compatible = "rockchip,rk3528-demo1-lp4-v10", "rockchip,rk3528";
15
16	sdio_pwrseq: sdio-pwrseq {
17		compatible = "mmc-pwrseq-simple";
18		pinctrl-names = "default";
19		pinctrl-0 = <&wifi_enable_h &wifi_reset &clkm0_32k_out>;
20		reset-gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_LOW>;
21	};
22
23	wireless_bluetooth: wireless-bluetooth {
24		compatible = "bluetooth-platdata";
25		//wifi-bt-power-toggle;
26		uart_rts_gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_LOW>;
27		pinctrl-names = "default", "rts_gpio";
28		pinctrl-0 = <&uart2m0_rtsn>;
29		pinctrl-1 = <&uart2m0_gpios>;
30		BT,reset_gpio    = <&gpio3 RK_PC2 GPIO_ACTIVE_HIGH>;
31		BT,wake_host_irq = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
32		status = "okay";
33	};
34
35	wireless_wlan: wireless-wlan {
36		compatible = "wlan-platdata";
37		rockchip,grf = <&grf>;
38		wifi_chip_type = "rtl8822cs";
39		pinctrl-names = "default";
40		pinctrl-0 = <&wifi_host_wake_irq>;
41		WIFI,host_wake_irq = <&gpio3 RK_PB3 GPIO_ACTIVE_HIGH>;
42		status = "okay";
43	};
44};
45
46&sdio1 {
47	max-frequency = <200000000>;
48	no-sd;
49	no-mmc;
50	supports-sdio;
51	bus-width = <4>;
52	disable-wp;
53	cap-sd-highspeed;
54	cap-sdio-irq;
55	keep-power-in-suspend;
56	non-removable;
57	mmc-pwrseq = <&sdio_pwrseq>;
58	pinctrl-names = "default";
59	pinctrl-0 = <&sdio1_bus4 &sdio1_cmd &sdio1_clk>;
60	sd-uhs-sdr104;
61	status = "okay";
62};
63
64&uart2 {
65	status = "okay";
66	pinctrl-names = "default";
67	pinctrl-0 = <&uart2m0_xfer &uart2m0_ctsn>;
68};
69
70&pinctrl {
71	sdio-pwrseq {
72		wifi_enable_h: wifi-enable-h {
73			rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
74		};
75	};
76
77	wireless-wlan {
78		wifi_host_wake_irq: wifi-host-wake-irq {
79			rockchip,pins = <3 RK_PB3 RK_FUNC_GPIO &pcfg_pull_down>;
80		};
81
82		wifi_reset: wifi-reset {
83			rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_output_high>;
84		};
85	};
86
87	wireless-bluetooth {
88		uart2m0_gpios: uart2m0-gpios {
89			rockchip,pins = <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
90		};
91	};
92};
93