Jagan Teki | 1f13954 | 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" |
Christopher Obbard | 1379c7c | 2023-07-19 17:33:56 +0100 | [diff] [blame] | 10 | #include "rk3399-opp.dtsi" |
Jagan Teki | 1f13954 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 11 | |
| 12 | / { |
| 13 | model = "Radxa ROCK Pi 4C"; |
Peter Robinson | 822556a | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 14 | compatible = "radxa,rockpi4c", "radxa,rockpi4", "rockchip,rk3399"; |
| 15 | |
| 16 | aliases { |
| 17 | mmc2 = &sdio0; |
| 18 | }; |
Jagan Teki | 1f13954 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 19 | }; |
| 20 | |
FUKAUMI Naoki | d0e62ee | 2023-04-26 02:23:52 +0000 | [diff] [blame] | 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 | |
Jagan Teki | 1f13954 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 28 | &sdio0 { |
| 29 | status = "okay"; |
| 30 | |
| 31 | brcmf: wifi@1 { |
| 32 | compatible = "brcm,bcm4329-fmac"; |
| 33 | reg = <1>; |
| 34 | interrupt-parent = <&gpio0>; |
FUKAUMI Naoki | d0e62ee | 2023-04-26 02:23:52 +0000 | [diff] [blame] | 35 | interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>; |
Jagan Teki | 1f13954 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 36 | interrupt-names = "host-wake"; |
| 37 | pinctrl-names = "default"; |
| 38 | pinctrl-0 = <&wifi_host_wake_l>; |
| 39 | }; |
| 40 | }; |
| 41 | |
FUKAUMI Naoki | d0e62ee | 2023-04-26 02:23:52 +0000 | [diff] [blame] | 42 | &sound { |
| 43 | hp-det-gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>; |
| 44 | }; |
| 45 | |
Jagan Teki | 1f13954 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 46 | &uart0 { |
| 47 | status = "okay"; |
| 48 | |
| 49 | bluetooth { |
FUKAUMI Naoki | d0e62ee | 2023-04-26 02:23:52 +0000 | [diff] [blame] | 50 | compatible = "brcm,bcm4345c5"; |
Jagan Teki | 1f13954 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 51 | clocks = <&rk808 1>; |
FUKAUMI Naoki | d0e62ee | 2023-04-26 02:23:52 +0000 | [diff] [blame] | 52 | clock-names = "lpo"; |
Jagan Teki | 1f13954 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 53 | 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 Naoki | d0e62ee | 2023-04-26 02:23:52 +0000 | [diff] [blame] | 56 | max-speed = <1500000>; |
Jagan Teki | 1f13954 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 57 | pinctrl-names = "default"; |
| 58 | pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; |
FUKAUMI Naoki | d0e62ee | 2023-04-26 02:23:52 +0000 | [diff] [blame] | 59 | vbat-supply = <&vcc3v3_sys>; |
| 60 | vddio-supply = <&vcc_1v8>; |
Jagan Teki | 1f13954 | 2020-07-21 00:25:49 +0530 | [diff] [blame] | 61 | }; |
| 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 | }; |