From patchwork Sat May 4 21:53:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 13654140 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 5F37FC4345F for ; Sat, 4 May 2024 21:54:21 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vY7fXUpHqriGLxGnL3NDa2YDmdd5Y70r8bB11HUTFuI=; b=pfg1VKULQfV87D rp0pEawIJgDY8bNktB/nbxXXXvicEkWOPIJVhQEBL8dUwOjdqKhQlbFf2t11gQPwJqCo9xSgZXOYO SepH362r1h4xrwQyvYZJ9DF8+XmuvAkLqaXJv2vDqTOeEKUnFGD7IDT4u1iYT/ZPvCEJzHbTQOonO r8YmQLoqqxKYUFatNKJ2kPYmZ9vtLrZ1se1CydBj3ryrjWbUnstr8dOQZwlpEPTkCajAeaQ74ig7v SHkwTRw0rDyLvMXcbwI7/Y5zO9P4Kn68bCxqttz2LegCbDpwGxqKHxVgesrLTgpYjR2OHEbVl/j4u Ha5N1TfY1Bq8wFL6hvSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3NKT-00000002wJK-1dZc; Sat, 04 May 2024 21:54:01 +0000 Received: from mail.andi.de1.cc ([2a02:c205:3004:2154::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3NKQ-00000002wHn-2fsA for linux-arm-kernel@lists.infradead.org; Sat, 04 May 2024 21:53:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type: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=xvYaGTuF/6wQRn8KjheRFB/DLsoyzjpsksw7wGYd7jQ=; b=UAyFJTvWgpoK8/3xLGb+pVk5nA 6uYt6Egv7WGQGA5HFkz+AkJfgPDmL8UhMqsaFOuud0hkFffZoub/SgBGBBFkwWPLnZ+37Ns0tkUs1 a/bjKStf+UPg/ltvZYTvxCxCZN4YlAzYbzKl/VBxPzPFTaih5V8KK8VUG56unyVUxP6FxNzPa79E0 VHfV/8u1EN27DfnxIfZrts6xvhg3RKh2QgmKpi2KSw85Xx5dze2uBLPN84rfxE5Vbc8WK4I8KIYvJ fBT+QzXVhDb3/UT2fTuS1qHOM6YdYTgtlYh3oQRIbtJKs7NdHxbsBkZdQNOh/pWqo0U8CDRBiiZw0 5ue35iUg==; Received: from p200300c20737c2001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:c2:737:c200:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s3NKF-000aXe-02; Sat, 04 May 2024 23:53:48 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1s3NKF-003c4b-3D; Sat, 04 May 2024 23:53:48 +0200 From: Andreas Kemnade To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, marex@denx.de, leoyang.li@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: Andreas Kemnade Subject: [PATCH 1/2] dt-bindings: arm: fsl: Add Kobo Clara HD rev B Date: Sat, 4 May 2024 23:53:43 +0200 Message-Id: <20240504215344.861327-2-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240504215344.861327-1-andreas@kemnade.info> References: <20240504215344.861327-1-andreas@kemnade.info> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240504_145358_713608_F0983C69 X-CRM114-Status: UNSURE ( 8.09 ) X-CRM114-Notice: Please train this message. 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 Add a board revision of the Kobo Clara HD with different regulator setup. Since the original compatible seems to be found in userspace in the wild, keep it as a fallback compatible. Signed-off-by: Andreas Kemnade Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/fsl.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml index 0027201e19f8b..8dda627cffd84 100644 --- a/Documentation/devicetree/bindings/arm/fsl.yaml +++ b/Documentation/devicetree/bindings/arm/fsl.yaml @@ -609,6 +609,12 @@ properties: - kobo,librah2o - const: fsl,imx6sll + - description: i.IMX6SLL Kobo Clara variants + items: + - const: kobo,clarahd-b # variant wit different regulator setup + - const: kobo,clarahd + - const: fsl,imx6sll + - description: i.MX6SX based Boards items: - enum: From patchwork Sat May 4 21:53:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 13654138 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 CFDDAC4345F for ; Sat, 4 May 2024 21:54:15 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aKGsEoPOJgiRumpx2AgEPSTi5vU6JcWODGT7OWEzePs=; b=AjQMTD/23x7bDr +rIqVe5ziGg92KrnCL2LWudFEKw7XUeL8vojENe3N06iGows5GDjyuoFbRDXxf4KeIx+w8FbkQ+gq 4wLWuhdqB9iz88492bTJ/cwgkBZexTFndQtdqHFpG/HwxDRw2U46kcQ5y5h28x+0mjpo+D+E5bRES bwYFmdCLAYz8Bd9/6A2TRw75QgFQr1CwlySNp6Stl2AzbEImxGMgkgH+vRkzdPfeHOLvXNF0eDhH3 quAGGkf8+qwFxJN+9nX8F+u4QjPoPUdgTXDLr0nKCmlrkx7Ga8gvriqdxl49FBScTOQK147tIDJtR XKAgoLRbuYf3gu6nBvyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3NKS-00000002wJG-3VgQ; Sat, 04 May 2024 21:54:00 +0000 Received: from mail.andi.de1.cc ([2a02:c205:3004:2154::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3NKQ-00000002wHj-2gJY for linux-arm-kernel@lists.infradead.org; Sat, 04 May 2024 21:53:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type: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=oh7AjFUuZxOMD8dhy3mDCuG2iys3ZUxJV2zi2DGl1Nk=; b=5F9/OfrFNGXq70yjhkwl26AYe+ OVlQvzJ89ZRqZMzzHp7UrKnFht1fRiJX+rYgoRcL8dZzkcr75DF7VTgcjTSaAuwT0a9e2DhiLEAlJ S6dr4ym/EVZF/svP9LHaf39eG1v9ujxNYeJ56fKvbdsMiyPBpCPr6yNTjdtRCKECTc+X2FeM9YdzP voGDEcfgBUyjQZgPSXLSAGrr7lEhHuoCwqR4EZbBJyxGb7WXr8LiwEhQesxabL0/dbwz9NGaZbJdI +JJvEA+IXc2VrpwCwlRnpei6CGZIXx0JdoZiJ23tH9aRDPEdJU8OfywWiDXj7l7Y3EVRO5gXpZS+0 KZHe4BDA==; Received: from p200300c20737c2001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:c2:737:c200:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s3NKF-000aXg-12; Sat, 04 May 2024 23:53:48 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1s3NKG-003c4g-0w; Sat, 04 May 2024 23:53:48 +0200 From: Andreas Kemnade To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, marex@denx.de, leoyang.li@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: Andreas Kemnade Subject: [PATCH 2/2] ARM: dts: imx: Add Kobo Clara HD rev b Date: Sat, 4 May 2024 23:53:44 +0200 Message-Id: <20240504215344.861327-3-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240504215344.861327-1-andreas@kemnade.info> References: <20240504215344.861327-1-andreas@kemnade.info> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240504_145358_710590_689DE0F9 X-CRM114-Status: GOOD ( 14.11 ) 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 There is a variation of the Kobo Clara HD containing a PMIC with different default settings for the regulators in the OTP and therefore also regulators wired up in a different way, so add a proper devicetree for it to avoid some magic smoke. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/nxp/imx/Makefile | 1 + .../dts/nxp/imx/imx6sll-kobo-clarahd-b.dts | 79 +++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 arch/arm/boot/dts/nxp/imx/imx6sll-kobo-clarahd-b.dts diff --git a/arch/arm/boot/dts/nxp/imx/Makefile b/arch/arm/boot/dts/nxp/imx/Makefile index 4052cad859fa9..a4826d128dfc7 100644 --- a/arch/arm/boot/dts/nxp/imx/Makefile +++ b/arch/arm/boot/dts/nxp/imx/Makefile @@ -288,6 +288,7 @@ dtb-$(CONFIG_SOC_IMX6SL) += \ dtb-$(CONFIG_SOC_IMX6SLL) += \ imx6sll-evk.dtb \ imx6sll-kobo-clarahd.dtb \ + imx6sll-kobo-clarahd-b.dtb \ imx6sll-kobo-librah2o.dtb dtb-$(CONFIG_SOC_IMX6SX) += \ imx6sx-nitrogen6sx.dtb \ diff --git a/arch/arm/boot/dts/nxp/imx/imx6sll-kobo-clarahd-b.dts b/arch/arm/boot/dts/nxp/imx/imx6sll-kobo-clarahd-b.dts new file mode 100644 index 0000000000000..09b890fe915ab --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/imx6sll-kobo-clarahd-b.dts @@ -0,0 +1,79 @@ +// SPDX-License-Identifier: (GPL-2.0) +/* + * Device tree for the Kobo Clara HD Rev B ebook reader + * + * Name on mainboard is: 37NB-E60K00+4B0 + * Serials start with: E60K02 (a number also seen in + * vendor kernel sources) + * + * Copyright 2024 Andreas Kemnade + */ + +/dts-v1/; + +#include "imx6sll-kobo-clarahd.dts" + +/ { + model = "Kobo Clara HD Rev B"; + compatible = "kobo,clarahd-b", "kobo,clarahd", "fsl,imx6sll"; +}; + +&cpu0 { + arm-supply = <&dcdc5_reg>; + soc-supply = <&dcdc2_reg>; +}; + +&dcdc1_reg { + /delete-property/ regulator-min-microvolt; + /delete-property/ regulator-max-microvolt; + + regulator-state-mem { + regulator-suspend-min-microvolt = <1040000>; + regulator-suspend-max-microvolt = <1040000>; + }; +}; + +&dcdc2_reg { + regulator-min-microvolt = <660000>; + regulator-max-microvolt = <1000000>; + + regulator-state-mem { + regulator-suspend-min-microvolt = <660000>; + regulator-suspend-max-microvolt = <660000>; + }; +}; + +&dcdc3_reg { + /delete-property/ regulator-min-microvolt; + /delete-property/ regulator-max-microvolt; + + regulator-state-mem { + regulator-suspend-min-microvolt = <3300000>; + regulator-suspend-max-microvolt = <3300000>; + }; +}; + +&dcdc4_reg { + /delete-property/ regulator-min-microvolt; + /delete-property/ regulator-max-microvolt; + + regulator-state-mem { + regulator-suspend-min-microvolt = <1700000>; + regulator-suspend-max-microvolt = <1700000>; + }; +}; + +&dcdc5_reg { + regulator-min-microvolt = <710000>; + regulator-max-microvolt = <1100000>; + + regulator-state-mem { + regulator-suspend-min-microvolt = <710000>; + regulator-suspend-max-microvolt = <710000>; + }; +}; + +&ldo8_reg { + /delete-property/ regulator-min-microvolt; + /delete-property/ regulator-max-microvolt; +};