xref: /freebsd/sys/contrib/device-tree/src/arm64/rockchip/rk3399-rock-pi-4c.dts (revision a90b9d0159070121c221b966469c3e36d912bf82)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
4 * Copyright (c) 2019 Radxa Limited
5 * Copyright (c) 2019 Amarula Solutions(India)
6 */
7
8/dts-v1/;
9#include "rk3399-rock-pi-4.dtsi"
10#include "rk3399-opp.dtsi"
11
12/ {
13	model = "Radxa ROCK Pi 4C";
14	compatible = "radxa,rockpi4c", "radxa,rockpi4", "rockchip,rk3399";
15
16	aliases {
17		mmc2 = &sdio0;
18	};
19};
20
21&es8316 {
22	pinctrl-0 = <&hp_detect &hp_int>;
23	pinctrl-names = "default";
24	interrupt-parent = <&gpio1>;
25	interrupts = <RK_PA1 IRQ_TYPE_LEVEL_HIGH>;
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&sound {
43	hp-det-gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
44};
45
46&spi1 {
47	status = "okay";
48
49	flash@0 {
50		compatible = "jedec,spi-nor";
51		reg = <0>;
52		spi-max-frequency = <10000000>;
53	};
54};
55
56&uart0 {
57	status = "okay";
58
59	bluetooth {
60		compatible = "brcm,bcm4345c5";
61		clocks = <&rk808 1>;
62		clock-names = "lpo";
63		device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
64		host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
65		shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
66		max-speed = <1500000>;
67		pinctrl-names = "default";
68		pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
69		vbat-supply = <&vcc3v3_sys>;
70		vddio-supply = <&vcc_1v8>;
71	};
72};
73
74&vcc5v0_host {
75	gpio = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>;
76};
77
78&vcc5v0_host_en {
79	rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
80};
81