1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2019 Akash Gajjar <Akash_Gajjar@mentor.com>
4 * Copyright (c) 2019 Pragnesh Patel <Pragnesh_Patel@mentor.com>
5 */
6
7/dts-v1/;
8#include "rk3399-rock-pi-4.dtsi"
9#include "rk3399-t-opp.dtsi"
10
11/ {
12	model = "Radxa ROCK 4SE";
13	compatible = "radxa,rock-4se", "rockchip,rk3399";
14
15	aliases {
16		mmc2 = &sdio0;
17	};
18};
19
20&pinctrl {
21	usb2 {
22		vcc5v0_host_en: vcc5v0-host-en {
23			rockchip,pins = <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
24		};
25	};
26};
27
28&sdio0 {
29	status = "okay";
30
31	brcmf: wifi@1 {
32		compatible = "brcm,bcm4329-fmac";
33		reg = <1>;
34		interrupt-parent = <&gpio0>;
35		interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>;
36		interrupt-names = "host-wake";
37		pinctrl-names = "default";
38		pinctrl-0 = <&wifi_host_wake_l>;
39	};
40};
41
42&uart0 {
43	status = "okay";
44
45	bluetooth {
46		compatible = "brcm,bcm4345c5";
47		clocks = <&rk808 1>;
48		clock-names = "lpo";
49		device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
50		host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
51		shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
52		max-speed = <1500000>;
53		pinctrl-names = "default";
54		pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
55		vbat-supply = <&vcc3v3_sys>;
56		vddio-supply = <&vcc_1v8>;
57	};
58};
59
60&vcc5v0_host {
61	enable-active-high;
62	gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
63	pinctrl-names = "default";
64	pinctrl-0 = <&vcc5v0_host_en>;
65};
66