Received: by 2002:a05:6358:c22:b0:b5:95e5:7f42 with SMTP id f34csp13313rwj; Wed, 7 Sep 2022 18:36:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR6/ovijEoeajCuo+DvkESDlsDqOIjriBrTmCnUhFKr8l6LHGxRT2PZMqJCY+P9/xdL/lDc0 X-Received: by 2002:a17:906:8a45:b0:770:26a9:a99 with SMTP id gx5-20020a1709068a4500b0077026a90a99mr4204559ejc.47.1662601010869; Wed, 07 Sep 2022 18:36:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662601010; cv=none; d=google.com; s=arc-20160816; b=D91NPFG6e4h7MLqexWGCxx3s0FKzI7FrzZrcVnkqlIj8Po0GwUXYa3hs87aEAiHinx lRInPA0tztfiiQ6fjpAdtyxn1FeFmZXsDIQl6P/ZTtgb8+oZ3ORo84n8uXhsUW7LSFk3 XwyC3FTRD9yBcr7NrTQmiA/K6Y8FBia7JChzLFY16RureqYTHBRoKkpgbQUdzJZHi9KV 7HWgivCyMQd2xG+WJOsUqg6RHuIkMuYbyyl7S4IUXCGDewwLMiz2R+X2n5Q7Wpn8kznt 96KBKvKvPqJ+ox7RuZpiIhFp+dQ4ouV7A884ht8u06F1YTAmhxxulynzlCSRXUCQF7sg 6vjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WdZMYRMFuOQALSlSztOA/OyomML86SOrcOuOYqj635g=; b=RNuPjN6QBjTGShlQHIPRo1f1UrdVJPYi0Xpl6H67ANj1EFI4kcfxI4W1OjPO9Gvf4v WoziXwE7/HfZepb6uH2PxVfwQlP5NfwT0/BELAClYtDB80FYd2C6ALnYvSEyY52mrzAR wLApTNq6ZoxLYOR2semPhypcaj5CB1kaWHyzrLGDClHxjStbz1aFl2E3iO0sBihCZNWg 6EMjZdHlYfewUd3bbQZ7n3mJ1DieeqEuegv4BfKVquv+Ro+bJZj1wXUhGhk7i/4GuSAx DxeWLhTEv7L49rgyh++iKaRKNlxkvV07ARNEkvpB6FFWnx2w2pVWGahHteBMw6Gf9usH IMCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lhzC6s6t; 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 s20-20020a056402037400b0044df6d4f36dsi9420581edw.325.2022.09.07.18.36.26; Wed, 07 Sep 2022 18:36:50 -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=lhzC6s6t; 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 S229630AbiIHBVf (ORCPT + 99 others); Wed, 7 Sep 2022 21:21:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230154AbiIHBV3 (ORCPT ); Wed, 7 Sep 2022 21:21:29 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 120E1BADAB; Wed, 7 Sep 2022 18:21:12 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2881L9vn103460; Wed, 7 Sep 2022 20:21:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1662600069; bh=WdZMYRMFuOQALSlSztOA/OyomML86SOrcOuOYqj635g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=lhzC6s6tP5sWmOCpJdeIabUQIgGI7MDNfSIz2f6WJYdiM7zWZlu6Kl/5kHx0bsuM5 K/kmx8gRtpS9ONqf66bOnDD5yBaGQTZj8YR4z8qNNuKG6Z6ouvqbQqHNCJfMQQFmto P3+cbypLmQcQHjcGYiBrC3Ejg20HTCbME8QiuAh8= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2881L9af029010 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 7 Sep 2022 20:21:09 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Wed, 7 Sep 2022 20:21:09 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Wed, 7 Sep 2022 20:21:09 -0500 Received: from ubuntu.ent.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2881KXFg009016; Wed, 7 Sep 2022 20:21:03 -0500 From: Matt Ranostay To: , CC: , , , Matt Ranostay Subject: [PATCH v2 5/6] arm64: dts: ti: k3-j721s2-common-proc-board: Add USB support Date: Wed, 7 Sep 2022 18:20:30 -0700 Message-ID: <20220908012031.3354-5-mranostay@ti.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220908012031.3354-1-mranostay@ti.com> References: <20220908012031.3354-1-mranostay@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_NONE,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 From: Aswath Govindraju The board uses lane 1 of SERDES for USB. Set the mux accordingly. The USB controller and EVM supports super-speed for USB0 on the Type-C port. However, the SERDES has a limitation that upto 2 protocols can be used at a time. The SERDES is wired for PCIe, eDP and USB super-speed. It has been chosen to use PCIe and eDP as default. So restrict USB0 to high-speed mode. Cc: Vignesh Raghavendra Cc: Nishanth Menon Acked-by: Matt Ranostay Signed-off-by: Aswath Govindraju --- .../dts/ti/k3-j721s2-common-proc-board.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts index 791f235bd95f..aa75dc541842 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts @@ -147,6 +147,12 @@ vdd_sd_dv_pins_default: vdd-sd-dv-pins-default { J721S2_IOPAD(0x020, PIN_INPUT, 7) /* (AA23) MCAN15_RX.GPIO0_8 */ >; }; + + main_usbss0_pins_default: main-usbss0-pins-default { + pinctrl-single,pins = < + J721S2_IOPAD(0x0ec, PIN_OUTPUT, 6) /* (AG25) TIMER_IO1.USB0_DRVVBUS */ + >; + }; }; &wkup_pmx0 { @@ -372,6 +378,22 @@ serdes0_pcie_link: phy@0 { }; }; +&usb_serdes_mux { + idle-states = <1>; /* USB0 to SERDES lane 1 */ +}; + +&usbss0 { + pinctrl-0 = <&main_usbss0_pins_default>; + pinctrl-names = "default"; + ti,vbus-divider; + ti,usb2-only; +}; + +&usb0 { + dr_mode = "otg"; + maximum-speed = "high-speed"; +}; + &mcu_mcan0 { pinctrl-names = "default"; pinctrl-0 = <&mcu_mcan0_pins_default>; -- 2.30.2