From patchwork Fri Feb 16 22:34:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 202402 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp29642dyc; Fri, 16 Feb 2024 14:39:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXOdIg78ktZixFVZ/S7MtAsXmuvzOZ/z5WFyP/ZEok2dLjBvG/wmAgLHfyWD3B6qFZvS3dT3k58MARmWVSnXSXMuxx+YQ== X-Google-Smtp-Source: AGHT+IFMBi88SAErx5NHKSsqsBHhzgBEW1KJNMfPMkjtvnZRamKRUAw6XKZLQHGXU+jiyuzSzptt X-Received: by 2002:a62:cdc9:0:b0:6e0:8057:b2aa with SMTP id o192-20020a62cdc9000000b006e08057b2aamr4961917pfg.28.1708123161206; Fri, 16 Feb 2024 14:39:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708123161; cv=pass; d=google.com; s=arc-20160816; b=dMQ/2o0druIDSi9c9W19hVV8r7/C8BtGnMeiR8z06+DEdRbpPym1dFrBWrZwPV5dCF DUQZGCeRfJ6f/rVplc7C0TX2HYOJyrFXbM8PPFDYFGsM75+4vpSnR7kd/uSgfsoe35eN tPaHP2B16YwYhsHPQWKvxLcyLeJw1DrAK9w4hRsNZwzbRblK+71Jy1ZtPzVNywUO4hF6 d/nxnfnQGDd/qxLgqyZR9VBFHy2jSxx4ooWj6NvjR+uRPVO69uT8w91VTYJiHL2e8v0n xWaBDFxAli74WOCJ3c6Q/X/i6FuuN/TwcoU4HOzkhf3RkRJ/6Am+pKpIiF9q20fkVb3T VZFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=tSEHiocNLKyLYnQ1leJRg2gesGYtIS8J+kEdlxeBMa0=; fh=VWDFbHpN9TQEY5WpugUlm4QkekLeBSg2vlBpp3dxvXQ=; b=KjruLxmVijgiPxRZrI6QNatCGqhPTRMlqJat4lqDuMRUQ5YAjnuSDUFJOh65uhjWU3 8N0AKiDlworCWFZ+/roVcvSiPSUBy4NDv+Q/8nV3rwsuj9uxY1sMrFi1uQIf5tna+P9k zpFPNl2U6OfhOnbLyYZX47fpMgJ9SVumsuX3EHdQ/33IC0TsGC44+b37QqedKTBM5ZQo TLyQTo+N+Q6UzoryMCsSYHQCTbHG7S6K/0ful4vILJbPOAVB+JD8jsbTNJL4sW8gocmm evTfwUr1PI0Kpl83MtlfVteuMc2T5T9elJgBuqy6XVfBlp2967yG9Nf5RHZCfUFysHly mBsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HBx+jJNZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69427-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69427-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ca39-20020a056a0206a700b005dc4eb5d421si538644pgb.347.2024.02.16.14.39.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 14:39:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69427-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HBx+jJNZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69427-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69427-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 09239281C05 for ; Fri, 16 Feb 2024 22:39:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA5CB14C5B7; Fri, 16 Feb 2024 22:37:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HBx+jJNZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0529E1487C0; Fri, 16 Feb 2024 22:36:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708123020; cv=none; b=OuNXhODPu6F36z//G9XKm9XY82bCrUkvG+x2u92h3wB74wnFFJtknBZmAYCAF7FFkRH6+NBBwKfo69zV7AW66fG6+flUcyA6prL3kH/+JQcq0lrsxltRoUjkkqklIzQiUmiVWv3ysygVXERzuQAtiqPVywhATLwgrA3hVyxchmc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708123020; c=relaxed/simple; bh=SwGh5DLM5LsIthu3tG63lPvezvOw26wv4J7Bcpkos2c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hOxSgssxsoO4WpoPEgtcJVDq40oCE1Kc1AjM8/KtjP+oqEKCuUuyOeICjNyWxa3mmE449CZjisV6wHOAMXJAOlOX1JDRjL2Y4uEqciufWXUo6/FSYPv6CZHYhRMjpEthyq0KhwU9H0lGPUFkyTFVjweeuCfk5ql3nfLrf50fB0s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HBx+jJNZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77C9EC433C7; Fri, 16 Feb 2024 22:36:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708123019; bh=SwGh5DLM5LsIthu3tG63lPvezvOw26wv4J7Bcpkos2c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HBx+jJNZVcp74Yh9OEQGJVsKg7x9CXSCrPPWDt3BIC14J7XLKK+X8JIDqjQhlz27U rweQ0f8meSVGWimYDWOsMz7YAU0bjQpXdZVaaVqxliZEisNzeX/l2VjLa+32WT/wOm VpMGJ+6c3hqIoFpSHr+KWjPaPWi4a2qK+DpDnFWuBCtRNo9Dk9oXHiyW/lchxMTpb9 Pz0iayOPJcvyjEc5tNVYL39dDBRjIy2zjQv6kPr0daOJmvRfP2hyLGzQZnuFyJzjCL G6up6HPliboZC+TT8KaHP5dpTUi/T1aOwr7GgW3ar8My9VZf7dGqYA3EYT21VWt/q0 rYAbwbXHdP2jA== Received: by mercury (Postfix, from userid 1000) id 9EF6A10633B8; Fri, 16 Feb 2024 23:36:56 +0100 (CET) From: Sebastian Reichel To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Pengutronix Kernel Team , NXP Linux Team Cc: Dong Aisheng , Linus Walleij , Dmitry Torokhov , Mark Brown , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 04/16] dt-bindings: soc: imx: fsl,imx-anatop: add binding Date: Fri, 16 Feb 2024 23:34:23 +0100 Message-ID: <20240216223654.1312880-5-sre@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240216223654.1312880-1-sre@kernel.org> References: <20240216223654.1312880-1-sre@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791096952013206613 X-GMAIL-MSGID: 1791096952013206613 Add missing binding for i.MX anatop syscon. Signed-off-by: Sebastian Reichel Reviewed-by: Krzysztof Kozlowski --- .../bindings/soc/imx/fsl,imx-anatop.yaml | 128 ++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml new file mode 100644 index 000000000000..5a59e3470510 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml @@ -0,0 +1,128 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/imx/fsl,imx-anatop.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ANATOP register + +maintainers: + - Shawn Guo + - Sascha Hauer + +properties: + compatible: + oneOf: + - items: + - enum: + - fsl,imx6sl-anatop + - fsl,imx6sll-anatop + - fsl,imx6sx-anatop + - fsl,imx6ul-anatop + - fsl,imx7d-anatop + - const: fsl,imx6q-anatop + - const: syscon + - const: simple-mfd + - items: + - const: fsl,imx6q-anatop + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + interrupts: + items: + - description: Temperature sensor event + - description: Brown-out event on either of the support regulators + - description: Brown-out event on either the core, gpu or soc regulators + + tempmon: + type: object + unevaluatedProperties: false + $ref: /schemas/thermal/imx-thermal.yaml + +patternProperties: + "regulator-((3p0)|(vddcore)|(vddsoc))$": + type: object + unevaluatedProperties: false + $ref: /schemas/regulator/anatop-regulator.yaml + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + anatop: anatop@20c8000 { + compatible = "fsl,imx6ul-anatop", "fsl,imx6q-anatop", + "syscon", "simple-mfd"; + reg = <0x020c8000 0x1000>; + interrupts = , + , + ; + + reg_3p0: regulator-3p0 { + compatible = "fsl,anatop-regulator"; + regulator-name = "vdd3p0"; + regulator-min-microvolt = <2625000>; + regulator-max-microvolt = <3400000>; + anatop-reg-offset = <0x120>; + anatop-vol-bit-shift = <8>; + anatop-vol-bit-width = <5>; + anatop-min-bit-val = <0>; + anatop-min-voltage = <2625000>; + anatop-max-voltage = <3400000>; + anatop-enable-bit = <0>; + }; + + reg_arm: regulator-vddcore { + compatible = "fsl,anatop-regulator"; + regulator-name = "cpu"; + regulator-min-microvolt = <725000>; + regulator-max-microvolt = <1450000>; + regulator-always-on; + anatop-reg-offset = <0x140>; + anatop-vol-bit-shift = <0>; + anatop-vol-bit-width = <5>; + anatop-delay-reg-offset = <0x170>; + anatop-delay-bit-shift = <24>; + anatop-delay-bit-width = <2>; + anatop-min-bit-val = <1>; + anatop-min-voltage = <725000>; + anatop-max-voltage = <1450000>; + }; + + reg_soc: regulator-vddsoc { + compatible = "fsl,anatop-regulator"; + regulator-name = "vddsoc"; + regulator-min-microvolt = <725000>; + regulator-max-microvolt = <1450000>; + regulator-always-on; + anatop-reg-offset = <0x140>; + anatop-vol-bit-shift = <18>; + anatop-vol-bit-width = <5>; + anatop-delay-reg-offset = <0x170>; + anatop-delay-bit-shift = <28>; + anatop-delay-bit-width = <2>; + anatop-min-bit-val = <1>; + anatop-min-voltage = <725000>; + anatop-max-voltage = <1450000>; + }; + + tempmon: tempmon { + compatible = "fsl,imx6ul-tempmon", "fsl,imx6sx-tempmon"; + interrupt-parent = <&gpc>; + interrupts = ; + fsl,tempmon = <&anatop>; + nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; + nvmem-cell-names = "calib", "temp_grade"; + clocks = <&clks IMX6UL_CLK_PLL3_USB_OTG>; + #thermal-sensor-cells = <0>; + }; + };