Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3404670pxb; Mon, 9 Nov 2020 10:14:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyppoylEPv+R6SlpyYYKat7hw5BCi+syttEA9p67E21YL/WUknBTXb1ArQ5kddKtcbJTmBK X-Received: by 2002:a17:906:12cf:: with SMTP id l15mr17176840ejb.540.1604945675363; Mon, 09 Nov 2020 10:14:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604945675; cv=none; d=google.com; s=arc-20160816; b=cHplYQ2GHBdTS+3bb/5rN/afTcKM4H1a7VI7l043GxJISGcV0F40ZjXcBP31mjETH4 1AjNsv4vdz0Dvfdul/4TuJ0UMuruBc38Pqiu+9eJ2j7nyw6JQJUhjepomB7ex4y7Ml2t JOWnjbsDRrJnBfifzXWCpOnWSnSuMGtfXoVi/TqKhgutSIMmfRHnHCyBYW5i6K0HOxX9 8mtUVs72UVANvBQU+KrjNFGkqRJguSkHEe3AynD9Tzcq9nZuNXxPGZL45eUQErV53qfv iJs+UEUubKiGtvcBwnthFS3gVEYZ9OF9jW//DM6XVODN+rL5jfWEhLMaAaicloZbneRe 5iJw== 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=Oy1WSzwflsIVOZ5/8uOOaITBP+5WayH2aQR8Kgtsxu4=; b=dmoAHag3BSZnFtfp5jWwW6ACJhlslvFq2pOZIKwfkjfEK+o+fva/+9J9bym7EHleYO 22YCr9et6Np+ZaxB70e15r2Da8n1/f+pWur4vA5T31E0DtzUdTPEOnvOXN79SJnExJ4y PjwfK8v8cr3izPqFZXZzw5VRfwPf8HkNo2SJhSbClKhMnvyof9K743jF/QHJRF5c6H3V DIu2NLsezFjx/qQ5NAC3sS/AlJiKTpq1uDxkCXyI5HvHbxJoJ4aPhHm4b58suBUc8HJY MVHYSvSm+tdpp+O/pISNdHU6i5yIV3pojIbkOptV9YZ0GRtUeYXJks/qivfGc1y+04Eu 21bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dtzywe1c; 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 k13si5821074edk.167.2020.11.09.10.14.10; Mon, 09 Nov 2020 10:14:35 -0800 (PST) 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=@amarulasolutions.com header.s=google header.b=dtzywe1c; 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 S1730644AbgKISLG (ORCPT + 99 others); Mon, 9 Nov 2020 13:11:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730580AbgKISLE (ORCPT ); Mon, 9 Nov 2020 13:11:04 -0500 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46D89C0613D4 for ; Mon, 9 Nov 2020 10:11:04 -0800 (PST) Received: by mail-pf1-x444.google.com with SMTP id z3so8883580pfb.10 for ; Mon, 09 Nov 2020 10:11:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Oy1WSzwflsIVOZ5/8uOOaITBP+5WayH2aQR8Kgtsxu4=; b=dtzywe1cxALk0HOLgXYLQHuMEw5wtkpRrCRO1LcqdGzpqPSjpudcguae2oXb17dbk/ GwUqqWz9f731aSDaicAPQAXJQfmD1F/4rxNNN5d78ecdbyQd5Xd9YCBSSccmqBfXU2XB 6E8gvPn/7KpyJ06lM0tNavY5VEgpSHiI/6i+U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Oy1WSzwflsIVOZ5/8uOOaITBP+5WayH2aQR8Kgtsxu4=; b=bj8cUcTLI+f+olLeXDUFDc7smULeYSsBQmbQDS0swGtVFdxM85hSJyJK0XXiW07+EX S83J1/TYOax0bFSrEFu6rMOiy6OKxdXdyYkOmGCahaiWC8k29MnnBmPBmY3D0bu3+9Oj fYfGn8YoyFu5hvrISDItumNSlzkcqCrsOnuUMPaFl+KzG1/UbIVdwA7+4I+PYopTxjgI BDcAgcnae8ROe32a5e1m31gswkCJCDmjSmw0XTWCcA+f//O68jPCSPtymmU3BDpiKCes W3RDLPBpkOsBRUcWBald33b7YmFM60A+iFbZ12T0X3HLsp9hifoseqhY6NtoSEWvV6iD u+WQ== X-Gm-Message-State: AOAM5337wtS2myv3QZSSLgcD0WlEGlw9RHOdNTg0hcfS5V7pQTwJeGGD NEO93y9bBI80pX48tgLOG5LlEA== X-Received: by 2002:a63:f611:: with SMTP id m17mr13686101pgh.178.1604945463867; Mon, 09 Nov 2020 10:11:03 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7a4:c0f0:b8ab:4687:594d]) by smtp.gmail.com with ESMTPSA id 136sm12027685pfa.132.2020.11.09.10.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 10:11:03 -0800 (PST) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Catalin Marinas , Will Deacon Cc: Suniel Mahesh , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki Subject: [PATCH 5/9] arm64: dts: rockchip: px30-engicam: Add WiFi support Date: Mon, 9 Nov 2020 23:40:13 +0530 Message-Id: <20201109181017.206834-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201109181017.206834-1-jagan@amarulasolutions.com> References: <20201109181017.206834-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Suniel Mahesh Engicam PX30 carrier boards like EDIMM2.2 and C.TOUCH2.0 have an onboard Sterling-LWD Wifi/BT chip based on BCM43430 connected on the SDIO bus. The SDIO power sequnce is connacted with exteernal 32KHz oscillator and it require 3V3 regulator input. This patch adds WiFi enablement nodes for these respective boards. Signed-off-by: Michael Trimarchi Signed-off-by: Suniel Mahesh Signed-off-by: Jagan Teki --- .../dts/rockchip/px30-engicam-common.dtsi | 45 +++++++++++++++++++ .../dts/rockchip/px30-engicam-ctouch2.dtsi | 12 +++++ .../px30-engicam-px30-core-edimm2.2.dts | 12 +++++ 3 files changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/px30-engicam-common.dtsi b/arch/arm64/boot/dts/rockchip/px30-engicam-common.dtsi index 8fdd7ff2fdf9..92681ccf50f1 100644 --- a/arch/arm64/boot/dts/rockchip/px30-engicam-common.dtsi +++ b/arch/arm64/boot/dts/rockchip/px30-engicam-common.dtsi @@ -14,6 +14,51 @@ vcc5v0_sys: vcc5v0-sys { regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; }; + + xin32k: xin32k { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "xin32k"; + }; + + vcc3v3_rf_aux_mod: vcc3v3-rf-aux-mod { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3_rf_aux_mod"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + vin-supply = <&vcc5v0_sys>; + }; + + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&xin32k>; + clock-names = "ext_clock"; + post-power-on-delay-ms = <80>; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_enable_h>; + }; +}; + +&sdio { + #address-cells = <1>; + #size-cells = <0>; + bus-width = <4>; + clock-frequency = <50000000>; + cap-sdio-irq; + cap-sd-highspeed; + keep-power-in-suspend; + mmc-pwrseq = <&sdio_pwrseq>; + non-removable; + sd-uhs-sdr104; + status = "okay"; + + brcmf: wifi@1 { + compatible = "brcm,bcm4329-fmac"; + reg = <1>; + }; }; &gmac { diff --git a/arch/arm64/boot/dts/rockchip/px30-engicam-ctouch2.dtsi b/arch/arm64/boot/dts/rockchip/px30-engicam-ctouch2.dtsi index 58425b1e559f..d5708779c285 100644 --- a/arch/arm64/boot/dts/rockchip/px30-engicam-ctouch2.dtsi +++ b/arch/arm64/boot/dts/rockchip/px30-engicam-ctouch2.dtsi @@ -6,3 +6,15 @@ */ #include "px30-engicam-common.dtsi" + +&pinctrl { + sdio-pwrseq { + wifi_enable_h: wifi-enable-h { + rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&sdio_pwrseq { + reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>; +}; diff --git a/arch/arm64/boot/dts/rockchip/px30-engicam-px30-core-edimm2.2.dts b/arch/arm64/boot/dts/rockchip/px30-engicam-px30-core-edimm2.2.dts index e54d1e480daa..913444548b59 100644 --- a/arch/arm64/boot/dts/rockchip/px30-engicam-px30-core-edimm2.2.dts +++ b/arch/arm64/boot/dts/rockchip/px30-engicam-px30-core-edimm2.2.dts @@ -19,3 +19,15 @@ chosen { stdout-path = "serial2:115200n8"; }; }; + +&pinctrl { + sdio-pwrseq { + wifi_enable_h: wifi-enable-h { + rockchip,pins = <1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&sdio_pwrseq { + reset-gpios = <&gpio1 RK_PC3 GPIO_ACTIVE_LOW>; +}; -- 2.25.1