Jagan Teki | aea0067 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 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" |
| 10 | |
| 11 | / { |
| 12 | model = "Radxa ROCK Pi 4C"; |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 13 | compatible = "radxa,rockpi4c", "radxa,rockpi4", "rockchip,rk3399"; |
| 14 | |
| 15 | aliases { |
| 16 | mmc2 = &sdio0; |
| 17 | }; |
Jagan Teki | aea0067 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 18 | }; |
| 19 | |
FUKAUMI Naoki | 5d028bb | 2023-04-26 02:23:52 +0000 | [diff] [blame] | 20 | &es8316 { |
| 21 | pinctrl-0 = <&hp_detect &hp_int>; |
| 22 | pinctrl-names = "default"; |
| 23 | interrupt-parent = <&gpio1>; |
| 24 | interrupts = <RK_PA1 IRQ_TYPE_LEVEL_HIGH>; |
| 25 | }; |
| 26 | |
Jagan Teki | aea0067 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 27 | &sdio0 { |
| 28 | status = "okay"; |
| 29 | |
| 30 | brcmf: wifi@1 { |
| 31 | compatible = "brcm,bcm4329-fmac"; |
| 32 | reg = <1>; |
| 33 | interrupt-parent = <&gpio0>; |
FUKAUMI Naoki | 5d028bb | 2023-04-26 02:23:52 +0000 | [diff] [blame] | 34 | interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | aea0067 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 35 | interrupt-names = "host-wake"; |
| 36 | pinctrl-names = "default"; |
| 37 | pinctrl-0 = <&wifi_host_wake_l>; |
| 38 | }; |
| 39 | }; |
| 40 | |
FUKAUMI Naoki | 5d028bb | 2023-04-26 02:23:52 +0000 | [diff] [blame] | 41 | &sound { |
| 42 | hp-det-gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>; |
| 43 | }; |
| 44 | |
Jagan Teki | aea0067 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 45 | &uart0 { |
| 46 | status = "okay"; |
| 47 | |
| 48 | bluetooth { |
FUKAUMI Naoki | 5d028bb | 2023-04-26 02:23:52 +0000 | [diff] [blame] | 49 | compatible = "brcm,bcm4345c5"; |
Jagan Teki | aea0067 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 50 | clocks = <&rk808 1>; |
FUKAUMI Naoki | 5d028bb | 2023-04-26 02:23:52 +0000 | [diff] [blame] | 51 | clock-names = "lpo"; |
Jagan Teki | aea0067 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 52 | device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; |
| 53 | host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; |
| 54 | shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; |
FUKAUMI Naoki | 5d028bb | 2023-04-26 02:23:52 +0000 | [diff] [blame] | 55 | max-speed = <1500000>; |
Jagan Teki | aea0067 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 56 | pinctrl-names = "default"; |
| 57 | pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; |
FUKAUMI Naoki | 5d028bb | 2023-04-26 02:23:52 +0000 | [diff] [blame] | 58 | vbat-supply = <&vcc3v3_sys>; |
| 59 | vddio-supply = <&vcc_1v8>; |
Jagan Teki | aea0067 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 60 | }; |
| 61 | }; |
| 62 | |
| 63 | &vcc5v0_host { |
| 64 | gpio = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>; |
| 65 | }; |
| 66 | |
| 67 | &vcc5v0_host_en { |
| 68 | rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 69 | }; |