Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4767784rwb; Tue, 20 Sep 2022 20:36:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4b6ZnBzDTxibV2AGCef5I2bm4HisSfh+KvJd8Df+nxlMTHl9B8cRCGn5I4mLRYM+XCClF4 X-Received: by 2002:a17:907:802:b0:781:8017:b2df with SMTP id wv2-20020a170907080200b007818017b2dfmr7817123ejb.606.1663731384630; Tue, 20 Sep 2022 20:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663731384; cv=none; d=google.com; s=arc-20160816; b=PvT9hcjIT4fi90PaRSkV4rjlPJLKtq2JV7onMhBikGi21HxjU5CPv5h/SIelTf7yMm +an+UrhxMNh1/B54xK8oSJvE7F/iyHjfUOe1ega84qC61vuZbCw2LNB+Z1y6IfzO3aPg 8UVZM4CISNGsbEfVRons/kpqCxDQV4TqSGLhYKpC5QP7fjZntTdHfU10OmYsHBeArlsY 8SlSqDxilJKYxUh8sAESsbCOkeaMtt583u+6q3pR4RHVHGGVfveoYKvRuyS44wjkxljv +gbR+U5tnx86GpcDOj6L9Z4LrUced8yphXyhtaoHUh9CrwcbkuHLN7k3bNTIy0VEirWd /NtA== 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=I+nGWrcAi/D1mbpmFU+/PWqTsF+4nqx+/Nw37+CSyDo=; b=e/Y/S3faQtP7UUTGzoUIjiB1rsXyBunzFncLv74TClQis3EnS4XN/OFujpS2kA8rtz nQRfxy6riftILT/0WjahSH2luyu5YUFYOAFwjKULy9IDy2dOWkWtlltMRdysQH5vDAzu dx8XkmQQ2hKIhTQ1ja4KZ9Q5CZcqiu7sW0K+0oTQ4y2zhIMRlx77fUoGyeCHw8IBZ56F FWqXrEDIMeKv7t32e5/3OOnbspQQ1PucN/EnlENYxNK4zVD1187htzTrxMlFp58/eJEC LnCDTnlHx80OFxD5caazgKxk/ZUsTqDtAQ8D7pONr/TZNEw8Mhqp3tFYa2of1uPoDV30 cdAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=E8wRtln5; 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 f6-20020a056402150600b0044f19c2e534si1346327edw.487.2022.09.20.20.35.57; Tue, 20 Sep 2022 20:36:24 -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=E8wRtln5; 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 S230355AbiIUDO6 (ORCPT + 99 others); Tue, 20 Sep 2022 23:14:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231207AbiIUDN4 (ORCPT ); Tue, 20 Sep 2022 23:13:56 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BBC57E323; Tue, 20 Sep 2022 20:13:54 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 28L3Dm5a049745; Tue, 20 Sep 2022 22:13:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1663730028; bh=I+nGWrcAi/D1mbpmFU+/PWqTsF+4nqx+/Nw37+CSyDo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=E8wRtln5wOufXmq7KOKj9Vmu6PhMCl7eWsq04Jkw5e7Q1ejlLLrwKy4iD5d7BAMH5 SP+EMdB77elW1tZZ4onpzii21YFNrvXWyiSWClIsn3KiRjRyoJrwFhEa/LfmwQ0nf2 eLtwMYNADyWXHAo4mQQYEQ2IIgtGKcY0DD3SUBm0= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 28L3DmaI015710 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Sep 2022 22:13:48 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Tue, 20 Sep 2022 22:13:47 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE114.ent.ti.com (10.64.6.35) 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; Tue, 20 Sep 2022 22:13:48 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 28L3DjDU011064; Tue, 20 Sep 2022 22:13:47 -0500 From: Matt Ranostay To: , , CC: , , , Matt Ranostay Subject: [PATCH v3 5/9] arm64: dts: ti: k3-j721s2-common-proc-board: Add USB support Date: Tue, 20 Sep 2022 20:13:23 -0700 Message-ID: <20220921031327.4135-6-mranostay@ti.com> X-Mailer: git-send-email 2.38.0.rc0.52.gdda7228a83 In-Reply-To: <20220921031327.4135-1-mranostay@ti.com> References: <20220921031327.4135-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 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.37.2