Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp497598rwl; Sat, 25 Mar 2023 06:07:05 -0700 (PDT) X-Google-Smtp-Source: AKy350bLM8AYJ4t/ImOj8w2YAqSRhD8y3y6/aIWI83+x+ZPgtnojAWqbRrI+2JtrHGpf96+pM7HI X-Received: by 2002:aa7:9415:0:b0:627:effd:71b7 with SMTP id x21-20020aa79415000000b00627effd71b7mr5553661pfo.33.1679749625311; Sat, 25 Mar 2023 06:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679749624; cv=none; d=google.com; s=arc-20160816; b=h+WOsB5FjvtBvhdCYsme6bk23NkFLLw/JQ3ApCwFJgXQ7f/SYEZGYqogfOoUNrEz/X QDS8WoLyFaR5ntqx+eh+TtexEyODoYP/8zT2VGRw2t2c7bP17SY+j3ThY75msOzRnj6A LzjhQ75PnjZn9YId4LD60azUSUiwbSKFzi7bTuzrsTz3kY3jmejMQC73mopeaT/OA2gN sRD4CYwz95aKpsVq4Hm6yDUb6njhHBn628VebvT4zwYHihgacfINnycj2DeBIGiFQ7ob 6jnOlD1+atrwLvm9cN/CSZVsFhOCVS3RvvhYFD2I4iiQHK7dI69BHW6ICrPLxnxpVvVt 2lvg== 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=a+B0Le+U8LuIxZ3g+LSflcHFxbf4NBsapSwr+tk9jEM=; b=bI7C6dTnojGkMOSBoJkYG7x7FX9VDiCO/NgWekGu5iQGy7am5hXAxtDGgresCNruQa 7R2bkoib6DWp+SOm5TKmiumz+WDxFYRgAHYLzw9pBEGNuNaExAWgZzMdpM2XqjoB1x7w 0vZ6rIJ2yNR91Io9bx30ThfTojiNphIPkE2oIV4j9+xLK4eU7tNqhq3MVplkcp2vRxBM VEs8Chk6EYPP7WZosnzAZwMZyP/GBInF+OtamT++iSCPOPivWgECMm59/cXHB4TDQji9 F6pkj3UGL+AJE5++T9ua4CU9g5W1bTi5RKkBn0FnwtmHKcyuCYWG2G9PKtQNHcVjjADF XUlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lODoXwMz; 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 v13-20020a63464d000000b00503355255cdsi17015586pgk.488.2023.03.25.06.06.27; Sat, 25 Mar 2023 06:06: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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lODoXwMz; 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 S230118AbjCYND6 (ORCPT + 99 others); Sat, 25 Mar 2023 09:03:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjCYND4 (ORCPT ); Sat, 25 Mar 2023 09:03:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F18294231; Sat, 25 Mar 2023 06:03:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8CB8860C4F; Sat, 25 Mar 2023 13:03:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 021D7C433EF; Sat, 25 Mar 2023 13:03:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679749433; bh=SdU9kHEoxW2j7sZXsy+1t2VVON6O+/GheN3KRNLgs1E=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=lODoXwMzbTBrWzv4nDvHf9nn7KL/E7kjb22atsRTMAfthkBVqZOoHTNKCNBxvZGkY fNjc8eP5VZ8JDHfLEyYaReVfSYoJx9a4Spl4Ndw5K19r7uyZ0g+/njV0/T4vpymnL+ Oq1uKEdQwEJi6UHPKTj58iCdB5sn9RiUNiUWSZlxFsf0JXIZJEWrAovXN95Hv7EZnd BzEyvLugFp6TihFwMV4fYlQbv1/npZYKtaDhVN6a3JdWLejC+9fKplxXl2IWXEFo1U Dtzy8gxUgrcqikmDA9Xq16aTjbXRAG25sJ+xU3hnDmJY/zwkv5GC5e2wjgUv7Hapzr n3A/hHaCfTSlQ== Message-ID: <88c7d438-28ad-cc17-6abe-d8e1853260e9@kernel.org> Date: Sat, 25 Mar 2023 15:03:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 2/2] arm64: dts: ti: k3-am625-sk: Enable Type-C port for USB0 Content-Language: en-US To: Nishanth Menon Cc: vigneshr@ti.com, kristo@kernel.org, srk@ti.com, r-gunasekaran@ti.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20230324133150.43224-1-rogerq@kernel.org> <20230324133150.43224-3-rogerq@kernel.org> <20230324181542.luvmpvjx2uclic52@reemerge> From: Roger Quadros In-Reply-To: <20230324181542.luvmpvjx2uclic52@reemerge> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On 24/03/2023 20:15, Nishanth Menon wrote: > On 15:31-20230324, Roger Quadros wrote: >> USB0 is a Type-C port with dual data role and power sink. >> >> Signed-off-by: Roger Quadros >> --- >> arch/arm64/boot/dts/ti/k3-am625-sk.dts | 40 ++++++++++++++++++++++++-- >> 1 file changed, 38 insertions(+), 2 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk.dts b/arch/arm64/boot/dts/ti/k3-am625-sk.dts >> index be027fad5f61..c80b12943881 100644 >> --- a/arch/arm64/boot/dts/ti/k3-am625-sk.dts >> +++ b/arch/arm64/boot/dts/ti/k3-am625-sk.dts >> @@ -315,6 +315,33 @@ &main_i2c0 { >> pinctrl-names = "default"; >> pinctrl-0 = <&main_i2c0_pins_default>; >> clock-frequency = <400000>; >> + >> + tps6598x@3f { >> + compatible = "ti,tps6598x"; >> + reg = <0x3f>; >> + interrupt-parent = <&exp1>; >> + interrupts = <17 IRQ_TYPE_EDGE_FALLING>; >> + interrupt-names = "irq"; >> + >> + connector { >> + compatible = "usb-c-connector"; >> + label = "USB-C"; >> + self-powered; >> + data-role = "dual"; >> + power-role = "sink"; >> + ports { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + port@0 { >> + reg = <0>; >> + usb_con_hs: endpoint { >> + remote-endpoint = <&usb0_hs_ep>; >> + }; >> + }; >> + }; >> + }; >> + }; >> }; >> >> &main_i2c1 { >> @@ -336,7 +363,7 @@ exp1: gpio@22 { >> "UART1_FET_BUF_EN", "WL_LT_EN", >> "GPIO_HDMI_RSTn", "CSI_GPIO1", >> "CSI_GPIO2", "PRU_3V3_EN", >> - "HDMI_INTn", "TEST_GPIO2", >> + "HDMI_INTn", "PD_I2C_IRQ", >> "MCASP1_FET_EN", "MCASP1_BUF_BT_EN", >> "MCASP1_FET_SEL", "UART1_FET_SEL", >> "TSINT#", "IO_EXP_TEST_LED"; >> @@ -486,7 +513,16 @@ &usbss1 { >> }; >> >> &usb0 { >> - dr_mode = "peripheral"; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + usb-role-switch; >> + >> + port@0 { >> + reg = <0>; >> + usb0_hs_ep: endpoint { >> + remote-endpoint = <&usb_con_hs>; >> + }; >> + }; >> }; >> >> &usb1 { >> -- >> 2.34.1 >> > > Please see thread: > https://lore.kernel.org/all/20230321-am62-lp-sk-v2-0-0a56e1694804@ti.com/ > you might need to rebase off that. > OK. cheers, -roger