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: 83765 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1169396vqo; Sat, 15 Apr 2023 10:58:25 -0700 (PDT) X-Google-Smtp-Source: AKy350Y5VHTnpWHZcN3fqgGQ0QEO8Q5eqoy5m37EgX4cZBHKcgiRw2XMSi9fDDBPP4Nb/czSL+UA X-Received: by 2002:a05:6a00:15cc:b0:628:4a3:f22c with SMTP id o12-20020a056a0015cc00b0062804a3f22cmr16453160pfu.31.1681581505578; Sat, 15 Apr 2023 10:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681581505; cv=none; d=google.com; s=arc-20160816; b=MRQ2OZObYNzdet76EUR8teTC+82+czoRqEkcA11yYHzQ0YCx7x5ttEmTZNpIoFVdUn Oq37UtWkxNtHUzlb4WVLE4FDMZF/Wuzk8PeeORi1v8gX6Xo6JHeNIduiYLBDgD1PfzdC SScWnDvIam+VUcdYnr8JiBwaBwhHd69DeQI2rsNbtcjSc2L+pB9UUgzZy8ImNiPiW4gr 1Vg6+/JurA9nrYbBgWsAAf1yOGYCcM3CEgdHW0VsK/IP72FvAlmdo/ltJEhF+zDF0F6M zjeuTHazLtGYnMvJupNlciYza9MeIdNZOITpazZ2UcoqCR42Fip8kpzhcCO5ERBUCBMA IIiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2COnVUhCv2957C7fTDHBsryoM8/YnEOqvfk39Jdftuc=; b=TCMFCtXPE4KLMRAJw9AMSmJsAuPVus7mmb5prM+9Zplyu11AOJhKHBWBr51nN/aaYD ieBfpbxLwa+0cmenzY4H2hJsSI0Arf711ZFs5AwylgJFvvV5QqvxicNm9bch2rX65Ct7 VcL90oi7Xgt31MAY8A2xxy67VWblA8zDjJjVHufl8JX4RMbMhuzlFy8Ytf6QAYHA6mG8 Phd3qD2qAsG3Rqh6u+JbMw+ot2xLke86UwsPM5/FLuxdXZdwTyhcdxze7cPgK1LJZoFe hv6BhJQJ6YeyU+3s+MDhai86GtXgxwT6EfnWQu/iLWb3b/T4lBlHqGKh5SIdhgVXU+cX rzBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=do7SGz9C; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j62-20020a638041000000b0051b5bb35d72si6665185pgd.338.2023.04.15.10.58.11; Sat, 15 Apr 2023 10:58:25 -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=fail header.i=@earth.li header.s=the header.b=do7SGz9C; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230070AbjDORqW (ORCPT + 99 others); Sat, 15 Apr 2023 13:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229894AbjDORqU (ORCPT ); Sat, 15 Apr 2023 13:46:20 -0400 Received: from the.earth.li (the.earth.li [IPv6:2a00:1098:86:4d:c0ff:ee:15:900d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56CE23AA1; Sat, 15 Apr 2023 10:46:18 -0700 (PDT) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763266008953076338?= X-GMAIL-MSGID: =?utf-8?q?1763266008953076338?= 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: 83767 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1177152vqo; Sat, 15 Apr 2023 11:15:14 -0700 (PDT) X-Google-Smtp-Source: AKy350b9hAHDpsKex3vXstE0io3cN54O6tMK6JgJGC0FvtNQbxtW4f9fp7PI8mcbF2/fNDOZ54YE X-Received: by 2002:a05:6a20:1450:b0:ef:2389:66cb with SMTP id a16-20020a056a20145000b000ef238966cbmr1615979pzi.9.1681582514008; Sat, 15 Apr 2023 11:15:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681582513; cv=none; d=google.com; s=arc-20160816; b=mgxLBHo1T5+ZMKyN/dDsdotw52DgCdtKlwyVe9U3mJslG9CUVPImaUdux46Ur6kuZN rfn58WXMpk8/tB8g0YvgjHyGqpbkNhlDU7qYvnJ270WnVGxzbo72cmryGjjkmJYUPxCb Xfw7/a1WA7j8f0QilAsV+S20EX6l4tO6RLy1N+Xg3zKF9E8ltj/2KGdWSih/MV8wcVSv fC82tbOx112I7Co6PMuLk9df58WsHjPyk9MNaABD7HDy3jyS0yUks+kah7Ljm00bnDNQ Sl+Kc3j+zjPQDM4dbxDm18RGfyXpZ3nisGiHv9mGZSY2fJaPS3hdz1zoyh3zNp8bVrXi wkCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SuK0Nqd+nS8SKUO0Du0/KQ2vGgQINfivPg9iv+lc2e8=; b=x9Bf1q6FY9LJ4FkcDNeSqC3oU7Nt3VsejPcoq3immAex5myCA0N5hUs+0KRMrjkrLt XfyNLf+IAoEWGMgVq2rnIhE1wkfU/2aqmKeLW4JVMGogY+4gONwcyKhIOxlSbAegXN4l 7qsFJtWmTeR8WTFraDbEp9cM/mB21iQAuuX2BaVLYxRo8Icq5sKrl6Mkz19Zpt4S7237 Ke2QJW/rdOWikIvXAiUUP1LiPViaFDR7bL29TNZhqE02ybvwEGaoZtSgMZROpY+/Rh2s kDNyBYbpludykK62cvYB48ccnU1HrI34D6xqM7cLyfKDB5ou8r4rhAT3BDRaJ/dwshuh oEkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=QMszMv9l; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r18-20020a632b12000000b0050af2178284si7723165pgr.819.2023.04.15.11.14.59; Sat, 15 Apr 2023 11:15:13 -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=fail header.i=@earth.li header.s=the header.b=QMszMv9l; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230115AbjDORqn (ORCPT + 99 others); Sat, 15 Apr 2023 13:46:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229894AbjDORql (ORCPT ); Sat, 15 Apr 2023 13:46:41 -0400 Received: from the.earth.li (the.earth.li [IPv6:2a00:1098:86:4d:c0ff:ee:15:900d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2EB435AB; Sat, 15 Apr 2023 10:46:38 -0700 (PDT) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763267066379021294?= X-GMAIL-MSGID: =?utf-8?q?1763267066379021294?= 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: 83766 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1175813vqo; Sat, 15 Apr 2023 11:11:46 -0700 (PDT) X-Google-Smtp-Source: AKy350b4CLhikHOI+6hglo6yqnTvSrKnHhR8pbGD1cQEMZZcjHPX+fiDt824JCG3giVtlTFyEo+n X-Received: by 2002:a05:6a20:47d9:b0:ce:2fb4:5fc4 with SMTP id ey25-20020a056a2047d900b000ce2fb45fc4mr8922592pzb.38.1681582306497; Sat, 15 Apr 2023 11:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681582306; cv=none; d=google.com; s=arc-20160816; b=fB1zvVYeI42sv5ZFjPruGiqNNpsyHxgUhOrHPPirxsgJGmedIRM0zzlH2HB3rfT49B Ti909T6UmaYIoXq5JuwFe8TXi8deUcRBvaFqKrv6MgWhFBW6jPNL9239u2EtKY2GtWUi 3JzPZe7BOmgC8W0474oWXKauzz2lCRiuAOykCu+KF/2MdJyCOZGnjOayTudu/QRKsnjA /8fGEaZIXTGoRcXUEqHUDT1pJnMiHHaPVcTso0+4p38wTPxigIsmDbZ1sp6iXOXVnrgH ZNWgFBhFxU7FGIEuVr47KBL93XuNN+aCu0EbLrfppX5+q3NZTKH5w8C+7km+3o5Djjse YA8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=V3hC1iXMftqNHVVjf9y/IQOJAn+pUeg8MBrKjF7zyEU=; b=y/EJZtBg4/XPB6gTAnTvCnp8iS2/94Fml8c9b3H7V0IWTO0ZFhsSTsCrp4hitt9xoX QHs3VfvzUewY02MYtuR8usQfGl1pIxRfkx5ZCNDgu5Vw+dpqtTp1fmKFU6p4iSTPjhMP 8/l3MjHP7IbsnqkWskrejyT6w0wmmI6VFVnUEDQgIPyIY89vTH1eytEynSrjeoN53tLI BWXEC1SoG85PwIWGBMnR4Tedv/G5R5R/DKcqYWkXZJYeGuW5KBtoRmH44K1s90cEDGb3 nrguZ8BVq+bPH8wEyBGZ+dAsnoYFxjjQklOJR2c8GIdGlloQj1ARIdneXx1UBXrwMwHm 7Z7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=tWlUdvEX; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r18-20020a632b12000000b0050af2178284si7723165pgr.819.2023.04.15.11.11.28; Sat, 15 Apr 2023 11:11:46 -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=fail header.i=@earth.li header.s=the header.b=tWlUdvEX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230107AbjDORrW (ORCPT + 99 others); Sat, 15 Apr 2023 13:47:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbjDORrU (ORCPT ); Sat, 15 Apr 2023 13:47:20 -0400 Received: from the.earth.li (the.earth.li [IPv6:2a00:1098:86:4d:c0ff:ee:15:900d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBF4EE41; Sat, 15 Apr 2023 10:47:18 -0700 (PDT) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763266848535439515?= X-GMAIL-MSGID: =?utf-8?q?1763266848535439515?= 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; From patchwork Wed May 10 12:02:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan McDowell X-Patchwork-Id: 92068 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3578316vqo; Wed, 10 May 2023 05:21:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7gDHL3ja+Z+aW/tWzHXXcQ5jphZATkOxKL1Gkf8+gjNfVwYziZIh/9R76WxuslinWPSMtS X-Received: by 2002:a17:90a:feb:b0:24e:463c:c4a7 with SMTP id 98-20020a17090a0feb00b0024e463cc4a7mr25804475pjz.15.1683721289626; Wed, 10 May 2023 05:21:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683721289; cv=none; d=google.com; s=arc-20160816; b=ty0CuM7eaPc0usYapGtZzvSMm9z4e430Oz7UVjTBr+AzLJVPAsv85uMr3Wd/iJZx3P nHrABuW10F5e4SzLV8N9hYdl5poTx5qx86ol6Du7B35bExUGo5h/C+13V0UhIutyed8K y+cUv/pdOX/Q3q6aluwfhXR9/WL4ySADhXxxnjqAgVOmxSCX4xFKoNXmvv69XRHIQktP Y/WHHsAI5K3FzrUeD3wuNuu3c41B9KExEu8YqnuDysuVXfkERBP3ba+sNuI+xBVvMTGm OrcT/xjjZQvrHGGz0YETO5xBOGXQA3gAs1VbX4on5oBqK+o2JO4R7a2+aGYHE1lEjyIS jmvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=z8H44rBFTZY4TjUWBjN6TrB1XXhRt5aeYvbMpCw9dXc=; b=ULp4DY/+kSK3o1glI+VJkoKJ3LdyMBLlCfpnaSwq6sfEP1hzHzz9eVpY7tMarxjwB1 s08+IP2I7i5huIKiBxtzdde43qqmMsTbDfGhgk6Dngzc17TeiplKkONR2HDJf8Y0WUJe nADAvPFvSz9+YdViNIkUY5ppFOtHC3s9XMRrcDovVi2Tv3ezvzvK5jAYaB7k3ose/zqw cRuRlEaOMlKdPvzLlMZxPIZEoEgJpDWeDMlSzOafX7GwTb/22QyGZmUu8ca3RkeYpRvZ cAH0juXr0KVo2GkGxKzCfDgzuHgeQX7i2z4xfpKeZz4g0eSo10rSYJUjZDFyNUT7g7db G0Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=umz3uG+c; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pc16-20020a17090b3b9000b00246a6cecff8si31499452pjb.44.2023.05.10.05.21.14; Wed, 10 May 2023 05:21:29 -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=fail header.i=@earth.li header.s=the header.b=umz3uG+c; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236604AbjEJMCV (ORCPT + 99 others); Wed, 10 May 2023 08:02:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235752AbjEJMCS (ORCPT ); Wed, 10 May 2023 08:02:18 -0400 X-Greylist: delayed 61 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 10 May 2023 05:02:17 PDT Received: from the.earth.li (the.earth.li [IPv6:2a00:1098:86:4d:c0ff:ee:15:900d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ED444ED7; Wed, 10 May 2023 05:02:17 -0700 (PDT) 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=z8H44rBFTZY4TjUWBjN6TrB1XXhRt5aeYvbMpCw9dXc=; b=umz3uG+c8l/FBlg+yh4/xaC1Zx cx6v/g0gitksL1b15tseps4BYnsdNDLhiF7OoeQaBLwqIGYqgmh1f941M6ml9nOgqWxrKDCbOfuTo pAW/eBRHbKiYv+l13qFHxsF3bNiKbvSyiQvMcfyEm2EtGVCYVENtoIWhHjlCh79gbhHdCbONx1DVX KdSy96olRByAMPO4wVSLv28Zu6lJVwnefohEone4TyJ+3BL46inO5h8cQq+nJahXJEtPCIBEmP5hU cRTB25iF6ihoYrci9Hn+PVP1csBmRi5Cp103GdHjFldUKVNIQBxSwPPA3YZTcAUVT7qmDrAC/RcZe DUJp0voQ==; 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 1pwiWF-007uiT-CU; Wed, 10 May 2023 13:02:07 +0100 Date: Wed, 10 May 2023 13:02:02 +0100 From: Jonathan McDowell To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Linus Walleij , Bartosz Golaszewski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: [PATCH v2 4/5] ARM: dts: sun5i: Add port E pinmux settings for mmc2 Message-ID: <7949169f581cab37175602188f44bc26e79a45c0.1683719613.git.noodles@earth.li> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763267066379021294?= X-GMAIL-MSGID: =?utf-8?q?1765509735044949592?= 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 Reviewed-by: Jernej Skrabec --- arch/arm/boot/dts/sun5i.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun5i.dtsi b/arch/arm/boot/dts/sun5i.dtsi index 250d6b87ab4d..ab7f675aeec4 100644 --- a/arch/arm/boot/dts/sun5i.dtsi +++ b/arch/arm/boot/dts/sun5i.dtsi @@ -517,6 +517,15 @@ mmc2_4bit_pc_pins: mmc2-4bit-pc-pins { bias-pull-up; }; + /omit-if-no-ref/ + 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 Wed May 10 12:02:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan McDowell X-Patchwork-Id: 92067 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3576735vqo; Wed, 10 May 2023 05:18:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5L5YGTcddN+EZaDKbVE5gHCPbYRgcfJ15HCiAtngfB9C2Qc4SKfiPg4VBHvg6ItySDmoZP X-Received: by 2002:a05:6a20:2591:b0:f0:6def:6b93 with SMTP id k17-20020a056a20259100b000f06def6b93mr22013124pzd.56.1683721128722; Wed, 10 May 2023 05:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683721128; cv=none; d=google.com; s=arc-20160816; b=voP5L0vacP2lBLqFVIgGzk9HB20OE854RCervnAlM/rgb++2QZ6kuK6SrvAFhGOfvL oJk4IeIdr8fwR6O3+t9WuYQ/4jX2hXmPLycQmQc9J0pdNrReeIWs4U9NeWTzhERUJCV6 99zKz6/PGKiemwCiy2gdOn9klcO0V513GDkybxh7y/z6VTCI/RkqiesaaGT4kGwrubBD ZJ4DP3gto3vqTaZgCjDmUDT6/f3X+tr6/X4LhkvFCDesquFafXaBhj0yauMDjg1f1JfW z7nAol9nO/HEdQQqAuqjqWfb4ATNtovRHHCZK1of+2H0b3rFSV5rypB17K0jZAZPvMYk 5/xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CN7Du21sI7b6jGDaBlQmutgYmHF034Timd3PFCK1lso=; b=GajmnNqGrJA8NUgnnvv9awsrBAaTjvw55n//g9jt0QQ02nWTrLEs4pUF+BBxDrz0b+ 61uLU/ZUJCNhtMDaQsYX6Nm0Zyq8bEcX5Ko9OboD27+R44PQmTcqNkB08qDw8AyWaTvS iyqqXoIBKWcFNISS22asGs8Kie2DGEalh362cqFUcYpnEOYxDB44A4pqoZMxKYpgY/Km HTR5SFqYzlMRcq4Bm/BzHU6UB72tKWapv8Yu8OZ7zlP5h1vuoDfO/G1XogPF5aGhkYsI KrV7DPrrUPvsXgUAz5VJmZklFa5HrVOIGHPB+mftYUI3AUx35IE940Lk2XSwW4jkA8le PRkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=M2zpdK72; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y29-20020a637d1d000000b00527d158ec6asi3882870pgc.36.2023.05.10.05.18.33; Wed, 10 May 2023 05:18:48 -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=fail header.i=@earth.li header.s=the header.b=M2zpdK72; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236887AbjEJMCx (ORCPT + 99 others); Wed, 10 May 2023 08:02:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236785AbjEJMCt (ORCPT ); Wed, 10 May 2023 08:02:49 -0400 Received: from the.earth.li (the.earth.li [IPv6:2a00:1098:86:4d:c0ff:ee:15:900d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 936467DB6; Wed, 10 May 2023 05:02:43 -0700 (PDT) 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=CN7Du21sI7b6jGDaBlQmutgYmHF034Timd3PFCK1lso=; b=M2zpdK72/0OU+ZG8ALGEXrwrwo pbCuExJ9wxSviUCBdK/C6l3sKwYmBGSE6VrnOxgHXG6su0pMooB1N0aeEVjJUvlOumaGxmYxHdCNc wZisbB4/diwj151NoHNhkEsEW9tWL9A2wS5+c+68TnkUt9J7YzvFUGqv4+5F3L3UXmdBYzMgTk+pm Az9USfra7VkwiQ1wCLFVntirYXPfcOrErtfVN9ChS9lecVuC/s5jOh1zeXkcaWianIiITNRS9pVkT t3NuaT+qUvvWAmF8fvs3PGyVbVRg5NjX6zdrC9Qg316hiqRoLw98b3gDiSZlCNjglz4Oi2zeRW3ta mCcvrOmw==; 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 1pwiWf-007ujP-UW; Wed, 10 May 2023 13:02:34 +0100 Date: Wed, 10 May 2023 13:02:28 +0100 From: Jonathan McDowell To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Linus Walleij , Bartosz Golaszewski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: [PATCH v2 5/5] ARM: dts: axp209: Add iio-hwmon node for internal temperature Message-ID: <2a9bd53a65c4a154cccba622c60cbffcdceaeb95.1683719613.git.noodles@earth.li> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763266848535439515?= X-GMAIL-MSGID: =?utf-8?q?1765509566480558048?= 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 Reviewed-by: Jernej Skrabec --- 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..469d0f7d5185 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 */ +/ { + pmic-temp { + compatible = "iio-hwmon"; + io-channels = <&axp_adc 4>; /* Internal temperature */ + }; +}; + &axp209 { compatible = "x-powers,axp209"; interrupt-controller;