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"
10fd2762a6SChristopher Obbard#include "rk3399-opp.dtsi"
1193e0e8ceSJagan Teki
1293e0e8ceSJagan Teki/ {
1393e0e8ceSJagan Teki	model = "Radxa ROCK Pi 4C";
1493e0e8ceSJagan Teki	compatible = "radxa,rockpi4c", "radxa,rockpi4", "rockchip,rk3399";
155dcbe7e3SHeiko Stuebner
165dcbe7e3SHeiko Stuebner	aliases {
175dcbe7e3SHeiko Stuebner		mmc2 = &sdio0;
185dcbe7e3SHeiko Stuebner	};
1993e0e8ceSJagan Teki};
2093e0e8ceSJagan Teki
21c681c6fcSAlex Bee&es8316 {
22c681c6fcSAlex Bee	pinctrl-0 = <&hp_detect &hp_int>;
23c681c6fcSAlex Bee	pinctrl-names = "default";
24c681c6fcSAlex Bee	interrupt-parent = <&gpio1>;
25c681c6fcSAlex Bee	interrupts = <RK_PA1 IRQ_TYPE_LEVEL_HIGH>;
26c681c6fcSAlex Bee};
27c681c6fcSAlex Bee
2893e0e8ceSJagan Teki&sdio0 {
2993e0e8ceSJagan Teki	status = "okay";
3093e0e8ceSJagan Teki
3193e0e8ceSJagan Teki	brcmf: wifi@1 {
3293e0e8ceSJagan Teki		compatible = "brcm,bcm4329-fmac";
3393e0e8ceSJagan Teki		reg = <1>;
3493e0e8ceSJagan Teki		interrupt-parent = <&gpio0>;
35c043dee9SKrzysztof Kozlowski		interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>;
3693e0e8ceSJagan Teki		interrupt-names = "host-wake";
3793e0e8ceSJagan Teki		pinctrl-names = "default";
3893e0e8ceSJagan Teki		pinctrl-0 = <&wifi_host_wake_l>;
3993e0e8ceSJagan Teki	};
4093e0e8ceSJagan Teki};
4193e0e8ceSJagan Teki
42c681c6fcSAlex Bee&sound {
43c681c6fcSAlex Bee	hp-det-gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
44c681c6fcSAlex Bee};
45c681c6fcSAlex Bee
46*eddf7302SStefan Nagy&spi1 {
47*eddf7302SStefan Nagy	status = "okay";
48*eddf7302SStefan Nagy
49*eddf7302SStefan Nagy	flash@0 {
50*eddf7302SStefan Nagy		compatible = "jedec,spi-nor";
51*eddf7302SStefan Nagy		reg = <0>;
52*eddf7302SStefan Nagy		spi-max-frequency = <10000000>;
53*eddf7302SStefan Nagy	};
54*eddf7302SStefan Nagy};
55*eddf7302SStefan Nagy
5693e0e8ceSJagan Teki&uart0 {
5793e0e8ceSJagan Teki	status = "okay";
5893e0e8ceSJagan Teki
5993e0e8ceSJagan Teki	bluetooth {
60f471b1b2SJagan Teki		compatible = "brcm,bcm4345c5";
6193e0e8ceSJagan Teki		clocks = <&rk808 1>;
62f471b1b2SJagan Teki		clock-names = "lpo";
6393e0e8ceSJagan Teki		device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
6493e0e8ceSJagan Teki		host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
6593e0e8ceSJagan Teki		shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
66f471b1b2SJagan Teki		max-speed = <1500000>;
6793e0e8ceSJagan Teki		pinctrl-names = "default";
6893e0e8ceSJagan Teki		pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
69f471b1b2SJagan Teki		vbat-supply = <&vcc3v3_sys>;
70f471b1b2SJagan Teki		vddio-supply = <&vcc_1v8>;
7193e0e8ceSJagan Teki	};
7293e0e8ceSJagan Teki};
7393e0e8ceSJagan Teki
7493e0e8ceSJagan Teki&vcc5v0_host {
7593e0e8ceSJagan Teki	gpio = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>;
7693e0e8ceSJagan Teki};
7793e0e8ceSJagan Teki
7893e0e8ceSJagan Teki&vcc5v0_host_en {
7993e0e8ceSJagan Teki	rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
8093e0e8ceSJagan Teki};
81