From nobody Wed Dec 17 14:10:51 2025 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 1508DC4167B for ; Sun, 26 Nov 2023 23:29:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232109AbjKZX3N (ORCPT ); Sun, 26 Nov 2023 18:29:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232073AbjKZX24 (ORCPT ); Sun, 26 Nov 2023 18:28:56 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 652C1D60 for ; Sun, 26 Nov 2023 15:28:54 -0800 (PST) Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 83EF03F18D for ; Sun, 26 Nov 2023 23:28:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1701041332; bh=Hegf0srFkbsTjzBuIfrKZwGyBpbOFAxXtDxYBC/BJOY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ibxx9gBNjU19M/qmhJfTLYXswzXXpdUubze7JgXD67vOLDRn9mjT9nhJzcz0yVAL9 ohCu1+MACH6hh0XkJxFHNVEH7SAsp3Q9zfUqIvjl4g1jSTrxWoWzaiYetvFxAHgLO3 jYJQOG80ek33gSUrcX0nRzb3wyJZmtk07912x1BZtekveUn7uEfzvOaC41a+AZsiej 95OBkXH68OnWg5sK4K0h78My83wBi83iL102csUiOcwl2PKf7yj6yP4O/ff1tYNRdB rTWV0Kxrw+J5/UwaB/OXgU7hI+yQI24gQ6oSQhrPNnaO5h203nh/zjh2NAG7qecGmi 7uxLz0BY+6Izg== Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-1cf8b6db1a3so35492295ad.1 for ; Sun, 26 Nov 2023 15:28:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701041331; x=1701646131; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Hegf0srFkbsTjzBuIfrKZwGyBpbOFAxXtDxYBC/BJOY=; b=JPA50SG0NLo1M73N9wJa5KRRqfHCvGN7Rqnd2PpNeDdr8idIOTHD/XA9d/2G25tf4H AxaBUv28/x25/wjWjDjhuWvnaVI/1NH/Wkg0/MV3kBPpoZFH4tA4wS8JKtSny1VDITsb cSoNV5NDtkhO60vWhrRDtFpnMhOhQmA0RQbCo1Rtd2VPMh/pPVs1830A0Tz/UPPnUYzj iYWvOfXI2Y/YTjT7D2FtXdUlWoIErffCtiXTmEwxGYuumKyjvbvIdBbSZE8DUauBedFI 6IJJ2Pmqay1CGgipldzckMuSxjF5uEC0HqiG0UewvQ072c/KS687kJ0MclMWfz8VSytx tRfg== X-Gm-Message-State: AOJu0Ywh+vC5XhCsTUdSw6Pzcybphw8he/Zlldk1RJgcWy4V1bhS33Ez cY1WiQ4FsIqn55JnJWGBPcEOvty3vQvstSHbA6ct3ZnEDGlvB/cmxwTdiUeIHv76lVPhPYxlYhH ZzTVvsYzqaHqZ0nMPiU0luCzsMrXlGQbrN6Dh0Lt0Bw== X-Received: by 2002:a17:902:ea03:b0:1cf:59df:23e with SMTP id s3-20020a170902ea0300b001cf59df023emr11103464plg.12.1701041331225; Sun, 26 Nov 2023 15:28:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFTrvuPPoNzP+py4XqmHD9XiUVxx+5MXIw05g3Cwx+D545lG42EnF9hasXsueZHE+8Z2rIDwA== X-Received: by 2002:a17:902:ea03:b0:1cf:59df:23e with SMTP id s3-20020a170902ea0300b001cf59df023emr11103454plg.12.1701041330967; Sun, 26 Nov 2023 15:28:50 -0800 (PST) Received: from stitch.. ([80.71.140.73]) by smtp.gmail.com with ESMTPSA id y10-20020a170902b48a00b001cfb52ebffesm3123853plr.147.2023.11.26.15.28.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 15:28:50 -0800 (PST) From: Emil Renner Berthing To: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Paul Walmsley , Palmer Dabbelt , Emil Renner Berthing , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Cristian Ciocaltea Subject: [PATCH v1 8/8] riscv: dts: starfive: Enable SDIO wifi on JH7100 boards Date: Mon, 27 Nov 2023 00:27:46 +0100 Message-Id: <20231126232746.264302-9-emil.renner.berthing@canonical.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231126232746.264302-1-emil.renner.berthing@canonical.com> References: <20231126232746.264302-1-emil.renner.berthing@canonical.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 pinctrl and MMC controller nodes for the Broadcom wifi controller on the BeagleV Starlight and StarFive VisionFive V1 boards. Signed-off-by: Emil Renner Berthing --- .../boot/dts/starfive/jh7100-common.dtsi | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi b/arch/riscv/b= oot/dts/starfive/jh7100-common.dtsi index adcdbbc4f57f..42fb61c36068 100644 --- a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi @@ -13,6 +13,7 @@ / { aliases { mmc0 =3D &sdio0; + mmc1 =3D &sdio1; serial0 =3D &uart3; }; =20 @@ -64,6 +65,11 @@ soc { <0x00 0xfa000000 0x10 0x7a000000 0x00 0x01000000>, <0x00 0xfb000000 0x00 0xfb000000 0x07 0x85000000>; }; + + wifi_pwrseq: wifi-pwrseq { + compatible =3D "mmc-pwrseq-simple"; + reset-gpios =3D <&gpio 37 GPIO_ACTIVE_LOW>; + }; }; =20 &gpio { @@ -146,6 +152,41 @@ GPO_SDIO0_PAD_CDATA_OEN_BIT3, }; }; =20 + sdio1_pins: sdio1-0 { + clk-pins { + pinmux =3D ; + bias-disable; + input-disable; + input-schmitt-disable; + }; + sdio-pins { + pinmux =3D , + , + , + , + ; + bias-pull-up; + input-enable; + input-schmitt-enable; + }; + }; + uart3_pins: uart3-0 { rx-pins { pinmux =3D ; + #size-cells =3D <0>; + bus-width =3D <4>; + cap-sd-highspeed; + cap-sdio-irq; + cap-power-off-card; + mmc-pwrseq =3D <&wifi_pwrseq>; + non-removable; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&sdio1_pins>; + status =3D "okay"; + + wifi@1 { + compatible =3D "brcm,bcm4329-fmac"; + reg =3D <1>; + }; +}; + &uart3 { pinctrl-names =3D "default"; pinctrl-0 =3D <&uart3_pins>; --=20 2.40.1