From nobody Sat May 4 13:24:20 2024 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; envelope-from=linux-kernel-owner@vger.kernel.org; helo=vger.kernel.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail(p=quarantine dis=quarantine) header.from=ti.com ARC-Seal: i=1; a=rsa-sha256; t=1615375807; cv=none; d=zohomail.com; s=zohoarc; b=SbfP7zNDzd65vdC98ArqFk2M+ANrPPxqumY7UYWoZ2IkAH8tnnI7fVq/tH5dntq0dF+bnMmmyjN2VCZ97F5zoL71xQrW4iv95F4IYP2s0pkSLtGFsatngj0pon68DsWHcm622+yiXNiG0mtXgcPr5Z/Yydfk3jfV+ZwMF2+6t3U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615375807; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:MIME-Version:Message-ID:References:Subject:To; bh=PlyVSmU/GfAyhxkufJVkIsH3wdpsY3wIAg2TJC181vY=; b=VKKY4wG8tJypihQaA0u+cxthh3m9bM6UodL/6KM5bEiYiibdIz9kCsZ6R8qNyNE/a0VwUJPEpq3c6yL5NoPhfPFymbxphrshUl8wUy84yHJA1Piu1Xe8L/9tAczhhCwRnGVVH5SRRNHApmeHkAaVJmfpTDYShK5eBq6ez2HQN6g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail header.from= (p=quarantine dis=quarantine) header.from= Return-Path: Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mx.zohomail.com with SMTP id 1615375807217817.6002188704504; Wed, 10 Mar 2021 03:30:07 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232856AbhCJL2u (ORCPT ); Wed, 10 Mar 2021 06:28:50 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:40426 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232828AbhCJL2V (ORCPT ); Wed, 10 Mar 2021 06:28:21 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12ABS9qW099025; Wed, 10 Mar 2021 05:28:09 -0600 Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12ABS9fC050276 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Mar 2021 05:28:09 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) 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.2176.2; Wed, 10 Mar 2021 05:28:09 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE103.ent.ti.com (10.64.6.24) 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, 10 Mar 2021 05:28:09 -0600 Received: from gsaswath-HP-ProBook-640-G5.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12ABRxlT094609; Wed, 10 Mar 2021 05:28:05 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1615375689; bh=PlyVSmU/GfAyhxkufJVkIsH3wdpsY3wIAg2TJC181vY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ZJWoFND9c9G8+xEVHvrIxCepa+TgSd34IyW2+dF9P+sV2dq+jh/gDPo+v38Yc3N/3 v55D1VSLQayghsj6zdqTiyTwavH6I4CtmIjGcmiTvx67V4twejKESEMf9n1ewIKY0u MBV3XpCxwra8WiL8LAVhog4EOqM8qPjIbz4h9SyM= From: Aswath Govindraju CC: Vignesh Raghavendra , Lokesh Vutla , Kishon Vijay Abraham I , Aswath Govindraju , Nishanth Menon , Tero Kristo , Rob Herring , , , Subject: [PATCH v2 1/2] arm64: dts: ti: k3-am64-main: Add DT node for USB subsystem Date: Wed, 10 Mar 2021 16:57:57 +0530 Message-ID: <20210310112758.1982-2-a-govindraju@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210310112758.1982-1-a-govindraju@ti.com> References: <20210310112758.1982-1-a-govindraju@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add DT node for the single USB subsystem in main dtsi file. Signed-off-by: Aswath Govindraju Acked-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts= /ti/k3-am64-main.dtsi index 0cf727e3d1e2..5979eb163dd1 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -491,4 +491,34 @@ ti,cpts-periodic-outputs =3D <6>; ti,cpts-ext-ts-inputs =3D <8>; }; + + usbss0: cdns-usb@f900000{ + compatible =3D "ti,am64-usb", "ti,j721e-usb"; + reg =3D <0x00 0xf900000 0x00 0x100>; + power-domains =3D <&k3_pds 161 TI_SCI_PD_EXCLUSIVE>; + clocks =3D <&k3_clks 161 9>, <&k3_clks 161 1>; + clock-names =3D "ref", "lpm"; + assigned-clocks =3D <&k3_clks 161 9>; /* USB2_REFCLK */ + assigned-clock-parents =3D <&k3_clks 161 10>; /* HF0SC0 */ + #address-cells =3D <2>; + #size-cells =3D <2>; + ranges; + usb0: usb@f400000{ + compatible =3D "cdns,usb3"; + reg =3D <0x00 0xf400000 0x00 0x10000>, + <0x00 0xf410000 0x00 0x10000>, + <0x00 0xf420000 0x00 0x10000>; + reg-names =3D "otg", + "xhci", + "dev"; + interrupts =3D , /* irq.0 */ + , /* irq.6 */ + ; /* otgirq */ + interrupt-names =3D "host", + "peripheral", + "otg"; + maximum-speed =3D "super-speed"; + dr_mode =3D "otg"; + }; + }; }; --=20 2.17.1 From nobody Sat May 4 13:24:20 2024 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; envelope-from=linux-kernel-owner@vger.kernel.org; helo=vger.kernel.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail(p=quarantine dis=quarantine) header.from=ti.com ARC-Seal: i=1; a=rsa-sha256; t=1615375807; cv=none; d=zohomail.com; s=zohoarc; b=I8z1gtXJZcYgepwGYU8Iir7PhwYff9hcGscUIx969mUJjuqnz8LqD5MdECmSaZJGwIShh9UBC0OeG8XYos9QCrvNcaJrczHESfO7MbBPjR8JfNE7Ij/u2tnvoOdgrj+67xwlJ0E8ioJcX0MyiEQ+W5eISztHu2xwRnSyouK53Jg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615375807; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:MIME-Version:Message-ID:References:Subject:To; bh=ge87k1lNVw4qDQDDKtQRqFjhE5UTWCSmp8i1undjTQ0=; b=Jeid3VcgKW7KRxbo7Fkqhl2hIs7/681g5djOAVg+AVpEX7fKq2e9QTO1Y+N9uGSXsaol7pEg97TQmEpXKjVLkp1pc4YqVJqYB4yKgSI0i3e3gLXGWk0ODtlJabvsZYICwo/0dZI2vRYghLGbISQIK/bDKHKs6VhjbZXtItRMOQ0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail header.from= (p=quarantine dis=quarantine) header.from= Return-Path: Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mx.zohomail.com with SMTP id 1615375807561569.0376724459743; Wed, 10 Mar 2021 03:30:07 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232868AbhCJL2v (ORCPT ); Wed, 10 Mar 2021 06:28:51 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:36440 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232830AbhCJL2X (ORCPT ); Wed, 10 Mar 2021 06:28:23 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12ABSESQ018003; Wed, 10 Mar 2021 05:28:14 -0600 Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12ABSErm011552 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Mar 2021 05:28:14 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 10 Mar 2021 05:28:13 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) 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 via Frontend Transport; Wed, 10 Mar 2021 05:28:13 -0600 Received: from gsaswath-HP-ProBook-640-G5.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12ABRxlU094609; Wed, 10 Mar 2021 05:28:10 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1615375694; bh=ge87k1lNVw4qDQDDKtQRqFjhE5UTWCSmp8i1undjTQ0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=VmNS9yW2BX76QykXWWNfJf+KDGrt8gTicGI8JVxFprRMcxob9BVHL+v7T16TD7ut8 ar1+5mX/jJxqNyR38gGLq9dntT6w62FC6UhKrmhXqwM2Chexmgmx+iz+xmBT/o16Nh t+LX94SDV3vREiVvE0E5aP21JzUm+9Ish9LT/zcQ= From: Aswath Govindraju CC: Vignesh Raghavendra , Lokesh Vutla , Kishon Vijay Abraham I , Aswath Govindraju , Nishanth Menon , Tero Kristo , Rob Herring , , , Subject: [PATCH v2 2/2] arm64: dts: ti: k3-am642-evm: Add USB support Date: Wed, 10 Mar 2021 16:57:58 +0530 Message-ID: <20210310112758.1982-3-a-govindraju@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210310112758.1982-1-a-govindraju@ti.com> References: <20210310112758.1982-1-a-govindraju@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" AM64 EVM board has a micro USB 2.0 AB connector and the USB0_VBUS is connected with a resistor divider in between. USB0_DRVVBUS pin is muxed between USB0_DRVVBUS and GPIO1_79 signals. Add the corresponding properties and set the pinmux mode for USB subsystem in the evm dts file. Signed-off-by: Aswath Govindraju Acked-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am642-evm.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/= ti/k3-am642-evm.dts index 962ef807e286..45fdcf3220a8 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts @@ -201,6 +201,12 @@ AM64X_IOPAD(0x0144, PIN_OUTPUT, 4) /* (Y11) PRG1_PRU1_GPO15.RGMII2_TX_C= TL */ >; }; + + main_usb0_pins_default: main-usb0-pins-default { + pinctrl-single,pins =3D < + AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */ + >; + }; }; =20 &main_uart0 { @@ -313,6 +319,18 @@ disable-wp; }; =20 +&usbss0 { + ti,vbus-divider; + ti,usb2-only; +}; + +&usb0 { + dr_mode =3D "otg"; + maximum-speed =3D "high-speed"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&main_usb0_pins_default>; +}; + &cpsw3g { pinctrl-names =3D "default"; pinctrl-0 =3D <&mdio1_pins_default --=20 2.17.1