From patchwork Sat Feb 24 21:29:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 205938 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1327545dyb; Sat, 24 Feb 2024 13:34:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXy/J+KUcPLw1zMUMacYVCWHBxoUOlYCPyLgbGqUzqdpb0nbUA5s79hYtruClo2PYz5yGHFGldix1CTByY5RKzm5PjG6Q== X-Google-Smtp-Source: AGHT+IHRujXmOSvgc4JITNvViVPu+tFWPNR4pvdLltplpDPvKjGvnqO3MCwxXo+EHfLDu4DoSlMm X-Received: by 2002:a0c:e191:0:b0:68f:3169:ab0e with SMTP id p17-20020a0ce191000000b0068f3169ab0emr3901555qvl.9.1708810449267; Sat, 24 Feb 2024 13:34:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708810449; cv=pass; d=google.com; s=arc-20160816; b=XzgZuxpHsGVplzqCK5zKfCUMn4HTQua4tUUCGLfitDaecN2ufqBXsPTlOps/gJKrZO DE40J+abWY3y/FddBuknxAL+PQbATnCa063Gk92m2lAigBNIxtZqRr1P9goRHAp4qSs/ Kjkt/PYEL4YkjI00sbjUd7CcbNzbdA6dKYxq+wORmOHZkCVkmU2Qd4UBdxhazavE2clh JQndltLtXTyQmumliJqmdocr06ZOg+TSHIgUCAue3jJ4tviBvPuDjk9rDqujSPxiTwzj /7AfUzvlDFpszEvXnW3k7ut9HIWPl/mo5VzdUmiXbmodoS0zw+hAovoD3a5flhJn2Yct bB8w== 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=xaEctEuh6Ycwxrm06bN35ciVLwtLXzJAOZiXJYB1Z7Y=; fh=uxsBptzdNzBOcKMKcLueW03u+6OheYo4M2JeOxWag2I=; b=TR3EeZXByCyFJoIBbI8jO/cdl1gRCiXeVWwnxIsXrTHwIzmefpDX7diDFSAsIB32ch apGFKkLpsWJ6CfWFtwsT2iJIkKs+g/EbPqY4QZls/G8t2vsFEpKxy2t/nc+Iyf7z5twB l9gHIsdCnKD0UVOrOW9zggigvqlSseoHsnRKRL4os5m0BxbUQeGdmWDz5KKk8+ur3SgO U/MhMAllKw6p8AXl2v+QFq+FdqXYfa1xOxQS+BjJjvhD6UwOSxozeK7vAg+KrKCf+/R+ 6W4oSM6WZf9K7M5diVahG3nTKsfpDwCsV7an0RCF9lO7zZGBUTI+YK/8XvIOPo7PUbVN WRLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="cS//nZPz"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79863-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79863-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l4-20020a056214028400b0068fee80b8a2si1490310qvv.365.2024.02.24.13.34.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 13:34:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79863-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="cS//nZPz"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79863-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79863-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 020B21C20D6D for ; Sat, 24 Feb 2024 21:34:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B6ED4F896; Sat, 24 Feb 2024 21:33:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cS//nZPz" 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 5F4E24CDEB; Sat, 24 Feb 2024 21:33:13 +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=1708810393; cv=none; b=ZM4ZAKWgxHrLXZlAfa7UcOgUPb4tq7hg9G9zfZMiP8dPf1L1vzYFUMEJGB5Cv587elZ5pAzA3rEInonzu8NuZqRsl5N8uVW67yCgiP5HCNi1ioXCD4/q+RT1aQ9FM66PKpDY9/LlashCpTK3Rx7DaAKQ5dPGWHRODhf7kp5lTGw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708810393; c=relaxed/simple; bh=W7KyzBkyJPOjERPAmGBasbk62LFaM6Pz/kkeIkNL5bU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BD3FV8zPPqR36YTmRZVkRjYvoaQhOZWDywxbPrB3PW1kss0whyZAxxmkZOGOko++rzBNsAF3H/4AUXX1ZgEUHkpryjoTR5aj0Riug8nTXtryARh+oUlTx9FJZTSQ+pEE/+aCTS11jVtTQRw+KF4630+A78Wa2vckJHXHpAoD3fA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cS//nZPz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9979C43399; Sat, 24 Feb 2024 21:33:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708810392; bh=W7KyzBkyJPOjERPAmGBasbk62LFaM6Pz/kkeIkNL5bU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cS//nZPzG66uQ5fnFFWvxFPVCLfNAXoJAucgA0zR+hHsMdFV4Zd3n8Jk9REyzL3JC nAM3WoaS9FVB+fM+EJfrTUP66U6EI1fZQsq4rvqwZINQgdBucsromq3dyg2oxEyAX5 +I1hTMxdVOXZD/GwdajO1OarKW8MMiMGwwnhRMEGTGR5HxxagU1x0cUghLkw3j1Rfd OpVrki2L1NfT+uHmSrENviv99C7n1xgsegAxX5tKRqPYjJZKSVgXGYZPDgjUimIi+2 fjuqcwk+mSIEBBz0uYwEYaOb3wgt15yveSxqtcHh/O3vlGEhwNkFsQUH57Csz6v+hQ HXxcxcVUPor1g== Received: by mercury (Postfix, from userid 1000) id F36951060DFB; Sat, 24 Feb 2024 22:33:09 +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, Krzysztof Kozlowski Subject: [PATCH v4 04/16] dt-bindings: soc: imx: fsl,imx-anatop: add binding Date: Sat, 24 Feb 2024 22:29:36 +0100 Message-ID: <20240224213240.1854709-5-sre@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240224213240.1854709-1-sre@kernel.org> References: <20240224213240.1854709-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: 1791817625263906178 X-GMAIL-MSGID: 1791817625263906178 Add missing binding for i.MX anatop syscon. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Sebastian Reichel --- .../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>; + }; + };