From patchwork Tue Feb 5 12:45:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 157474 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp5114030jaa; Tue, 5 Feb 2019 04:45:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IYZyrDUm1rVsUAE2Bw1YjtMyBmLH4tiH8pWBdcDgwfp/N7PmnHblqjXjrC+Qc38CUi4Gxmk X-Received: by 2002:a62:5dd1:: with SMTP id n78mr4813748pfj.58.1549370736786; Tue, 05 Feb 2019 04:45:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549370736; cv=none; d=google.com; s=arc-20160816; b=B1DuNWvzpjjgXu4CqV2oicAzch9tb3+EozQR1RQ0zMwo3LSAWl7LvJ78Admj8xDjx7 NQYMxaAI2lLiKn4WTrNYu32zbBZkO/tMgYuhbmYCSW1PtxrJReFgzzWKfl5bkLGvL6Hl M1dpVVrXDfgsha+FT2A4rAo7Rp4wmOqgQr1vdb14j346S0NiJDNlelH5XGrjqbGMJpPs EoPuQOnHJdEYimfxHvg5epZW+WLxXr8fxbudjcS2MUVPGOWXzk0junrZY3GbgfGCjJZt pS5RvB7NSf/twvr+PyCtG+C5/kVYGiQPzk8N3wk+PdxO7GeXvhfKRd4DdyWQdHHr8DOV NZAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=FewW4TCQN3mY2m7ZNXLiiW6MuxAyqXYQ1d+6hP29D54=; b=siU3LLl5HYbD9K0Z/kTGx+P2F074mltfdzfxHqDCPhmylgRBVO73Fc4FN0NvssmXEA JvJ/ANe+myx9LeYD5RG0qfy3sMci1Q5D6qBkfZlyhqfKmKFA9gvxC09PoJyDTAyoFmTJ Z4SeOiixqjzAI9vGndlfrryel1aYg3e7xh+gxEMhJiiBoZQtsJChkZY50PGVdkvOyEH3 Qaj8bgUpTex8OdiITCxGTx12Wl0H6CX96EoPiXfQMJP41yXSVlFDuVtrib8OGqZnDM29 5SrrvCi2CvyVqfhn2ZjX0m3vFxDY4JJQySbawQxvegr1JacfLgpgnA7w0YUxHxkdTDPi SoIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=s7scjYWm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id u27si3285954pfa.103.2019.02.05.04.45.36; Tue, 05 Feb 2019 04:45:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=s7scjYWm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728795AbfBEMpe (ORCPT + 31 others); Tue, 5 Feb 2019 07:45:34 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:51882 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbfBEMpc (ORCPT ); Tue, 5 Feb 2019 07:45:32 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x15CjTlu002594; Tue, 5 Feb 2019 06:45:29 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1549370729; bh=FewW4TCQN3mY2m7ZNXLiiW6MuxAyqXYQ1d+6hP29D54=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=s7scjYWmAVDLvwYXuEKTJOxh4Wqqwl/v5SoOYsgl9yC4h5Qs1d22MtPpeiWxLBgBo 7gElNs8g7Z31cBu/lwfa/ayhgTfG9r846YM5XyQYyZ7Ym49igd4NzBHipv4HzqZfIc Jzr5viYLUAZA7Mp2eRDtpECWKWOMuKRJa5Cg4hZE= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x15CjTj9076060 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 Feb 2019 06:45:29 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 5 Feb 2019 06:45:29 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 5 Feb 2019 06:45:28 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x15CjOVN012216; Tue, 5 Feb 2019 06:45:26 -0600 From: Roger Quadros To: CC: , , , , , , Jyri Sarha , Roger Quadros Subject: [PATCH v2 1/3] arm64: dts: ti: am654: Add Main System Control Module node Date: Tue, 5 Feb 2019 14:45:20 +0200 Message-ID: <1549370722-414-2-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1549370722-414-1-git-send-email-rogerq@ti.com> References: <1549370722-414-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jyri Sarha Main System control module support is added to the device tree to allow driver to access to their control module registers. Signed-off-by: Jyri Sarha Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi index 9338315..7b0acf2 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi @@ -205,4 +205,12 @@ ti,trm-icp = <0x8>; dma-coherent; }; + + scm_conf: scm_conf@100000 { + compatible = "syscon", "simple-mfd"; + reg = <0 0x00100000 0 0x1c000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x00100000 0x1c000>; + }; }; From patchwork Tue Feb 5 12:45:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 157475 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp5114087jaa; Tue, 5 Feb 2019 04:45:40 -0800 (PST) X-Google-Smtp-Source: AHgI3IZwJbMfsICEQBD6Vz3jdujRbmwEgHb312jflJWGjbFHzFRuJdXLsT2glIJj8IZZLHMTWhYe X-Received: by 2002:a62:22c9:: with SMTP id p70mr4924109pfj.114.1549370740654; Tue, 05 Feb 2019 04:45:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549370740; cv=none; d=google.com; s=arc-20160816; b=Wef6oMfAI27VnJZu6JdJsvHzAvJ7N7nh/MwArQqzxFaT7TJ6NGTqCVmNfNAxmT5IKf ZCRdLjR7rClBy6VpAG5RGDj3IDN36g5OxAr/Fd1PQfK9RFk9asKyWD92vfaK4+RJk7or GVqo/lNFCcMkKuL0RD4BfL0mE4lCKiPn3VXL+f2Zs2NJDzPRPpJW5BhylwAaU97elgIg Bs/+DU7eQw0scAVNz7LQ4A2jeQccVdWz8t+V8craJ0RzUH6LRLapRmHNC5xFEjZbbgCR s1v3uZ22nP6DjsNpvexqjAW3DzmoIllwkK9ZSd5vGvrRh5Dtfa4wc7HIkqC8SAwov1Ts GyqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=1GVgpiGNWts2UcU2s8/GvFzfISCRRhs9Y1ATdyse4GE=; b=yH3VznLD6s/3Aa6zfJB+byiNkUtcJO5J1iI/H0BeGS/Vba+QM4QGrjNkZMNyxsCMr3 0h0CqfqPbEbpTclbREE+faoC9ApMvat0bxA1XEmE7f/BRxs1NFOplGGnq0K2s9lDOEuC c9Wb4oP3CDGZlaUknsv9N0WQxJbYNxc08mqE3arZABq43K446mBojjtvjB9PGQyqlu+M VMAcfSoBWOvUQR7Q1jaVgPCL41/IQBImvw+doPWBaIAnpL0HKVPW0kSZgiEisnjjpu4q qPJFByAAmr/INUPgoSYgO72FCyS+4Xc9raKUh7TWbDYOKYVnzaq8xeNmMmHJwsdg9ief XBFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SJyC4N8t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id f95si3509257plb.60.2019.02.05.04.45.39; Tue, 05 Feb 2019 04:45:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SJyC4N8t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728898AbfBEMpi (ORCPT + 31 others); Tue, 5 Feb 2019 07:45:38 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:51886 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbfBEMpf (ORCPT ); Tue, 5 Feb 2019 07:45:35 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x15CjVtf002601; Tue, 5 Feb 2019 06:45:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1549370731; bh=1GVgpiGNWts2UcU2s8/GvFzfISCRRhs9Y1ATdyse4GE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SJyC4N8tjd7HsJEuMzjKr228j1Cf6Y/ZV1bLo5uF7MzglH9XbzkP8pSqtJVYCqWcN KOmkppiK/T8SJJ7yeFu0ZN4oQB9OSZGiqqltOgkEtxE3KWhpyIhaARmVE1gJ1QZTMd q0yIljDj+7E7LNBsLZWX4ZjBozd/HnJv2gzbUzlk= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x15CjVOG008600 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 Feb 2019 06:45:31 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 5 Feb 2019 06:45:31 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 5 Feb 2019 06:45:31 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x15CjOVO012216; Tue, 5 Feb 2019 06:45:29 -0600 From: Roger Quadros To: CC: , , , , , , Roger Quadros Subject: [PATCH v2 2/3] arm64: dts: ti: k3-am6: add USB support Date: Tue, 5 Feb 2019 14:45:21 +0200 Message-ID: <1549370722-414-3-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1549370722-414-1-git-send-email-rogerq@ti.com> References: <1549370722-414-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adds support for USB0 and USB1 instances on the AM6 SoC. USB0 is limited to high-speed for now. Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 76 ++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi index 7b0acf2..9ae62d5 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi @@ -213,4 +213,80 @@ #size-cells = <1>; ranges = <0x0 0x0 0x00100000 0x1c000>; }; + + dwc3_0: dwc3@4000000 { + compatible = "ti,am654-dwc3"; + reg = <0x0 0x4000000 0x0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x4000000 0x20000>; + interrupts = ; + dma-coherent; + power-domains = <&k3_pds 151>; + assigned-clocks = <&k3_clks 151 2>, <&k3_clks 151 7>; + assigned-clock-parents = <&k3_clks 151 4>, /* set REF_CLK to 20MHz i.e. PER0_PLL/48 */ + <&k3_clks 151 9>; /* set PIPE3_TXB_CLK to CLK_12M_RC/256 (for HS only) */ + + usb0: usb@10000 { + compatible = "snps,dwc3"; + reg = <0x10000 0x10000>; + interrupts = , + , + ; + interrupt-names = "peripheral", + "host", + "otg"; + maximum-speed = "high-speed"; + dr_mode = "otg"; + phys = <&usb0_phy>; + phy-names = "usb2-phy"; + snps,dis_u3_susphy_quirk; + }; + }; + + usb0_phy: phy@4100000 { + compatible = "ti,am654-usb2", "ti,omap-usb2"; + reg = <0x0 0x4100000 0x0 0x54>; + syscon-phy-power = <&scm_conf 0x4000>; + clocks = <&k3_clks 151 0>, <&k3_clks 151 1>; + clock-names = "wkupclk", "refclk"; + #phy-cells = <0>; + }; + + dwc3_1: dwc3@4020000 { + compatible = "ti,am654-dwc3"; + reg = <0x0 0x4020000 0x0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x4020000 0x20000>; + interrupts = ; + dma-coherent; + power-domains = <&k3_pds 152>; + assigned-clocks = <&k3_clks 152 2>; + assigned-clock-parents = <&k3_clks 152 4>; /* set REF_CLK to 20MHz i.e. PER0_PLL/48 */ + + usb1: usb@10000 { + compatible = "snps,dwc3"; + reg = <0x10000 0x10000>; + interrupts = , + , + ; + interrupt-names = "peripheral", + "host", + "otg"; + maximum-speed = "high-speed"; + dr_mode = "otg"; + phys = <&usb1_phy>; + phy-names = "usb2-phy"; + }; + }; + + usb1_phy: phy@4110000 { + compatible = "ti,am654-usb2", "ti,omap-usb2"; + reg = <0x0 0x4110000 0x0 0x54>; + syscon-phy-power = <&scm_conf 0x4020>; + clocks = <&k3_clks 152 0>, <&k3_clks 152 1>; + clock-names = "wkupclk", "refclk"; + #phy-cells = <0>; + }; }; From patchwork Tue Feb 5 12:45:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 157476 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp5114162jaa; Tue, 5 Feb 2019 04:45:44 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibt+yW3iatqI2+UF3FizMR9MvynC6MhLhqega0UoGa23xfGyskhxFK1tDf2JTpOiI1ygo2H X-Received: by 2002:a17:902:584:: with SMTP id f4mr5120092plf.28.1549370744283; Tue, 05 Feb 2019 04:45:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549370744; cv=none; d=google.com; s=arc-20160816; b=TMCjltC1KARolMyJAG2/6Njastbs2uSSLw0DY6ZwELA0i38JPqQp4S0iJTTLdpBiGr vb18EBeuuilqfdQbiBZ+Dzy6syUe75c0cO8cDstXuSlfV7ZbPcNUmaB7/s5NhjBJnInD mJTiE/dMFwYbHWD60i3CROQdSO0R87zJZK1CW3n3PX4bzRZ/i11HLTx6VDEnlMoKQ0jC 2bI4nUetyrWiVk5XO7xX2j4IUcPAfFIxYnkOW6BFtMwB/17V3ic+PEkSnu1R5k7Dg0s3 thhI+10CZj5bPu+QDrEMw786w+DdAFjcHMev6iycR2j7TLI0ehzHoh6ewJ9g3A5J9oz2 ZvRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Wlnf+ZEJg6MMWZHAA6FwVketzy+HK4TcBlxjPcgvKic=; b=RmVvvCJ+6+OWciLCljSh4uNeDnf2HPlPdm9IwRCoyteF2fkBlFQ+vj9qV90Vug7owE LMzweYu8N9DTA9QodvcNyoGJ9QrSY6ic9f4yMTQg69qKzThORi83UGAmsSG3dMpzjLWc JTMpvWFL9U8cNKd9wq1ZzRczpEVtZXA6F4G+hYKlapK1r+bP63NURNeGumN1tEujlZYN fp2BCHbQ209GwcTScleiHVXcq7rbnDxQ8varecx6VHEnfrt8fccWTqL9px913NEQwhci 2ibpg4Atxhr6QD/o9iV1sCwRp5WtPQcxDl3LS+eFF9RX23rriepWgvIB5gKB2fixlTnQ rASw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Lg7WPGsR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id s17si2982460pgi.513.2019.02.05.04.45.43; Tue, 05 Feb 2019 04:45:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Lg7WPGsR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728990AbfBEMpm (ORCPT + 31 others); Tue, 5 Feb 2019 07:45:42 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:51888 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728835AbfBEMph (ORCPT ); Tue, 5 Feb 2019 07:45:37 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x15CjXlk002609; Tue, 5 Feb 2019 06:45:33 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1549370733; bh=Wlnf+ZEJg6MMWZHAA6FwVketzy+HK4TcBlxjPcgvKic=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Lg7WPGsR8O51gATxDjWghnclJsYQu3xLzbMpX/X/EC0IY6S0nfiYZ7aWzxyTPKdcK 2XNri16VC5XpFGlJ6HNMiU9RixJWP0Sn4KmBHVwlc4vtahQOlKj8MK3KlR4eQq2Cf6 72G/cLiSgj/h7mJqd116xJ3sv4VsZ7FkJLlb1NV4= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x15CjXWp008621 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 Feb 2019 06:45:33 -0600 Received: from DFLE102.ent.ti.com (10.64.6.23) 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.1591.10; Tue, 5 Feb 2019 06:45:33 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 5 Feb 2019 06:45:33 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x15CjOVP012216; Tue, 5 Feb 2019 06:45:31 -0600 From: Roger Quadros To: CC: , , , , , , Roger Quadros Subject: [PATCH v2 3/3] arm64: dts: ti: k3-am654-base-board: enable USB1 Date: Tue, 5 Feb 2019 14:45:22 +0200 Message-ID: <1549370722-414-4-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1549370722-414-1-git-send-email-rogerq@ti.com> References: <1549370722-414-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add pinmux for USB1 and enable it as a dual role port. Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am654-base-board.dts | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts index 11e9a2a..a70e904 100644 --- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts +++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts @@ -86,6 +86,12 @@ AM65X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */ >; }; + + usb1_pins_default: usb1_pins_default { + pinctrl-single,pins = < + AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) USB1_DRVVBUS */ + >; + }; }; &main_pmx1 { @@ -188,3 +194,25 @@ non-removable; ti,driver-strength-ohm = <50>; }; + +&dwc3_1 { + status = "okay"; +}; + +&usb1_phy { + status = "okay"; +}; + +&usb1 { + pinctrl-names = "default"; + pinctrl-0 = <&usb1_pins_default>; + dr_mode = "otg"; +}; + +&dwc3_0 { + status = "disabled"; +}; + +&usb0_phy { + status = "disabled"; +};