Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6893349rwr; Tue, 25 Apr 2023 05:32:58 -0700 (PDT) X-Google-Smtp-Source: AKy350bzi/5lRqwB0GfPRcChtMJmaFt6Pv4L83G8xkuqWsLuGK+SR5Gvp0B09d9XbJlJoCWItFXS X-Received: by 2002:a17:902:e751:b0:1a9:433e:41d5 with SMTP id p17-20020a170902e75100b001a9433e41d5mr18856981plf.56.1682425977625; Tue, 25 Apr 2023 05:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682425977; cv=none; d=google.com; s=arc-20160816; b=GBd4QSWrsO2MAePm4O1KnjlfLzlJALN6U8w2keG3ZDMj2j3bGqL074MBOUkXJbT/v0 KWwhbv7oEXTYU9MHEaq24YifZXZhNd5iGZtGKW1CeenX9XpnmOz3gscJJoqy3WBtBNKa uvFDKK8TAbsmO2zrFXqR7T5OQ9du3skkKzSOrsSoD39xWuDCoGlc8i1nB15SOJOIUBSS ahCWLedMtE+PFhirv2MT0vHMlYFr4pPoN/KrdtpMz982vypNo1IcKYu+uedwGN9uTkdH Ruog0NGl95PHY2WHYRS99ueo4lmpedCsjoScOto8cL0PrUhwqV6AHHS56SAZOm7G/NFQ lPzw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=TS0kNmu3jfd5KlPBIWRdVSvE5JguxWv9zWW5KIe/aUs=; b=RmQVZ3PMaiJ07Z0qjgo8pleqicdDq9fM0T94pokn2moTBRpM0rX+rj6aDOX5FJvdG4 vblyMAoulZip0IHyAPNNV1J18eW1matsTXuvW5hp+wWilXJ60K2eXTuU5bY3Nbm8kL4u jtzCebqn5w7cYb1n+z1j/jFHQ4kP3smjfMPnN6OAc+p2C5oUo2ab07iY0tWy0YoJXtGJ +O0svxi0mIKTlloZ3Angvnv8DunY8sbWEM6+c1tnIRhyhFYtiL+XTLyEnfkxkYiDeqDp oYDtd9EyFX5Us/zyRdm/On9yGDXW5jrJ4mGWsA6azUhPqYlhq4onY5n8bdluiZTfzGpV OHqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="owF/cGnV"; 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 a12-20020a1709027e4c00b001a520d3ecb1si12523431pln.515.2023.04.25.05.32.42; Tue, 25 Apr 2023 05:32: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="owF/cGnV"; 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 S233992AbjDYMBW (ORCPT + 99 others); Tue, 25 Apr 2023 08:01:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233991AbjDYMBS (ORCPT ); Tue, 25 Apr 2023 08:01:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 072A055BD; Tue, 25 Apr 2023 05:01:16 -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 593F662DD3; Tue, 25 Apr 2023 12:01:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03EA0C433EF; Tue, 25 Apr 2023 12:01:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682424075; bh=FoyA/x6xus9tzAuqlHs02L0mTHeDvM7gvVaIHLuCK8Q=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=owF/cGnVfoEYCCRCJpAXYBq83PP1ZrJwFH6O0oWXSHh2W8Fl/OzLW8P4xXdMc5xa7 GFX/PeQ6XI1l1pzAExYBirrtSLtXEyoMNRSOROuft4BEb57zMmMa6TXjxHKGaGazb/ D50UFqf7SJFkxs9RCuN+gNa3UecN8wpbrvEpG+UFT0XJ/Q4KMF7dGEFpH92Qgl722L 8QQ/f3UTg+SYQeZetSwO+o4ilje/wvj3vSELbdmz39wBYpS/2YnBuc2xKtBhyz6W7K mIu4WqiLf2BDvqGnexotAVj3hShgGUatg74kAHkj+xB8l9k8Tfuk975qP/8bK3KLz9 vxrn+ZH2J8w9w== Message-ID: Date: Tue, 25 Apr 2023 15:01:10 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v14 5/8] arm64: dts: ti: k3-j721s2-common-proc-board: Add USB support To: Ravi Gunasekaran , nm@ti.com, afd@ti.com, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, s-vadapalli@ti.com, vaishnav.a@ti.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230331090028.8373-1-r-gunasekaran@ti.com> <20230331090028.8373-6-r-gunasekaran@ti.com> Content-Language: en-US From: Roger Quadros In-Reply-To: <20230331090028.8373-6-r-gunasekaran@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.0 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_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 On 31/03/2023 12:00, Ravi Gunasekaran wrote: > 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 up to 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. > > Signed-off-by: Aswath Govindraju > Signed-off-by: Matt Ranostay > Signed-off-by: Ravi Gunasekaran > --- > I had reviewed this patch in the v5 series [0]. > Since I'm taking over upstreaming this series, I removed the self > Reviewed-by tag. > > [0] - https://lore.kernel.org/all/96058a13-4903-2b8c-8de2-f37fdfd3672b@ti.com/ > > Changes from v13: > * No changes. Only rebased on top of linux-next > > Changes from v12: > * No change > > Changes from v11: > * No change > > Changes from v10: > * Removed Link tag from commit message > > Changes from v9: > * Enabled USB nodes > > Changes from v8: > * No change > > Changes from v7: > * No change > > Changes from v6: > * No change > > Changes from v5: > * Removed Cc tags from commit message > > Changes from v4: > * No change > > Changes from v3: > * No change > > Changes from v2: > * No change > > Changes from v1: > * No change > > .../dts/ti/k3-j721s2-common-proc-board.dts | 23 +++++++++++++++++++ > 1 file changed, 23 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 1afefaf3f974..5c4ffb8124ca 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 @@ > 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 */ What about USB0_ID pin? > + >; > + }; > }; > > &wkup_pmx0 { > @@ -345,6 +351,23 @@ > }; > }; > > +&usb_serdes_mux { > + idle-states = <1>; /* USB0 to SERDES lane 1 */ > +}; > + > +&usbss0 { > + status = "okay"; > + pinctrl-0 = <&main_usbss0_pins_default>; > + pinctrl-names = "default"; > + ti,vbus-divider; > + ti,usb2-only; > +}; > + > +&usb0 { > + dr_mode = "otg"; > + maximum-speed = "high-speed"; Why is super-speed not possible? I understood that SERDES lane 1 can be used for USB super-speed. > +}; > + > &mcu_mcan0 { > status = "okay"; > pinctrl-names = "default"; cheers, -roger