Merge tag 'soc-drivers-6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-block.git] / arch / arm64 / boot / dts / rockchip / rk3399-rock-pi-4c.dts
CommitLineData
93e0e8ce
JT
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"
fd2762a6 10#include "rk3399-opp.dtsi"
93e0e8ce
JT
11
12/ {
13 model = "Radxa ROCK Pi 4C";
14 compatible = "radxa,rockpi4c", "radxa,rockpi4", "rockchip,rk3399";
5dcbe7e3
HS
15
16 aliases {
17 mmc2 = &sdio0;
18 };
93e0e8ce
JT
19};
20
c681c6fc
AB
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
93e0e8ce
JT
28&sdio0 {
29 status = "okay";
30
31 brcmf: wifi@1 {
32 compatible = "brcm,bcm4329-fmac";
33 reg = <1>;
34 interrupt-parent = <&gpio0>;
c043dee9 35 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>;
93e0e8ce
JT
36 interrupt-names = "host-wake";
37 pinctrl-names = "default";
38 pinctrl-0 = <&wifi_host_wake_l>;
39 };
40};
41
c681c6fc
AB
42&sound {
43 hp-det-gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
44};
45
eddf7302
SN
46&spi1 {
47 status = "okay";
48
49 flash@0 {
50 compatible = "jedec,spi-nor";
51 reg = <0>;
fa16d7a8 52 spi-max-frequency = <108000000>;
eddf7302
SN
53 };
54};
55
93e0e8ce
JT
56&uart0 {
57 status = "okay";
58
59 bluetooth {
f471b1b2 60 compatible = "brcm,bcm4345c5";
93e0e8ce 61 clocks = <&rk808 1>;
f471b1b2 62 clock-names = "lpo";
93e0e8ce
JT
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>;
f471b1b2 66 max-speed = <1500000>;
93e0e8ce
JT
67 pinctrl-names = "default";
68 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
f471b1b2
JT
69 vbat-supply = <&vcc3v3_sys>;
70 vddio-supply = <&vcc_1v8>;
93e0e8ce
JT
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};