Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4557884pxj; Wed, 12 May 2021 08:09:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw77Gjwm7AmSDflTWmyIjUyhhMXbPdXUfMNoAisMoWE1j0N/4aaEgajeQZ9vTG1GLfakh1s X-Received: by 2002:a9d:2212:: with SMTP id o18mr32041706ota.91.1620832196407; Wed, 12 May 2021 08:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620832196; cv=none; d=google.com; s=arc-20160816; b=sho9I52EDMLiJUBVd1MQxuiwl17mr3qCqMI05Ju8LA27KOpANpxDrD3moKZOmm3vO9 jdj68TL28RV4QZfIXxkUa8Pr/8LGSh+PlFNKRVK4Nv/O0CAbtIyfxqcfLljb0Jo7Wvpe /m5+UT/FAdhB+H30J5S7kogZj1VII+oKG1SjRGKXppfBeYgXQ6ARy/LNA87iKGFBl7no ABz71j9epgxcj+FSoBF2dw/FroN04r5cwK2+Vn/ueTZRdEaFbe64yb0h/FMVHcLheksb 1ChCPxeYBb3dI3HO/BZsTFrKk82FV6Kcz76nAU7n+ORPiyQsaVyueAnVlcYE+ryrf9Md 6TDQ== 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=/ZUaU8LuBSfmdQidonHHNSSntnAMqYgSkfu8y3TOaVk=; b=lPFKDCaVfO+pIeYhQC9dPMIMxoOmdpcW0zVoag4r5PAHJpLsPz95LhxFrFpwdQtC43 Ec+yCoilqGZJMEgEGILdU1IHMKQUPH9xWFVQ5yxdoZ2OUz5AmBdFjccSNf3UyX4y1FlY w2fjsSOtbg0a8y7OZxF1YHKw/Xwlqa1Fp6SJZjDU1vbgycWbQJEw9OL2E7ne+HiXOgQL OkaoanwzSDTbuMH4v7D6fbgDJxIECnh0jhP8vBx8A5Abe6avgyQny8bfl9R7Q2GTI5U+ SkNbFcfmjGAErTncWnM6OeKNuqBGiJB4aYmuAcuj6uvGMazjO2fQtQSRxKx9qeElWSAE m3Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YRTPInQ2; 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 m2si187520ooj.59.2021.05.12.08.09.42; Wed, 12 May 2021 08:09:56 -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=YRTPInQ2; 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 S232027AbhELPH2 (ORCPT + 99 others); Wed, 12 May 2021 11:07:28 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:45584 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231152AbhELPCx (ORCPT ); Wed, 12 May 2021 11:02:53 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 14CF1g2o125524; Wed, 12 May 2021 10:01:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1620831702; bh=/ZUaU8LuBSfmdQidonHHNSSntnAMqYgSkfu8y3TOaVk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YRTPInQ2vtgRrmftzlt4/TzT4zo7x6WyYwKwRzq9L+ScW2TUv4pEO3ar7jfFnbkjP t/t+Ss+2rGKR+IvkenDiRF8f0A5OQLAiMTaLBnhZhJQBQXFst8Nu5Is2hXjUPMcXYf ambWaLRLzxET0WZspJglqp6pSNeLSt6h82WNgkQs= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 14CF1gBt083049 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 12 May 2021 10:01:42 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 12 May 2021 10:01:41 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE111.ent.ti.com (157.170.170.22) 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; Wed, 12 May 2021 10:01:41 -0500 Received: from a0393678-ssd.dhcp.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 14CF19FB119262; Wed, 12 May 2021 10:01:36 -0500 From: Kishon Vijay Abraham I To: Nishanth Menon , Tero Kristo , Rob Herring CC: , , , Kishon Vijay Abraham I , Lokesh Vutla , Subject: [PATCH 4/5] arm64: dts: ti: k3-am642-sk: Enable USB Super-Speed HOST port Date: Wed, 12 May 2021 20:31:06 +0530 Message-ID: <20210512150107.26793-5-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210512150107.26793-1-kishon@ti.com> References: <20210512150107.26793-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 | 39 ++++++++++++++++++++++++++ 1 file changed, 39 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..056c1b2df559 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,37 @@ disable-wp; }; +&serdes_ln_ctrl { + idle-states = ; +}; + +&serdes_wiz0 { + status = "okay"; +}; + +&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