From patchwork Tue Jun 6 15:33:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Harvey X-Patchwork-Id: 103964 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3506154vqr; Tue, 6 Jun 2023 09:07:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5rX8OX43f5RSVCgCu3/XdDnbpm6gQwU+qDPIUiEmbrtTmAzXGHjPzdnGXayuNvsu3wApN0 X-Received: by 2002:a05:6a21:9982:b0:10b:bf2d:71bb with SMTP id ve2-20020a056a21998200b0010bbf2d71bbmr104833pzb.27.1686067646747; Tue, 06 Jun 2023 09:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686067646; cv=none; d=google.com; s=arc-20160816; b=R0tPxd8arf77V87c6UVUfMudYUBfUHRLC0Bz1BzL+a/PZWpG2yYhTPgtYePc7X1PmS +8pbIX+wPYs1bhRjOCt5SD5Hk7xMXOdkkUdVFn3hKVM+6qLNpLAbNKOW5EC0zFt/Shw8 km75+q3wKw6jnns8lt6Po88iG0Xhu/IfSB/G4ryEZiZWUwmWsDF2V79/BF5xG1glkBif KQQII8kdAEKxenWfb/ql81jqbhOnMzAPFR6id+WTkPf5KLHzE8Ud7I2ru3pt7QJ5Thcx 5lVQfPfq1YGxmuc8DzyZot6QyNk4pt45bK+ddxLWBPYZWw24F05euCJEaKqaxct9W0bH fb8w== 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 :message-id:date:subject:cc:to:from; bh=/HXRZTtOXU7Q44Fx3oK4SsHQORJzl+JGe/CNAe9Undw=; b=aHp5j3o+x9A8vnlb+F/wMUXMBl1fhmA+lkcfT0GqCZN8OhnyVIxx6NWNM4CSzuQkBO enzewowClc5XKkHWY+IxtJnXJYf0o3k33EQ6oejIL7Sg3QiP43E4o/tn0LsoHrnhiahl wqJ7OMTAEqAj6xpKTiA2Qe0EsOYIkJBXCQ7gCUXd0CtHKdtNVs5VDnRU+ogAnj7H2Sl1 S+x3lZNhn/ej8W9N2624MMzjx6U7x3gY9JS0qApiPvZNAUnXwPl8lDY8BV8o4TWjj7oP HxEXflrxlL3ipuqjYkZKoS99wSM3qXbiVCtzhKcYzO55Cfw7N41uE/+j4jGCJIgzLe3g z8aQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a639244000000b0053a3b0f8aa3si7397224pgn.445.2023.06.06.09.07.12; Tue, 06 Jun 2023 09:07:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233553AbjFFPeE (ORCPT + 99 others); Tue, 6 Jun 2023 11:34:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237456AbjFFPeC (ORCPT ); Tue, 6 Jun 2023 11:34:02 -0400 Received: from finn.localdomain (finn.gateworks.com [108.161.129.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E36AD1BD; Tue, 6 Jun 2023 08:34:00 -0700 (PDT) Received: from 068-189-091-139.biz.spectrum.com ([68.189.91.139] helo=tharvey.pdc.gateworks.com) by finn.localdomain with esmtp (Exim 4.93) (envelope-from ) id 1q6Ygz-0067nf-4z; Tue, 06 Jun 2023 15:33:53 +0000 From: Tim Harvey To: linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Li Yang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tim Harvey Subject: [PATCH] arm64: dts: imx8mm-venice-gw7901: add SDR50/SDR104 SDIO support for wifi Date: Tue, 6 Jun 2023 08:33:51 -0700 Message-Id: <20230606153351.1448596-1-tharvey@gateworks.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767970068979676230?= X-GMAIL-MSGID: =?utf-8?q?1767970068979676230?= The GW7901 has a Murata LBEE5H 802.11abgnac / BT5 module based on the Cypress CYW43455 which supports SDR50/SDR104. Add dt pinctrl for the 100mhz and 200mhz states to support SDR50/SDR104. While at it add the dt node for the CYW43455 wifi for the brcmfmac driver. Signed-off-by: Tim Harvey --- .../dts/freescale/imx8mm-venice-gw7901.dts | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts index d022b5807a24..bb78c99c4fb4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts @@ -789,12 +789,21 @@ &usbotg2 { /* SDIO WiFi */ &usdhc1 { - pinctrl-names = "default"; + pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc1>; + pinctrl-1 = <&pinctrl_usdhc1_100mhz>; + pinctrl-2 = <&pinctrl_usdhc1_200mhz>; bus-width = <4>; non-removable; vmmc-supply = <®_wifi>; + #address-cells = <1>; + #size-cells = <0>; status = "okay"; + + wifi@0 { + compatible = "brcm,bcm43455-fmac"; + reg = <0>; + }; }; /* microSD */ @@ -1054,6 +1063,28 @@ MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d0 >; }; + pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp { + fsl,pins = < + MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x194 + MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d4 + MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d4 + MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d4 + MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d4 + MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d4 + >; + }; + + pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp { + fsl,pins = < + MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x196 + MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d6 + MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d6 + MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d6 + MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d6 + MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d6 + >; + }; + pinctrl_usdhc2: usdhc2grp { fsl,pins = < MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x190