From patchwork Sat Apr 15 17:46:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan McDowell X-Patchwork-Id: 13212618 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E9F65C77B77 for ; Sat, 15 Apr 2023 17:47:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CO/FNzjlbkCXdy0UANG/3/vuS/HNcOQCeKXSap9Or8w=; b=YqeSwlgJ13LQUb fX5wtRtbMyyTj1o1+rENaPoGc8uvPI4N47WeF5bIcRYWpIIccCV9kk8Pnqd6KHLc5y/JbTxD3QLDY eFojhzZNqj4OU4V3tdMyuKyd2hKW9ofpozK0agENLziTJ4e4iefqYlCCwIoCnO8nwDYOdGuT2rx+w kuPbDin+Y5QFT8DLQ1EL4DwNUCT2z6TD3F+8JFph4KEaiEiNgDxOfsTeRW7cV9gHsomogpGgl0RI3 vWB6HXpnsbgR8aqmtZ2gE9AgSqhjmPSUopJxouOVKlXf28tRBN2k3mvBcmZtHsDFeiDr90X1HsC+b uvHE2vSfeyUfh7zhSo/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pnjyb-00CY6X-2E; Sat, 15 Apr 2023 17:46:17 +0000 Received: from the.earth.li ([2a00:1098:86:4d:c0ff:ee:15:900d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pnjyZ-00CY5w-1S for linux-arm-kernel@lists.infradead.org; Sat, 15 Apr 2023 17:46:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=earth.li; s=the; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=2COnVUhCv2957C7fTDHBsryoM8/YnEOqvfk39Jdftuc=; b=do7SGz9Cr3MmTzP8vLQF9sPuVI j+7XcWX/kSj9pRIYATqElntQDDE1iUCI7UzgczwG5/DKs6pLCyvf4hW7wMCsDvMHvrZMk9UVdLgyp U6sv1jykLAkW2GutPHciFLu2S8sNH1IURJnKhe9IBWlZPaU8gnbDfCGacVIj0YFoiPma/x8Wo3pk9 6qU+Ze682mf9DJuSqKBZCeTctlFxAGVH5vI5M9aVb//ggV9Y9f7mavwdPkqaQsG1jCdDkEUvsRQQ+ JTbA76JJLjCnUJEYrppuUTW8ZwDQuXFmfjGHNUhWcnQPXC+R7WGvHdv5KfppJI0qTG1HAWl5wlE/Z F243Qz6g==; Received: from [2001:4d48:ad59:1403::16a3] (helo=earth.li) by the.earth.li with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pnjyT-00FJnr-7z; Sat, 15 Apr 2023 18:46:09 +0100 Date: Sat, 15 Apr 2023 18:46:03 +0100 From: Jonathan McDowell To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] ARM: dts: sun5i: chip: Enable bluetooth Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230415_104615_504568_E48A5C11 X-CRM114-Status: GOOD ( 10.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The C.H.I.P has an rtl8723bs device with the bluetooth interface hooked up on UART3. Support for this didn't exist in mainline when the DTS was initially added, but it does now, so enable it. Signed-off-by: Jonathan McDowell --- arch/arm/boot/dts/sun5i-r8-chip.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-r8-chip.dts b/arch/arm/boot/dts/sun5i-r8-chip.dts index fd37bd1f3920..4d72a181d8aa 100644 --- a/arch/arm/boot/dts/sun5i-r8-chip.dts +++ b/arch/arm/boot/dts/sun5i-r8-chip.dts @@ -255,6 +255,10 @@ &uart3 { pinctrl-0 = <&uart3_pg_pins>, <&uart3_cts_rts_pg_pins>; status = "okay"; + + bluetooth { + compatible = "realtek,rtl8723bs-bt"; + } }; &usb_otg { From patchwork Sat Apr 15 17:46:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan McDowell X-Patchwork-Id: 13212619 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6BCFBC77B70 for ; Sat, 15 Apr 2023 17:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2j77tthER8ci+50wAckE0obdMqua+yWac3YRtjnJGg8=; b=TLV+TotwOs/V9S 0x7zpYELn8aL+lzt7FTEKo7AbK+HK8A2gHjRXEqvIdeabV9vJ1OjHK12SonTDCQcYLgkJIwpB5n1b DLKu2I2BQY2HJwjj5DsNEpNM/lzwbSjDg0e8YG7YZgAummgson3Hna7sjbcyklb6XPKbatCYhHg9b 4jEyjfXTFN4QZhV5dKw3VWGVoSIcCpPX4KshkrAOyqrpdjiH24GqKHg42dmVi+Shs0bLZ+iuc/RbY yQghWYZFk9NRLHByNJRwmGDF0WL7uWgkNSjFuxMrCrXEOHMaquM/mjGQsLXbwAyPq0KPrHU3/k0tC O0LCcMGfACzt6PBXtMhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pnjyw-00CYA4-0V; Sat, 15 Apr 2023 17:46:38 +0000 Received: from the.earth.li ([2a00:1098:86:4d:c0ff:ee:15:900d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pnjyt-00CY9K-1a for linux-arm-kernel@lists.infradead.org; Sat, 15 Apr 2023 17:46:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=earth.li; s=the; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SuK0Nqd+nS8SKUO0Du0/KQ2vGgQINfivPg9iv+lc2e8=; b=QMszMv9lQlnmQjnVcFHF+mMKxz UIfObinv+dr6ErxW/cA73BQtmAMgwfW96jimxUxUUZ+DUIUPuKPECjWK+hfxVPOHqvc4+GGrxMl8P 7BrkcpGDS8Wj+3C6jG25y6CA0E5q4IuGzy6mlOijtVNSW9d72Xmh2WFjsoVGdopp8pbwCTbZU0NVJ YwTUXU46pmxJspVAKv19lOCAQawtvU9zZoNsM0XNGcrHYm5WgFgTr4QnsV18XLEVsKzTlmH/pwvef g00uLngAY22PrVKADROodq2YW5ICLLcq7LL8dWFMXn90SDVFiLfeN0TTRgzEmK6eRUlc1cWqJrEFw b3KL3awA==; Received: from [2001:4d48:ad59:1403::16a3] (helo=earth.li) by the.earth.li with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pnjyn-00FJoJ-Ov; Sat, 15 Apr 2023 18:46:29 +0100 Date: Sat, 15 Apr 2023 18:46:24 +0100 From: Jonathan McDowell To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] ARM: dts: sun5i: Add port E pinmux settings for mmc2 Message-ID: <00d37ef9bf70785d05fb446ee6d0060c4a8d521a.1681580558.git.noodles@earth.li> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230415_104635_530048_CBF00F96 X-CRM114-Status: GOOD ( 10.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org These alternate pins for mmc2 are brought out to the 40 pin U14 header on the C.H.I.P and can be used to add an external MMC device with a 4 bit interface. See https://byteporter.com/ntc-chip-micro-sd-slot/ for further details on how. Signed-off-by: Jonathan McDowell --- arch/arm/boot/dts/sun5i.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun5i.dtsi b/arch/arm/boot/dts/sun5i.dtsi index 250d6b87ab4d..e4922506ce22 100644 --- a/arch/arm/boot/dts/sun5i.dtsi +++ b/arch/arm/boot/dts/sun5i.dtsi @@ -517,6 +517,14 @@ mmc2_4bit_pc_pins: mmc2-4bit-pc-pins { bias-pull-up; }; + mmc2_4bit_pe_pins: mmc2-4bit-pe-pins { + pins = "PE4", "PE5", "PE6", "PE7", + "PE8", "PE9"; + function = "mmc2"; + drive-strength = <30>; + bias-pull-up; + }; + mmc2_8bit_pins: mmc2-8bit-pins { pins = "PC6", "PC7", "PC8", "PC9", "PC10", "PC11", "PC12", "PC13", From patchwork Sat Apr 15 17:47:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan McDowell X-Patchwork-Id: 13212620 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4C2FEC77B73 for ; Sat, 15 Apr 2023 17:48:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=IpHJAArnR3EIjeYQmpYWdvjk9TPTsZO5tO2RaLZUYNk=; b=46QHxWENyq4iwg 73T/HEGDhNSvb1h+z1CBI12HBEPEEP6+gjbSCJB6SvMvfe838WwupqiQzTkDATWdIx3hqJcbTU2vc VsrCCr8d73O0oNVcyVTRjgYoeY8fUxjN+QmsbQgjlD1t9z0hRDIv5DJJDD14hLJ8SHEgqxv3ua64F t/2GZwtmNqnw46z6+j2+3nbfYvJEw5+HnJ1UL2wQgwStFStJ4ZG8trRIEjHxNLPRM2hgAeSuwyngu 7r2afPi+wNVq2yhmkxvecUYoecnyjKQPENrkxoF2Xfit3SEncXalZ/irDzg2EmeUHDopTumXf9Bdw BIUXRkknPD7nQouwh6FA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pnjzb-00CYLB-0h; Sat, 15 Apr 2023 17:47:19 +0000 Received: from the.earth.li ([2a00:1098:86:4d:c0ff:ee:15:900d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pnjzX-00CYJy-2h for linux-arm-kernel@lists.infradead.org; Sat, 15 Apr 2023 17:47:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=earth.li; s=the; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=V3hC1iXMftqNHVVjf9y/IQOJAn+pUeg8MBrKjF7zyEU=; b=tWlUdvEX04DAJTh9v4VGMcRyTc fdQsu33b9RCx1TGq9nNTnuaxVm9lB5EnIT71Qaih2vSe73a+8R9xl5d8c1OXQiKgUSezj+3aCLpxa TWbicTc6fjQwP/KxuHblsdSjBqOZ3CVy4kyQRVVcLrQSiUmC6Pdnme1vVptmUaHDK4dXYjcqPXPxi GYXwb/9GBh6t0FNxAmPRaDTbPXZRWJw/+7RJ6tx8JLYrb4ySKrC35nY10Wworvekm1HzSt7ao0osK 3ffQuXXxBdlCxF/MJMYGZ+aYX3NZgqUkDA45pYedbs6oWNMjqdZ1cNR3wYj0aKjIAWYzsLLbqSJuq cOy4/sSA==; Received: from [2001:4d48:ad59:1403::16a3] (helo=earth.li) by the.earth.li with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pnjzS-00FJpt-5k; Sat, 15 Apr 2023 18:47:10 +0100 Date: Sat, 15 Apr 2023 18:47:05 +0100 From: Jonathan McDowell To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] ARM: dts: axp209: Add iio-hwmon node for internal temperature Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230415_104715_873463_82153A65 X-CRM114-Status: GOOD ( 11.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds a DT node to hook up the internal temperature ADC to the iio-hwmon driver. The various voltage + current ADCs are consumed and exposed by their respective drivers, but this is not and is always available. Naming chosen to match the axp20x_ prefix the power sensors use. Signed-off-by: Jonathan McDowell --- arch/arm/boot/dts/axp209.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/axp209.dtsi b/arch/arm/boot/dts/axp209.dtsi index ca240cd6f6c3..f00b5a7ec106 100644 --- a/arch/arm/boot/dts/axp209.dtsi +++ b/arch/arm/boot/dts/axp209.dtsi @@ -48,6 +48,13 @@ * http://dl.linux-sunxi.org/AXP/AXP209%20Datasheet%20v1.0_cn.pdf */ +/ { + axp20x_temp { + compatible = "iio-hwmon"; + io-channels = <&axp_adc 4>; /* Internal temperature */ + }; +}; + &axp209 { compatible = "x-powers,axp209"; interrupt-controller;