From patchwork Sat Oct 29 17:09:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengyu Qu X-Patchwork-Id: 619878 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 CAE13C433FE for ; Sat, 29 Oct 2022 17:11:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229497AbiJ2RLQ (ORCPT ); Sat, 29 Oct 2022 13:11:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229885AbiJ2RLM (ORCPT ); Sat, 29 Oct 2022 13:11:12 -0400 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01olkn2059.outbound.protection.outlook.com [40.92.99.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 784802A959 for ; Sat, 29 Oct 2022 10:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VfexCqKmdhmimhbPgGoiqD8xXk9c4wVspJPMlLZU3YdxUrQsc/p7r3ct+ATUep5fT7Hbyck6AwQPnKU+r9t/YxDh4knOzm2fULHDafJ4HOu8XRTZtX0ywlL+PxV7DQ6ZE+QMnBFWL00v3/ehFAMYZtlcqbWWr2f66e3GRmwYhltaZxOPFxDEAm209wCfmNYhODmLvB2+uFqzc4rRYSoZOFEo/0dZ5oscF9eUG8O9B8jk5Liw5GWlZ2a12NJ+1QNFiohrlUhCyfjM5f4Rox21Eyd90lvAyVqWf8asUY1xnSbuPqFjdkyH8vprj87xw1Dd8M8o1MtzBO+LgCwIBzupKQ== 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=Fxt8xVlSnmvJyhApHbHOPdT7hr7LfsVrh2x/CzQ510LfUnZAiFxkFFZC/0gm73IKF3XeRz5Lnw0ZqCM2rOXOUcU6zqfgeyI55M4bE3MSdK0ApaSXMByUysYlX12IEautCqidtBpKSo8EhF3RgrF1D6BQapM9nbwDBRvjSiUhlZACILklQpQxyOoKJ3lj62Px90kdHTVVCrBDsymfH4tQ6vfX24SXzg6nEknSO6uiqRCJJj2YERxl8rlvR2b6aFg39B0bzLdBFmTaBHcPPhn6hNVJtAHXj/eVobERSZQCKyvD2xBzLd8014euyv/54261YY8K1R7QKOXksEwauKqFLQ== 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=qoFoAKRwDf1wiGAquYLxFXAglT+bIBl4J1u0Ba5FbPvReGbmwjmthXVnaDJq85l3dGajNzcsSndD9LUDMZwLAcizQukEYf8uGYSKyuxqLjIDtyd9tSVEX8v8OOaLZM6rF1FD5XnWGUGSutiGq5QdGUkzU7CvL9/vhcgoF/88Zw9stYd4MwyM4WQvZxs3vLSpdbLB8yZry+nGSxK9jyh3bUwaPzxpNdlTPeHevS6CbCWSpTb6mEHt+Rp4VtGeKZEZuq/Plf01eIb3JAym20ycwPsqL+pYeVtWafBrLxz9qwyg149lzcBMl2Clqep/4b3IJOV5QNshmkpUYEI7H4Xt0A== Received: from OS3P286MB2597.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1f9::12) by OSZP286MB2094.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:16f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.16; Sat, 29 Oct 2022 17:11:05 +0000 Received: from OS3P286MB2597.JPNP286.PROD.OUTLOOK.COM ([fe80::5c85:eeae:9c31:93fd]) by OS3P286MB2597.JPNP286.PROD.OUTLOOK.COM ([fe80::5c85:eeae:9c31:93fd%7]) with mapi id 15.20.5769.016; Sat, 29 Oct 2022 17:11:05 +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 RESEND 3/3] arm64: dts: rockchip: Add nodes for SDIO/UART Wi-Fi/Bluetooth modules to Radxa Rock 3A Date: Sun, 30 Oct 2022 01:09:08 +0800 Message-ID: X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029170903.78-1-wiagn233@outlook.com> References: <20221029170903.78-1-wiagn233@outlook.com> X-TMN: [uMY36obgrLNwUbv0uYzdJHdFamS02GCw] X-ClientProxiedBy: TY1PR01CA0184.jpnprd01.prod.outlook.com (2603:1096:403::14) To OS3P286MB2597.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1f9::12) X-Microsoft-Original-Message-ID: <20221029170903.78-4-wiagn233@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3P286MB2597:EE_|OSZP286MB2094:EE_ X-MS-Office365-Filtering-Correlation-Id: 8081f9ec-8091-4cf7-7114-08dab9d09013 X-MS-Exchange-S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beJADwaqMR2k/db5k08TaXahErV6yW6tkVptsZrhPAHnQub7YWvtSSaAaton0uc5HjaiP+vdopDaslLB4b78BxBKV8hRtN9YEnBywbmhpA/s2rHSnfEX6IKQgqHOOBcRzi3vfp7W9bg5fwgM0evY2CWM8fNz6BfVlO4oLaOhQ7+gcufERwyHadMez3qQRpQ7d6rGgR2Bfea/I/su5Ri7LqjmQ798Nh8ggj4TGovxDoKAM/5Oo7KMEC/gktCrwctzQG1Gkdua3TZl1KK6sQ9OfKWE4Hhr4bLTb2GglHmZy/U2T64otuJ3dckIYIJM1bbMyp3AXK6wA6RJpa5+J1jlKyetJwigGnQSfyb416fjjJBrgVOz8ecglGpG323EbWYk8r3g5OBD2ggRg/SU8Y6ycHg9axLAaPRsU7zFeLmrLMOI2mis37xtqvlYXQFXePDmIaHcHbqq+3+gUzjNuyoQKKY/Q8huJpIc6UtLOKnpi4V2oWD+LSc9EJHccNyAJBjI4TermmO64S3g2Nlp0sCswfTfTEzsF5bITe7Yu05/zotYH5gv9C1F2YPR9vDQN2uav1VO78Z4dA6rPoV3JYVHTtdrypXJAz0yHobugzv+VkrgyPssyQsVwWg6vlGIxTzzlSQmskszrNgGiCrUyeixwtRyVByNVdfI/m1cgww5pBPQLYWvO6ECyeVoRkGPrndgTG6HqS6RsUOlsrmtZA/nwjg0AUcu7eevSuu8Anl9kMQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8081f9ec-8091-4cf7-7114-08dab9d09013 X-MS-Exchange-CrossTenant-AuthSource: OS3P286MB2597.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2022 17:11:05.0375 (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: OSZP286MB2094 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"; };