Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1298346pxb; Wed, 6 Apr 2022 14:09:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJze1CWeDD8Sn6VxmWAgWc7a+1jToCBhu3COPFKEFhn5ESTaRWN+uSRdAuRCWKCRMiKKsAOz X-Received: by 2002:a17:907:1c9f:b0:6df:eb80:3581 with SMTP id nb31-20020a1709071c9f00b006dfeb803581mr10088249ejc.198.1649279397061; Wed, 06 Apr 2022 14:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649279397; cv=none; d=google.com; s=arc-20160816; b=saBAzBSEROOHfJsRbaAqxjTT31x42FoCDlHjVzvX9Z4T21EwDm01Otzh/L1wwxBn00 N9U9OTP7nLNT/8eTLyELH0WK+yM3nysfILoRcoeEkU55WNUZ/mgIZgzDTqHdCjw7aGhP yJanMXnRblC/3Q1phMiHLRUQ5Y0EYZFO+cnD9x+HQWeNrF7yV6kr3nACb58oE5FHMo/6 uS2T5kGOJf6kNL+r5wgyzUa6fixmzdFiEi5y9a6N/+geGln06w+qy3DEdW8BHTQPZUb6 /ZyfSBadEbyp1CAGqPdoOQMIIcNRgv9YFvOIDeEZE5DITsZ/tB8He6zRCmlXYdIHPO0Z 60hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=pe8sju6wPvJSrNfF1Eq2d0NpTEsa+xATy6yZpivcyyo=; b=VjngQwip3l48Gy/HlgttZI8M2uN0qu43G9xCsR1yz7HcKn7LK4ftBVGc8XwnZobrXS S6JeT72J9JPxgt9S+tcEwat+f7M09f0pZ7SN7JM4g3RsXqdAi+/X+nf7TYxcP1tL7yWp l7BOf/CQlPTPA2fvrBn8YjzwWXl557MQAhut0L5DLroNKRjdj+BVZoUicyMVczke4klO /XQ2cqRzQ79ArFG/ZC6qlMBdPE8BNpR9rxiTFwuVS99Jqq9AizH4LTojEwdT3c3CB1wA I72aYyz5Hmv5yPPRCqfnMb4ZOGBKxCM/r6Q0C6SivynP1mDuMU2ja7+q6Xykj9gsh6U6 lLHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g18-20020a056402425200b00418c2b5be12si14357153edb.244.2022.04.06.14.09.03; Wed, 06 Apr 2022 14:09:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234659AbiDFUZX (ORCPT + 99 others); Wed, 6 Apr 2022 16:25:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236725AbiDFUYM (ORCPT ); Wed, 6 Apr 2022 16:24:12 -0400 Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDC2E349538; Wed, 6 Apr 2022 11:43:20 -0700 (PDT) Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-e1dcc0a327so3925332fac.1; Wed, 06 Apr 2022 11:43:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=pe8sju6wPvJSrNfF1Eq2d0NpTEsa+xATy6yZpivcyyo=; b=kOivRFEJHI+w2eouwoiLEYmGL0JgO6ICU+xkf93gZTD45eeepp2HBg9Yis+a0JDDS4 r2YrhPcMOu+edjcuJANfFRrlNqpv7K2tsBmb+KK1d8i3OayzdAFGeiLvfg4y4XFfG7Cn jHyChCHMl9e57crE+l6k1YWVTMg4fKkvWAETAbsAWsEbeOGBgxHzDnjf9DZRwmD2Luxd gc+bhBZx7lroSBiZqU4+FRu71qVqv76eKl+LSczEEvEkkkQ4LZz8VJ/pxEXdh5vbMoS/ iFKSvGnIKaLn/bxm9p8Ih90PDsviOaJssFsyBU4kfLh73QtNOFmDMs4Eu3bLzLB/Hasw 2kWw== X-Gm-Message-State: AOAM5321d6EQZJDptj4e8qZS2Bcx6JF0iUYKUhVkxaC/NBN5FVUF1gkp bU/ZSHNlLLElKBtif/EXnTmKAOegKg== X-Received: by 2002:a05:6870:e30e:b0:de:ecf4:df7e with SMTP id z14-20020a056870e30e00b000deecf4df7emr4782781oad.114.1649270599990; Wed, 06 Apr 2022 11:43:19 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id v17-20020a9d69d1000000b005b2319a08c4sm7048316oto.18.2022.04.06.11.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 11:43:19 -0700 (PDT) Received: (nullmailer pid 2564513 invoked by uid 1000); Wed, 06 Apr 2022 18:43:19 -0000 Date: Wed, 6 Apr 2022 13:43:19 -0500 From: Rob Herring To: Laurent Pinchart Cc: Patrick Rudolph , Peter Rosin , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [v7 1/3] dt-bindings: i2c: Add Maxim MAX735x/MAX736x variants Message-ID: References: <20220405120552.433415-1-patrick.rudolph@9elements.com> <20220405120552.433415-2-patrick.rudolph@9elements.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,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 On Tue, Apr 05, 2022 at 04:46:34PM +0300, Laurent Pinchart wrote: > Hi Patrick, > > Thank you for the patch. > > On Tue, Apr 05, 2022 at 02:05:49PM +0200, Patrick Rudolph wrote: > > 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..132c3e54e7ab 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 > > It feels a bit out of place to have those properties listed before the > main "properties" property, but we can only have a sincel allOf. I > wonder if the i2c-mux schema could be selected automatically based on > node name, but that's out of scope for this patch. Yes, just move the allOf below 'properties' > I thought it was more customary to define properties in the main > "properties" property, and then have Yes, please do. Rob