Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp316830pxj; Thu, 3 Jun 2021 07:26:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZaaq3ctCQv/pahkH7AGZQBlLA0mDj1FgQx9HlQlh89/vehAXSKZ8D56fV/hYTSEin4W+N X-Received: by 2002:a17:906:2a08:: with SMTP id j8mr39254937eje.483.1622730402330; Thu, 03 Jun 2021 07:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622730402; cv=none; d=google.com; s=arc-20160816; b=uhuFJh73ic9ChHjuT7w8JjlFcaWSH+vK5efAfM0hoVCeJhR0Ij6KXAE24Wb683E/5d BazA1E006ZToqht667+zruSz62IPdtV/q87z43lS2TPKwi7g82dOdcp+qAoY0os2tIFX bOJB+WQtJiuKnS3sTBTvPa4Qz1Yzk/uZAp5QxEW4pWu8lR+6onPqZKrO3TEZjMWVrG33 nZHakuIUtic7Uoho0HLb3Qw3D4foO6+4iMKgJeCGuSoTKpjIDAp3E20MVzo2nWlsOuZg E62lZCmGmwCY/81nSOOp425mFEKGjJqkysmIBW/eYoHtk1kKMQzhWYvgw+WQz/RAAicv 5OSw== 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=iOZkqfsqaVcoyRAJqzab8GdtmEBlK2SCryqfuxCDmhA=; b=SB/UHHaY1xCqVurtuYbYmya3kpISFJzL1fh7RF7XtMu4Tok8Jj+3Gm8J273FboRMxY 7yExgLV0fBblzvPEsGSLPwuRcbkgWDBQZaZI25FqJ4n2PeX1IN2OJr/WHGDk79+beCvU /1raPidV+uH6XyOajy1jgggT2sTbcVd8LcGzGM4LoW1QLZGo6x6S0czznLyu3K4LXd9/ IemJVb3MU3/LqVw8b9QscykOCB3u+gC0uBAakDb+eOzZjyqCRamopeysiuQaMXgUPnyf T29SAcrgJzNOIu+0WfH/sAfqoDbO1lyh0GzqmzZ2fKUFYsCBppDu9OHrpH1x0AQguX6c mulQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nO9aczd2; 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 h93si2677182edd.605.2021.06.03.07.26.19; Thu, 03 Jun 2021 07:26:42 -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=nO9aczd2; 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 S231669AbhFCOZL (ORCPT + 99 others); Thu, 3 Jun 2021 10:25:11 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:52908 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231640AbhFCOZG (ORCPT ); Thu, 3 Jun 2021 10:25:06 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 153ENHvv097031; Thu, 3 Jun 2021 09:23:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1622730197; bh=iOZkqfsqaVcoyRAJqzab8GdtmEBlK2SCryqfuxCDmhA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=nO9aczd2SYSIHOQs56/eFvv9quEyGYQC1oYGQDdIamz18ZggibU/YOiQrTm/5jNEL 5ZTmEKybeVG3HKgnRLJCvyzMmGwmgYE1LBkhW+Z4ukpMhTyvWqK8GhpdSV5koj+voG Uji0H/oAJqKZJO5Q8o0tPQrHa7z02FvXpo+ZNI2U= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 153ENGiR015041 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 3 Jun 2021 09:23:16 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 3 Jun 2021 09:23:16 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Thu, 3 Jun 2021 09:23:16 -0500 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 153EMpNJ039957; Thu, 3 Jun 2021 09:23:12 -0500 From: Kishon Vijay Abraham I To: Nishanth Menon , Tero Kristo , Rob Herring CC: , , , Kishon Vijay Abraham I , Lokesh Vutla , Subject: [PATCH v4 4/5] arm64: dts: ti: k3-am642-sk: Enable USB Super-Speed HOST port Date: Thu, 3 Jun 2021 19:52:50 +0530 Message-ID: <20210603142251.14563-5-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210603142251.14563-1-kishon@ti.com> References: <20210603142251.14563-1-kishon@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 Enable USB Super-Speed HOST port. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Aswath Govindraju --- arch/arm64/boot/dts/ti/k3-am642-sk.dts | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts index 8424cd071955..077b87656fbc 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -5,6 +5,8 @@ /dts-v1/; +#include +#include #include #include #include "k3-am642.dtsi" @@ -85,6 +87,12 @@ >; }; + main_usb0_pins_default: main-usb0-pins-default { + pinctrl-single,pins = < + AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */ + >; + }; + main_i2c1_pins_default: main-i2c1-pins-default { pinctrl-single,pins = < AM64X_IOPAD(0x0268, PIN_INPUT_PULLUP, 0) /* (C18) I2C1_SCL */ @@ -235,6 +243,33 @@ disable-wp; }; +&serdes_ln_ctrl { + idle-states = ; +}; + +&serdes0 { + serdes0_usb_link: phy@0 { + reg = <0>; + cdns,num-lanes = <1>; + #phy-cells = <0>; + cdns,phy-type = ; + resets = <&serdes_wiz0 1>; + }; +}; + +&usbss0 { + ti,vbus-divider; +}; + +&usb0 { + dr_mode = "host"; + maximum-speed = "super-speed"; + pinctrl-names = "default"; + pinctrl-0 = <&main_usb0_pins_default>; + phys = <&serdes0_usb_link>; + phy-names = "cdns3,usb3-phy"; +}; + &cpsw3g { pinctrl-names = "default"; pinctrl-0 = <&mdio1_pins_default -- 2.17.1