1*aa1a8ff2SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*aa1a8ff2SEmmanuel Vadot/* 3*aa1a8ff2SEmmanuel Vadot * Copyright (c) 2019 Akash Gajjar <Akash_Gajjar@mentor.com> 4*aa1a8ff2SEmmanuel Vadot * Copyright (c) 2019 Pragnesh Patel <Pragnesh_Patel@mentor.com> 5*aa1a8ff2SEmmanuel Vadot */ 6*aa1a8ff2SEmmanuel Vadot 7*aa1a8ff2SEmmanuel Vadot/dts-v1/; 8*aa1a8ff2SEmmanuel Vadot#include "rk3399-rock-pi-4.dtsi" 9*aa1a8ff2SEmmanuel Vadot#include "rk3399-t-opp.dtsi" 10*aa1a8ff2SEmmanuel Vadot 11*aa1a8ff2SEmmanuel Vadot/ { 12*aa1a8ff2SEmmanuel Vadot model = "Radxa ROCK 4SE"; 13*aa1a8ff2SEmmanuel Vadot compatible = "radxa,rock-4se", "rockchip,rk3399"; 14*aa1a8ff2SEmmanuel Vadot 15*aa1a8ff2SEmmanuel Vadot aliases { 16*aa1a8ff2SEmmanuel Vadot mmc2 = &sdio0; 17*aa1a8ff2SEmmanuel Vadot }; 18*aa1a8ff2SEmmanuel Vadot}; 19*aa1a8ff2SEmmanuel Vadot 20*aa1a8ff2SEmmanuel Vadot&pinctrl { 21*aa1a8ff2SEmmanuel Vadot usb2 { 22*aa1a8ff2SEmmanuel Vadot vcc5v0_host_en: vcc5v0-host-en { 23*aa1a8ff2SEmmanuel Vadot rockchip,pins = <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; 24*aa1a8ff2SEmmanuel Vadot }; 25*aa1a8ff2SEmmanuel Vadot }; 26*aa1a8ff2SEmmanuel Vadot}; 27*aa1a8ff2SEmmanuel Vadot 28*aa1a8ff2SEmmanuel Vadot&sdio0 { 29*aa1a8ff2SEmmanuel Vadot status = "okay"; 30*aa1a8ff2SEmmanuel Vadot 31*aa1a8ff2SEmmanuel Vadot brcmf: wifi@1 { 32*aa1a8ff2SEmmanuel Vadot compatible = "brcm,bcm4329-fmac"; 33*aa1a8ff2SEmmanuel Vadot reg = <1>; 34*aa1a8ff2SEmmanuel Vadot interrupt-parent = <&gpio0>; 35*aa1a8ff2SEmmanuel Vadot interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>; 36*aa1a8ff2SEmmanuel Vadot interrupt-names = "host-wake"; 37*aa1a8ff2SEmmanuel Vadot pinctrl-names = "default"; 38*aa1a8ff2SEmmanuel Vadot pinctrl-0 = <&wifi_host_wake_l>; 39*aa1a8ff2SEmmanuel Vadot }; 40*aa1a8ff2SEmmanuel Vadot}; 41*aa1a8ff2SEmmanuel Vadot 42*aa1a8ff2SEmmanuel Vadot&uart0 { 43*aa1a8ff2SEmmanuel Vadot status = "okay"; 44*aa1a8ff2SEmmanuel Vadot 45*aa1a8ff2SEmmanuel Vadot bluetooth { 46*aa1a8ff2SEmmanuel Vadot compatible = "brcm,bcm4345c5"; 47*aa1a8ff2SEmmanuel Vadot clocks = <&rk808 1>; 48*aa1a8ff2SEmmanuel Vadot clock-names = "lpo"; 49*aa1a8ff2SEmmanuel Vadot device-wakeup-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; 50*aa1a8ff2SEmmanuel Vadot host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; 51*aa1a8ff2SEmmanuel Vadot shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; 52*aa1a8ff2SEmmanuel Vadot max-speed = <1500000>; 53*aa1a8ff2SEmmanuel Vadot pinctrl-names = "default"; 54*aa1a8ff2SEmmanuel Vadot pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>; 55*aa1a8ff2SEmmanuel Vadot vbat-supply = <&vcc3v3_sys>; 56*aa1a8ff2SEmmanuel Vadot vddio-supply = <&vcc_1v8>; 57*aa1a8ff2SEmmanuel Vadot }; 58*aa1a8ff2SEmmanuel Vadot}; 59*aa1a8ff2SEmmanuel Vadot 60*aa1a8ff2SEmmanuel Vadot&vcc5v0_host { 61*aa1a8ff2SEmmanuel Vadot enable-active-high; 62*aa1a8ff2SEmmanuel Vadot gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>; 63*aa1a8ff2SEmmanuel Vadot pinctrl-names = "default"; 64*aa1a8ff2SEmmanuel Vadot pinctrl-0 = <&vcc5v0_host_en>; 65*aa1a8ff2SEmmanuel Vadot}; 66