Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2678686rdh; Sun, 26 Nov 2023 15:29:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHEbWjwknpNdlvbzXAdtUzu52wXpwgZpJTuHdk0Z28jUmqDzgAOgFqlm1Wg9BF+zWUq0KNj X-Received: by 2002:a17:90b:19c9:b0:280:a4a1:5d03 with SMTP id nm9-20020a17090b19c900b00280a4a15d03mr19299627pjb.4.1701041372266; Sun, 26 Nov 2023 15:29:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701041372; cv=none; d=google.com; s=arc-20160816; b=dw5bUrgfxgH3jlLGBggI8RuATfME7ODg2l/XAkuq28DN9SavyQMwJWLUKT4YMB/9MJ 6+cmNPZSpf1KaYTHaTvLegeCr1PSJG2P0QtqdyLvbptElTr/ensL0CXvnETEb2sdW/+W 8asfoyupTP42/QC2Vo2KWIpkhJ8rhO9Mixav3CslFHgM32EdIQOWrdOBf6BRVe2/cfaR naSZKB5+OkD7W6or8eqqcgXIC9o0Cn770GugamiTuJzTmEWz6htoxqC0h+s3VDAkj7WC FgVEuzeeZRWymR2ur0h/sQuvkgkz0T5h1v6A+dwgvX4ZFfYe8ul1OlmNPvHFXMnjlqAH Axaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Hegf0srFkbsTjzBuIfrKZwGyBpbOFAxXtDxYBC/BJOY=; fh=IHo4JbcU5Gy17m5IMbnjDsQH8GbpIaNOV6B0kJ1IGNQ=; b=nLYjHu/YqY8Pt75ckFCs1JZ8G2GIK0fYbXg9vED0C8Ykwi4UTvw060Yu3lmNbOF2HW VTl2Z71e2eZcM5LxFUSvqJ5aYZwGt1p+kHDJ4bYVXhwOhmk6eEuC1l3wCfCxxa8WkwLc qKIqT4o4fS+8wY/EkDp2JKle+vjGH3dGK/QJ8Lyl/RAm8iQuSMN6TlfmrUFoJh2w8kIi bBsmMKsk6+2tKWyuWn+W4cD5smtGxgQ+1m5dDXsj8bjY76H69HsrEj6jqCt9gEHPWlTA JI8eUj0639z4Dr8NE9hYDcrvlz5QsB4zws2pAVk9iHw11yn+miCrUFhhbUgwBjWb0q2b QJug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Ibxx9gBN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id j13-20020a17090ae60d00b002791d79bbf9si8982808pjy.187.2023.11.26.15.29.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 15:29:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Ibxx9gBN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 102BC804B3A5; Sun, 26 Nov 2023 15:29:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232065AbjKZX3L (ORCPT + 99 others); Sun, 26 Nov 2023 18:29:11 -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-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: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sun, 26 Nov 2023 15:29:29 -0800 (PST) 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/boot/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 = &sdio0; + mmc1 = &sdio1; serial0 = &uart3; }; @@ -64,6 +65,11 @@ soc { <0x00 0xfa000000 0x10 0x7a000000 0x00 0x01000000>, <0x00 0xfb000000 0x00 0xfb000000 0x07 0x85000000>; }; + + wifi_pwrseq: wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&gpio 37 GPIO_ACTIVE_LOW>; + }; }; &gpio { @@ -146,6 +152,41 @@ GPO_SDIO0_PAD_CDATA_OEN_BIT3, }; }; + sdio1_pins: sdio1-0 { + clk-pins { + pinmux = ; + bias-disable; + input-disable; + input-schmitt-disable; + }; + sdio-pins { + pinmux = , + , + , + , + ; + bias-pull-up; + input-enable; + input-schmitt-enable; + }; + }; + uart3_pins: uart3-0 { rx-pins { pinmux = ; + #size-cells = <0>; + bus-width = <4>; + cap-sd-highspeed; + cap-sdio-irq; + cap-power-off-card; + mmc-pwrseq = <&wifi_pwrseq>; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&sdio1_pins>; + status = "okay"; + + wifi@1 { + compatible = "brcm,bcm4329-fmac"; + reg = <1>; + }; +}; + &uart3 { pinctrl-names = "default"; pinctrl-0 = <&uart3_pins>; -- 2.40.1