Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3199076pxk; Mon, 21 Sep 2020 07:41:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQSyOfH5J80kSArzfvI4o5TlGZAhsp/ca0uMlZN31mDH31Rw3GuVWDOQ6Mr09w5iDb/emi X-Received: by 2002:a17:906:b285:: with SMTP id q5mr49792919ejz.545.1600699305547; Mon, 21 Sep 2020 07:41:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600699305; cv=none; d=google.com; s=arc-20160816; b=jorEMflCTrBWNb8Ub89of6UK1K4gWBQfmyyvsSxLqWorQnmKg9a28OgE1wKqAvFteA dDxLASoqbEQpNu8R5zfjTyUgI72h6j0J2FZSp3dN1a6jegrTmK0QceLIBRXo/n3Bnmtm EH3zPyG+pzBCqLtxc9lsfIlIkyLu7/m2XOgN6SYEZ8+m4FVlzZRqwjqlKpMq5jCpJqvt NpnfbJjM2cAgZT0i3QJlZp9mXD7OZ9QxMhigm0v48kz4kxT069PMP2WzC7DTqOAgLb4I AvrjHf7o1CbSxTnkrkNEGwUHu1n1IDhC3GH+P4TnTr+usmiXakQEd9CSVjVKnKXA2a18 Mjtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=LdKPelY2NAsy6mMNLZb94KT1HddwEqc/Y6pgqYqB+ds=; b=TIUW00MN4wb8xCUaoi7Wb6duJp3ibpACVZHlGi670GEiPl4IHwrXMvHqy0+SS6C/EZ ii9IF/trfuxtoIBigDtbQCMq6tIIisDEGR9Zgl2M2T75R6AmBMX5zxwhzb5ow97pkrAn 4eqy2JXrjdRTu1gECnsWIwCO6Rebpt4WwgYzoCPI6Qf7o0V2ZCKowFfSpPl8raJyu95x XZO+rY0A3StFv/ewobYeQJEPBstvHxBdqk7rJTs2yVqQWmy6iUKcBXJRQqYAkNg9+u1V FSguCmjJJaNKWaVwWQDJ5lvUwMNX3DUYWRYz6a7UFcolqmfvLmvQDbZWCiR6cyHQfyf3 9ixA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="DqcH0yd/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yh22si10792568ejb.421.2020.09.21.07.41.21; Mon, 21 Sep 2020 07:41:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="DqcH0yd/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727697AbgIUOkN (ORCPT + 99 others); Mon, 21 Sep 2020 10:40:13 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:44444 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726341AbgIUOkL (ORCPT ); Mon, 21 Sep 2020 10:40:11 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 08LEe3NE069530; Mon, 21 Sep 2020 09:40:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1600699203; bh=LdKPelY2NAsy6mMNLZb94KT1HddwEqc/Y6pgqYqB+ds=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=DqcH0yd/gh2N1ckw3257kH+aJDPYg/5v6+NAcWzZU64GHCblbKte0ODPDx1+ukmDx joToqFxlcp6DqN/cH6sXWjfaYJ8HR8zU9oUfqjxMEQGBMhPPrnYij4tGI+y+On8eza mvpTV2RR7dvncYhR0pEHrhn4FNHypBg1gQJ3QoI4= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 08LEe36T093488 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Sep 2020 09:40:03 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 21 Sep 2020 09:40:02 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 21 Sep 2020 09:40:02 -0500 Received: from lta0400828a.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 08LEdivr065452; Mon, 21 Sep 2020 09:40:00 -0500 From: Roger Quadros To: , CC: , , , , , , , Roger Quadros Subject: [PATCH v4 6/6] arm64: dts: ti: k3-j7200-common-proc-board: Add USB support Date: Mon, 21 Sep 2020 17:39:41 +0300 Message-ID: <20200921143941.13905-7-rogerq@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921143941.13905-1-rogerq@ti.com> References: <20200921143941.13905-1-rogerq@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The board uses lane 3 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, QSGMII and USB super-speed. It has been chosen to use PCI2 and QSGMII as default. So restrict USB0 to high-speed mode. Signed-off-by: Roger Quadros --- .../dts/ti/k3-j7200-common-proc-board.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts index 6ab9d5d33a72..5c945f4ffec1 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts @@ -42,6 +42,12 @@ J721E_IOPAD(0xe4, PIN_INPUT, 8) /* (V1) TIMER_IO0.MMC1_SDCD */ >; }; + + main_usbss0_pins_default: main-usbss0-pins-default { + pinctrl-single,pins = < + J721E_IOPAD(0x120, PIN_OUTPUT, 0) /* (T4) USB0_DRVVBUS */ + >; + }; }; &wkup_uart0 { @@ -145,3 +151,19 @@ idle-states = , , , ; }; + +&usb_serdes_mux { + idle-states = <1>; /* USB0 to SERDES lane 3 */ +}; + +&usbss0 { + pinctrl-names = "default"; + pinctrl-0 = <&main_usbss0_pins_default>; + ti,vbus-divider; + ti,usb2-only; +}; + +&usb0 { + dr_mode = "otg"; + maximum-speed = "high-speed"; +}; -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki