From patchwork Thu Jun 20 11:34:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 806258 Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (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 1CFC01ACE6A for ; Thu, 20 Jun 2024 11:35:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718883324; cv=none; b=GJbHzcTsAHMku1PBR4YgvVUsXm1i7/spqnphoxAGuwigLdZ0pCg4KTPIjnPwGCyeC1+QMe5vC/69cPhHuK8Fl5axFDDBkxbaHmd23n4Zxp2dnczYRfgfmzcUIcxZ0oBEGPJJlA/kK9aAHh/NWy1Cy4Q2dnV/4IRddBiVUJkMmiA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718883324; c=relaxed/simple; bh=se0qu2ScDHev5e2u9T2lUYbcxySx/dcEaULZrF/4POM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MnOrJVqwbo6lKKI5u1N79pHpYppkhyzHA4rTyjGd6WiMeHYenT1uc3PBl+YUWsXlyIjfsR9cqgp2DvCZSrJboluiPERQTba0sDt3Z8477Tly63l4I3kro1Qe6ZEuY7CXvmghtBhxbYJT0aZt08h72QjdmRUYDGjt06qv0DqPzhA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=zXjACalx; arc=none smtp.client-ip=209.85.208.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zXjACalx" Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2ebd421a931so7449711fa.1 for ; Thu, 20 Jun 2024 04:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718883319; x=1719488119; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=9RdxrQ5ek7BKyD1Q5GyGk/KJKbJ7uIbq14OZ4VVg0Iw=; b=zXjACalxaky8ItDd4X/hyBxyiCoFYFEfONdA9h/AYqY7HbIribw7oc8D5Um8fnCpMh dxuwl8qYm9ge+u/SCsn2un+UxPQ88if2YchTYm1R21gLoIwt8wp4DpioHIEEsQboSpqL Rf9M5dgNtEDdv7X30yuhZiiAvvsnFX+VSsECVrnIgSck7/hSHEKtYw17r07tJacSXAwI gkucpsGrAPntSa3O0HZDuaJFOlva+JLzGl/zbUdnhPQJH9+sjWKil7g2xrHhecbodVGK wIHN8f3eoG21yhj7nM4TS7Y4/b1cMTK0R+oAMoYF/icRlYccTHvlDd0HBH5GrP6Jm5zq cywg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718883319; x=1719488119; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9RdxrQ5ek7BKyD1Q5GyGk/KJKbJ7uIbq14OZ4VVg0Iw=; b=AVwRwhfB9RwKN9p9UbFpShRw9wYbipAEMoOUc46kWDY0mcPPhZR0Bum/59mmgNsMSG 4xrQvY5CpN7n6dA6fTag9VBLf5oz2FkITLfSyzITrc6wjlVUHkcQoKI2Zg89c7VfrbRh O6nBe/buJRQB8SLO+IKitTdmvpvDMz1g2TInb9OYmSGCn8Q14HsR7XEiBoNKZq67eqpf oPAlT6SkOP8Cfwqn59iNqpvZn8W0K2NsTDoAotj05azCx0Al9w9iCdKii4zKk2E63Y86 KAN/LsjiRNypxjAf3niCWx7ZoZgKJ18sXAGN4fX2/t/+3Eiy0QCtsP+lyahR8xcjX02A me2A== X-Forwarded-Encrypted: i=1; AJvYcCUlGL+WliKHQwpY5wfZndl4YY9pyrA/7ovmJ7+oUCyMQFjHUTqu7Wz7dAYxQrj6Z22d6sE1qxidRoGSMJTiujImhSBWDzfsfPQcEg== X-Gm-Message-State: AOJu0Yx6BU6NxbPljAcSvcJORSgOB6Md1x8XIjyyNJFHX8ORd0bIfaRK GnCdCjnrzIM12kwU6EBt3dbHP9ZaRUQJx/sHsG08AMqKgsJHzPOmpJReEhL/aQg= X-Google-Smtp-Source: AGHT+IFq9QPiqdW/LV2Lp4ipmnGkGcnbeE41LGRET4efCA18VuEBGazMmSwAgyABOsGpRfVB16xuXQ== X-Received: by 2002:a05:6512:32b1:b0:52c:99e5:6880 with SMTP id 2adb3069b0e04-52ccaa36930mr3166877e87.33.1718883319455; Thu, 20 Jun 2024 04:35:19 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42471e6623fsm49708985e9.1.2024.06.20.04.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 04:35:18 -0700 (PDT) From: Krzysztof Kozlowski Date: Thu, 20 Jun 2024 13:34:54 +0200 Subject: [PATCH 6/7] dt-bindings: i2c: ti,omap4: reference i2c-controller.yaml schema Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240620-dt-bindings-i2c-clean-v1-6-3a1016a95f9d@linaro.org> References: <20240620-dt-bindings-i2c-clean-v1-0-3a1016a95f9d@linaro.org> In-Reply-To: <20240620-dt-bindings-i2c-clean-v1-0-3a1016a95f9d@linaro.org> To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Sergiu Moga , Benson Leung , Guenter Roeck , Doug Anderson , Enric Balletbo i Serra , =?utf-8?q?Ricardo_Ca=C3=B1u?= =?utf-8?q?elo?= , Thierry Reding , Jonathan Hunter , Vignesh R , Kamal Dasu , Broadcom internal kernel review list , Florian Fainelli , Wolfram Sang , Chris Brandt , Maxime Coquelin , Alexandre Torgue , Geert Uytterhoeven , Magnus Damm , Pierre-Yves MORDRET Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, chrome-platform@lists.linux.dev, linux-tegra@vger.kernel.org, Krzysztof Kozlowski , linux-omap@vger.kernel.org, Kamal Dasu , linux-renesas-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2120; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=se0qu2ScDHev5e2u9T2lUYbcxySx/dcEaULZrF/4POM=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmdBPjSq+rIwMEv+nxqFX6eolXOSM2y3OaG46ld hES3qoe0I6JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZnQT4wAKCRDBN2bmhouD 18ktEACWRnxxzFEN5hoHHubQp9ltuAKuiTii5YSgG71yB9jinAqHGF3jmQZasCvFKp/Y+C6XSE4 7HbfKJqc6iVJUTmJ9IHYa0FDAoP6myAlMkuf4z8mBw8uodhtnA4FPsPAgnKnmpN7CMUkfjsO1IB RfuBQlifdmWFTp2bvqqIwWSNTjROsr8uSHUki+Ww8DgzlsWkQ7HfMzwBy4idLIeUkzNtuRb0Rfq 0QuXu7sAiFPaq4i+V7Z6sDKJckvnHTx5zEpVJv8z2X/D1Z7+jEfByDjXYftdHKCOvK6lWm+qYZc VEtxStj3nxMhPO232xFXoij7eu8UKvrFsDseAZkBU/Vq7GCyyhj8SGDlfTlwG9zQN82lD0W8Xlx HeX/+LtGE2bjCXPKaMPWGMT9t2tdwsmqAbXgcflvypg+KmDe+kg60qizj/VNKa8JsHWPCLaHpxW txJs+EQ+emVa80XM3ga3vvvcum1STbUNjVEDZjuTF3pUGqCyS3IL4fUPjZEXewYueHwtW5RZSTH M4z27wsRgrMUTClUO8SVOrHJykSSLhOHYirJ6JupXaT0ju6kviSTzxtG9cYYcu2JJiB/qzGJT07 3vSZBQyonxBRu0eI7T2ALDo/VeTLqrT166RyOQGK75poPywXVfTIR1nkcED+fABKAkI0znrkI8t 30sKJbP5RtX6h1A== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Reference the core I2C controller schema to properly define common properties. This allows to drop several (now redundant) properties. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/i2c/ti,omap4-i2c.yaml | 52 +++++++++------------- 1 file changed, 20 insertions(+), 32 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/ti,omap4-i2c.yaml b/Documentation/devicetree/bindings/i2c/ti,omap4-i2c.yaml index 781108ae1ce3..c9d1030e9857 100644 --- a/Documentation/devicetree/bindings/i2c/ti,omap4-i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/ti,omap4-i2c.yaml @@ -37,16 +37,8 @@ properties: clock-names: const: fck - clock-frequency: true - power-domains: true - "#address-cells": - const: 1 - - "#size-cells": - const: 0 - ti,hwmods: description: Must be "i2c", n being the instance number (1-based). @@ -55,38 +47,34 @@ properties: $ref: /schemas/types.yaml#/definitions/string deprecated: true -# subnode's properties -patternProperties: - "@[0-9a-f]+$": - type: object - description: - Flash device uses the below defined properties in the subnode. - required: - compatible - reg - interrupts -additionalProperties: false +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# -if: - properties: - compatible: - enum: - - ti,omap2420-i2c - - ti,omap2430-i2c - - ti,omap3-i2c - - ti,omap4-i2c + - if: + properties: + compatible: + enum: + - ti,omap2420-i2c + - ti,omap2430-i2c + - ti,omap3-i2c + - ti,omap4-i2c -then: - properties: - ti,hwmods: - items: - - pattern: "^i2c([1-9])$" + then: + properties: + ti,hwmods: + items: + - pattern: "^i2c([1-9])$" -else: - properties: - ti,hwmods: false + else: + properties: + ti,hwmods: false + +unevaluatedProperties: false examples: - |