2020-07-20 18:55:49 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
|
|
|
|
* Copyright (c) 2019 Radxa Limited
|
|
|
|
* Copyright (c) 2019 Amarula Solutions(India)
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include "rk3399-rock-pi-4.dtsi"
|
2023-07-19 16:33:56 +00:00
|
|
|
#include "rk3399-opp.dtsi"
|
2020-07-20 18:55:49 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Radxa ROCK Pi 4C";
|
2021-07-22 15:20:42 +00:00
|
|
|
compatible = "radxa,rockpi4c", "radxa,rockpi4", "rockchip,rk3399";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
mmc2 = &sdio0;
|
|
|
|
};
|
2020-07-20 18:55:49 +00:00
|
|
|
};
|
|
|
|
|
2023-04-26 02:23:52 +00:00
|
|
|
&es8316 {
|
|
|
|
pinctrl-0 = <&hp_detect &hp_int>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
interrupt-parent = <&gpio1>;
|
|
|
|
interrupts = <RK_PA1 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
};
|
|
|
|
|
2020-07-20 18:55:49 +00:00
|
|
|
&sdio0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
brcmf: wifi@1 {
|
|
|
|
compatible = "brcm,bcm4329-fmac";
|
|
|
|
reg = <1>;
|
|
|
|
interrupt-parent = <&gpio0>;
|
2023-04-26 02:23:52 +00:00
|
|
|
interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>;
|
2020-07-20 18:55:49 +00:00
|
|
|
interrupt-names = "host-wake";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&wifi_host_wake_l>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-04-26 02:23:52 +00:00
|
|
|
&sound {
|
|
|
|
hp-det-gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2020-07-20 18:55:49 +00:00
|
|
|
&uart0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
bluetooth {
|
2023-04-26 02:23:52 +00:00
|
|
|
compatible = "brcm,bcm4345c5";
|
2020-07-20 18:55:49 +00:00
|
|
|
clocks = <&rk808 1>;
|
2023-04-26 02:23:52 +00:00
|
|
|
clock-names = "lpo";
|
2020-07-20 18:55:49 +00:00
|
|
|
device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
|
|
|
|
host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
|
|
|
|
shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>;
|
2023-04-26 02:23:52 +00:00
|
|
|
max-speed = <1500000>;
|
2020-07-20 18:55:49 +00:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
|
2023-04-26 02:23:52 +00:00
|
|
|
vbat-supply = <&vcc3v3_sys>;
|
|
|
|
vddio-supply = <&vcc_1v8>;
|
2020-07-20 18:55:49 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&vcc5v0_host {
|
|
|
|
gpio = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&vcc5v0_host_en {
|
|
|
|
rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
|
|
};
|