Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5932843pxb; Mon, 14 Feb 2022 11:03:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJz53hetfyFaz1Sp/lksKLw7++I9O774meOh243T8iVnzDqYkZTh9VZBFJUUYgEN8x6bODqk X-Received: by 2002:a4a:d54e:: with SMTP id q14mr64457oos.39.1644865381992; Mon, 14 Feb 2022 11:03:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644865381; cv=none; d=google.com; s=arc-20160816; b=Mimq44V572wAlFhsqdcYFtzyBrnRRgtotIiBhbGFwt6HPQKT4nbMmhPppNANXPf+kV GKcpXvqSzB2J310Q55s/aOOVvxBPHKvgfsergEF9CfLKVtIRAZBaQGrF91kWn4CR8k7n 95RUz/h/ma2GQ84ZzamJmQuU8zo9BUeKkYe/argVL9EZMmWnmDNU9jcXt1r3+sn5/lO0 HE5aiiyS2C168TnR+OxWjj0dQ76rerM2RfD1hXcRZeCC4O9IEA80R5VT4xcfNorzQhgX 00jAZiOIjs2q7CxRoL8VWGCPMC8pbP+F+VTgM+B6YxxTrTlOE61H4+umsTlPbks4DMc3 BEjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bo43NL5WgxumOcYzft9YAYcZtXZd3PhX1zRfnI8bjDk=; b=j6BwqyDNnMdjp6Q+Wz3a4IOHqgSO9jtdoCYVvHeULLK8vQb8snL9TuJWouZeL89tk/ uftRPWb1O1oBWa1lzmnMhSrNeHJkPAoF1emjRR2dJbYpaUbuFzwO1wIluynJ/AzglRxg G41tn7vourX5r2llkCw+xriKuKd6ia8wk7JzF5kkG02RqOfVwa9pt7zhk1fcSa0nJymM c9JTqjEXp5jpb9LE1Oa02COsmKuXWoKND9wOAHPt9doUTe8KvzdAOFLL6tn9UZMXCj9B yhO8Ak/7XRA2FA66lJs7meZXUtI0bVZdeyBADh+CB0v/UTHs7PByWJyuTioKAi1fgHaO YWXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=PwKUejzP; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v21si12247665oan.396.2022.02.14.11.03.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:03:01 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=PwKUejzP; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9057EE541A; Mon, 14 Feb 2022 11:00:52 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350092AbiBNLFB (ORCPT + 99 others); Mon, 14 Feb 2022 06:05:01 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349902AbiBNLER (ORCPT ); Mon, 14 Feb 2022 06:04:17 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 489DD9BF41 for ; Mon, 14 Feb 2022 02:32:24 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id e7so32304400ejn.13 for ; Mon, 14 Feb 2022 02:32:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bo43NL5WgxumOcYzft9YAYcZtXZd3PhX1zRfnI8bjDk=; b=PwKUejzP04bJB9L/Xde/ppijUOqMNVBq9vZlUz8ZRPTY1pYD15Qe45sYIb0L4FtYjb IyHnd2MnK/h2O2Tgfk/gptsiXpiVPFmpyOiMIYZ3h3GbbMT/zThfR804PQhY1IP7zIdJ aMQnJLR8dJcolWGL9V1jh44yloHcNd2XxkIMe4SSC2qDHeTUVItjzrlvlA7Au4Vgr7cU Zato8b5lzV8arQ0jk1QCL32j3v8TLC6ia37OUo60O5jGLZj5GiSQCyrH4oAjLMK42LG+ n4E4U7nK62f6MkYa12GS9HsWkddfGsrl5IgLk6bOn73UlNxOHunebmRMBirlqw7M/v83 2AfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bo43NL5WgxumOcYzft9YAYcZtXZd3PhX1zRfnI8bjDk=; b=a6S5wrIiUmEp3kbOuyJb+F568cJ9f3UHxIpK3PRbY+YRBWYfRrGxJQM3sQUHRZ9DG/ SLyEVae6i+8KtFTnKPB+mEKJ3ARgNFKuHrPbjohTgnq/ZtlbyZUWDF4W0ou6krnfc3h8 W1abdx41EcFRD6Z1tNl9UeTnTsQdM+Op+EaU8R10l/kDqWuOGH6+Lqy8WYUeOoyHwKPG 4amvt9MFUKL3DiMTLI4SMRWA2hytzUAVdlsEqRwV/koq0BN9MCM28UGsRRNx2Qw81S4u D2nBt/CGVLL0USRVDxTqTfAV8itD3rCoFnhTo3WmmFgIWskgMvb8CUOjrQUqBzJNOZPF +EVQ== X-Gm-Message-State: AOAM531l1l6ZQC7vwYRN9LLK3ibuLB6IW7aXRHjFWv17tqi14ygFz7HE Hw/RF+GiPIts9TL5sApTuQiaFw== X-Received: by 2002:a17:907:a42a:: with SMTP id sg42mr11159538ejc.723.1644834742774; Mon, 14 Feb 2022 02:32:22 -0800 (PST) Received: from fedora.lab.9e.network (ip-078-094-000-051.um19.pools.vodafone-ip.de. [78.94.0.51]) by smtp.gmail.com with ESMTPSA id b19sm1857940ede.37.2022.02.14.02.32.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 02:32:22 -0800 (PST) From: Patrick Rudolph To: Peter Rosin , Laurent Pinchart Cc: Patrick Rudolph , Rob Herring , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [v5 1/3] dt-bindings: i2c: Add Maxim MAX735x/MAX736x variants Date: Mon, 14 Feb 2022 11:31:14 +0100 Message-Id: <20220214103116.68472-2-patrick.rudolph@9elements.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220214103116.68472-1-patrick.rudolph@9elements.com> References: <20220214103116.68472-1-patrick.rudolph@9elements.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update the pca954x bindings to add support for the Maxim MAX735x/MAX736x chips. The functionality will be provided by the exisintg pca954x driver. While on it make the interrupts support conditionally as not all of the existing chips have interrupts. For chips that are powered off by default add an optional regulator called vdd-supply. Signed-off-by: Patrick Rudolph --- .../bindings/i2c/i2c-mux-pca954x.yaml | 44 ++++++++++++++----- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml b/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml index 9f1726d0356b..8d90127b06ce 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml +++ b/Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml @@ -4,21 +4,48 @@ $id: http://devicetree.org/schemas/i2c/i2c-mux-pca954x.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: NXP PCA954x I2C bus switch +title: NXP PCA954x I2C and compatible bus switches maintainers: - Laurent Pinchart description: - The binding supports NXP PCA954x and PCA984x I2C mux/switch devices. + The binding supports NXP PCA954x and PCA984x I2C mux/switch devices, + and the Maxim MAX735x and MAX736x I2C mux/switch devices. allOf: - $ref: /schemas/i2c/i2c-mux.yaml# + - if: + properties: + compatible: + contains: + enum: + - maxim,max7367 + - maxim,max7369 + - nxp,pca9542 + - nxp,pca9543 + - nxp,pca9544 + - nxp,pca9545 + then: + properties: + interrupts: + maxitems: 1 + + "#interrupt-cells": + const: 2 + + interrupt-controller: true properties: compatible: oneOf: - enum: + - maxim,max7356 + - maxim,max7357 + - maxim,max7358 + - maxim,max7367 + - maxim,max7368 + - maxim,max7369 - nxp,pca9540 - nxp,pca9542 - nxp,pca9543 @@ -38,14 +65,6 @@ properties: reg: maxItems: 1 - interrupts: - maxItems: 1 - - "#interrupt-cells": - const: 2 - - interrupt-controller: true - reset-gpios: maxItems: 1 @@ -59,6 +78,9 @@ properties: description: if present, overrides i2c-mux-idle-disconnect $ref: /schemas/mux/mux-controller.yaml#/properties/idle-state + vdd-supply: + description: A voltage regulator supplying power to the chip. + required: - compatible - reg @@ -79,6 +101,8 @@ examples: #size-cells = <0>; reg = <0x74>; + vdd-supply = <&p3v3>; + interrupt-parent = <&ipic>; interrupts = <17 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; -- 2.34.1