1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2019 Fuzhou Rockchip Electron 3 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd 4 * Copyright (c) 2019 Radxa Limited 4 * Copyright (c) 2019 Radxa Limited 5 * Copyright (c) 2019 Amarula Solutions(India) 5 * Copyright (c) 2019 Amarula Solutions(India) 6 */ 6 */ 7 7 8 /dts-v1/; 8 /dts-v1/; 9 #include "rk3399.dtsi" << 10 #include "rk3399-rock-pi-4.dtsi" 9 #include "rk3399-rock-pi-4.dtsi" 11 10 12 / { 11 / { 13 model = "Radxa ROCK Pi 4C"; 12 model = "Radxa ROCK Pi 4C"; 14 compatible = "radxa,rockpi4c", "radxa, 13 compatible = "radxa,rockpi4c", "radxa,rockpi4", "rockchip,rk3399"; 15 14 16 aliases { 15 aliases { 17 mmc2 = &sdio0; 16 mmc2 = &sdio0; 18 }; 17 }; 19 }; 18 }; 20 19 21 &es8316 { 20 &es8316 { 22 pinctrl-0 = <&hp_detect &hp_int>; 21 pinctrl-0 = <&hp_detect &hp_int>; 23 pinctrl-names = "default"; 22 pinctrl-names = "default"; 24 interrupt-parent = <&gpio1>; 23 interrupt-parent = <&gpio1>; 25 interrupts = <RK_PA1 IRQ_TYPE_LEVEL_HI 24 interrupts = <RK_PA1 IRQ_TYPE_LEVEL_HIGH>; 26 }; 25 }; 27 26 28 &sdio0 { 27 &sdio0 { 29 status = "okay"; 28 status = "okay"; 30 29 31 brcmf: wifi@1 { 30 brcmf: wifi@1 { 32 compatible = "brcm,bcm4329-fma 31 compatible = "brcm,bcm4329-fmac"; 33 reg = <1>; 32 reg = <1>; 34 interrupt-parent = <&gpio0>; 33 interrupt-parent = <&gpio0>; 35 interrupts = <RK_PA3 IRQ_TYPE_ !! 34 interrupts = <RK_PA3 GPIO_ACTIVE_HIGH>; 36 interrupt-names = "host-wake"; 35 interrupt-names = "host-wake"; 37 pinctrl-names = "default"; 36 pinctrl-names = "default"; 38 pinctrl-0 = <&wifi_host_wake_l 37 pinctrl-0 = <&wifi_host_wake_l>; 39 }; 38 }; 40 }; 39 }; 41 40 42 &sound { 41 &sound { 43 hp-det-gpio = <&gpio1 RK_PA0 GPIO_ACTI 42 hp-det-gpio = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>; 44 }; << 45 << 46 &spi1 { << 47 status = "okay"; << 48 << 49 flash@0 { << 50 compatible = "jedec,spi-nor"; << 51 reg = <0>; << 52 spi-max-frequency = <108000000 << 53 }; << 54 }; 43 }; 55 44 56 &uart0 { 45 &uart0 { 57 status = "okay"; 46 status = "okay"; 58 47 59 bluetooth { 48 bluetooth { 60 compatible = "brcm,bcm4345c5"; 49 compatible = "brcm,bcm4345c5"; 61 clocks = <&rk808 1>; 50 clocks = <&rk808 1>; 62 clock-names = "lpo"; 51 clock-names = "lpo"; 63 device-wakeup-gpios = <&gpio2 52 device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; 64 host-wakeup-gpios = <&gpio0 RK 53 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; 65 shutdown-gpios = <&gpio0 RK_PB 54 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; 66 max-speed = <1500000>; 55 max-speed = <1500000>; 67 pinctrl-names = "default"; 56 pinctrl-names = "default"; 68 pinctrl-0 = <&bt_host_wake_l & 57 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; 69 vbat-supply = <&vcc3v3_sys>; 58 vbat-supply = <&vcc3v3_sys>; 70 vddio-supply = <&vcc_1v8>; 59 vddio-supply = <&vcc_1v8>; 71 }; 60 }; 72 }; 61 }; 73 62 74 &vcc5v0_host { 63 &vcc5v0_host { 75 gpio = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH 64 gpio = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>; 76 }; 65 }; 77 66 78 &vcc5v0_host_en { 67 &vcc5v0_host_en { 79 rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO 68 rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; 80 }; 69 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.