From patchwork Tue Feb 5 00:56:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 157457 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4550016jaa; Mon, 4 Feb 2019 16:56:17 -0800 (PST) X-Google-Smtp-Source: AHgI3Iass3o1vEw783rzRz2dUnuELVJd0mEvzk+47vOSYRwbp7hpwGvhFN+RjpJiH1DpeTK+6ygy X-Received: by 2002:a17:902:7e44:: with SMTP id a4mr2293885pln.338.1549328177200; Mon, 04 Feb 2019 16:56:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549328177; cv=none; d=google.com; s=arc-20160816; b=DUhMAfikhlkaN3laAstGv12gxcontNIC/AsEtd9zEvJlv/HrtETYdtVMdQOZXgtARN XU46RtkaUmyDqVOLZArPHWeJuZwJTgcgNLEtN93NiAsEMwM0P0dbC3qs/Q/3xQyNMFZV P52fNcPNJ6HY8sKaXfi0Q+miDb8JtpE8aDS79dJGbkqDj3xzEUTxtXhT66965uuzdqVf LLorkCyqi71/S+MloTR+H/SNin2SllmDpwnKddBZCU2Mmbp4YqbIzWKN27RMPOpY7OXm X4SRioskIuLtW1LwGR3TLv8v3oYTYosNEJB01FqxQ7bDC62U0LSkkSKeauTdKRXDLtuP BqxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=FGbv5rGsNPLzaN+JNsoPgeQyrtnJ9Y7yowXFJtAlGJQ=; b=XuUFiykUBl1HtpVVs8RK5J+Br35ooA2+RqjVLT7oRg0FZZOjOLg/uaFVP6szS93o+8 wUcMpJoMCjhCFbVHF85OegApIFGlXChwCAC5GfmtiSnHgr5GgHog3E/piIoJtk+KVipc Dzp0v7E1Ryo4Ye+tKumKqc7b9NB5ETGaUdfiDX8zhC1Td7na20uCzkq9gok5Inp5Dhx/ MvDB0bouz/57CO0bh47EPHbc/DzRAix04CsO+FX29nA98L2tB2yNAcaUBkF1Oqoyji9G koFqRHBo7XOvkyjbhYTqi+uKIHCK+n6QQCOqGdPfka8H2N5OTb+HoSWj4ZaqDV33+jv4 OGFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KvO67HdL; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si1466992pgc.232.2019.02.04.16.56.17; Mon, 04 Feb 2019 16:56:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@linaro.org header.s=google header.b=KvO67HdL; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727803AbfBEA4Q (ORCPT + 7 others); Mon, 4 Feb 2019 19:56:16 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:35390 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727801AbfBEA4Q (ORCPT ); Mon, 4 Feb 2019 19:56:16 -0500 Received: by mail-pl1-f194.google.com with SMTP id p8so752597plo.2 for ; Mon, 04 Feb 2019 16:56:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=FGbv5rGsNPLzaN+JNsoPgeQyrtnJ9Y7yowXFJtAlGJQ=; b=KvO67HdL4WViYqsm6AmIA7iEJbuBlwBpmCNGmhiBN6V0nZFTNwGX36aZ9p9TLr3E5S dC4qRbGoo3++JdkXBH8ylw1FXWczpCecWiK21yJ2qK4dk4WSMYlL2abw2rhdc7/Bbkhi 1DmV5KWBLjPVPNSdtT8fKKY3OTigXUVOh5j1E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FGbv5rGsNPLzaN+JNsoPgeQyrtnJ9Y7yowXFJtAlGJQ=; b=A5nticJO1qsmJ1GJ0x3bx9o/RhLCM9TnGTYqdD3FQ3HYshMOE/iz0mxTiNun4PivRy spuLrhEPyQWMf0ghFJOEKqueYcuV1/9MlA8rF8w4sPWNoQYp584RXGgjHX+NFCrdIJnM Tg+N5+5iEmmcadxwU303Rf9caIluJBxNpvdW9lEOyVyqgBufNst1Zf1PVX8m7YJ+rE+O YOoII86Dqi97q9pkdtss6ywf8A4JEwoAUUIZm5rKj5WWH5hDavJZ+z6nFQcIQf36AEJq ApDcoqXOtJi0oP6Raky/vjQoKXG6OSwHsfDeiKHM3dqZ5mTr8wLQhFgRmC38KfjzC8c/ awVQ== X-Gm-Message-State: AHQUAubsnfEPldq3zLsZuzaG3IOqnNgYzuRop4FFfT+McZe/hxwJ/0fT 4WaASdigUUR0mCEQ0apAE7pC3w== X-Received: by 2002:a17:902:2dc3:: with SMTP id p61mr2281122plb.166.1549328175463; Mon, 04 Feb 2019 16:56:15 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id w10sm1506095pgi.81.2019.02.04.16.56.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 16:56:14 -0800 (PST) From: Bjorn Andersson To: Andy Gross , David Brown Cc: Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Doug Anderson , Zhuowei Zhang , Vivek Gautam Subject: [PATCH] arm64: dts: qcom: sdm845: Define iommus for USB controllers Date: Mon, 4 Feb 2019 16:56:08 -0800 Message-Id: <20190205005608.21556-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The USB controllers need to be associated with their respective IOMMU bank, so define this on the dwc3 nodes. Also add dma-ranges to the qcom-dwc3 nodes to make the bus' DMA mask propagate to the dwc3 controller instances. Fixes: 4429e57567bb ("arm64: dts: sdm845: Add node for arm,mmu-500") Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 4 ++++ 1 file changed, 4 insertions(+) -- 2.18.0 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 05577f08d18f..1deebf797636 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -1659,6 +1659,7 @@ #address-cells = <2>; #size-cells = <2>; ranges; + dma-ranges; clocks = <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>, <&gcc GCC_USB30_PRIM_MASTER_CLK>, @@ -1687,6 +1688,7 @@ compatible = "snps,dwc3"; reg = <0 0x0a600000 0 0xcd00>; interrupts = ; + iommus = <&apps_smmu 0x740 0>; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk; phys = <&usb_1_hsphy>, <&usb_1_ssphy>; @@ -1701,6 +1703,7 @@ #address-cells = <2>; #size-cells = <2>; ranges; + dma-ranges; clocks = <&gcc GCC_CFG_NOC_USB3_SEC_AXI_CLK>, <&gcc GCC_USB30_SEC_MASTER_CLK>, @@ -1729,6 +1732,7 @@ compatible = "snps,dwc3"; reg = <0 0x0a800000 0 0xcd00>; interrupts = ; + iommus = <&apps_smmu 0x760 0>; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk; phys = <&usb_2_hsphy>, <&usb_2_ssphy>;