Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5864384rdb; Sun, 17 Sep 2023 16:33:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH5tGMj/qN2tCufFShLH3ydDfipIfEpRDGMLLzEAGkhkXw9X5qcswYG4d9i2akugRy9nJr6 X-Received: by 2002:a05:6870:610c:b0:1bb:9846:94ed with SMTP id s12-20020a056870610c00b001bb984694edmr9796707oae.3.1694993636599; Sun, 17 Sep 2023 16:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694993636; cv=none; d=google.com; s=arc-20160816; b=qa9pFwovZs+QiUC7mkWI6a7nPRtDmkroHPIZ/IOrrKtgighjNPz/gmYHPgjE0VdpX7 ZHlmDbakySaElRZ39pSDN+KU/1GPT0FuYgnZVFhZqcau5PKg3d11C2J78OhTJI8vysIp W1mmjQTm8Il8+iZ9BckOyVpFNcKOHhJru9xUyhGQ6TLpk7BXDFauxatAOq1dGbOrG/iu 9ptQvryYyBpi/o1h8oUr3EGltWyyxGFfVbEKHTkXmAbMh7iMnEJfkWKEnFPGdK6tWWyp 0Qd9mZQIVq6vOL3gBNqr7y+AmLKDXQG9LVoqhfR7Qb07GwIEzfm+YDbbLMbB7ZpT/sTx DqIQ== 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:dkim-signature; bh=65K8mCgmEtlpMY3z9VOkOvaOrG/VTVZNxKLA9kqTNW0=; fh=OjbY+L8oumEwHKGgFNBRpOogHh3SCx9xvBmL7nG6rhY=; b=aAZS6iC+Snw5PFrfAA/sM0YSm0/i/tCipdPVjU+szyOYN9/oFfve+qwxBGA1fjVuT3 78sEiyaOpMkiIPSHpCz/PObhoc7sC9JUZw+uTQbH7TbkNjnN8enmneZxa0S3iqqHsvk3 75LyCGAyD/PeUnm3T2JppWpw3pOMct1FI5SWfFVhUEH7Bky8tbgcjFLPmNZeWA13QdkZ fpEdPQBFAbkrmoydc1FBUMJc5aQwGIphdPZWa79xKkiP0/nXSH0HFe9VMQG7Ml6sTFW0 z2qTwWvgo1I+vtKbgxlxnHHlRHUwQAy70Jg+PM7MIKjJO7UIfY9J59tJSRHqo2/w9TSj xgZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mImcQPSe; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id l4-20020a17090a598400b00276785f7ee3si102412pji.49.2023.09.17.16.33.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 16:33:56 -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=@gmail.com header.s=20230601 header.b=mImcQPSe; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 322F8802091B; Sun, 17 Sep 2023 12:31:40 -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 S239626AbjIQTbK (ORCPT + 99 others); Sun, 17 Sep 2023 15:31:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239680AbjIQTaz (ORCPT ); Sun, 17 Sep 2023 15:30:55 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E959211D; Sun, 17 Sep 2023 12:30:48 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40476ce8b2fso31500015e9.3; Sun, 17 Sep 2023 12:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694979047; x=1695583847; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=65K8mCgmEtlpMY3z9VOkOvaOrG/VTVZNxKLA9kqTNW0=; b=mImcQPSeeGgaKIzSrGJ7A2NOGpggoEkSIIdTE9qFwxOv/A1XMdJygDW8jWdbOLkNyq 52gfhulGuJHDTaaNvvoCuH9qxGNu1Ye5CcxwQPuFENwwTPazXuzeiFcdIpdL3RD0e5vA uGs54A/Jc29UEAdRev4xehPofCSmWkvO++Vrqrp1ZG7IVNFFIS1095TbMKBwbMzFQFAk LDSDXlIpXwCS6rYWr8IErlWImgOYZq3JDdZ0HAE18CDtmSodHlD4i1dEQ/o2QGFQdGek 0mA29KzdKwedHVk2hw8O634ZS1aFzVzPa/Ouyxc62Z0/LaxR9nqxmctkGBy3TbV2bZAT l5VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694979047; x=1695583847; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=65K8mCgmEtlpMY3z9VOkOvaOrG/VTVZNxKLA9kqTNW0=; b=W5UwRoNUBqgQ/jQjWMA88wzaSimAOTFXbBeQ4pujO1V6gH1TDXnZ4a0bqvczIOSXi+ GdkkPMPaedGvPtJGlXs3VIsWBLQzQ02+ZQ/pBwZ2aXi0H/nx1GziJCF7Hx5HwSGNyx2j CawkInDgh9CuUIy2V5cRpB9Zak4hkRS/0r1r+Pa461b5dJzDEJmOHjEZRPlm6CXWeoJQ SIU5DLG9cWyOD1LzMM7gTcx9hPv1wh48T7Oav6OGq7tHsxcFQSd4TaJ+zbVFNWLaMI3n dPaRnTQ4at5vxkSCVQLlPp0EmTxIql+U2Ld9vtQa3JhOwxk0Cc4ZGjh81GCZAaeaOlbQ Y8hw== X-Gm-Message-State: AOJu0Yw+uJvDTnUY9eKmZEW+4/kXNgr3vDN5k/3T1wgkD8/HxN+hOWGf B0o/5BcIxeDXSpfrRoJPkIY= X-Received: by 2002:a05:6000:1744:b0:320:baa:eba1 with SMTP id m4-20020a056000174400b003200baaeba1mr2027666wrf.5.1694979047077; Sun, 17 Sep 2023 12:30:47 -0700 (PDT) Received: from primary ([5.45.134.53]) by smtp.gmail.com with ESMTPSA id d6-20020adfef86000000b0031f82743e25sm10412350wro.67.2023.09.17.12.30.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 12:30:46 -0700 (PDT) Date: Sun, 17 Sep 2023 15:30:41 -0400 From: Abdel Alkuo To: Krzysztof Kozlowski 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, heikki.krogerus@linux.intel.com, bryan.odonoghue@linaro.org Subject: Re: [PATCH v5 01/15] dt-bindings: usb: tps6598x: Add tps25750 Message-ID: References: <20230917152639.21443-1-alkuor@gmail.com> <20230917152639.21443-2-alkuor@gmail.com> <384eb2c7-5aff-ef50-2f89-81cf8dd6e724@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <384eb2c7-5aff-ef50-2f89-81cf8dd6e724@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 12:31:40 -0700 (PDT) On Sun, Sep 17, 2023 at 07:30:52PM +0200, Krzysztof Kozlowski wrote: > 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? > This address is different than the physical address of PD controller. The patch address will be used instead of PD controller address when writing the patch. I thought reg proprity is only for a device physical address, should I add another entry in the reg property in this case? > > + $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? > The data-role for tps6598x can be extracted from system config register which it doesn't exist in tps25750, so the only way to extract this information is by using data-role property from the Connector for tps25750, hence Connector and data-role are set as required for tps25750. > > Best regards, > Krzysztof > Thanks, Abdel