Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3024188rwo; Mon, 24 Jul 2023 05:16:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlHDw53FrMLB4wTYdfAbRPvPS7iKPPI4lFJAxzinIsQr7ACSNKEn2f34dUJjlcGamqQmlMsL X-Received: by 2002:a17:90a:c7ce:b0:262:de82:3001 with SMTP id gf14-20020a17090ac7ce00b00262de823001mr6030915pjb.37.1690201009366; Mon, 24 Jul 2023 05:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690201009; cv=none; d=google.com; s=arc-20160816; b=IpdT9YVGIT637LVHxo/7nRJXh+y0ua+5KJQhvKdRtm3T1ytydYoPuIV2MWyaY0Wbjz 8T+LTw4YyZPZB3H5PwRLFEW7v4TekSoud8/Q2sklEi7WmCmfFrWaUKKOq6xK0yGym4jW Ul2neLP7nYuojeNzTCmMP7kLpfqnexc4yULZg3dG3KCsA/nOglBU/LDpIx3h54vMbtj+ Fa8zEBFQ381sgZ7C0ydJqz18FHKHp4+1Vj2xR15N/4GIHBA7Mzk//fY7+ungI27ag+cm EAJVPUbJzF3/tsZAywHE6oL57ng0nJen24H08/rjOSYCxeO1m6P0ZpWcgXMAWJkrAYid XCXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=EWR9FyBFNt9LW4e8g7D8GqUmKvJCxRpjwj+/aBrOjNo=; fh=3UOMV/n534Rjb8XUPkx0Mm3wy3NFPcAL3pOTR8oF6EQ=; b=hRBXnkpfJuah+SPYBqVh5+mWi8WldI7xWgLUYgMYwL2CIURx2DqwJ2ebnc6Xg68ahV loeEzDTMCPWvKGzHfiolSmh6H2g0dhX+PGEd7Y/fM3oJye3KDkCHLH2Yg23zjltjnKEJ ctKgwdJjmTk2oKKP1TBKKjqdcmPM9052kO3jAhgZXOayLXCVuwMPPO7DyNOu0gEOn2TH 4u7wVGPfOAuZavSkHk+278K8OCrXxL5VfVr/Xy5kygAcuZNR8DsIZny2MHaIfMnmt/eQ u3M+MnLGKIk2vvkhPVyPIo5tYHpBp78IXbAKw68hgSIe8DMxdlKUL40NpPqUs5RbHVro yDgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fYQ8aspy; 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 rm10-20020a17090b3eca00b0025be6419478si9667580pjb.92.2023.07.24.05.16.36; Mon, 24 Jul 2023 05:16:49 -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=fYQ8aspy; 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 S230034AbjGXLvz (ORCPT + 99 others); Mon, 24 Jul 2023 07:51:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjGXLvx (ORCPT ); Mon, 24 Jul 2023 07:51:53 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3950310CE; Mon, 24 Jul 2023 04:51:45 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36OBpcYN076159; Mon, 24 Jul 2023 06:51:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690199498; bh=EWR9FyBFNt9LW4e8g7D8GqUmKvJCxRpjwj+/aBrOjNo=; h=From:To:CC:Subject:Date; b=fYQ8aspyAKWsOREu3afqqooXO0ODITZjBByM+gJ2XhHbtZ0oymLJ2BvMUtCMNSK3T gItYYi+zsRopQiDGtTDWY/8zr8hJSXCIIB1fRXPJbTKWuuKP34Mv/eeiFbDDV5GIaL Li5SOJ+Xdev0zpefwV+qVLAqpJsuXa2SFzsl8QbQ= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36OBpcr7046176 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 24 Jul 2023 06:51:38 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 24 Jul 2023 06:51:37 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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 via Frontend Transport; Mon, 24 Jul 2023 06:51:37 -0500 Received: from uda0500640.dal.design.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36OBpY6m003529; Mon, 24 Jul 2023 06:51:34 -0500 From: Ravi Gunasekaran To: , , , , , CC: , , , , Subject: [PATCH] arm64: dts: ti: k3-am62a7-sk: Enable dual role support for Type-C port Date: Mon, 24 Jul 2023 17:21:33 +0530 Message-ID: <20230724115133.2226-1-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain 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,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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 { + compatible = "ti,tps6598x"; + reg = <0x3f>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C"; + self-powered; + data-role = "dual"; + power-role = "sink"; + port { + usb_con_hs: endpoint { + remote-endpoint = <&usb0_hs_ep>; + }; + }; + }; + }; }; &main_i2c1 { @@ -290,6 +308,21 @@ status = "reserved"; }; +&usbss0 { + status = "okay"; + ti,vbus-divider; +}; + +&usb0 { + usb-role-switch; + + port { + usb0_hs_ep: endpoint { + remote-endpoint = <&usb_con_hs>; + }; + }; +}; + &usbss1 { status = "okay"; }; base-commit: 4d2c646ac07cf4a35ef1c4a935a1a4fd6c6b1a36 -- 2.17.1