193e0e8ceSJagan Teki// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
293e0e8ceSJagan Teki/*
393e0e8ceSJagan Teki * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
493e0e8ceSJagan Teki * Copyright (c) 2019 Radxa Limited
593e0e8ceSJagan Teki * Copyright (c) 2019 Amarula Solutions(India)
693e0e8ceSJagan Teki */
793e0e8ceSJagan Teki
893e0e8ceSJagan Teki/dts-v1/;
993e0e8ceSJagan Teki#include "rk3399-rock-pi-4.dtsi"
1093e0e8ceSJagan Teki
1193e0e8ceSJagan Teki/ {
1293e0e8ceSJagan Teki	model = "Radxa ROCK Pi 4C";
1393e0e8ceSJagan Teki	compatible = "radxa,rockpi4c", "radxa,rockpi4", "rockchip,rk3399";
145dcbe7e3SHeiko Stuebner
155dcbe7e3SHeiko Stuebner	aliases {
165dcbe7e3SHeiko Stuebner		mmc2 = &sdio0;
175dcbe7e3SHeiko Stuebner	};
1893e0e8ceSJagan Teki};
1993e0e8ceSJagan Teki
20*c681c6fcSAlex Bee&es8316 {
21*c681c6fcSAlex Bee	pinctrl-0 = <&hp_detect &hp_int>;
22*c681c6fcSAlex Bee	pinctrl-names = "default";
23*c681c6fcSAlex Bee	interrupt-parent = <&gpio1>;
24*c681c6fcSAlex Bee	interrupts = <RK_PA1 IRQ_TYPE_LEVEL_HIGH>;
25*c681c6fcSAlex Bee};
26*c681c6fcSAlex Bee
2793e0e8ceSJagan Teki&sdio0 {
2893e0e8ceSJagan Teki	status = "okay";
2993e0e8ceSJagan Teki
3093e0e8ceSJagan Teki	brcmf: wifi@1 {
3193e0e8ceSJagan Teki		compatible = "brcm,bcm4329-fmac";
3293e0e8ceSJagan Teki		reg = <1>;
3393e0e8ceSJagan Teki		interrupt-parent = <&gpio0>;
3493e0e8ceSJagan Teki		interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>;
3593e0e8ceSJagan Teki		interrupt-names = "host-wake";
3693e0e8ceSJagan Teki		pinctrl-names = "default";
3793e0e8ceSJagan Teki		pinctrl-0 = <&wifi_host_wake_l>;
3893e0e8ceSJagan Teki	};
3993e0e8ceSJagan Teki};
4093e0e8ceSJagan Teki
41*c681c6fcSAlex Bee&sound {
42*c681c6fcSAlex Bee	hp-det-gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
43*c681c6fcSAlex Bee};
44*c681c6fcSAlex Bee
4593e0e8ceSJagan Teki&uart0 {
4693e0e8ceSJagan Teki	status = "okay";
4793e0e8ceSJagan Teki
4893e0e8ceSJagan Teki	bluetooth {
4993e0e8ceSJagan Teki		compatible = "brcm,bcm43438-bt";
5093e0e8ceSJagan Teki		clocks = <&rk808 1>;
5193e0e8ceSJagan Teki		clock-names = "ext_clock";
5293e0e8ceSJagan Teki		device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
5393e0e8ceSJagan Teki		host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
5493e0e8ceSJagan Teki		shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
5593e0e8ceSJagan Teki		pinctrl-names = "default";
5693e0e8ceSJagan Teki		pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
5793e0e8ceSJagan Teki	};
5893e0e8ceSJagan Teki};
5993e0e8ceSJagan Teki
6093e0e8ceSJagan Teki&vcc5v0_host {
6193e0e8ceSJagan Teki	gpio = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>;
6293e0e8ceSJagan Teki};
6393e0e8ceSJagan Teki
6493e0e8ceSJagan Teki&vcc5v0_host_en {
6593e0e8ceSJagan Teki	rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
6693e0e8ceSJagan Teki};
67