Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4347015rwb; Tue, 6 Sep 2022 06:21:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR49Gtbu+QgYQqkzligLqDpmiHPaBo3DJ6gnbGFZ6+mWhQEoZ3GaOFkEE8IAOCJf60OBszSv X-Received: by 2002:a05:6402:254b:b0:448:92fa:3f69 with SMTP id l11-20020a056402254b00b0044892fa3f69mr32514958edb.316.1662470494057; Tue, 06 Sep 2022 06:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662470494; cv=none; d=google.com; s=arc-20160816; b=HE46c/oQiMtomwr1XRidnI1GwDf2rWwm33ZLCuRK/Gea6Nf2HYlrVin2Xe2Oy3ySLj qFtnf9fzFWHtGBlj67T8kaxe6f229LcjMB0EP4p8WYq5txcJPU3uzKGg7YJZTnKyNiUg PGyisWp4ecVWKduEYXiGW6QdARmijwwvisRGSVVXALhxwOY9ipnDynzFvVUMr2uuZRQW AjzNDrA7d0eyJpIcizMbkxDnMMlccRJDkuv7OyOpxCb2MC6+JoV+PlznLyQcT/nS9nUk iDEVgdHP81KRRIJ7ZXTQsu2gvZbct8QWSFFmTWEhs0PBQfyux68KvC06hpwDjhx9aPgp DI5w== 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:feedback-id:dkim-signature :dkim-signature; bh=IG2Lf3dDLIWPiCratWjCH8g6EInTYNDYMvbp9u8bhoc=; b=oEwi+dRiZ+8mQvJ2pwA4YBeqQZH7jTnznoSLpqvnfmnfXEnxPTssiykSnckxxdUYca uS9wtnAmFJ4cpfS7OcniNsZBZS9cUhBomwgAyd6ye7osxcNo/7pgFvDAQczebWZvEUMc DdSEDVJEvqCgpmVW+Y/MJdopz15Rp1HsHZzI476UPDCJJbW37gpB4FVmUlXlouv3Rp+N sIgkEPj3IiHlFyeXU7Bn33iUE7yt1pTcoR+1CPcNt0Ls+vJQcNeQCxNMuTjgzVbM8yzy 6EIAdHh35UJjvis6nrHKY8vGtVMfzjHORX813iRC1iysYn0FQdlVmSrEukEERnP8cGtS Iqpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tom-fitzhenry.me.uk header.s=fm2 header.b=QvD8YAFl; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=iiOh4N+J; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tom-fitzhenry.me.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj15-20020a170906b04f00b0073da846c2c1si8179452ejb.524.2022.09.06.06.21.06; Tue, 06 Sep 2022 06:21:34 -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; dkim=pass header.i=@tom-fitzhenry.me.uk header.s=fm2 header.b=QvD8YAFl; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=iiOh4N+J; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tom-fitzhenry.me.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240009AbiIFMrl (ORCPT + 99 others); Tue, 6 Sep 2022 08:47:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232743AbiIFMrk (ORCPT ); Tue, 6 Sep 2022 08:47:40 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB5B5558CE; Tue, 6 Sep 2022 05:47:38 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 187D55C00CD; Tue, 6 Sep 2022 08:47:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 06 Sep 2022 08:47:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= tom-fitzhenry.me.uk; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm2; t=1662468458; x=1662554858; bh=IG 2Lf3dDLIWPiCratWjCH8g6EInTYNDYMvbp9u8bhoc=; b=QvD8YAFlV/vBjXMDxQ 5gqXk7oyEuuI/YWrUw7b3TX4VDKEgk2yvfK3w/PwOR3uzPUcwPE5AKEqvtBEe83y 2Fwe6RW4AK4zAyOF7Ose0/YtctxwMgfHP9YffU7muTeSvjdCogGdbkAi3KZ78yXa sndrDVWc/g5Oee5ohYUfHwAsJoQk0RbAVZr12S9grBE1tP3qUXIyjmEA6FspCj1Z 14dajusFlGBQSulT8KHEbct6lmObcslwmhDM8R2sISUy8yfaheQGoZ3rOEQ/Tdzz s4eOpAB2IlnEN5EjC9pww2dsl6u9VdX8MdsMuRg24TuW9FK3P9p7vjDDcxD6an8P pPPw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1662468458; x=1662554858; bh=IG2Lf3dDLIWPiCratWjCH8g6EInTYNDYMvb p9u8bhoc=; b=iiOh4N+JPHyQ0qOZZaZrdpxKDpHDoQBEVfD2B0w5/H3qydPq2e2 tv6Em4PA6KXC8BFJ/cd8aW3q2s6PQkdrBPEZr36LURvy3X7W2+GHn/Pf/RlM4ru0 jWAP8B886Lf6wTY7rDbuNntrL2JrnQ9GXp903vNo1Jm6EWqUILHzbfYyQwzbX5sJ gYsLcyR4Mn+P61tPh1eU2Z5aNvSCoVC/9uX2BSICf/a0cbSQNWbkycaLjK9rasE2 IWF53ixDlnjFIW04qwHfXtnYPXKvzBkzY+er3aQeQwV4B1Fkfzprrcs9LZ5dYQXb Q/2/zVutGQMLNRC9+CNRWwRxuMJd6QXAA6w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdelkedgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepvfhomhcuhfhi thiihhgvnhhrhicuoehtohhmsehtohhmqdhfihhtiihhvghnrhihrdhmvgdruhhkqeenuc ggtffrrghtthgvrhhnpeefiedvgefffeethfekuefgvdduteeftdeijeduudfgjeeukedt vddvfeeuteegveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehtohhmsehtohhmqdhfihhtiihhvghnrhihrdhmvgdruhhk X-ME-Proxy: Feedback-ID: iefc945ae:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 6 Sep 2022 08:47:35 -0400 (EDT) From: Tom Fitzhenry To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, Tom Fitzhenry Subject: [PATCH] arm64: dts: rockchip: add BT/wifi nodes to Pinephone Pro Date: Tue, 6 Sep 2022 22:47:13 +1000 Message-Id: <20220906124713.1683587-1-tom@tom-fitzhenry.me.uk> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 Pinephone Pro includes a AzureWave AW-CM256SM wifi (sdio0) and bt (uart0) combo module, which is based on Cypress CYP43455 (BCM43455). Signed-off-by: Tom Fitzhenry --- .../dts/rockchip/rk3399-pinephone-pro.dts | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts index 2e058c3150256..096238126e4c1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts @@ -43,6 +43,20 @@ key-power { }; }; + /* Power sequence for SDIO WiFi module */ + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&rk818 1>; + clock-names = "ext_clock"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_enable_h_pin>; + post-power-on-delay-ms = <100>; + power-off-delay-us = <500000>; + + /* WL_REG_ON on module */ + reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; + }; + vcc_sys: vcc-sys-regulator { compatible = "regulator-fixed"; regulator-name = "vcc_sys"; @@ -360,11 +374,31 @@ vsel2_pin: vsel2-pin { }; }; + sdio-pwrseq { + wifi_enable_h_pin: wifi-enable-h-pin { + rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + sound { vcc1v8_codec_en: vcc1v8-codec-en { rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>; }; }; + + wireless-bluetooth { + bt_wake_pin: bt-wake-pin { + rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + bt_host_wake_pin: bt-host-wake-pin { + rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + bt_reset_pin: bt-reset-pin { + rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; &sdmmc { @@ -380,6 +414,20 @@ &sdmmc { status = "okay"; }; +&sdio0 { + bus-width = <4>; + cap-sd-highspeed; + cap-sdio-irq; + disable-wp; + keep-power-in-suspend; + mmc-pwrseq = <&sdio_pwrseq>; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; + sd-uhs-sdr104; + status = "okay"; +}; + &sdhci { bus-width = <8>; mmc-hs200-1_8v; @@ -393,6 +441,27 @@ &tsadc { status = "okay"; }; +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; + uart-has-rtscts; + status = "okay"; + + bluetooth { + compatible = "brcm,bcm4345c5"; + clocks = <&rk818 1>; + clock-names = "lpo"; + device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; + max-speed = <1500000>; + pinctrl-names = "default"; + pinctrl-0 = <&bt_host_wake_pin &bt_wake_pin &bt_reset_pin>; + shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; + vbat-supply = <&vcc3v3_sys>; + vddio-supply = <&vcc_1v8>; + }; +}; + &uart2 { status = "okay"; }; -- 2.37.1