From patchwork Thu Nov 5 05:41:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 317960 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, TVD_SUBJ_WIPE_DEBT, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76B9BC00A89 for ; Thu, 5 Nov 2020 05:42:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 19E792151B for ; Thu, 5 Nov 2020 05:42:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731118AbgKEFlj (ORCPT ); Thu, 5 Nov 2020 00:41:39 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41311 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726214AbgKEFli (ORCPT ); Thu, 5 Nov 2020 00:41:38 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 1E1465C012C; Thu, 5 Nov 2020 00:41:37 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 05 Nov 2020 00:41:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=2C6TglOhcnmUj vInlPf//jN+FgeWJ9nu0Hxe9wqASW4=; b=A5dMCToC/w8UeQ55ITJdpdCfqIPNY kSzAWIZuZTCU0OP04txijR14fAdR/fFsPbZf8nIvjVZrK0PrZ7U3dfclJToR4aQ6 h8WZsnQ23pSsKZHrQJ1ufT9z2wKd7z38AaCgEWKpP35tTUshychhc0vS8IDaMLRv EAxU9fuLHEQuoTWHiLhbdHVM3quhLYy0H1y567ClhHBWRUaqqKrqJGtevsWSarBk vFOWHukIDT12+pilDtVV2TfdujUoCU+SSHSDL7vCi1hykPaEIp1J+LGyZZsUsj1v twXYbYqQ2QeDgsdfz6ETK6Vxs6YcUUctROotVD/MaUwTYJ+PGj0s24XDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=2C6TglOhcnmUjvInlPf//jN+FgeWJ9nu0Hxe9wqASW4=; b=jPjlGJa7 5Vjb1k0u+H3eQXWGbOmlUZVKIyXb1BroubFxai2vzb/prwYxdg3EEDffTeQzn28z aWprraUA7WnwcSQUQcorhkx/2856YofGZwrbWwpQJo3rMf+OBGViNrp9orGrCzve ej493HQ7ocWCnpM//vHHNuU6BL+OTc/QunUX1rHsNbcCqnhSG3WnubBGuzIBGQCs AxcXwmzQM2XnHJTvKf+hk/06UJ91vaUabWxv1prKSTfFf2K6KapxfEjlnw+C91g4 65mbj7ptfRDxAbF3HZ68Jm4fcG5F8P6cX3ZE5kUBYYsGU7y0hc8ojpVry0C8NrMR Zzq2R1dM+HZjTg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddtiedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeduhfejfedvhffgfeehtefghfeiiefgfeehgfdvvdevfeegjeehjedv gfejheeuieenucfkphepjedtrddufeehrddugeekrdduhedunecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghn ugdrohhrgh X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 69CB732801D7; Thu, 5 Nov 2020 00:41:36 -0500 (EST) From: Samuel Holland To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , linux-arm-kernel@lists.infradead.org Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Samuel Holland Subject: [PATCH 1/6] arm64: dts: allwinner: pinephone: Remove AC power supply Date: Wed, 4 Nov 2020 23:41:30 -0600 Message-Id: <20201105054135.24860-2-samuel@sholland.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201105054135.24860-1-samuel@sholland.org> References: <20201105054135.24860-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The AXP803 in the Pinephone has its ACIN and VBUS pins shorted together. In this configuration, the VBUS control registers take priority over the ACIN control registers, which means the ACIN sysfs knobs have no effect. Remove the AC power supply from the DTS, since VBUS is really the only power supply. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index 25150aba749d..48050bbd941d 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -251,10 +251,6 @@ axp803: pmic@3a3 { #include "axp803.dtsi" -&ac_power_supply { - status = "okay"; -}; - &battery_power_supply { status = "okay"; }; From patchwork Thu Nov 5 05:41:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 319566 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 056A7C00A89 for ; Thu, 5 Nov 2020 05:42:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 95B222151B for ; Thu, 5 Nov 2020 05:41:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728301AbgKEFli (ORCPT ); Thu, 5 Nov 2020 00:41:38 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41313 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730751AbgKEFli (ORCPT ); Thu, 5 Nov 2020 00:41:38 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7CA205C0124; Thu, 5 Nov 2020 00:41:37 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 05 Nov 2020 00:41:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=1DeLvsz3Vh2Tq naJT1F6Tq65fu4iaiULawNvWxF4wS8=; b=VE0PaOm0vHlvkr/0NRN5krsg++4k9 OdQKcfPV52iaZIpypvX9oo/+qTeoiLF0L8y+Qhu5QyA8DiIX1MyKqy5PWSM2vxQw BPJtWF8w6EWlQAqW1Lu4UcWqJoASUFwt4eitj0Pwv5G6kdXW9pn/OynpkBh689Ls qYVQM7EZUZ5x2zD9PhgFFbwAp4eoEtJ5+mBlx/4khutF1pdVX/DFivs94vH0mE98 RCESIOoyY8XjrGSSIY7V1YlFHf39pPck3eyf877q4PYPLfV0bE+Q1FPKMagi7Jxz HILLo8IrZ9o1JAD2+BQApfHKkbWzn0s4qkNkyXyUFdXqke2co45rBPq4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=1DeLvsz3Vh2TqnaJT1F6Tq65fu4iaiULawNvWxF4wS8=; b=g7ijo1vs 2eZ5KwBhndN8CW/wCBLGLw+Ub/4/qPrkDX5roGquTl/vMShI5hw+mP/UiH/bNr4l Sl8DIRUUd/T0fHRiaow8aN5rWhMseAqbOlZ8olr2DmwqgmzhV8ZJdUzLt4YF1Yr0 lQAwL2pWYk8+tCqYf8IhggOHz+C5v/hoOewR5t9ivpAadhZAdsrOvUEEiAvB8iyf o52YwsAwmhRxyiSsIT37lA1HC3Dv+lGwvVOKTWuAZXo04jdcSzRGcY2h/ZFtguoy aGUoqFCIjbg/uB9z0gPLs67UMp7FfX7IE0uxW1Qv08hF2bLyO2RisPzoCgXDuJ7V GA7cn3jj2nWkyA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddtiedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeduhfejfedvhffgfeehtefghfeiiefgfeehgfdvvdevfeegjeehjedv gfejheeuieenucfkphepjedtrddufeehrddugeekrdduhedunecuvehluhhsthgvrhfuih iivgepudenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghn ugdrohhrgh X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id CC75B328038D; Thu, 5 Nov 2020 00:41:36 -0500 (EST) From: Samuel Holland To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , linux-arm-kernel@lists.infradead.org Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Samuel Holland Subject: [PATCH 2/6] arm64: dts: allwinner: pinephone: Set ALDO3 to exactly 3v0 Date: Wed, 4 Nov 2020 23:41:31 -0600 Message-Id: <20201105054135.24860-3-samuel@sholland.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201105054135.24860-1-samuel@sholland.org> References: <20201105054135.24860-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org ALDO3 is used as the power supply for the LRADC keys voltage divider, in addition to supplying AVCC and VCC-PLL. While AVCC and VCC-PLL will accept any voltage between 2v7 and 3v3, LRADC needs a precise 3v0 input to maintain the expected 2:3 ratio between the internal 2v0 reference voltage and the external supply. Signed-off-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index 48050bbd941d..57c89c3b71e9 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -270,8 +270,8 @@ ®_aldo2 { ®_aldo3 { regulator-always-on; - regulator-min-microvolt = <2700000>; - regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; regulator-name = "vcc-pll-avcc"; }; From patchwork Thu Nov 5 05:41:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 319565 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0312C388F9 for ; Thu, 5 Nov 2020 05:42:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5324D2151B for ; Thu, 5 Nov 2020 05:42:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731210AbgKEFlk (ORCPT ); Thu, 5 Nov 2020 00:41:40 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:36499 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730948AbgKEFlj (ORCPT ); Thu, 5 Nov 2020 00:41:39 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id F2C035C015B; Thu, 5 Nov 2020 00:41:37 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 05 Nov 2020 00:41:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=jkrVH4j2GkC3P 3IVwiaih9w84EK5SRrgiFWIljFK7tI=; b=RYCENO/XOI4Q+sFtnwc6lfCMxNl0m pkKrWCgSTXnNMQnfLwF6ow8+SAhpWGeW7Drhgvyy/RAvYRjuIrp59VCKHGg6Yxak qmMRToEMRBVQg2NZJv1N9U/DCmGTxok9B/ochYAM47f+wj3scfaX5KRwmOZHZWXy mvA3TX4WVAfn3kp28lfosuSx7MYUAH5ETJ6BUApleVfd3uisWC/PtpINLCnKgdIN QVqGZNNbR9tH+FV5/zTxs/No+3npLXeNVmocTEmG8RGE6JJpaT5mIXtkVC4nHv/M 0Z2u00gjNzWsrYxWaZmJLX06zu8O6dkSXxHSlz3wEGO9UYyeMZqMGfNPA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=jkrVH4j2GkC3P3IVwiaih9w84EK5SRrgiFWIljFK7tI=; b=WTaGYgil 9IuZds093SZ5P6gPC3582n1YZL+es2kb4IFZFk+bDYj8DTe+prTbiGnMaM5YUOxH TIv7yRmPp5mSCPXADn54ZrE3xU8ZYqi07MfTnfu1lXBNExiw+bEhosdCBRWntVa7 FHkXfqah8J2IT0NUodW9Xj5FEIEl9cedeReBztSoMiZuwqDR9FArC5yLgP1LP3+f nB7/dPP5N+H8+sqjX57/g21o6OiSSU8g+/6OjCQZID+xAKeL7xrs0QCvdQBA4kYB zxWyAt6Id8bhWmpkncNWm2NJCDl8ePCRc3n1lZdD2AiuyL2q4MV0ILLsIDyzbxCu 0ap/Wv35tJvRSQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddtiedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredt tdenucfhrhhomhepufgrmhhuvghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholh hlrghnugdrohhrgheqnecuggftrfgrthhtvghrnhepudfhjeefvdfhgfefheetgffhieei gfefhefgvddvveefgeejheejvdfgjeehueeinecukfhppeejtddrudefhedrudegkedrud ehudenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehs rghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 3AE4732801D7; Thu, 5 Nov 2020 00:41:37 -0500 (EST) From: Samuel Holland To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , linux-arm-kernel@lists.infradead.org Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Samuel Holland , Luca Weiss Subject: [PATCH 3/6] arm64: dts: allwinner: pinephone: Add LED flash Date: Wed, 4 Nov 2020 23:41:32 -0600 Message-Id: <20201105054135.24860-4-samuel@sholland.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201105054135.24860-1-samuel@sholland.org> References: <20201105054135.24860-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Luca Weiss All revisions of the PinePhone have an SGM3140 LED flash. The gpios were swapped on v1.0 of the board, but this was fixed in later revisions. Signed-off-by: Luca Weiss Signed-off-by: Samuel Holland --- .../boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts | 5 +++++ .../boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts | 5 +++++ .../boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts | 5 +++++ .../boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 11 +++++++++++ 4 files changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts index 0c42272106af..3d5a2ae9aa39 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts @@ -9,3 +9,8 @@ / { model = "Pine64 PinePhone Developer Batch (1.0)"; compatible = "pine64,pinephone-1.0", "allwinner,sun50i-a64"; }; + +&sgm3140 { + enable-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */ + flash-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ +}; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts index 3e99a87e9ce5..c9b9f6e9ee8c 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts @@ -28,3 +28,8 @@ &backlight { num-interpolated-steps = <50>; default-brightness-level = <400>; }; + +&sgm3140 { + enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ + flash-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */ +}; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts index a9f5b670c9b8..94e4f11e0215 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts @@ -38,3 +38,8 @@ &lis3mdl { interrupt-parent = <&pio>; interrupts = <1 1 IRQ_TYPE_EDGE_RISING>; /* PB1 */ }; + +&sgm3140 { + enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ + flash-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */ +}; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index 57c89c3b71e9..e595a8262920 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -49,6 +49,17 @@ red { }; }; + sgm3140: led-controller { + compatible = "sgmicro,sgm3140"; + vin-supply = <®_dcdc1>; + + sgm3140_flash: led { + function = LED_FUNCTION_FLASH; + color = ; + flash-max-timeout-us = <250000>; + }; + }; + speaker_amp: audio-amplifier { compatible = "simple-audio-amplifier"; enable-gpios = <&pio 2 7 GPIO_ACTIVE_HIGH>; /* PC7 */ From patchwork Thu Nov 5 05:41:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 317958 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20EB3C00A89 for ; Thu, 5 Nov 2020 05:43:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BF8CA2151B for ; Thu, 5 Nov 2020 05:42:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728416AbgKEFlx (ORCPT ); Thu, 5 Nov 2020 00:41:53 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:34953 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731067AbgKEFlj (ORCPT ); Thu, 5 Nov 2020 00:41:39 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9BCA25C0170; Thu, 5 Nov 2020 00:41:38 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 05 Nov 2020 00:41:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=D33AIT7REaO42 I0oyofLCBVZfk49c1xYEtUgewG4c8Q=; b=IPtd1OrZ933FlMJhwROhJGwo/mikc yxlKixweFOu/aPrSwqYqZVk21dmxWWPgNupEI2YD20KbBY/KV09rHcgvpPjbwH80 KqO9ADXsHlPyQpJXFeO227VBMY0cw/Zkidu0IYSj2XCfb55B8KMVJgPRSuzYg8O7 IerBry65G0BDcGZmA/IfQ17URCp2W5QECpnoIZsu2Y8tclR9Q5Eqk2BgP+IFG3Km DxkvrOQA9diLpqUTdu2+X6QaCtkvGjqH2YHIAVzGhzZbUN/alxU/Ov2kRFWzDVj8 028WyvGgeNDZB2Z+iwazeaPJFyxA6364QiRyTZjk+Y9T0Z9PfCHTAM+cQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=D33AIT7REaO42I0oyofLCBVZfk49c1xYEtUgewG4c8Q=; b=k+XHEyS5 6yDbAWcroux4K1AY6/k/JDX03DIGNT1jY9gW0ZwHp8Na70EFBpYeWEdu4xHPqhZ1 3n8CGWI6xbtiCFKxUQ13yVBh05CNTgKFW82MihxoNZKnzzUZPwtQkdVdmenmtEPL xG1kXhs2bD9b29lika1WvaRs0mXNynscgz3mw9ncqdonUbmA8cenpKOz2pFqFE6/ BgdTZ0fu2fAY4ZsrWUZmXEXlScAU8ABbUwsf/9tJXZW5EGQdLzqmDdMmab5JMU0m XQKGsvlocF0KgK6UM7mw9nYcUCalfOgsEUcFjBJUmGOxqA3n6pU48aA8WaalzvOi asgZVwOXpiSYhQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddtiedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeduhfejfedvhffgfeehtefghfeiiefgfeehgfdvvdevfeegjeehjedv gfejheeuieenucfkphepjedtrddufeehrddugeekrdduhedunecuvehluhhsthgvrhfuih iivgepudenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghn ugdrohhrgh X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id A544F32801F2; Thu, 5 Nov 2020 00:41:37 -0500 (EST) From: Samuel Holland To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , linux-arm-kernel@lists.infradead.org Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Samuel Holland , Ondrej Jirman Subject: [PATCH 4/6] arm64: dts: allwinner: pinephone: Add light/proximity sensor Date: Wed, 4 Nov 2020 23:41:33 -0600 Message-Id: <20201105054135.24860-5-samuel@sholland.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201105054135.24860-1-samuel@sholland.org> References: <20201105054135.24860-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Ondrej Jirman Pinephone has STK3311-X proximity sensor. Add support for it. Signed-off-by: Ondrej Jirman Signed-off-by: Samuel Holland --- .../arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index e595a8262920..9544d7658794 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -160,6 +160,16 @@ lis3mdl: lis3mdl@1e { vddio-supply = <®_dldo1>; }; + /* Light/proximity sensor */ + stk3311@48 { + compatible = "sensortek,stk3311"; + reg = <0x48>; + interrupt-parent = <&pio>; + interrupts = <1 0 IRQ_TYPE_EDGE_FALLING>; /* PB0 */ + vdd-supply = <®_ldo_io0>; + leda-supply = <®_dldo1>; + }; + /* Accelerometer/gyroscope */ mpu6050@68 { compatible = "invensense,mpu6050"; From patchwork Thu Nov 5 05:41:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 319564 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3E95C388F9 for ; Thu, 5 Nov 2020 05:42:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 88B3920825 for ; Thu, 5 Nov 2020 05:42:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731187AbgKEFlx (ORCPT ); Thu, 5 Nov 2020 00:41:53 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:37013 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731096AbgKEFlj (ORCPT ); Thu, 5 Nov 2020 00:41:39 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D56FF5C0164; Thu, 5 Nov 2020 00:41:38 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 05 Nov 2020 00:41:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=r33Qf5/ecFnA8 R3uk+Hr4eHdElWkEglB0H9UtHOSJng=; b=Pb0SUyloRdg/+4yBEBaAVpD9dz1Oh COMXpTq0z+33dFNi2PQB7oOSWk3e8pP7qS6n5ea5b7p+g8NbugA7VO4nltdXVeNx U0lq8417bLegsMeTGw+x+MPXMv6hobVH1/LfXrQOZ6ZONvRsOKYd/SEnVJSHtqKY iQ56pLlGITlPy1767c0THHlNQWqs9W80gD7BchnyVHI5cqcdOZyeuxtA47SdIfZX dApU2h/vdRXpnLmgDFJZjnyIWqKVQaxpgkQmDfjR6cgv5qbX6hB/+9gGfd8w0ksd cA8KByTIk1JpDIlqBe3vj/iu+TWoiR7nRczqc94LZEEyujo536fohDiew== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=r33Qf5/ecFnA8R3uk+Hr4eHdElWkEglB0H9UtHOSJng=; b=THfwItVr Sv+i8LdjyDAdW3bSbhvDJiS/SZvpw8YunMi3Hhzx66HQu0i7o8iydzp9BdGNyeaS Ebg7MSff1l+FD05mqy1nrRLXxOcXHdVf8lfwDhPQVCutaHOSWDkaThx9vyA0jSsP MO6TYgF1UwmRG0OXZVfm2pSKMe7IgFUeMmcf/gCLcVhQyZcZhcEdG3y9sBBujZ/8 /e7lZKwKHq65uzWr6oEpHAw9z/Tb8thfHN5lT8W53YeMJuXajcnUCgHGWc9W6+NU TZ3z93PIlbTXITbsvvf/7j1qCmNsbg6GONvI1+oGb4SNte9zytPwLM1ITklGzpE7 a/+PTpp5gwjb2g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddtiedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeduhfejfedvhffgfeehtefghfeiiefgfeehgfdvvdevfeegjeehjedv gfejheeuieenucfkphepjedtrddufeehrddugeekrdduhedunecuvehluhhsthgvrhfuih iivgepudenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghn ugdrohhrgh X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 1B0C532801D7; Thu, 5 Nov 2020 00:41:38 -0500 (EST) From: Samuel Holland To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , linux-arm-kernel@lists.infradead.org Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Samuel Holland , Ondrej Jirman Subject: [PATCH 5/6] arm64: dts: allwinner: pinephone: Add WiFi support Date: Wed, 4 Nov 2020 23:41:34 -0600 Message-Id: <20201105054135.24860-6-samuel@sholland.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201105054135.24860-1-samuel@sholland.org> References: <20201105054135.24860-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Ondrej Jirman The PinePhone has a Realtek rtl8723cs WiFi module. On mainboard revisions 1.0 and 1.1, the reset input is always pulled high, so no power sequence is needed. On mainboard revision 1.2, the reset input is connected to PL2. Signed-off-by: Ondrej Jirman Signed-off-by: Samuel Holland --- .../allwinner/sun50i-a64-pinephone-1.2.dts | 9 ++++++++ .../dts/allwinner/sun50i-a64-pinephone.dtsi | 22 +++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts index 94e4f11e0215..e7cf9d8577c1 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts @@ -8,6 +8,11 @@ / { model = "Pine64 PinePhone (1.2)"; compatible = "pine64,pinephone-1.2", "allwinner,sun50i-a64"; + + wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ + }; }; &backlight { @@ -39,6 +44,10 @@ &lis3mdl { interrupts = <1 1 IRQ_TYPE_EDGE_RISING>; /* PB1 */ }; +&mmc1 { + mmc-pwrseq = <&wifi_pwrseq>; +}; + &sgm3140 { enable-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */ flash-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */ diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index 9544d7658794..e173096a7e68 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -13,6 +13,7 @@ / { aliases { + ethernet0 = &rtl8723cs; serial0 = &uart0; }; @@ -49,6 +50,13 @@ red { }; }; + reg_vbat_wifi: vbat-wifi { + compatible = "regulator-fixed"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vbat-wifi"; + }; + sgm3140: led-controller { compatible = "sgmicro,sgm3140"; vin-supply = <®_dcdc1>; @@ -216,6 +224,20 @@ &mmc0 { status = "okay"; }; +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + vmmc-supply = <®_vbat_wifi>; + vqmmc-supply = <®_dldo4>; + bus-width = <4>; + non-removable; + status = "okay"; + + rtl8723cs: wifi@1 { + reg = <1>; + }; +}; + &mmc2 { pinctrl-names = "default"; pinctrl-0 = <&mmc2_pins>; From patchwork Thu Nov 5 05:41:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 317959 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE0D1C00A89 for ; Thu, 5 Nov 2020 05:42:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8F90321D7F for ; Thu, 5 Nov 2020 05:42:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731246AbgKEFls (ORCPT ); Thu, 5 Nov 2020 00:41:48 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:34165 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731187AbgKEFlk (ORCPT ); Thu, 5 Nov 2020 00:41:40 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 471635C015A; Thu, 5 Nov 2020 00:41:39 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 05 Nov 2020 00:41:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=DMFfDP5sKyjZy MXY7/MdyT+HBmUIZ8szMg3mFfRPJ3c=; b=nnAJJftSdi7klOyOeh5J1tRovXFHK OXmHSSXQ6xFGyaUGUNvq5hEFAxlbkrhi4F4iLlOQpYUHTgDB2PHvyOPL1dAYyL1M TSnWUUjeGzcE8OpwhQmDWKrV60Tlsut4sN4FCsxdJosMpjwynps8w+qy8C4W3Vhg Ri8qYLiOHCQLY5oh+4aJV4piHZyZefQj1cBLPaFjIhhfhXZ3sFRTwIbaPLH3b9Ei TSTWnkCw1enLASPA/0wJBClAf7cHTttpE98HOdPuPZ3RwGRb/PBNoNXUNLT/KXSQ 4MU/Z59Gyeo8vD1FVpxvdWZVKumI63ppY5irQKnsQvCXNWqhafp4hz63Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=DMFfDP5sKyjZyMXY7/MdyT+HBmUIZ8szMg3mFfRPJ3c=; b=liTYB3ev j3kRDV2ebqnZiZJggDA93QOYcmWVdVvwnuj3c7WU3II1StN28Z19d5uh7PJaU8e0 JP5/a4++sizudKnF0FA+3hHyIU9YGkK9HumKRN66Jm00uv0uN9AtPiPhv7I63Off 6Iv8QdEuRAm6z86wDVAgjnGoyza3qtZfA6e/njoONqGx1tqMYnhckZfJRgkMthbk nAl/P87aVspDBklRmJunUkjG0eBjToEBwqGX30Nh9qTgAV7VNNZbfhmwttTdSnJd PpRv3yU6TRC/uXZ4TmVq2SGTO88dnMBjtoi+wADnrfvold9qXG+9MQVolnFdr4cI EOfI2dIsIspLjw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddtiedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeduhfejfedvhffgfeehtefghfeiiefgfeehgfdvvdevfeegjeehjedv gfejheeuieenucfkphepjedtrddufeehrddugeekrdduhedunecuvehluhhsthgvrhfuih iivgepudenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghn ugdrohhrgh X-ME-Proxy: Received: from titanium.stl.sholland.net (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 84FD63280393; Thu, 5 Nov 2020 00:41:38 -0500 (EST) From: Samuel Holland To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , linux-arm-kernel@lists.infradead.org Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Samuel Holland , Ondrej Jirman Subject: [PATCH 6/6] arm64: dts: allwinner: pinephone: Add Bluetooth support Date: Wed, 4 Nov 2020 23:41:35 -0600 Message-Id: <20201105054135.24860-7-samuel@sholland.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201105054135.24860-1-samuel@sholland.org> References: <20201105054135.24860-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Ondrej Jirman The PinePhone has a Realtek rtl8723cs Bluetooth controller. Signed-off-by: Ondrej Jirman Signed-off-by: Samuel Holland --- .../boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index e173096a7e68..1083055a731f 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -447,6 +447,19 @@ &uart0 { status = "okay"; }; +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + status = "okay"; + + bluetooth { + compatible = "realtek,rtl8723cs-bt"; + device-wake-gpios = <&pio 7 6 GPIO_ACTIVE_LOW>; /* PH6 */ + enable-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */ + host-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */ + }; +}; + /* Connected to the modem (hardware flow control can't be used) */ &uart3 { pinctrl-names = "default";