From patchwork Tue Apr 18 10:34:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Rudolph X-Patchwork-Id: 675354 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 C9542C77B78 for ; Tue, 18 Apr 2023 10:34:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230435AbjDRKeq (ORCPT ); Tue, 18 Apr 2023 06:34:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230502AbjDRKep (ORCPT ); Tue, 18 Apr 2023 06:34:45 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79C3249EF for ; Tue, 18 Apr 2023 03:34:40 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id sz19so14828875ejc.2 for ; Tue, 18 Apr 2023 03:34:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1681814079; x=1684406079; 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=hM2bBHeuxBAL+DDlwpzy9mMXdD/d67LP1Ods6dYdRvw=; b=G/Yr8UnshxTTU0x/fkPRKMujQ5ZWfMqshcIz2TQ3RQAAtRxNkhI3oclzOj3Q5cA4Hh mihM+AezDm1OAID5iOA8ChjjMRi6WJm0hhbIH8wIf55PHLoX6sswIT4tqh4lNxEhTv9w L6YQf860x++r7n8E2pNadit5bEl8IvEe/SCmJI3F3kdZ9ymST2IhXIrv5jh/pzre0/Kv 7nCd8npP1WIBP3cmBdctmg19vhTj793hODD7kmnViW7nD2wKPBU3JEKV5vb6lNiuejIr ejlBvdESwqatIhZ+CWTjnYBrqiMYzXx0hXE4cbYrXMyM2euAkxrqVyJDtFqcOPP96Wk9 6RRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681814079; x=1684406079; 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=hM2bBHeuxBAL+DDlwpzy9mMXdD/d67LP1Ods6dYdRvw=; b=YrnVxo90VjzTVs6fa/3mtDLVzQ7P39nAKFqtDAO3Qo73P3gV1bZjmL6KasI7+pRTbu 9NmdIb6Jp6zKaF0dJ9DFuWHa+QlL9FOnYOSIPrR5+OsqrybM13JGtEoKIatVnVbVU0TU CYaZArXUJoK8+4NkrGha5WbWqmEh4P9VYqk/XEVgK/fXc9GWBWnWQgYLmrHWHimy5pDB SH9lfF2JNsf9oZuyogQA41nWibBSb6lwZPUSzuuuUy2VaZ1PdTudM85NMpSyITSJUkq4 vZ91iHON+5xiDWzStOJdekIaMIYAy2hTSFL+BB7KggFT+vdRlCV2YRPf9ExCW0hCyAV6 slDg== X-Gm-Message-State: AAQBX9ea4+gbCOtVKtp/jKydrkToH5FJaNUc/let1lPC4jMD2gC+QUdr VX4TbxeqgPQUXbpGpUyNK9GE1A== X-Google-Smtp-Source: AKy350aTCH+B8Ums8L23m06EJw4GP871eBtakETBhkR0nRfLJuZ+KFWJZrT1ruET6duNnnziUc+QmA== X-Received: by 2002:a17:906:f14f:b0:94a:a6f0:876a with SMTP id gw15-20020a170906f14f00b0094aa6f0876amr10247396ejb.1.1681814078906; Tue, 18 Apr 2023 03:34:38 -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 a12-20020a170906368c00b0094e8de89111sm7787126ejc.201.2023.04.18.03.34.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 03:34:38 -0700 (PDT) From: Patrick Rudolph To: Peter Rosin , Laurent Pinchart Cc: Patrick Rudolph , Rob Herring , Krzysztof Kozlowski , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v13 1/4] dt-bindings: i2c: pca954x: Correct interrupt support Date: Tue, 18 Apr 2023 12:34:26 +0200 Message-Id: <20230418103430.966278-2-patrick.rudolph@9elements.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230418103430.966278-1-patrick.rudolph@9elements.com> References: <20230418103430.966278-1-patrick.rudolph@9elements.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- .../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/Documentation/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. -allOf: - - $ref: /schemas/i2c/i2c-mux.yaml# - properties: compatible: oneOf: @@ -63,6 +60,24 @@ required: - compatible - reg +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 examples: @@ -74,7 +89,7 @@ examples: #size-cells = <0>; i2c-mux@74 { - compatible = "nxp,pca9548"; + compatible = "nxp,pca9545"; #address-cells = <1>; #size-cells = <0>; reg = <0x74>;