From nobody Sun Feb 8 15:57:49 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F3CBC0015E for ; Wed, 5 Jul 2023 14:10:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232487AbjGEOKj (ORCPT ); Wed, 5 Jul 2023 10:10:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjGEOKd (ORCPT ); Wed, 5 Jul 2023 10:10:33 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27269E57; Wed, 5 Jul 2023 07:10:32 -0700 (PDT) Received: from obbardc-t14.home (unknown [IPv6:2a00:23c8:b70a:ae01:7599:ed26:1798:f430]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: obbardc) by madras.collabora.co.uk (Postfix) with ESMTPSA id DC9246606FBD; Wed, 5 Jul 2023 15:10:30 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1688566231; bh=HH037cIatFNjpzqzoiSAyNtBb7WwRL/g3tN/nADY86I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BLMXc2H3ZfeFmJFNgguDbhyPdDaSGXUShvulvztIgsySQ7jImJsZGb4cFouBlX5lO fWp489lsgRbKDDubrdWcCIEapF0PbtkaIeRKgeUQiFkyEo3K2i78hl++YfucCuKwoq sUW9ZJz4DsEeBklzvupo3na9kfIFKpO5l1Sa1OFe/kYJ8ugUYj4zt9xbqnCqoc0n34 V4BdbvfHU3dqbePU9ZM/OKlONzyxvHSW+9C0H+PASHmCrqdEjo5R+MOwG4dYGAzdx/ rjhu4PgQfSMP4zWu4co8j+rJ1wjgfzLpTHbB7nV1ClMmYlEMnExHIyNN/f3mWCaqSR Lsn7Mw/6AbjCA== From: Christopher Obbard To: linux-rockchip@lists.infradead.org Cc: kernel@collabora.com, Christopher Obbard , Andy Yan , Chris Morgan , Conor Dooley , Heiko Stuebner , Jagan Teki , Krzysztof Kozlowski , Maya Matuszczyk , Rob Herring , Sebastian Reichel , Tianling Shen , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 3/3] arm64: dts: rockchip: Add Radxa ROCK 4SE Date: Wed, 5 Jul 2023 15:10:11 +0100 Message-Id: <20230705141011.111568-4-chris.obbard@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230705141011.111568-1-chris.obbard@collabora.com> References: <20230705141011.111568-1-chris.obbard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add board-specific devicetree file for the RK3399T-based Radxa ROCK 4SE board. This board offers similar peripherals in a similar form-factor to the existing ROCK Pi 4B but uses the cost-optimised RK3399T processor (which has different OPP table than the RK3399) and other minimal hardware changes. Signed-off-by: Christopher Obbard --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3399-rock-4se.dts | 65 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock-4se.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/ro= ckchip/Makefile index b7fb908eb92d..7ab29cbe71c4 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -58,6 +58,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3399-roc-pc.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3399-roc-pc-mezzanine.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3399-roc-pc-plus.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3399-rock-4c-plus.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3399-rock-4se.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3399-rock-pi-4a.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3399-rock-pi-4a-plus.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3399-rock-pi-4b.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-4se.dts b/arch/arm64/= boot/dts/rockchip/rk3399-rock-4se.dts new file mode 100644 index 000000000000..d0bc91cebba2 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-4se.dts @@ -0,0 +1,65 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Akash Gajjar + * Copyright (c) 2019 Pragnesh Patel + */ + +/dts-v1/; +#include "rk3399-rock-pi-4.dtsi" +#include "rk3399-t-opp.dtsi" + +/ { + model =3D "Radxa ROCK 4SE"; + compatible =3D "radxa,rock-4se", "rockchip,rk3399"; + + aliases { + mmc2 =3D &sdio0; + }; +}; + +&pinctrl { + usb2 { + vcc5v0_host_en: vcc5v0-host-en { + rockchip,pins =3D <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&sdio0 { + status =3D "okay"; + + brcmf: wifi@1 { + compatible =3D "brcm,bcm4329-fmac"; + reg =3D <1>; + interrupt-parent =3D <&gpio0>; + interrupts =3D ; + interrupt-names =3D "host-wake"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&wifi_host_wake_l>; + }; +}; + +&uart0 { + status =3D "okay"; + + bluetooth { + compatible =3D "brcm,bcm4345c5"; + clocks =3D <&rk808 1>; + clock-names =3D "lpo"; + device-wakeup-gpios =3D <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios =3D <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; + shutdown-gpios =3D <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; + max-speed =3D <1500000>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&bt_host_wake_l &bt_wake_l &bt_enable_h>; + vbat-supply =3D <&vcc3v3_sys>; + vddio-supply =3D <&vcc_1v8>; + }; +}; + +&vcc5v0_host { + enable-active-high; + gpio =3D <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&vcc5v0_host_en>; +}; --=20 2.40.1