From nobody Wed Dec 17 21:12:30 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B33C6C2FC22 for ; Thu, 17 Aug 2023 07:11:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348388AbjHQHL2 (ORCPT ); Thu, 17 Aug 2023 03:11:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348366AbjHQHLH (ORCPT ); Thu, 17 Aug 2023 03:11:07 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C12C2D53 for ; Thu, 17 Aug 2023 00:11:01 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-99bcf2de59cso952923266b.0 for ; Thu, 17 Aug 2023 00:11:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1692256260; x=1692861060; 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=VIjrnEwaKeqGTU5grAtJfqf2YP8aALmcmlloCUUh95k=; b=WacsCwd/mTW/bUVtr3GPWrz7PCmkCc2+kASptV0P7rFTE0R9JwO0dwS0d9fm5zWWCP jVQLBAEuEY2TeZ+7J43YpwG/rvwmOFcUtCixJOpcfUD9ER/YGw6ud6q0H3BJuii5bTmm oz7NiDzwXh+YNrM3WWh0maeTRON+wvh0VkyxUxYITj4CUpXFRfSbsY8lOZsmtQRMVP9J d7LiAEEEaNIfXlpOUBvsxhQpbKS97igXv9he8JpvAoJDmMh+QfEoCCQIqu7vaGfdjiOF cz7UZfJ/vzykdECCYUEClUJwoo8cNxkkZ4QUJoy2rQTI3/tSdPg/ua9ngS7lgAjjz76+ AGTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692256260; x=1692861060; 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=VIjrnEwaKeqGTU5grAtJfqf2YP8aALmcmlloCUUh95k=; b=LotKhBFdRoPuu/jMdo5DOw980lZSrvt8Dxzqr+JWvnGMsyc1wkfzj0/zUuxsqSWaVF 8YVzJAlogjqHv6Q97vzlKr0w8eHbirt+jOMoaUKrz0cN94qlfbpGTpcZqRq58YNolVWR 8Vd8x4f3Zrwk54Sv0Gmg87Nr7Uj2B6A+t7xKP52zrqTZqjiO1/GM3DFe/NgVvaGgyB75 ngIZonBd6tS/b7LmTw3nIR+4q0LUndxs+opqXbIpGO+OE9Zsu6IT67whbUaNERKey8dT 6HUSZk1Gz+QADFaN0uzpqwFA+aBhVaFpFN9gXYN+BpOtwmPwD7BAZ6xbLP+muPZtWNIj pxWg== X-Gm-Message-State: AOJu0Ywpd7L193RYS6WFKNRLc9XzUihEaF90x+OI0KmJgrHQmip79VBD otN/uM5lSxwOsCrDG5h6bdEUGg== X-Google-Smtp-Source: AGHT+IEm3Zuw6iWJxveFv6TWkJryZMT36/j5LUA/U0DfI6Y7uj4yMRyUOzDLKV23+RFgUnjU5V3B+w== X-Received: by 2002:a17:906:20dc:b0:99b:ed53:5c12 with SMTP id c28-20020a17090620dc00b0099bed535c12mr3023587ejc.17.1692256260537; Thu, 17 Aug 2023 00:11:00 -0700 (PDT) Received: from fedora.sec.9e.network (ip-095-222-150-251.um34.pools.vodafone-ip.de. [95.222.150.251]) by smtp.gmail.com with ESMTPSA id qn17-20020a170907211100b00992b510089asm9674361ejb.84.2023.08.17.00.10.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Aug 2023 00:11:00 -0700 (PDT) From: Patrick Rudolph To: Peter Rosin , Laurent Pinchart Cc: naresh.solanki@9elements.com, Patrick Rudolph , Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v15 1/4] dt-bindings: i2c: pca954x: Correct interrupt support Date: Thu, 17 Aug 2023 09:10:50 +0200 Message-ID: <20230817071056.2125679-2-patrick.rudolph@9elements.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230817071056.2125679-1-patrick.rudolph@9elements.com> References: <20230817071056.2125679-1-patrick.rudolph@9elements.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Only some of the PCA954x compatible ICs have interrupt capability, but the binding advertises it on all ICs. Sync the dt-binding with the driver and only advertise it on: - nxp,pca9542 - nxp,pca9543 - nxp,pca9544 - nxp,pca9545 Signed-off-by: Patrick Rudolph Reviewed-by: Krzysztof Kozlowski Acked-by: Peter Rosin --- .../bindings/i2c/i2c-mux-pca954x.yaml | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml b/D= ocumentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml index 9f1726d0356b..e5c1070903ef 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml +++ b/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml @@ -12,9 +12,6 @@ maintainers: description: The binding supports NXP PCA954x and PCA984x I2C mux/switch devices. =20 -allOf: - - $ref: /schemas/i2c/i2c-mux.yaml# - properties: compatible: oneOf: @@ -63,6 +60,24 @@ required: - compatible - reg =20 +allOf: + - $ref: /schemas/i2c/i2c-mux.yaml# + - if: + not: + properties: + compatible: + contains: + enum: + - nxp,pca9542 + - nxp,pca9543 + - nxp,pca9544 + - nxp,pca9545 + then: + properties: + interrupts: false + "#interrupt-cells": false + interrupt-controller: false + unevaluatedProperties: false =20 examples: @@ -74,7 +89,7 @@ examples: #size-cells =3D <0>; =20 i2c-mux@74 { - compatible =3D "nxp,pca9548"; + compatible =3D "nxp,pca9545"; #address-cells =3D <1>; #size-cells =3D <0>; reg =3D <0x74>; --=20 2.41.0