From patchwork Fri Oct 25 00:41:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13849870 Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34C945221 for ; Fri, 25 Oct 2024 00:42:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729816931; cv=none; b=nctBvLBV5Ppof/m3WJeLlzW64MblY1ZB30TBCI4l6aw6O9zHRdFDBw7oLOITRX4/6cA+smva0wWLcy0GftqOetl7WdfWKHTMU8o+6UXL07MZttVmXA+Yk8ib90/q0/m/pnuYKM9xld1JWk58gcvV2BeeEPX9x5/tgTCUgcJI+Cs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729816931; c=relaxed/simple; bh=kpvJRcPqWC+dVghUUdeaMiwqWPQQEmBm2CSq9EI3mwA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=KkPLRRbqB3H61Tbtbv37/LeiEnYCF/7PzCB2dQCLWjdk22Hi72Pu+/D5Hx/Tegbxe81/gOJqZcZ/zaavAa7mwPdMZFRfX640E716YptWG2F2sWAZqhvw75ZPW6BX6VXCl2Py73ty7aUj3nAUKF8PekNz27Qw0RAvQ0iZBZK0q/U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NngXOX0o; arc=none smtp.client-ip=209.85.167.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NngXOX0o" Received: by mail-oi1-f181.google.com with SMTP id 5614622812f47-3e5f968230bso706586b6e.3 for ; Thu, 24 Oct 2024 17:42:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729816928; x=1730421728; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/JH4ZQU5AFvRH7Qn9sg9MSQ3ssLfCpHuJRXQbGQoDWQ=; b=NngXOX0osM0twNX9gvccqhbOazhrLYaLB3gQ7RgRjKbht6HLEK7jgTjbbwyOlnxu0I XyUiB4fMLXeP2FN6kphgYXHzCBqyxgMqqM5ruVEzP/IIf40jdN354X9Bz0k66DgtfHG9 5Uyst1nZBG9oE+mGrzO3uJdYKCsAE6bvXW7q4T3F23cOz8mt/gCX4XoyY7QM7H+15mba +yzueE3ruqw0WxhFbjtjkbC6bO++5gmubYigqZb9LGfp0n85EeA6o2bImP6Imke/7Xqs iovdirniFwN1TpsfmVPOkwL3VjkYE0XL0BtOwfzLKEOn7n0b/U6XmPZhC1dQ1kelGHFx c04A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729816928; x=1730421728; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/JH4ZQU5AFvRH7Qn9sg9MSQ3ssLfCpHuJRXQbGQoDWQ=; b=IDSWQi1rtsaDSmOARPRxgsiznV7GR9e6Vte1kZJC775GeZHjBKvrZbKlJR6QjNiS9h 7rL+tx3/hs95uGJWkhaLlFRmcO3KX9Hk9RNiB2xCm41Rs4ilSMqk2MRr6IzxeXjN6/vp R+krZOr5Yj+yjNL7nlaNCbkPDkN1JHNsCNz3OPAVZk+CKkDmPDNLAG9g0xniABwwFwyl SH7E9HaQwE2FySW+GlRJu4SjgMBNhAum7Zc6y56ULn3igrE2Q1F1H/Z5S50pXrm/RfTi AQbLPob3Re9mDI3/Ia4wLVMLct7a+zX9QXX8pwnqFkjG8YP6NiQ0pw0n29CNHmV8Mfw1 kzQA== X-Forwarded-Encrypted: i=1; AJvYcCVK98EpqcWi85DXXf1T0W2CU1s8vdJLpMtk7hdsu7R0nWARW8CdBmnGnVTETv9EQ7vEJYI=@lists.linux.dev X-Gm-Message-State: AOJu0Yz9yzwXLgQcb5qaziOPwcAO8bJ+59vXKYphZYurBtow8w6s96aE 3GxHVBPagTWzi6PrBZgCtnd3FW+EJbm/W/s43WS+sAIF1KFOxxIT X-Google-Smtp-Source: AGHT+IHhO0Oe/ES3dfFw2XAIiGrW09kdGvbnuxejTHYBTvDD9QQCbHbNJqfVJPaqKCqsiNhoGM7kEQ== X-Received: by 2002:a05:6808:1490:b0:3e6:21a:9a62 with SMTP id 5614622812f47-3e6245014cemr8084123b6e.11.1729816928153; Thu, 24 Oct 2024 17:42:08 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:b160:3edf:6e5d:8d4]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7edc8a3d2easm27289a12.85.2024.10.24.17.42.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2024 17:42:07 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, Fabio Estevam Subject: [PATCH 1/2] dt-bindings: soc: imx: fsl,imx-anatop: Fix the i.MX7 irq number Date: Thu, 24 Oct 2024 21:41:58 -0300 Message-Id: <20241025004159.1571782-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Fabio Estevam Unlike the other i.MX devices, i.MX7 has only two anatop interrupts. Add logic that contemplates such case to fix the following dt-schema warning: anatop@30360000: interrupts: [[0, 49, 4], [0, 51, 4]] is too short Signed-off-by: Fabio Estevam Reviewed-by: Alexander Stein Acked-by: Rob Herring (Arm) --- .../bindings/soc/imx/fsl,imx-anatop.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml index c4ae4f28422b..ae708a658d52 100644 --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml @@ -36,6 +36,7 @@ properties: - 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 + minItems: 2 tempmon: type: object @@ -52,6 +53,23 @@ required: - compatible - reg +allOf: + - if: + properties: + compatible: + contains: + enum: + - fsl,imx7d-anatop + then: + properties: + interrupts: + maxItems: 2 + else: + properties: + interrupts: + minItems: 3 + maxItems: 3 + additionalProperties: false examples: From patchwork Fri Oct 25 00:41:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13849871 Received: from mail-oi1-f174.google.com (mail-oi1-f174.google.com [209.85.167.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55D156AAD for ; Fri, 25 Oct 2024 00:42:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729816934; cv=none; b=Rp2IyDz1htyDdl5rO+B9vfNazRKI9FHYh17oJzOd8mLTQY2br4GEU41gtQJ0yIgWFMPdMsutROVmm3vMgQwf2qzibRbYRL6DHZoYcwSUGkbBBGocqX6UUu68v+HTudfZTU3cvveRC8o4xTLYVVR9MYZ70U530xpkon9haJ8B/js= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729816934; c=relaxed/simple; bh=A0i/BPTOJCM56lujfQVhp0IouM3vgbmKHXveMTbOcQI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=B+/VDcg7iewNC2VUbAPimKuQoK0v4k/3q+fsipRrTxhbIJxnJekBd3cz+XxIWTnkGcfx9OtnVeOqzpc/s4uqN806AABADjh1wz7xdGhJrJ/2SK7QEs0+I4Q/ZfXBPH/0miMJP6bDDDCygjDllJrEmuieyrm9YlQkHcPTEzJKNrA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QJdQEvI5; arc=none smtp.client-ip=209.85.167.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QJdQEvI5" Received: by mail-oi1-f174.google.com with SMTP id 5614622812f47-3e5fb8a4e53so847425b6e.1 for ; Thu, 24 Oct 2024 17:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729816931; x=1730421731; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=O3glZN7tdnxqEr7AALFevER6kTHzPF//GTHKC2fD5T4=; b=QJdQEvI5UjW1saWEw+srMrSD1F0FKbiughpTgCa6XUkpBG1VRJbD7Qe7fjkZeyuPtw BN6UB9DNGnjH1xLVVzd8ADuGNrB27+G4BIIi/8DZvuLG3dDR6zG3cdRHtJpe/ryDyogJ cqvLc0OTxRUD5c9C6UJUroYuZol7+96Ih8bWOgLPr7/bPwgpakAdFqRYX/YWyVncMaPv wAU2w35zpgpqjqPBH05zVM4GPHEpHQSH3U0GNforOfsZaBuFekNLdcFYpuXPqDL//IXT WFirqgg/VsiiLD6PqAlnifiDAZvg76qB0xTUnGJlVuc4NTUSV/y/BNSD3sHxZAQYQemT /afw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729816931; x=1730421731; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=O3glZN7tdnxqEr7AALFevER6kTHzPF//GTHKC2fD5T4=; b=w5+zThCOwlvzWa2fbdKGrxvj0DxMbCka6msjT3nv1k8ngPG4gOCMIPStUBZ+jkShWl PWux4rdifRIbma1TtGnz80hhc+A6MdDRH68GD/7jgzBQu3h0FWt4IeWQBdxy7cQc3OmX lBsaZ7y9KQ1aiQbykun2Ksicu2pTd+nFKilTkyondaDu48ciOoQJZVJMKuJnHnHh+72z S/QycTlPJthNuqOXClocc89vKec2HfjuaGN4m18vX69udzubRnXoBdkgCKaMhytAd+h2 BAO2ksOjRX7attbcbFm2HMXB1puRIp/erzqR9G3j+gFCGYishok+LkynDU/uVnsDZaRZ gTIg== X-Forwarded-Encrypted: i=1; AJvYcCU5khhYAkMDH3XQcuhAL3gFZ3mXkGnCIAnCMjUCyBtsfxNXvav/ambb6Es4h1d9xsjDB58=@lists.linux.dev X-Gm-Message-State: AOJu0YzY14IOMtquV/pndm4r6/oezNuUDQ9o3sArGlM0aacuMgZRzmVe 4D6j73sXOhIAjNqSDN5UQ61lBDsadg+yvdAaPUKITTgaP2PT7JJ04SHoug== X-Google-Smtp-Source: AGHT+IH/yxaa5bTSEO6mVFg+zirKexUg+7iL8/DIbuhJOrW61wjJMRXPmsWuAZESLfEU0XQz2w5jgw== X-Received: by 2002:a05:6808:200b:b0:3e2:a1fe:f0c6 with SMTP id 5614622812f47-3e62450114amr7198590b6e.6.1729816931078; Thu, 24 Oct 2024 17:42:11 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:b160:3edf:6e5d:8d4]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7edc8a3d2easm27289a12.85.2024.10.24.17.42.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2024 17:42:10 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, Fabio Estevam Subject: [PATCH 2/2] dt-bindings: soc: imx: fsl,imx-anatop: Add additional regulators Date: Thu, 24 Oct 2024 21:41:59 -0300 Message-Id: <20241025004159.1571782-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025004159.1571782-1-festevam@gmail.com> References: <20241025004159.1571782-1-festevam@gmail.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Fabio Estevam i.MX7 has the following anatop regulators: vdd1p0d and vdd1p2. i.MX6SX has the following anatop regulators: vddpcie. Add them to the allowed patternProperties. Signed-off-by: Fabio Estevam Reviewed-by: Alexander Stein Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml index ae708a658d52..f40c157908aa 100644 --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml @@ -44,7 +44,7 @@ properties: $ref: /schemas/thermal/imx-thermal.yaml patternProperties: - "regulator-((1p1)|(2p5)|(3p0)|(vddcore)|(vddpu)|(vddsoc))$": + "regulator-((1p1)|(2p5)|(3p0)|(vdd1p0d)|(vdd1p2)|(vddcore)|(vddpcie)|(vddpu)|(vddsoc))$": type: object unevaluatedProperties: false $ref: /schemas/regulator/anatop-regulator.yaml