From patchwork Tue Aug 20 08:44:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 820760 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 380CF18A6CE for ; Tue, 20 Aug 2024 08:44:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724143477; cv=none; b=Qy35+GkjRq7wibhSie1vF+zb5xua05zaOSxGgzR13TjbYQm5YM1auFji8ID+sC2HqlBgld8Q8DbDOLg7ti9IK0WNX7gNyR/J6YB3360p1tZEdbmxXKZLxQ0JrWIluEVxc0MWUFMimMu5HkF7924xxkILjW3DJB8MZJB6QiRgu0Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724143477; c=relaxed/simple; bh=9SgFoF/1U9vbH7ubSz57FgPtXpspU+Yt2V7v1Yq/dEE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OBVIucUk8+t0bXOGIPKAFHUv1QN72QNM2Yd2rSAzMtiXoRiS/xXIk30ckSFoJu0cROgEAtTmWmU+odZBf3xGZiZVdJ+a3X2fj+IsnbUPTW3gceS6u44eF6PrV0Jl3tqtoPxU7FTJqgMeX+IVWlbfx1cddJPeDy3AwOWqiEqto6k= 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=yURJ4qOs; arc=none smtp.client-ip=209.85.218.47 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="yURJ4qOs" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a83562f9be9so471037866b.0 for ; Tue, 20 Aug 2024 01:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724143474; x=1724748274; 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=CZAv/xsYrk1gB+zahz7A647WWXVOBPyHiwh7ndJMS/4=; b=yURJ4qOsdGa2LqORq53rH5y6q1dh0gMUXyKP7x2JHdE+peExOWL6a5Q46ohLgzCdLx wxa7ETlqkvlTs+LaCPJSJ/TmsdOrYivT47fVmI3J6rulquINj8qUqWSfZwVHdSnYZ5ZT BjL2Y2F0LtrU1dMgngio7zNBt81xdjKu2SgPSBCwUP7moeb7pzKDKOIGpQczpyESXejW dTiXdArb+A8xCApeCT+JJ8T2STLX98XsUCzbh8HK78qijIe2KDHd88we06feugBzYZEB 0w7VJLdKg1KkAiakdPXtbYZdVVrT/7M5oX6MIY5/X/oTZ4jOYJti7tqbhko9efOJKJMf 2RgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724143474; x=1724748274; 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=CZAv/xsYrk1gB+zahz7A647WWXVOBPyHiwh7ndJMS/4=; b=XqF6dXMdwbMrPeswiaNMBGLjUaMk3I+Y12SYewc/g1S+6UqA3ZcymmS0QoACn5i996 NXJWImJK529kZxpMorWIE4/pkLjfSOO8pNjYKc0z1tXbhlYNgyhoS0aW62k1HCx50ghV yOBrHx/EiSMdo/29ya06A0JREzQy9jyaWYuMOADlBTyoyItY1M2CkqiysStEqqot62MI SzXogj4qGmOTalBNytYy3yud/rFbQvihUl1znCELDqlmvDiNv8ybwouyAyrxKAw5iY+F Wu+pMPwDmkF1EUiWsdjQhLcU2aiv9isG4DYvjBqZufPFuBYPU+lXjuIbXI33eOJolLcu goTA== X-Gm-Message-State: AOJu0YwD5kgD4Xqp8gb4GLoH6OB/A6YlM0Tgs1EJmWfpDbPAZiJY3+kD 9zznhD1KlkJyLeiS4VvAs2qepF5ei09/7PTzjB7//GBnAo6S0aI7iH1tNNt2QtE= X-Google-Smtp-Source: AGHT+IGetYKO7zYAMQzgfmWfZjaZaw9VLujapZ5ygoHZBFflK17xTgaHWNHoNg6C0PizF7fvCO1F2w== X-Received: by 2002:a17:907:e64e:b0:a86:41be:1d07 with SMTP id a640c23a62f3a-a8641be1ea1mr184460466b.67.1724143474400; Tue, 20 Aug 2024 01:44:34 -0700 (PDT) Received: from [127.0.1.1] ([178.197.215.209]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8383946973sm728037766b.160.2024.08.20.01.44.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2024 01:44:33 -0700 (PDT) From: Krzysztof Kozlowski Date: Tue, 20 Aug 2024 10:44:24 +0200 Subject: [PATCH 1/3] dt-bindings: i2c: nvidia,tegra20-i2c: combine same if:then: clauses Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240820-dt-bindings-i2c-nvidia-v1-1-2763e9a9a1b0@linaro.org> References: <20240820-dt-bindings-i2c-nvidia-v1-0-2763e9a9a1b0@linaro.org> In-Reply-To: <20240820-dt-bindings-i2c-nvidia-v1-0-2763e9a9a1b0@linaro.org> To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1170; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=9SgFoF/1U9vbH7ubSz57FgPtXpspU+Yt2V7v1Yq/dEE=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmxFdtbgnyQ2+ahtu21VStBsrU5tivR1nFf0G2t cygINgxhKeJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZsRXbQAKCRDBN2bmhouD 1ziQEACUwe8v4YHKSlFWsbimV+9ZID77BWIqWknW97lJ51F0356OwFcdgAH0Ip+d5bb8F/zXdK7 7PD9z7ZALSJ3LH3GAgw/HBWJQQd4Jgoqq7VcMnnEWGKrsGIC3c/19NEz/tRyhZRIFYroOVgXsLk 8YbRwIiHHjP0ptTW7GCPrBAuRm/vEouTm/Q8J5IAs67rE6XcaWWumqR09iZFpeA3UQQNYeAGx0M zOOkFQQEuQalw6Qo/y8rT8XjKN9SFr062mfJ57YwE+RVirinXoBCVt+L5E7vVWRqkCSWU52nMpU nzFyCusAehVNA87tV8fN/bmDwPOpy+NBJRrk324Hf4xVb+E9MfqIjM9Mek1tMubekQWO63k/cqe G9p8TQoaxCAms231eyw2srdhpRButugWI5vkX+4LQ7CgKaR0OfduJpCoZfn9VAJalCH4efOj6Xw E1BRHI9pEZocFA+nHnE7NrYMKPz5KoH1jzfMJOkdeUnjnG5UoeL1cuyvaeJ1yooqYcuSYjeigOA pKRpFJj1hFiVKEvs1KUhHlEboq5yB3R6V0c59VpN+0j+KQ3RY6h2QKYNz8s0GUlhq0nwxcwC1cT iPzxK6WVziBcyU1nu/UCfT3c9cdprQPlLX0CGTeJW/KfNBhlD0IJnQlLContG07nlpavoNVjU50 kVoCpDvyCNFAgzQ== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B "if:then:" block for Tegra114 and Tegra120 I2C controllers has the same "then" part (same clocks), so combine them. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/i2c/nvidia,tegra20-i2c.yaml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.yaml b/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.yaml index 92fbc1a2671a..5c92ef51287d 100644 --- a/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.yaml @@ -133,18 +133,9 @@ allOf: properties: compatible: contains: - const: nvidia,tegra114-i2c - then: - properties: - clock-names: - items: - - const: div-clk - - - if: - properties: - compatible: - contains: - const: nvidia,tegra210-i2c + enum: + - nvidia,tegra114-i2c + - nvidia,tegra210-i2c then: properties: clock-names: