Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4181029rwo; Tue, 25 Jul 2023 01:45:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlF6244vaorTEUrZ3yIWwYWtGqkTP/A1oaehxEZkJ+yGjYF4fmNWeJkl/qJOu/h+/APcbIUr X-Received: by 2002:a17:907:a06b:b0:993:22a2:8158 with SMTP id ia11-20020a170907a06b00b0099322a28158mr12662277ejc.61.1690274754251; Tue, 25 Jul 2023 01:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690274754; cv=none; d=google.com; s=arc-20160816; b=q44kCA1WkqNIK1TzlmXhH2tw2gP4EYvavF9DTsueTlBc2gV2aSahxhXm47kaZ1NYpW w+MirPuXyWQfO23qHcsfwOscTe2fmQ6SRbrouc+0FTNaVv+4olVSUdP9wCv63MI/yYfW R5VYTiQopnJG4ohxBb2ak3w5e/KiYwwOs9dVAtkHlfp4GEPFFwGC+M+quxhCJPmnKqai O9dkZpeFaMDC+3X3++ZM7UEaJdxCo3jlzIcpgBb8MIWT/XnyGAphJL73mHUAoPRfUTWo Xb89QPlUbP23YahkoETMCmfX+n3g60tHNAV/YAt0w2R+yD5SFSP7BdgQH8OJfBsVO5lE 727g== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=csTp1gSAJevM1r7adANvI2VZ+uKXhEKluf8kdGBt1KE=; fh=QCO9YuB0//iqxH5sr9p1ksMVdySqBk5WTKkFxfqKgD8=; b=It48+nYAKq2jq8RRQN2KzqS6KmTfj4ti46z5i+8wDKuanqHsLg/IViWSbbGYc0052A vXMCwC0itwXAF3YPItJHEpWrswW98XmRtXmGVYaJfh1ZluwWugDZT/8Q3P8jKUQosmKW q1lw0Pioicp+Qksmu/MyMB0diHOnQ9EXAuiraMOIvsF8mPAIjJcDHyYp38vRBSOuWznb WflQDdDmyriird1DKV25lCBH7zDofxwqZP0if2EeA+hgg0hOoHwCiyuAXE1YoZCJgGmQ v8LyBx0S8EVPk8n79SSs6c9aGax3fI+juaUJgXplHGsMQepBeT5h3K28X4IXgsgyQI5Q Rm4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UVIUMEnz; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m11-20020a170906160b00b00988c5329e26si7646415ejd.574.2023.07.25.01.45.29; Tue, 25 Jul 2023 01:45:54 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UVIUMEnz; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231936AbjGYIXh (ORCPT + 99 others); Tue, 25 Jul 2023 04:23:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjGYIXg (ORCPT ); Tue, 25 Jul 2023 04:23:36 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A43D10C3; Tue, 25 Jul 2023 01:23:33 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36P8NKH4063046; Tue, 25 Jul 2023 03:23:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690273400; bh=csTp1gSAJevM1r7adANvI2VZ+uKXhEKluf8kdGBt1KE=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=UVIUMEnzqiHpMoB/Y2pN6E95XOAVax/ixxbCGMsjpRSnysWkbGAy3hBifvOtmMRzD GG2E/qkOZAm7CPuL71G/5JfXc7RHnbLkLG+/OJRSoE7iLdhEmAw6ZNd+wXIs6lqhug mSuraQGyy88SAJHsn8f9NpxEXNTphrqsDyQL47jw= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36P8NKx1114351 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Jul 2023 03:23:20 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 25 Jul 2023 03:23:20 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 25 Jul 2023 03:23:20 -0500 Received: from [10.249.130.150] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36P8NFF5129185; Tue, 25 Jul 2023 03:23:16 -0500 Message-ID: Date: Tue, 25 Jul 2023 13:53:14 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] arm64: dts: ti: k3-am62a7-sk: Enable dual role support for Type-C port To: Roger Quadros , Krzysztof Kozlowski , , , , , , , "gregkh@linuxfoundation.org" , "heikki.krogerus@linux.intel.com" CC: , , , "linux-usb@vger.kernel.org" References: <20230724115133.2226-1-r-gunasekaran@ti.com> <1fed3f09-75e4-bb44-71d7-f7319f1b0c3c@ti.com> Content-Language: en-US From: Ravi Gunasekaran In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On 7/25/2023 1:13 PM, Roger Quadros wrote: > > On 25/07/2023 07:19, Ravi Gunasekaran wrote: >> >> On 7/24/2023 7:27 PM, Krzysztof Kozlowski wrote: >>> On 24/07/2023 13:51, Ravi Gunasekaran wrote: >>>> USB0 is interfaced with a Type-C DRP connector and is managed via a >>>> USB PD controller. Add support for the Type-C port with dual data >>>> and power sink role. >>>> >>>> Signed-off-by: Ravi Gunasekaran >>>> --- >>>> arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 33 +++++++++++++++++++++++++ >>>> 1 file changed, 33 insertions(+) >>>> >>>> diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts >>>> index d2cca6182738..b478b794de00 100644 >>>> --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts >>>> +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts >>>> @@ -226,6 +226,24 @@ >>>> pinctrl-names = "default"; >>>> pinctrl-0 = <&main_i2c0_pins_default>; >>>> clock-frequency = <400000>; >>>> + >>>> + typec_pd0:tps6598x@3f { >> Thanks for reviewing the patch. >> >>> Missing space after: >> I will fix this in v2. >> >>> Node names should be generic. See also an explanation and list of >>> examples (not exhaustive) in DT specification: >>> https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation >> Thanks for pointing to the section. I checked it and also few other node names >> in the existing DTs. >> TPS6598 is a USB Type C and Power Delivery Controller. So does a node name >> "type-c-pd-controller" sound fine? > Type-c is irrelevant in node name. > The name needs to indicate it has something to do with USB, Power Control and Role control. > > e.g. > usb-power-controller > or > usb-role-controller > ? I will use the node name "usb-power-controller'. > >>> Best regards, >>> Krzysztof >>> >> Regards, >> Ravi