Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3550238pxj; Tue, 15 Jun 2021 03:31:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdA9/jPzPP0wve5e1j/P4fBrvZBC6miko4k0v+SQFd/6uUqyBnuBLyoBPOzeQc4p7JGiB6 X-Received: by 2002:a05:6402:35c8:: with SMTP id z8mr22166057edc.348.1623753066479; Tue, 15 Jun 2021 03:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623753066; cv=none; d=google.com; s=arc-20160816; b=XALIX3r4bD9VJqJJtFYXYigrhZHFPUweqbMT8+c4z/qaDAz9JRbMt9bGwbMIMAkd5s FBcqtoEMtr+ig2zUx0fzOUJ2R1MGF4sx4343/ixHA9zgcHD0UDjL2xf1/zolCM99z1nq LWcxVUU++KNMJedxPnM78ZzXa6OxhIz9RCrVN03kJGHri4bLdzUy8edHgJPNlu5KQFU2 aDuVQ80XtWmFeRA4ItQA1DGtEIPvc6lmo0Y9fKARlu/dmMs1oYcvZM10XO5SXZfgg/Pa iMSH4cniUncrujGsY4SYc3LpQq4wskoo1BtVOtz7ayixMdkQWgeS7QwsC5FgEuISvnoS Aa0A== 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:dkim-signature:dkim-signature; bh=G1RFhaM6SsXFeINjKzhl9UU+qxEODyv4CLldEnb/exY=; b=t5HKZxg1BSz2Nz7zRDctfUdy2mzP0+hpXTUUhfabVV4KASo0+KrsR5NXLUA53Fijh4 9BDuSppZ6aat8J6Ypd/GMTEX3OIcIZ+LIgIU9UDsU84tmpiWj01Dc9hF9nQsoE2sDLB+ xQUkQsH/eCSqth6ezUgIurv5DTXVlGAKvbtBe7eRgEV2WHEr/bBDVjJvSrMe2J+fWNWc +GRp6nr/qy3P+zZG8+uHsLSaEQE2Nt7JnYh3Zp2za+5zpPe2qjtg1+aJDLjEP753kKui DG5QP68lsWZhfyzwxgsYfZZgrlCPdrrkqlXHNXM2LeLyZ1a8MjfIJclef1X8tIob0f9d agvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm1 header.b=QEfXYOLU; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=SdB4dw31; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d14si14065344edx.220.2021.06.15.03.30.43; Tue, 15 Jun 2021 03:31:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm1 header.b=QEfXYOLU; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=SdB4dw31; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231443AbhFOKb4 (ORCPT + 99 others); Tue, 15 Jun 2021 06:31:56 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:37691 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231265AbhFOKbz (ORCPT ); Tue, 15 Jun 2021 06:31:55 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 0B00058087B; Tue, 15 Jun 2021 06:29:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 15 Jun 2021 06:29:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=G1RFhaM6SsXFeINjKzhl9UU+qx EODyv4CLldEnb/exY=; b=QEfXYOLU7P/FRlpSTzY6HB3+c2YfV6VNEK/877V+aA hob3rgWAS3LRD2IqKqBxrZlurx+AaetjUibIdlod8iXQ8wKopXQtjFx+43RMSRco ep1q3nGo39o5OXnDt8MhEkJiFsRgIyqw60EqgCv2fmCv8JfmkFlRbdlq+6rdjP1D krXfV0GptN7/bOrAhBmZ1PQ4xQ5OhO2jdKYtUIMdjsQnCISFtITieuoCix88Gduv u4SG678wpYySM1bDN9qu7Lid2XBZqiQne84mDgoFe9Snfl8WYwXr9Z66f/BEFq6Q aPK5SgUy+TSodvDC+FrHbBfs31E1kuXCn2Cm+c3cPm7Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=G1RFhaM6SsXFeINjK zhl9UU+qxEODyv4CLldEnb/exY=; b=SdB4dw31H5i30bnaX72gBB6vvB9R/sjb4 VR9YvX9qYHeOP92RfN9b+nSIRT3rT4p4Vne9DG4TMVr5MVLCgAw0VIwyfiZendnD CbdYjpCylLnn4QjcuP6WSK35BFtoUCAeOCVqX8Dmlj+/BbwJWOfwRIlUtHWKZ2cA +Zj5WscilDlJgXR3RR1IzhlvHlD5YKFj+aoFzd86yXdmPrWnN9XYKaWIat5ombsP dVMWX3eNoomIApOZKQH0oAunLHeaoWHN3Y3mXy1KzJIr8sY2/xbJ34HkSY7cRnm5 f0YFtw4WVSEkjfNkrT4a2mw5+C5GfygPoqwKSJ71nAQRIYaEVIWIA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvjedgvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgrihhr segrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeejleeihfdvtefgtd ethfdtgefftdeiffefjeeiffefveeuleejheejvefhffeukeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlihhsth grihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Jun 2021 06:29:46 -0400 (EDT) From: Alistair Francis To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alistair23@gmail.com, Alistair Francis Subject: [PATCH v2] ARM: dts: imx7d-remarkable2: Add WiFi support Date: Tue, 15 Jun 2021 20:29:35 +1000 Message-Id: <20210615102935.738-1-alistair@alistair23.me> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the bcm4329-fmac WiFi in the reMarkable 2, connected via SDHC. Signed-off-by: Alistair Francis --- arch/arm/boot/dts/imx7d-remarkable2.dts | 92 +++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-remarkable2.dts b/arch/arm/boot/dts/imx7d-remarkable2.dts index 8cbae656395c..7eebcd7f23bb 100644 --- a/arch/arm/boot/dts/imx7d-remarkable2.dts +++ b/arch/arm/boot/dts/imx7d-remarkable2.dts @@ -21,6 +21,27 @@ memory@80000000 { device_type = "memory"; reg = <0x80000000 0x40000000>; }; + + reg_brcm: regulator-brcm { + compatible = "regulator-fixed"; + regulator-name = "brcm_reg"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_brcm_reg>; + gpio = <&gpio6 13 GPIO_ACTIVE_HIGH>; + enable-active-high; + startup-delay-us = <150>; + }; + + wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wifi>; + reset-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>; + clocks = <&clks IMX7D_CLKO2_ROOT_DIV>; + clock-names = "ext_clock"; + }; }; &clks { @@ -56,6 +77,28 @@ &usbotg2 { status = "okay"; }; +&usdhc2 { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; + pinctrl-0 = <&pinctrl_usdhc2>; + pinctrl-1 = <&pinctrl_usdhc2_100mhz>; + pinctrl-2 = <&pinctrl_usdhc2_200mhz>; + pinctrl-2 = <&pinctrl_usdhc2>; + mmc-pwrseq = <&wifi_pwrseq>; + vmmc-supply = <®_brcm>; + bus-width = <4>; + non-removable; + keep-power-in-suspend; + cap-power-off-card; + status = "okay"; + + brcmf: bcrmf@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + }; +}; + &usdhc3 { pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; pinctrl-0 = <&pinctrl_usdhc3>; @@ -76,6 +119,13 @@ &wdog1 { }; &iomuxc { + pinctrl_brcm_reg: brcmreggrp { + fsl,pins = < + /* WIFI_PWR_EN */ + MX7D_PAD_SAI1_TX_BCLK__GPIO6_IO13 0x14 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79 @@ -90,6 +140,39 @@ MX7D_PAD_EPDC_DATA08__UART6_DCE_RX 0x79 >; }; + pinctrl_usdhc2: usdhc2grp { + fsl,pins = < + MX7D_PAD_SD2_CMD__SD2_CMD 0x59 + MX7D_PAD_SD2_CLK__SD2_CLK 0x19 + MX7D_PAD_SD2_DATA0__SD2_DATA0 0x59 + MX7D_PAD_SD2_DATA1__SD2_DATA1 0x59 + MX7D_PAD_SD2_DATA2__SD2_DATA2 0x59 + MX7D_PAD_SD2_DATA3__SD2_DATA3 0x59 + >; + }; + + pinctrl_usdhc2_100mhz: usdhc2grp_100mhz { + fsl,pins = < + MX7D_PAD_SD2_CMD__SD2_CMD 0x5a + MX7D_PAD_SD2_CLK__SD2_CLK 0x1a + MX7D_PAD_SD2_DATA0__SD2_DATA0 0x5a + MX7D_PAD_SD2_DATA1__SD2_DATA1 0x5a + MX7D_PAD_SD2_DATA2__SD2_DATA2 0x5a + MX7D_PAD_SD2_DATA3__SD2_DATA3 0x5a + >; + }; + + pinctrl_usdhc2_200mhz: usdhc2grp_200mhz { + fsl,pins = < + MX7D_PAD_SD2_CMD__SD2_CMD 0x5b + MX7D_PAD_SD2_CLK__SD2_CLK 0x1b + MX7D_PAD_SD2_DATA0__SD2_DATA0 0x5b + MX7D_PAD_SD2_DATA1__SD2_DATA1 0x5b + MX7D_PAD_SD2_DATA2__SD2_DATA2 0x5b + MX7D_PAD_SD2_DATA3__SD2_DATA3 0x5b + >; + }; + pinctrl_usdhc3: usdhc3grp { fsl,pins = < MX7D_PAD_SD3_CMD__SD3_CMD 0x59 @@ -143,4 +226,13 @@ pinctrl_wdog: wdoggrp { MX7D_PAD_ENET1_COL__WDOG1_WDOG_ANY 0x74 >; }; + + pinctrl_wifi: wifigrp { + fsl,pins = < + /* WiFi Reg On */ + MX7D_PAD_SD2_CD_B__GPIO5_IO9 0x00000014 + /* WiFi Sleep 32k */ + MX7D_PAD_SD1_WP__CCM_CLKO2 0x00000014 + >; + }; }; -- 2.31.1