Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5873126rdb; Sun, 17 Sep 2023 17:05:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVjFaZlh4Or5PG+1t1WWuYCrx9YEgUqMzCXg/oXe1euHQksZb5uMfrqy60pwHmBO6/z/PB X-Received: by 2002:a17:90b:23d7:b0:25b:c454:a366 with SMTP id md23-20020a17090b23d700b0025bc454a366mr7218622pjb.5.1694995499654; Sun, 17 Sep 2023 17:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694995499; cv=none; d=google.com; s=arc-20160816; b=NSkvXgeYN++skdh0LQvgNeB+Y3agzm55nqmXPbZMJQDjdDD+6pcPmtefGEoPwuT5ex Jvxu5HltaEB6VxMLb0QeS16HUcDxoZkRZG5ATvoLYLpXulz/ph1LkXmXNI8smgvs2TtP XB6sywltIO7XsJp/U8mAVPdW+rmxsvgTGtI50mj2ySrwiu8kucV4I6N30HGqKkla/bjl fmQok6jerFJTryXue9wta+2pN4olwMvV03Hb2n/KyGWR+a3xEKlSmQKDSZ9gbDl8yQPM 8KerKQoPczBWKci370I5YqrJD9/LFGRjTxFY6wrk5oFaRnflTIMfsqtS3fG/oy+WK6vS Tong== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=SgdmuKIbpz+gFfxV0UYSueDkWKXzE83GuFLx8gl3zAM=; fh=gSzStoB6hH69I1y1ldgwpb2Po6b1T+lUhOOjawFEpGc=; b=O309TMv7UC6SDguGFZFlLp259T+6/UxzcyjrEPMbg2BvBotp8MqypT3gLu+gwHsE5+ d3d9miX9XzwjoOQPfesBCSax9+jX3vbrNjCS8Y88u3/qRBUWfTFPxFothJDC0GyespTM YRN6TV6prHkGYlnOLG6T1enfuhpz98iw/9GZER8biz6bTvnbl3T+BtLQpt66NFcX9WXg BWqDd2tvtAXOM36yDZfU70jsYHoLC9fZUSC+Y8w1FpKUXKTKpgtWrQ5WEjhzSk7lZmYZ c20M3cycGKK51N4ep0uk2ZZ8+OOQp23RW/XZU1cQgkEGVdLzxD37FKBjNxD9aPtyvW4N e9jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="yCyK4c/G"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id b2-20020a17090a9bc200b002766354b7aesi925942pjw.166.2023.09.17.17.04.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 17:04:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="yCyK4c/G"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 11A2E832273D; Sun, 17 Sep 2023 10:31:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237249AbjIQRbW (ORCPT + 99 others); Sun, 17 Sep 2023 13:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237633AbjIQRbD (ORCPT ); Sun, 17 Sep 2023 13:31:03 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A28B312D for ; Sun, 17 Sep 2023 10:30:56 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-502b0d23f28so6022322e87.2 for ; Sun, 17 Sep 2023 10:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694971855; x=1695576655; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=SgdmuKIbpz+gFfxV0UYSueDkWKXzE83GuFLx8gl3zAM=; b=yCyK4c/GkTmHbLZSSrgiYdI3XfWTNzcUUIArLPIKz5pXfeZasarrLovnX/hTSE3/+o T/fDxro/noU7I+XYsGEiCsvAscMjl1D4quJMjNZQoyM0q5xGx65VhYnWpd+xK6x74WEy DvTwxfC2yX4p0ZiAMJWRlobHo6KYKq7QNUopa1EVBGfxylRGN0g7tLNXMez2Rrtiy7PJ Nq4fSDs6jkwmJwN95z8F69N2/4GNMU89Kw37ATaAAsbhz8hAMZdrA3W7AYZ6rKEXc/pe GeGjda3GkRho/a446hTteK3OFhgJYKCbQRr3JkLx0I3HBt/1vfPGi8ouiss9u872eLSZ iI3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694971855; x=1695576655; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SgdmuKIbpz+gFfxV0UYSueDkWKXzE83GuFLx8gl3zAM=; b=JLZ6jdT6yw2LiueCfainW84w6lekPQin4x1kk09VDiazihXcbvrE6z83ZuJckG711c c30vk28+c9Qzo8JKTX+iaQtnnZXhwPOHjQ1vSc5cPexfLFPdPQcqd71fOzXQkcxGF8ha 80hEdT+0QHGCJ/aXFpoV4NEG/I7iAKvi7wLAsjyajULmvXSN8qT0PY/kKHtVPg+lu2Lb sFMbl9S7gDQhZOISuBjOjR5kJfGafPkj/3swsV1TYJ0MRjTW2u/d2ijsPR4qjwJ3FhUd mNukmm2lOeLGDzXOiXmarrUXxyxnoxqDBeTLpNbvgRCDAdWLjt2qmsR8dMvO/JFpg/ie XVGQ== X-Gm-Message-State: AOJu0YyBLHHfzGS4rtBIYfijYauPbeb54ctG/gL7lBcDcf8AY4amGLEO wg5unyhW/qd21Q/hyiOXhyB0Ew== X-Received: by 2002:ac2:4831:0:b0:500:9dd4:2969 with SMTP id 17-20020ac24831000000b005009dd42969mr5011212lft.59.1694971854193; Sun, 17 Sep 2023 10:30:54 -0700 (PDT) Received: from [192.168.1.77] (150-140-187-31.ftth.glasoperator.nl. [31.187.140.150]) by smtp.gmail.com with ESMTPSA id d23-20020a1709064c5700b009920e9a3a73sm5254791ejw.115.2023.09.17.10.30.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 17 Sep 2023 10:30:53 -0700 (PDT) Message-ID: <384eb2c7-5aff-ef50-2f89-81cf8dd6e724@linaro.org> Date: Sun, 17 Sep 2023 19:30:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH v5 01/15] dt-bindings: usb: tps6598x: Add tps25750 Content-Language: en-US To: Abdel Alkuor , heikki.krogerus@linux.intel.com, krzysztof.kozlowski+dt@linaro.org, bryan.odonoghue@linaro.org Cc: gregkh@linuxfoundation.org, robh+dt@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org, linux-kernel@vger.kernel.org, abdelalkuor@geotab.com References: <20230917152639.21443-1-alkuor@gmail.com> <20230917152639.21443-2-alkuor@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20230917152639.21443-2-alkuor@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 17 Sep 2023 10:31:52 -0700 (PDT) On 17/09/2023 17:26, Abdel Alkuor wrote: > From: Abdel Alkuor > > TPS25750 is USB TypeC PD controller which is a subset of TPS6598x. > > Signed-off-by: Abdel Alkuor > --- > .../devicetree/bindings/usb/ti,tps6598x.yaml | 70 +++++++++++++++++++ > 1 file changed, 70 insertions(+) > > diff --git a/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml b/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml > index 5497a60cddbc..e49bd92b5276 100644 > --- a/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml > +++ b/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml > @@ -20,6 +20,8 @@ properties: > enum: > - ti,tps6598x > - apple,cd321x > + - ti,tps25750 > + > reg: > maxItems: 1 > > @@ -32,10 +34,45 @@ properties: > items: > - const: irq > > + firmware-name: > + description: | > + Should contain the name of the default patch binary > + file located on the firmware search path which is > + used to switch the controller into APP mode. > + This is used when tps25750 doesn't have an EEPROM > + connected to it. > + maxItems: 1 > + > + ti,patch-address: > + description: | > + One of PBMs command data field is I2C slave address > + which is used when writing the patch for TPS25750. > + The slave address can be any value except 0x00, 0x20, > + 0x21, 0x22, and 0x23 Why this cannot be another entry in the reg? > + $ref: /schemas/types.yaml#/definitions/uint8 > + minimum: 1 > + maximum: 0x7e > + > required: > - compatible > - reg > > +allOf: > + - if: > + properties: > + compatible: > + contains: > + const: ti,tps25750 > + then: > + required: > + - ti,patch-address > + - connector Why? Connector should be required or not required for both devices. What is different between them? Best regards, Krzysztof