From patchwork Sun Oct 23 15:24:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Shengyu X-Patchwork-Id: 617676 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 5BF2CECAAA1 for ; Sun, 23 Oct 2022 15:25:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230007AbiJWPZh (ORCPT ); Sun, 23 Oct 2022 11:25:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230113AbiJWPZf (ORCPT ); Sun, 23 Oct 2022 11:25:35 -0400 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01olkn2029.outbound.protection.outlook.com [40.92.99.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7063E39130 for ; Sun, 23 Oct 2022 08:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gr/N48BJSeJECrWzwfxrI1hTSFh9aViWNKheO86nc+ycsm4dVIIo+n3P2UDhpv0RrI6i12lbHoEDoPiaNFJ0J70UBgqKE6ga9hxPW0CVFYwT5QqB6HvpwFdKaa2UYmHLHgvRMIPCaCVxuUi+xWdFf2QE2rhNt6Af55tOCRBrDbXoarUHkBZ556M1Qhy7uCHOLuH9aFhh0WjBTuZz3/BFnhNnmEABcBUSeKuC49GWfBDcQZ9XlwbVu1jWAWcGCi0dwp9PvvQSQEBfFeA92Q7l0l35vK1fBdwljmHDMWYmwBtJn6+ziXLcvXQgxuGzAGBpi90pJu0rjh8G/8CCAC80eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=B+YkZnyTaSCGaaN81OI187EPcGabNDf+qaTUxTK8lLQ=; b=TJqa8rnopYFvsD/Gug46JlSDW9oE2eXJRHrwx7dxFjWLkK6SQ/mdH7SGqtycNo0tfMM6Nw44SOyxf098CBAHEH/jSR79arA4r2qXkfJJOnSomKCEIfikMneAFQtHuFjSQjErIZ3Mk5LsHHd9nVRf+od652Nq0ecAAlLm2vUs6qYwS+VNxNlFjwRFB9zY0F/Qfp7emw152RReDsfJnV9Y1b2U6PMvA/H/q4eKPxRrw6T3oQ/QfyhCEb5zXUIWbgJ7Wuq8d/4ZdVTRB7vy8gbLcIPM8O8wEHwoumhCBCk7DziGxrYz1zXXEPS6jElqV/4V5bNOD0UrhLtqI3SvL4fdTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=B+YkZnyTaSCGaaN81OI187EPcGabNDf+qaTUxTK8lLQ=; b=HYyfFzWk6WKJNXadpgwFt86RYc3GCcP/TYdXwzkVrxlzctAlPQt/lWtidkVWhifAeBM1i7E5u1CdklsU2Nsx36FOeOt3hQTn/hazi4TGpwgveiSGPPZ27hUjYDTqp5BuexNRGMNrFm/ZW8sdVeohJu6Gq/N5XQ3+YLeK/KVt6LcajSoPcvgJRx3zUodap3kupq17f9I6LrzyqQsZJuKaAdyWtZbbkgrXe+lnS2iEN7inh/oO3VGcHCD8hKl0qSQ8fALy6V1XD6+/AXKf7NEsnBmVhhbysAyscSdTnMwHYrkRag9CRjhH/XkegwLLEx2FjN21URajKgF9Unoi4WBnCg== Received: from TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:252::12) by OSZP286MB2192.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:189::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.34; Sun, 23 Oct 2022 15:25:30 +0000 Received: from TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM ([fe80::4de9:f94b:b58f:948f]) by TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM ([fe80::4de9:f94b:b58f:948f%6]) with mapi id 15.20.5746.021; Sun, 23 Oct 2022 15:25:30 +0000 From: Shengyu Qu To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, heiko@sntech.de, michael.riesch@wolfvision.net, s.hauer@pengutronix.de, pgwipeout@gmail.com, frattaroli.nicolas@gmail.com, frank-w@public-files.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: Shengyu Qu Subject: [PATCH 3/3] arm64: dts: rockchip: Add nodes for SDIO/UART Wi-Fi/Bluetooth modules to Radxa Rock 3A Date: Sun, 23 Oct 2022 23:24:40 +0800 Message-ID: X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221023152440.2546-1-wiagn233@outlook.com> References: <20221023152440.2546-1-wiagn233@outlook.com> X-TMN: [OuWKp5PY2JM43QLRWT+RNCtTFU8sYA8D] X-ClientProxiedBy: PS2PR03CA0010.apcprd03.prod.outlook.com (2603:1096:300:5b::22) To TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:252::12) X-Microsoft-Original-Message-ID: <20221023152440.2546-5-wiagn233@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY3P286MB2611:EE_|OSZP286MB2192:EE_ X-MS-Office365-Filtering-Correlation-Id: a31e4f4c-e770-4829-b681-08dab50ad1f8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K7ibgZkEq0Ksd8xqI/2Tz87lfcwdzFIGWGCNesDT1AS0RSAwB4cDsdb2HPv26hNQE4w9HMXQ4tCQRMw+emT3G2Q3EitYcXv/jmHNGW593GIaDbP72Obat2tW5BrOdFADmHMKdJdlznxchTi9GZLrXXJ76W+bsv3VxLFgSXphsPMQyr1l5SY7YLJe0alR8r+IMMCCJXR1QxVjt/QnFC0PnHdnKOyNm1o3Ub/fHsINItQ5VGqO8pmlnPpfQAhgz9XjMxGMl1AW6th+TAv/UV/Iac+UAKvpnRpwuoVdr5J/oIbmfpZqxPwXYwheYKDdkI/ZYLcKKWTb+YH4BQJwA4VFFytrzzY3KqxhN785Vb9ObncmF+qCyPm+tMD3Y98lO8xljQcnx36ugHpPjwQAQzbzqzW3Lfx1isgUF71wbpzrIV5XrWGQcJO3Pb6lIbHQ4WYQMTRP2kk6sVh9+NTS3GfX0C5mcrBVveyR67UHRFnV6OBgf3UxFfRjo7KlGY3jhTwXoRogPPPR2albs8rlF5ty1UW77B+eakmkJPneXbQrBErF++TmoGVMXB2B4LALX/8oOc5v7d4QnK39ibz/GnDS8gk4Jm28QtBTeBS9491EPs/jsmQQcMdSB1d7A1BK7HJFnHl22D0GgNcpLbB94xq3w0D3ByfxNr5nQ4XliKCSD6AE0Rr5WFYz/Na5PAs+0qSepEgAEV69aD5zs6dR5c33v2AYfiVNK2lVl9TdtgR1hEADDm729eYYRDu6Zfug== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a31e4f4c-e770-4829-b681-08dab50ad1f8 X-MS-Exchange-CrossTenant-AuthSource: TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2022 15:25:30.5572 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZP286MB2192 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds related bus/pinctrl/power nodes to enable support for Radxa's Wi-Fi Bluetooth combo module. Tested with RADXA A6 module, which uses AP6275S (BCM43752A2) Signed-off-by: Shengyu Qu --- .../boot/dts/rockchip/rk3568-rock-3a.dts | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index 9577a34bb367..9cf20f3b4d16 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -60,6 +60,17 @@ simple-audio-card,codec { }; }; + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&rk809 1>; + clock-names = "ext_clock"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_enable>; + post-power-on-delay-ms = <100>; + power-off-delay-us = <5000000>; + reset-gpios = <&gpio3 RK_PD4 GPIO_ACTIVE_LOW>; + }; + vcc12v_dcin: vcc12v-dcin { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -610,6 +621,26 @@ vcc5v0_usb_otg_en: vcc5v0_usb_otg_en { rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + + bt { + bt_enable: bt-enable { + rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + bt_host_wake: bt-host-wake { + rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>; + }; + + bt_wake: bt-wake { + rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + sdio-pwrseq { + wifi_enable: wifi-enable { + rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; &pmu_io_domains { @@ -654,12 +685,50 @@ &sdmmc0 { status = "okay"; }; +&sdmmc2 { + supports-sdio; + bus-width = <4>; + disable-wp; + cap-sd-highspeed; + cap-sdio-irq; + keep-power-in-suspend; + mmc-pwrseq = <&sdio_pwrseq>; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>; + sd-uhs-sdr104; + vmmc-supply = <&vcc3v3_sys>; + vqmmc-supply = <&vcc_1v8>; + status = "okay"; +}; + &tsadc { rockchip,hw-tshut-mode = <1>; rockchip,hw-tshut-polarity = <0>; status = "okay"; }; +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>; + uart-has-rtscts; + status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + clocks = <&rk809 1>; + clock-names = "lpo"; + device-wakeup-gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&bt_host_wake &bt_wake &bt_enable>; + vbat-supply = <&vcc3v3_sys>; + vddio-supply = <&vcc_1v8>; + /* vddio comes from regulator on module, use IO bank voltage instead */ + }; +}; + &uart2 { status = "okay"; };