Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9884520rwl; Wed, 11 Jan 2023 11:18:31 -0800 (PST) X-Google-Smtp-Source: AMrXdXv9glZgj+wQkXpMwwSfELfQYEVu53jlTHtaOgY6dZvm0P63hIDmCorfxoYuEcXzZ61aPE4C X-Received: by 2002:a50:ee8c:0:b0:48e:b020:6c12 with SMTP id f12-20020a50ee8c000000b0048eb0206c12mr29423068edr.21.1673464711513; Wed, 11 Jan 2023 11:18:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673464711; cv=none; d=google.com; s=arc-20160816; b=ipsCKKOExEFr6ZxlP8KgYmQDDiYAAabH0HyQJJ+QlktfeOXSPSsIX00bpcO+zICWH6 cwnBsOKRPEN2vOcIcDYwC9eua3ts/c7wlVHUW8/ihTqZN8uDBarMs6WuNPP1JVoLlwKA /FREL6HszRWB3uTN6dYg9CLDSH317vvk+2YSHBBBPSA/vz4g3WxQSXF6ihV7dFopV5i5 1x0OPiJIEXD5Fr8OY8XJCQZawm+BzHS77wxA5aBcoyfkSn/GdIu8wgYX2fqEYxCJXV9C QEVgjOoFUPO5DX16/bNl93x5zLVbgR8gvcCf656wx7Fg2pouzWDZbROCwS2a+91fVFRT +wJA== 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=Zs3Ynwf5Vr90rNQZhzl2CyOc9tGJkvAICxtJFLF7zdk=; b=Yr/D885o2rBmbPyaMgXWOeBEUvGFvdikHbTO4P5xnnPUO6u1DxY6L7cDwgkFM45VSB IO4YSX3o4NPrrOrMVgeWoHDWJUWyTPv7nK9NkSrHhViSZ46BLBj7juWda1YiudHe+aNn GmrWe3IDpGWB/IGWtXN5KbvO7wNvUqD3MKuERZ5Cc4YHi6l18g6f7wcfMttiVk3spEB+ PKw57sLZWExyRyIK38Y2xAEOtQsBZKGzzfxOux9SBIGaB8xEXwhcPFnnM0Si+sC/r4xG Bb8x3ueFcGEl+yWyZ2Q6eeE+KC5fdMTgIzMV4htJywIa1l50FOT28Jg3dOUo3IRyAnQH noGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xjuWjHbt; 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 t23-20020a056402241700b004993bc3d7bdsi11042488eda.84.2023.01.11.11.18.18; Wed, 11 Jan 2023 11:18:31 -0800 (PST) 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=xjuWjHbt; 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 S231132AbjAKSTV (ORCPT + 53 others); Wed, 11 Jan 2023 13:19:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231511AbjAKSTR (ORCPT ); Wed, 11 Jan 2023 13:19:17 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 475E11EEC2; Wed, 11 Jan 2023 10:19:15 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 30BIJ2ri114692; Wed, 11 Jan 2023 12:19:02 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1673461142; bh=Zs3Ynwf5Vr90rNQZhzl2CyOc9tGJkvAICxtJFLF7zdk=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=xjuWjHbtaoj2jtSb2MHQ3QbqkzgJwYb9tD36ZHKx3HOR0oPQKKsS3TOszG9QfNLRN Fe83RckGfXHgnc5u7hB2YnMw6/J5ZwtWtuQevvHsfSk5II3VjNMvM66TTy1gcVJoxC 6KzMv961p2y4xslv3jB80GRHeBXI+LnilEt3iN0I= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 30BIJ2As005581 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 11 Jan 2023 12:19:02 -0600 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.16; Wed, 11 Jan 2023 12:19:02 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.16 via Frontend Transport; Wed, 11 Jan 2023 12:19:02 -0600 Received: from [10.250.233.151] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 30BIIvdW058943; Wed, 11 Jan 2023 12:18:58 -0600 Message-ID: <9d6841f3-e3d5-a875-8057-1727f7ccaf1e@ti.com> Date: Wed, 11 Jan 2023 23:48:57 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v3 3/3] arm64: dts: ti: k3-am625-sk: Add support for USB Content-Language: en-US To: Sjoerd Simons , Nishanth Menon CC: , Nitin Yadav , , Aswath Govindraju , Krzysztof Kozlowski , Rob Herring , Tero Kristo , , , References: <20230111132348.553061-1-sjoerd@collabora.com> <20230111132348.553061-4-sjoerd@collabora.com> From: "Raghavendra, Vignesh" In-Reply-To: <20230111132348.553061-4-sjoerd@collabora.com> 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.4 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 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 Hi Sjoerd, Couple of comments which I failed to notice on v2, sorry On 1/11/2023 6:53 PM, Sjoerd Simons wrote: > From: Aswath Govindraju > > AM62 SoC has two instances of USB and they are brought on to the board > in the following way, > > -> USB0 instance > - This is brought out to a USB TypeC connector on board through TPS6598 PD > controller. The PD controller should decide the role based on CC pin in > the connector. Unfortunately the irq line for the TPS isn't hooked up > which is a mode not yet support by the driver (some patches were > submitted earlier this year[0]). So for now the PD controller is left > out and periphal mode chosen. s/periphal/peripheral > > -> USB1 instance > - This is brought out to a USB TypeA connector on board. > > Therefore, add the required device tree support for the above in the board > dts file. > > 0: https://lore.kernel.org/lkml/f714ee55-ef47-317d-81b9-57020dda064b@ti.com/T/ > > Signed-off-by: Aswath Govindraju > Signed-off-by: Vignesh Raghavendra > [merge from vendor bsp, drop TPS6598 support, reword commit message] > Signed-off-by: Sjoerd Simons > Tested-by: Martyn Welch > > --- > > Changes in v3: > - Rebased against current ti-next aka 6.2-rc1 > - Add Martyn's tested-by > > Changes in v2: > - Rebase against linux-next 20221220 > > arch/arm64/boot/dts/ti/k3-am625-sk.dts | 50 ++++++++++++++++++++++++++ > 1 file changed, 50 insertions(+) > [...] > + > +&ecap0 { > + status = "disabled"; > +}; > + > +&ecap1 { > + status = "disabled"; > +}; > + > +&ecap2 { > + status = "disabled"; > +}; > + > +&main_mcan0 { > + status = "disabled"; > +}; > + > +&epwm0 { > + status = "disabled"; > +}; > + > +&epwm1 { > + status = "disabled"; > +}; > + > +&epwm2 { > + status = "disabled"; > +}; > + Unlike downstream vendor kernel, these nodes are "disabled" by default in k3-am62-main.dtsi. So, these can be dropped. > +&usbss0 { > + ti,vbus-divider; > +}; > + > +&usb0 { > + dr_mode = "peripheral"; > +}; > + > +&usb1 { > + dr_mode = "host"; > + pinctrl-names = "default"; > + pinctrl-0 = <&main_usb1_pins_default>; > +}; Regards Vignesh