xref: /freebsd/sys/contrib/device-tree/src/arm64/rockchip/rk3576-armsom-sige5-v1.2-wifibt.dtso (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*833e5d42SEmmanuel Vadot/*
3*833e5d42SEmmanuel Vadot * DT-overlay to enable the onboard WiFi and Bluetooth module present in v1.2
4*833e5d42SEmmanuel Vadot * boards. Note that v1.1 boards use a different module, so this probably won't
5*833e5d42SEmmanuel Vadot * work there.
6*833e5d42SEmmanuel Vadot */
7*833e5d42SEmmanuel Vadot
8*833e5d42SEmmanuel Vadot/dts-v1/;
9*833e5d42SEmmanuel Vadot/plugin/;
10*833e5d42SEmmanuel Vadot
11*833e5d42SEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
12*833e5d42SEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
13*833e5d42SEmmanuel Vadot#include <dt-bindings/pinctrl/rockchip.h>
14*833e5d42SEmmanuel Vadot
15*833e5d42SEmmanuel Vadot&sdio {
16*833e5d42SEmmanuel Vadot	#address-cells = <1>;
17*833e5d42SEmmanuel Vadot	#size-cells = <0>;
18*833e5d42SEmmanuel Vadot
19*833e5d42SEmmanuel Vadot	wifi@1 {
20*833e5d42SEmmanuel Vadot		compatible = "brcm,bcm4329-fmac";
21*833e5d42SEmmanuel Vadot		reg = <1>;
22*833e5d42SEmmanuel Vadot		clock-names = "lpo";
23*833e5d42SEmmanuel Vadot		clocks = <&hym8563>;
24*833e5d42SEmmanuel Vadot		interrupt-names = "host-wake";
25*833e5d42SEmmanuel Vadot		interrupt-parent = <&gpio0>;
26*833e5d42SEmmanuel Vadot		interrupts = <RK_PB0 IRQ_TYPE_LEVEL_HIGH>;
27*833e5d42SEmmanuel Vadot		pinctrl-0 = <&wifi_wake_host>;
28*833e5d42SEmmanuel Vadot		pinctrl-names = "default";
29*833e5d42SEmmanuel Vadot	};
30*833e5d42SEmmanuel Vadot};
31*833e5d42SEmmanuel Vadot
32*833e5d42SEmmanuel Vadot&uart4 {
33*833e5d42SEmmanuel Vadot	status = "okay";
34*833e5d42SEmmanuel Vadot
35*833e5d42SEmmanuel Vadot	bluetooth {
36*833e5d42SEmmanuel Vadot		compatible = "brcm,bcm43438-bt";
37*833e5d42SEmmanuel Vadot		clock-names = "lpo";
38*833e5d42SEmmanuel Vadot		clocks = <&hym8563>;
39*833e5d42SEmmanuel Vadot		device-wakeup-gpios = <&gpio1 RK_PD7 GPIO_ACTIVE_HIGH>;
40*833e5d42SEmmanuel Vadot		interrupt-names = "host-wakeup";
41*833e5d42SEmmanuel Vadot		interrupt-parent = <&gpio0>;
42*833e5d42SEmmanuel Vadot		interrupts = <RK_PB1 IRQ_TYPE_LEVEL_HIGH>;
43*833e5d42SEmmanuel Vadot		pinctrl-0 = <&bt_reg_on>, <&bt_wake_host>, <&host_wake_bt>;
44*833e5d42SEmmanuel Vadot		pinctrl-names = "default";
45*833e5d42SEmmanuel Vadot		shutdown-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
46*833e5d42SEmmanuel Vadot		vbat-supply = <&vcc_3v3_s3>;
47*833e5d42SEmmanuel Vadot		vddio-supply = <&vcc_1v8_s3>;
48*833e5d42SEmmanuel Vadot	};
49*833e5d42SEmmanuel Vadot};
50