blob: d32efab74e94345830265ad6ee8985b8e8cdecdd [file] [log] [blame]
Jagan Tekiaea00672020-07-21 00:25:49 +05301// 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"
Christopher Obbarde06375d2023-07-19 17:33:56 +010010#include "rk3399-opp.dtsi"
Jagan Tekiaea00672020-07-21 00:25:49 +053011
12/ {
13 model = "Radxa ROCK Pi 4C";
Peter Robinson7c79b872021-07-22 16:20:42 +010014 compatible = "radxa,rockpi4c", "radxa,rockpi4", "rockchip,rk3399";
15
16 aliases {
17 mmc2 = &sdio0;
18 };
Jagan Tekiaea00672020-07-21 00:25:49 +053019};
20
FUKAUMI Naoki5d028bb2023-04-26 02:23:52 +000021&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
Jagan Tekiaea00672020-07-21 00:25:49 +053028&sdio0 {
29 status = "okay";
30
31 brcmf: wifi@1 {
32 compatible = "brcm,bcm4329-fmac";
33 reg = <1>;
34 interrupt-parent = <&gpio0>;
FUKAUMI Naoki5d028bb2023-04-26 02:23:52 +000035 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>;
Jagan Tekiaea00672020-07-21 00:25:49 +053036 interrupt-names = "host-wake";
37 pinctrl-names = "default";
38 pinctrl-0 = <&wifi_host_wake_l>;
39 };
40};
41
FUKAUMI Naoki5d028bb2023-04-26 02:23:52 +000042&sound {
43 hp-det-gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
44};
45
Jagan Tekiaea00672020-07-21 00:25:49 +053046&uart0 {
47 status = "okay";
48
49 bluetooth {
FUKAUMI Naoki5d028bb2023-04-26 02:23:52 +000050 compatible = "brcm,bcm4345c5";
Jagan Tekiaea00672020-07-21 00:25:49 +053051 clocks = <&rk808 1>;
FUKAUMI Naoki5d028bb2023-04-26 02:23:52 +000052 clock-names = "lpo";
Jagan Tekiaea00672020-07-21 00:25:49 +053053 device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
54 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
55 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
FUKAUMI Naoki5d028bb2023-04-26 02:23:52 +000056 max-speed = <1500000>;
Jagan Tekiaea00672020-07-21 00:25:49 +053057 pinctrl-names = "default";
58 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
FUKAUMI Naoki5d028bb2023-04-26 02:23:52 +000059 vbat-supply = <&vcc3v3_sys>;
60 vddio-supply = <&vcc_1v8>;
Jagan Tekiaea00672020-07-21 00:25:49 +053061 };
62};
63
64&vcc5v0_host {
65 gpio = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>;
66};
67
68&vcc5v0_host_en {
69 rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
70};