From patchwork Wed Aug 28 07:56:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172340 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp396370ily; Wed, 28 Aug 2019 00:57:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqztR1eNidL/R+hC7XMnDtE8qBMxenCltCm308PUxvhNvCEj2UhNbFUm0UIMNS69qiSxHogp X-Received: by 2002:a17:90a:8a0d:: with SMTP id w13mr2794928pjn.137.1566979023632; Wed, 28 Aug 2019 00:57:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566979023; cv=none; d=google.com; s=arc-20160816; b=cBYe56xszLQrWNXPqT5UKms+zr9er36UyNX9xqOv1Xe3eQdp+PSqp6GukbZeT1fzlW 5szQ+PfzLzWnF3+lV5ZKdPcdTLkBabM7liV79Qj/5SQWIWn6Nuq6NrQu5mit2QMe2Znz X+Q8B9YFl3Ms71PLd/MBO8AGPW5LuWOZ3mV2WS/AqHegWXda4ZArSpkdv8FQnuUwPRYk 2wzch7tMwz81Pe67cukPXdZRLOluVxI12SkNRSAFiIpmnS3FQARszk8CsYxQ6pS2Cmmt eWRR6DBQY302fN9Soj6Lkfq/jVAVCRq2dxDiydoIXc/r4HZgYrgp9qfYmJOyyNrrxFw4 fw4A== 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=u5tysN0SZOq/tSuyufNeM9PorN2KHwQ83/BegyqbgjI=; b=m+cVzNaoNI6ZgKYV/CSbLxv7cSIE97JRjCZANl78399nfZ48ptIHopSeRDG/fbHkED d1s6LPNLYT2WoNHrFwNlYRNwbEAn6xkh3i/YbtbrSCjFQpPrG7ggnYr6GK1OZXIkmKUn 26oC9exwCc25cExp+GAhP1RO/RucipWGhy6UOrfTOWDoyLe9Ts1ewNFl9z4vRdvv1Kpw QQ7E/9joIrUTslDC4+6JmhVz+7DnmrzI6zEhGmlbjchzP1w4d0JumLwq2cP0VWkgDsSy yzKj9bbT4zRCosj9kpmoQMSwx8Ue4n3qgancOSeziP1kBu4FZnslNpRVo5N5gREECOYI rqjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JvmWmEIF; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 p4si1573592pgh.350.2019.08.28.00.57.03; Wed, 28 Aug 2019 00:57:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=JvmWmEIF; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S1726382AbfH1H5D (ORCPT + 5 others); Wed, 28 Aug 2019 03:57:03 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:58684 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbfH1H5C (ORCPT ); Wed, 28 Aug 2019 03:57:02 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7S7uxJF123121; Wed, 28 Aug 2019 02:56:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566979019; bh=u5tysN0SZOq/tSuyufNeM9PorN2KHwQ83/BegyqbgjI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JvmWmEIFfFauU/RYUeBDx/hWp4iBOZ5NHIPqqF1LoRkYn9PTGhqtyeL9UAIUpxqnL FjoFJfvthz+qTiu3JmrPyy/Xu0TAOqU2oB7kxDkWjNfty1fycn9HuKtxVDJpE4oVl5 i3kx7Q/KDmPjEGr1wbiF69zwetJSmR6qGWz+VBts= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7ux4H072041 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:56:59 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 28 Aug 2019 02:56:59 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.1713.5 via Frontend Transport; Wed, 28 Aug 2019 02:56:59 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7S7uuFk107124; Wed, 28 Aug 2019 02:56:58 -0500 From: Tero Kristo To: , CC: , Subject: [PATCH 01/10] ARM: dts: omap5: add IVA clkctrl nodes Date: Wed, 28 Aug 2019 10:56:35 +0300 Message-ID: <20190828075644.4493-2-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828075644.4493-1-t-kristo@ti.com> References: <20190828075644.4493-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Add clkctrtl nodes for Image and Video Accelerator subsystem for omap5. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/omap54xx-clocks.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm/boot/dts/omap54xx-clocks.dtsi b/arch/arm/boot/dts/omap54xx-clocks.dtsi index 33e8dd905bff..f1ab2777e33e 100644 --- a/arch/arm/boot/dts/omap54xx-clocks.dtsi +++ b/arch/arm/boot/dts/omap54xx-clocks.dtsi @@ -1132,6 +1132,20 @@ }; }; + iva_cm: iva_cm@1200 { + compatible = "ti,omap4-cm"; + reg = <0x1200 0x100>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x1200 0x100>; + + iva_clkctrl: clk@20 { + compatible = "ti,clkctrl"; + reg = <0x20 0xc>; + #clock-cells = <2>; + }; + }; + dss_cm: dss_cm@1400 { compatible = "ti,omap4-cm"; reg = <0x1400 0x100>; From patchwork Wed Aug 28 07:56:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172342 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp396398ily; Wed, 28 Aug 2019 00:57:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3Uz50igyYRlGW5uX7nMY2pHxpJ3ENpfNEb0fx1OeDax9Od1ir77OMdA2OGeA3+8N2cLO9 X-Received: by 2002:a62:cec4:: with SMTP id y187mr3151435pfg.84.1566979025286; Wed, 28 Aug 2019 00:57:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566979025; cv=none; d=google.com; s=arc-20160816; b=WjdSx3JAuqjzDtMgJ/78UKF468XyOQxAKEDX49NXDu2jD3pizWMQ9azqAlmpuBUYQf e40ww2YFUayRq0SgWoD1hX2LAePG2pcO/XxV/C4TRSrr/hOGCy/ii59vjpWYHOxfa3Tk WJ5V6Lkjv+cAe/nHUkcxjKRkTrTn/0qjf0OJf0cVkQRzAUru7GnSvaWFcaX/n0tobV8f XXU2G0krP+hyCQ7Wx4QM0pF4BiZWn3wm1+9Cf4BFT44OqLMlIEK8bwZGpWI2/+ND9dI0 aoYZQm6JiHz20GK952wgJlIaPmEo8Yz+QLOk4yRPlmDemwaj2blcsZgceiMoQDdEjXFe pURQ== 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=uXEzRmZ8z51c3KPk6HSXAw3k87purAqVMHp+qIFsIyU=; b=C+cWEk2BGEFCwvmEdKb05L+Ma90c+CEB88Ha5zVHHemCitKedjIMO5gQvFDsfV9t6v ulLikQ8UC9irEUHyuVXwtLeupUzlKTOKkvMEXzeeNLFIERaqEawbJ82oBPJsCjkMavXJ KF7q95qy99hNQ3l4y3yxW3us2BN+B8PJSkjCf65G18Uunsd5t2/ox2N/wZX/nsbKOcDj TspfU+IFgjn429ivQY/ji4h1bXIDqc/IYEJnX/ZkWTWAnoQpnfzENy7jlg/43pqVrecG 44LI3vyKC775/zeCjHVTLxziAfdRAOKFWLcz/EeeD8rRjXYMCECrk+kv+qz1man4lUv4 M2Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="fn8qFFe/"; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 p4si1573592pgh.350.2019.08.28.00.57.05; Wed, 28 Aug 2019 00:57:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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="fn8qFFe/"; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S1726394AbfH1H5E (ORCPT + 5 others); Wed, 28 Aug 2019 03:57:04 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:58694 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726290AbfH1H5E (ORCPT ); Wed, 28 Aug 2019 03:57:04 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7S7v0T1123126; Wed, 28 Aug 2019 02:57:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566979020; bh=uXEzRmZ8z51c3KPk6HSXAw3k87purAqVMHp+qIFsIyU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fn8qFFe/hwbwjccB2ES+C1PtMuLaz/Mn6HnJCxBQqhQfHUxt7Av3rDMF0/omntq/G mH1biLT5jOw8ZJfi/oYOKGlpbZ7DhXkYpqCjbL4QFDaRSBPN3ZIhg6C4RgndIUk8mL IaRayL34CGDqnrrpAw0Piu7e0Bmdg8JJNLL0mW1U= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7v0jr123876 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:57:00 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 28 Aug 2019 02:57:00 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 28 Aug 2019 02:57:00 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7S7uuFl107124; Wed, 28 Aug 2019 02:56:59 -0500 From: Tero Kristo To: , CC: , Subject: [PATCH 02/10] ARM: dts: dra7: add PRM nodes Date: Wed, 28 Aug 2019 10:56:36 +0300 Message-ID: <20190828075644.4493-3-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828075644.4493-1-t-kristo@ti.com> References: <20190828075644.4493-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Add PRM nodes for dra7 series of SoCs. These are initially used to support reset control for some of the nodes, but will be extended later to add powerdomain control and support for PRCM irqs among other things. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/dra7.dtsi | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index 953f0ffce2a9..95147289be9c 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -763,3 +763,58 @@ #include "dra7-l4.dtsi" #include "dra7xx-clocks.dtsi" + +&prm { + prm_dsp1: prm@400 { + compatible = "ti,dra7-prm-inst"; + reg = <0x400 0x100>; + #reset-cells = <1>; + clocks = <&dsp1_clkctrl DRA7_DSP1_MMU0_DSP1_CLKCTRL 0>; + }; + + prm_ipu: prm@500 { + compatible = "ti,dra7-prm-inst"; + reg = <0x500 0x100>; + #reset-cells = <1>; + clocks = <&ipu1_clkctrl DRA7_IPU1_MMU_IPU1_CLKCTRL 0>; + }; + + prm_core: prm@700 { + compatible = "ti,dra7-prm-inst"; + reg = <0x700 0x100>; + #reset-cells = <1>; + clocks = <&ipu2_clkctrl DRA7_IPU2_MMU_IPU2_CLKCTRL 0>; + }; + + prm_iva: prm@f00 { + compatible = "ti,dra7-prm-inst"; + reg = <0xf00 0x100>; + }; + + prm_dsp2: prm@1b00 { + compatible = "ti,dra7-prm-inst"; + reg = <0x1b00 0x40>; + #reset-cells = <1>; + clocks = <&dsp2_clkctrl DRA7_DSP2_MMU0_DSP2_CLKCTRL 0>; + }; + + prm_eve1: prm@1b40 { + compatible = "ti,dra7-prm-inst"; + reg = <0x1b40 0x40>; + }; + + prm_eve2: prm@1b80 { + compatible = "ti,dra7-prm-inst"; + reg = <0x1b80 0x40>; + }; + + prm_eve3: prm@1bc0 { + compatible = "ti,dra7-prm-inst"; + reg = <0x1bc0 0x40>; + }; + + prm_eve4: prm@1c00 { + compatible = "ti,dra7-prm-inst"; + reg = <0x1c00 0x60>; + }; +}; From patchwork Wed Aug 28 07:56:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172343 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp396446ily; Wed, 28 Aug 2019 00:57:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIGha6bC/QxZ1dctbGqyYSDoj3j34UI8WWlALxPiOdrKCFv8hnykT+YwFQm/GfM+aur2qr X-Received: by 2002:aa7:8559:: with SMTP id y25mr3091873pfn.260.1566979028124; Wed, 28 Aug 2019 00:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566979028; cv=none; d=google.com; s=arc-20160816; b=qtxUoPS0XyPDGZiMyAbRivF+CvewXFvQKycNFQDCJRY/58COrG0vbW+5FTniIddqK4 g70P+uT5C3g1ZZ91s9o/QSo5rqwDVIB2GcWHVdXDqS5pZiGA27YAtzJrEsrSELe13mFi A4Zeg4RqOgIan6YjEsCdU6GU1iew39qHM5kDH+cME/gMGp/ruyXU7s9e7/skr76gJkDV a6UkQpscl/fSM8DZkBzr3ZcYTPFnicu43JziWwBiWRctqLE0kdYpji532c/gMPS4FPhT tvDF7KewwXrDZozn+RXJ9jzuCm4p7MzFR5+00eel2SLTAzJi+yFb3gyMWzLbkDoOPDUu yG6A== 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=usezFA71rznpN9ia/t+wJ4qi7Gg7ULvpWM8RBhJKtf8=; b=Q0bM+VOfVpWNV9lTTe4D+LIkcKTsXQKN7TPKJynJsXbNuRy1nlJDlPY0wT3RuiXkNd EmcWpcgqZmwXoWxe5fUuHea2Wq0sHKk25DqQjAju6RyVze/KaBOAo7oFjJ3Z2hAUM4Oc NAP2UHPOeMUd0ps9HkC/9dqXwT4Y/wM0K4oyQx0TdLIIQlzz8J/4X0E9hQZHTg7KFRU5 o0XgebvHifGPefWCxywF6hMkmuR93AlSb5HX1p6WmXiokcEmZwtnX2URdNowCAnRmXQr WBbddoMcF1oDdRR9f16e24dHJK0PKw2oxQYP+hrdoqqKve6AtpgjaNGbo3GI/hjvdveV 91mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eVWVv26k; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 p4si1573592pgh.350.2019.08.28.00.57.07; Wed, 28 Aug 2019 00:57:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=eVWVv26k; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S1726326AbfH1H5H (ORCPT + 5 others); Wed, 28 Aug 2019 03:57:07 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:37160 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726290AbfH1H5H (ORCPT ); Wed, 28 Aug 2019 03:57:07 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7S7v2eU127649; Wed, 28 Aug 2019 02:57:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566979022; bh=usezFA71rznpN9ia/t+wJ4qi7Gg7ULvpWM8RBhJKtf8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=eVWVv26kx/ZLkUP2KsIMU9gkIDrDd+eOXNiLPGCXJafrU2Pdny9cfOlO4vk722rTG BEs9xW0LRjRKnl/LkMU66Iiq7LOqXmmLnjk3m0jrhFH+yv9xk/PSEumuCbv4bGxUhf hUBYf9FPfgw5jxTZ+CTluPyy4o+3fz0Cr03pf/AE= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7v2Nc072155 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:57:02 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 28 Aug 2019 02:57:02 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 28 Aug 2019 02:57:01 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7S7uuFm107124; Wed, 28 Aug 2019 02:57:00 -0500 From: Tero Kristo To: , CC: , Subject: [PATCH 03/10] ARM: dts: omap4: add PRM nodes Date: Wed, 28 Aug 2019 10:56:37 +0300 Message-ID: <20190828075644.4493-4-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828075644.4493-1-t-kristo@ti.com> References: <20190828075644.4493-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Add PRM nodes for omap4 series of SoCs. These are initially used to support reset control for some of the nodes, but will be extended later to add powerdomain control and support for PRCM irqs among other things. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/omap4-l4.dtsi | 2 +- arch/arm/boot/dts/omap4.dtsi | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm/boot/dts/omap4-l4.dtsi b/arch/arm/boot/dts/omap4-l4.dtsi index bea05dc4ef0f..0977bc39955b 100644 --- a/arch/arm/boot/dts/omap4-l4.dtsi +++ b/arch/arm/boot/dts/omap4-l4.dtsi @@ -981,7 +981,7 @@ ranges = <0x0 0x6000 0x2000>; prm: prm@0 { - compatible = "ti,omap4-prm"; + compatible = "ti,omap4-prm", "simple-bus"; reg = <0x0 0x2000>; interrupts = ; #address-cells = <1>; diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi index c43e52fd5f65..e377f66fc322 100644 --- a/arch/arm/boot/dts/omap4.dtsi +++ b/arch/arm/boot/dts/omap4.dtsi @@ -443,3 +443,32 @@ #include "omap4-l4.dtsi" #include "omap4-l4-abe.dtsi" #include "omap44xx-clocks.dtsi" + +&prm { + prm_tesla: prm@400 { + compatible = "ti,omap4-prm-inst"; + reg = <0x400 0x100>; + #reset-cells = <1>; + clocks = <&tesla_clkctrl OMAP4_DSP_CLKCTRL 0>; + }; + + prm_core: prm@700 { + compatible = "ti,omap4-prm-inst"; + reg = <0x700 0x100>; + #reset-cells = <1>; + clocks = <&ducati_clkctrl OMAP4_IPU_CLKCTRL 0>; + }; + + prm_ivahd: prm@f00 { + compatible = "ti,omap4-prm-inst"; + reg = <0xf00 0x100>; + #reset-cells = <1>; + clocks = <&ivahd_clkctrl OMAP4_IVA_CLKCTRL 0>; + }; + + prm_device: prm@1b00 { + compatible = "ti,omap4-prm-inst"; + reg = <0x1b00 0x40>; + #reset-cells = <1>; + }; +}; From patchwork Wed Aug 28 07:56:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172344 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp396469ily; Wed, 28 Aug 2019 00:57:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5GfYnmWkxPefbBwCpCYZtogcml19lm+wvdhfPAY3X4i5WPuo2PnksLhF9weiGrVn4xMIM X-Received: by 2002:a17:902:7b97:: with SMTP id w23mr2972102pll.283.1566979029075; Wed, 28 Aug 2019 00:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566979029; cv=none; d=google.com; s=arc-20160816; b=HXrJF51+O0kiApjFn4o3fGzOAJPuLpJH8mbsRujvgZ4GgPLW3SJv6yK1h24E4oFMJy YYm9DzU8RjUH2v6pNVVxAFNXoG0K1N687rhndiVwrBqW0K40cw+a9bTaOzmaPqed5L/5 pltSr+Kg6N/KlZCgrNkFK4k61rQ+t8Y0dBYgTFT+iJ8ItADhgktn6+evPTs8zOiuvVzk lkvtUvArK0Lt6mpXfJArAcWU+AN6vBk+uqvuUBNDoI/2FbrnMvLavYPmLLxwSYnQyKk2 IiiIHR6BCvz6jpuLXI6Z9UzWv4KclU83jQxEq8XlQY7ZxFyO/OlCHRlvN5tvktiqjdvA Vo4w== 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=kh0XqWPOVpwPZwZq3NDgP1PINZHnA6n9NcYoIfo7Ms8=; b=MoqTVK5GnGfQLLMnL3Uqh1ptAeo7H8OUIHe/h7y8aukPvgpuneVtZmRSW5WXfXNI2k ZwY6dH5f4r7LHwYztO1mNDw6cwvObxBUSvxt607NfhX7EIRoYjrVg07Tr3l6YYCv0mjq fm/eg1b1/4IFb1X4Ho73pMWv09YqCe4UErAgdlV98qGVtEcR+Veq1vR+5FIbeEg36cKi symE+M42stS42zw7mErmordeFSOgrbha+I9obGjqwhNSFkownhpVfUR6QEWuonxKntWw TT1V+HITLt+9+w/JJUjjpN72WsVXbnsK3sHa84HWxjjnO6sWC/gQ1Lnpk1EKbEVpJadi /DBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xELkV4Nv; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 p4si1573592pgh.350.2019.08.28.00.57.08; Wed, 28 Aug 2019 00:57:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=xELkV4Nv; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S1726399AbfH1H5I (ORCPT + 5 others); Wed, 28 Aug 2019 03:57:08 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:37166 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbfH1H5I (ORCPT ); Wed, 28 Aug 2019 03:57:08 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7S7v3kS127658; Wed, 28 Aug 2019 02:57:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566979023; bh=kh0XqWPOVpwPZwZq3NDgP1PINZHnA6n9NcYoIfo7Ms8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=xELkV4NvKsUmAKWgdTz8PyPcHUwUK9sCG1T27KPYW9bKxygVrN1x0LqKTOWMsI3zd 7Me+zMWTkrCrDkm5NHid4PubiN7mgtoU3wiiSEWkh6lDdD/CsniydC5GoZ0Ta7WuHv 2jdNDbHslir1Ee4VI3ia7h3Xk5QpLUIaaWE91X8s= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7v3II124014 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:57:03 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 28 Aug 2019 02:57:03 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.1713.5 via Frontend Transport; Wed, 28 Aug 2019 02:57:03 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7S7uuFn107124; Wed, 28 Aug 2019 02:57:02 -0500 From: Tero Kristo To: , CC: , Subject: [PATCH 04/10] ARM: dts: am33xx: Add PRM data Date: Wed, 28 Aug 2019 10:56:38 +0300 Message-ID: <20190828075644.4493-5-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828075644.4493-1-t-kristo@ti.com> References: <20190828075644.4493-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Add PRM data for AM33xx SoC. Initially this is used to provide reset support, but will be expanded later to support also powerdomain control. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/am33xx.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index e5c2f71a7c77..7448400a119e 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts/am33xx.dtsi @@ -445,3 +445,32 @@ #include "am33xx-l4.dtsi" #include "am33xx-clocks.dtsi" + +&prcm { + prm_per: prm@c00 { + compatible = "ti,am3-prm-inst"; + reg = <0xc00 0x100>; + #reset-cells = <1>; + clocks = <&pruss_ocp_clkctrl AM3_PRUSS_OCP_PRUSS_CLKCTRL 0>; + }; + + prm_wkup: prm@d00 { + compatible = "ti,am3-prm-inst"; + reg = <0xd00 0x100>; + #reset-cells = <1>; + clocks = <&l4_wkup_clkctrl AM3_WKUP_M3_CLKCTRL 0>; + }; + + prm_device: prm@f00 { + compatible = "ti,am3-prm-inst"; + reg = <0xf00 0x100>; + #reset-cells = <1>; + }; + + prm_gfx: prm@1100 { + compatible = "ti,am3-prm-inst"; + reg = <0x1100 0x100>; + #reset-cells = <1>; + clocks = <&gfx_l3_clkctrl AM3_GFX_CLKCTRL 0>; + }; +}; From patchwork Wed Aug 28 07:56:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172345 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp396480ily; Wed, 28 Aug 2019 00:57:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuJiYsQH3V8crNKXymsOee+UUD38mrQg+GTNl/fosMe96FBDs6MV761445S1JcmIn0rXFq X-Received: by 2002:a62:38d7:: with SMTP id f206mr3197205pfa.102.1566979029994; Wed, 28 Aug 2019 00:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566979029; cv=none; d=google.com; s=arc-20160816; b=FCTK2jyBfvPbueGazFQhzrBfWUgVvGnauL/B0Qtvm44Hjy4/iB35WSNb0LM7g7RnRR 6NFWsiLnT2KDAGckW6W3Nubb++jCbmldbenBBqoYAvhRzwrcSiSUtDjBAXWPM8LouCLT G1ule+3QA2Pni3zhsNtKlxpGlEcRduJF5HNejNjzV4Vu7HoNM+fZnL0yNebPJycCspT0 ihNqrPOXBDe3RDCNRwC0XFrpYwPpMyLjJjNl3nq7ZMxanltiAouQI8jWT53WeG+icYut Ir7Pzt5FukX5BqkYp0RETXHd0Mb4ZUhobUrMKI2ETXorbGZzTRHewAZ4duKWfQtK5VJB Z+Sg== 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=bV7v6jpzGIFR9zq5s75cVQi0wC5i+NfYYrnSlvWqJrY=; b=l6LnW0NNWxsl4pgzpM5igfgRAlzUWLTcliEuriWmpcxXxGpnqY6LtuhJM0+8CfI8zh orZfUH2kQguO4rLEuUI/0QT++xZLMJO78Ge7LlXpIc1qp5M+IqXQUXgluAIa2kZzGmGJ Io/zYaZFC/6cYJZ1kz/fkpYg6ehsFNw3OTMAvXcWSzwPDh0bzb4G7T/Xe4qQAHS6xX6k VNHdBY0s50DrcqpXZNvKeO1Cqz8QvTIIB7wMOTku52PZQT2E5p+EjC/ngr7370MqKVQW qQDVlX3FiNCg18mMzUUn5DSJ5hL/AlBfrGsE0vUwIdy/mGP8Agv683xLrmvz8k2plsR9 rELw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fpx+YKcp; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 p4si1573592pgh.350.2019.08.28.00.57.09; Wed, 28 Aug 2019 00:57:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=fpx+YKcp; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S1726290AbfH1H5J (ORCPT + 5 others); Wed, 28 Aug 2019 03:57:09 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:37170 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbfH1H5J (ORCPT ); Wed, 28 Aug 2019 03:57:09 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7S7v5ms127667; Wed, 28 Aug 2019 02:57:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566979025; bh=bV7v6jpzGIFR9zq5s75cVQi0wC5i+NfYYrnSlvWqJrY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fpx+YKcpik5O8NsYVVQvNBBcj20qZLch66ErL87bPypPTB/oqDBgy1OL2ByrUmy1i Te8W7NMdmak1u5aFyVkYqiW4GUeGjdbD9QGnUM+LFKGatBpcJxkHgViGoIdOrMimdi qlp/l7MCOg5a+f4kJdu+w06HuDehryacpQbV8/aY= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7v5c7127606 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:57:05 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 28 Aug 2019 02:57:04 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 28 Aug 2019 02:57:04 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7S7uuFo107124; Wed, 28 Aug 2019 02:57:03 -0500 From: Tero Kristo To: , CC: , Subject: [PATCH 05/10] ARM: dts: am43xx: Add PRM data Date: Wed, 28 Aug 2019 10:56:39 +0300 Message-ID: <20190828075644.4493-6-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828075644.4493-1-t-kristo@ti.com> References: <20190828075644.4493-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Add PRM data for AM43xx SoC. Initially this is used to provide reset support, but will be expanded later to support also powerdomain control. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/am4372.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi index 55aff4db9c7c..4bd22c6ba3ff 100644 --- a/arch/arm/boot/dts/am4372.dtsi +++ b/arch/arm/boot/dts/am4372.dtsi @@ -353,3 +353,32 @@ #include "am437x-l4.dtsi" #include "am43xx-clocks.dtsi" + +&prcm { + prm_gfx: prm@400 { + compatible = "ti,am4-prm-inst"; + reg = <0x400 0x100>; + #reset-cells = <1>; + clocks = <&gfx_l3_clkctrl AM4_GFX_L3_GFX_CLKCTRL 0>; + }; + + prm_per: prm@800 { + compatible = "ti,am4-prm-inst"; + reg = <0x800 0x100>; + #reset-cells = <1>; + clocks = <&pruss_ocp_clkctrl AM4_PRUSS_OCP_PRUSS_CLKCTRL 0>; + }; + + prm_wkup: prm@2000 { + compatible = "ti,am4-prm-inst"; + reg = <0x2000 0x100>; + #reset-cells = <1>; + clocks = <&l4_wkup_aon_clkctrl AM4_L4_WKUP_AON_WKUP_M3_CLKCTRL 0>; + }; + + prm_device: prm@4000 { + compatible = "ti,am4-prm-inst"; + reg = <0x4000 0x100>; + #reset-cells = <1>; + }; +}; From patchwork Wed Aug 28 07:56:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172346 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp396496ily; Wed, 28 Aug 2019 00:57:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcHIEYlcJmZSOqgjTvh5wr6mEKNYi1tNPswu4WqUtpTae3YTcOv81yuJ7LkYICUgBlCi7t X-Received: by 2002:a17:90a:d792:: with SMTP id z18mr2951417pju.36.1566979031167; Wed, 28 Aug 2019 00:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566979031; cv=none; d=google.com; s=arc-20160816; b=x4KR2zQ24NyqpVm8swUV+bJVZ84EGK+pfBgQtagnzmBN7N/Mba9QMNEv8FQQ9GiuHa 3X6oPDwRuh1xtfAzwEAa+L06dG1ztzCBZvs1J1qiCTlezojP8nAkrb/1YgT26ydU9sc1 LoWzKthssXWcNuwrUSio5w6sAhHWBTOq2NQ55S8Uma5b5Uw9/PaRcr8Zir5Ld+TbnfJN FoyPYxUrAriXf0wOMWhzm8K0L3p/FtZs4hT4uieSziko7cjdcR/6cBzcTrdj/MI0Hbyr KJ871sV/4W/NU/Xjn6YHXcpwKj9qjZxmEEbBsGahc3wWo5VDQrN6X4yo4QRtZOYbf2lo G5qQ== 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=hxpUWyPrR3KIUmCy4NBe4h8DLkiKMukqt5xjoDbP8T4=; b=yzoyJQN7yrtdDA8H1QwVyq+FltIxETaj1KQ67wZVL2SWXWFlVe/0jhRRQY7S4JFviM iQ4puv3PH8lbkJxDq0MsfU12+jMsL4dO69VPeT4ggT10Zjr+hk1BpzpbZcY7dlyg2NdS iF0eVf9unIVwcCms2CNgi27HePUUBF1xkInRd3U8gXbJd5mGhagmYTiYl7Awecipt714 3uK4389mbmd9Xl8aonoXXSXP47PfszmqNxzIiJ4N/Ye92j0kZRFNTYrt0zkYeYNKFMqw 1yf5uRwM9JYL6KMr+ERImRSOIuVJdbeOf3IDDkZwEVImP1JnvNm5MJkntj66L6j7s6GZ s4mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dLpyv4z1; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 p4si1573592pgh.350.2019.08.28.00.57.10; Wed, 28 Aug 2019 00:57:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=dLpyv4z1; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S1726422AbfH1H5K (ORCPT + 5 others); Wed, 28 Aug 2019 03:57:10 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:58720 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbfH1H5K (ORCPT ); Wed, 28 Aug 2019 03:57:10 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7S7v6Ar123169; Wed, 28 Aug 2019 02:57:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566979026; bh=hxpUWyPrR3KIUmCy4NBe4h8DLkiKMukqt5xjoDbP8T4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=dLpyv4z1izWujIj6V5XauobGguNoQtJ8rpHSYuo7NkMcNT0FkLzEBonMKT8G9Am+j XAhVPYHkSu9LcV16wdTDlupqzDhZLJegOsRH9DRpcIqoo2UudEr8wfdBhQRrZz9JZe 5rhw4T4DbGp2/wDkWeGo+cxOd1gmixiohmbQ72bY= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7v6ND124268 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:57:06 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 28 Aug 2019 02:57:06 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 28 Aug 2019 02:57:06 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7S7uuFp107124; Wed, 28 Aug 2019 02:57:05 -0500 From: Tero Kristo To: , CC: , Subject: [PATCH 06/10] ARM: dts: omap5: Add PRM data Date: Wed, 28 Aug 2019 10:56:40 +0300 Message-ID: <20190828075644.4493-7-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828075644.4493-1-t-kristo@ti.com> References: <20190828075644.4493-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Add PRM data for OMAP54xx SoC. Initially this is used to provide reset support, but will be expanded later to support also powerdomain control. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/omap5.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi index edfd26c03462..c8bde171a949 100644 --- a/arch/arm/boot/dts/omap5.dtsi +++ b/arch/arm/boot/dts/omap5.dtsi @@ -412,3 +412,33 @@ #include "omap5-l4-abe.dtsi" #include "omap54xx-clocks.dtsi" + +&prm { + prm_dsp: prm@400 { + compatible = "ti,omap5-prm-inst"; + reg = <0x400 0x100>; + #reset-cells = <1>; + clocks = <&dsp_clkctrl OMAP5_MMU_DSP_CLKCTRL 0>; + + }; + + prm_core: prm@700 { + compatible = "ti,omap5-prm-inst"; + reg = <0x700 0x100>; + #reset-cells = <1>; + clocks = <&ipu_clkctrl OMAP5_MMU_IPU_CLKCTRL 0>; + }; + + prm_iva: prm@1200 { + compatible = "ti,omap5-prm-inst"; + reg = <0x1200 0x100>; + #reset-cells = <1>; + clocks = <&iva_clkctrl OMAP5_IVA_CLKCTRL 0>; + }; + + prm_device: prm@1c00 { + compatible = "ti,omap5-prm-inst"; + reg = <0x1c00 0x100>; + #reset-cells = <1>; + }; +}; From patchwork Wed Aug 28 07:56:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172349 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp396562ily; Wed, 28 Aug 2019 00:57:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyslamjy3//2ZpPyKHxJjn2UiEFTCEHA5q+8fFTfMMqth/FMhTdM0P8kCp3Wen4hldLM0LX X-Received: by 2002:a62:f20a:: with SMTP id m10mr3106126pfh.95.1566979035631; Wed, 28 Aug 2019 00:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566979035; cv=none; d=google.com; s=arc-20160816; b=harBRIRk5jYXGLkl0ceSisr/PUyL8B7PzfBBWZ36f2VJV8FynUFDtRHIoxksMxfR5F 7+t5I9Yg7n0ugkRqK5vcjh0ICrsd8SqhJRUFrKQHu8pOWSzIzuG/Eb/QNIY+DKCauzPW uo2eskxpcOWwenmMGgbSMamSFwMDhkoUsfwOKYeXMyuoj/XHK2STFEuob+ZimIxmRltB ThHDXc0CJyiu6j0gDnFyGbcWd3B1DsPXpZHAgFs5fW8DAOnv5cM7hSSecqCGdGESb9+l OWu/cV88BuBZ/q0OoEZ5F9DaGhirn2V8amDEAA+wUdilQEn9XngUvW6c8ICvlT4spRJt HTGw== 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=PdU5LgP9Hg6QKlaio0Oi7x2kiAEJReGQeaYlIom23cw=; b=B90e7U4Re9IJgUki/9DpBcOOTl7A6OLBAgLVhQFSdLLinEvhlHeqzMrYS5KlCQb6Jx Ln7MauBdDqU2+HgX2NNM4fRDKbuuP5QfFsJdcsJWeF+Kb5LFRVJf+R/cOkJZ5wgmEG6u P5MJenvxJWOjh7WfeRgs6AF0m0l01V3/koH9cCJzESwWSgo6I/45x4ntwbTKL7cLoXNv GJpNSNFq4gDM6U39pdMuur7z3nq7sJ1AAvUmw35/ZvCxrtequ9DQ8pwpWy82+L+62jc+ G44lf3m6nZw6WxOfsQDFJSp0M3d1nUn56K9C1lQ91S+0i8ONglxHQ3okFF+fK2O1uldx B2xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=blR8ntm3; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 e8si1256163pjw.86.2019.08.28.00.57.15; Wed, 28 Aug 2019 00:57:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=blR8ntm3; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S1726340AbfH1H5O (ORCPT + 5 others); Wed, 28 Aug 2019 03:57:14 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:39464 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726432AbfH1H5N (ORCPT ); Wed, 28 Aug 2019 03:57:13 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7S7v9do007401; Wed, 28 Aug 2019 02:57:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566979029; bh=PdU5LgP9Hg6QKlaio0Oi7x2kiAEJReGQeaYlIom23cw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=blR8ntm3kKo8JbcKDkKA8bkXjdLUKAyeQZvRhAlcUpe1/nwJ0K4TmtQlIEEV0yKyk ovrA5MtVExT07O3XKAFUMTM0ug9QqCrQqG/ZnBFWrBhArd/ioXw0Mxux1aQXfvEp/4 lcBpMFe/c2BExo5ALcV67OkSXEBbJDFCsMAxI8NQ= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7v9Dm124352 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:57:09 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) 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.1713.5; Wed, 28 Aug 2019 02:57:07 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.1713.5 via Frontend Transport; Wed, 28 Aug 2019 02:57:07 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7S7uuFq107124; Wed, 28 Aug 2019 02:57:06 -0500 From: Tero Kristo To: , CC: , Subject: [PATCH 07/10] ARM: dts: dra7: convert IOMMUs to use ti-sysc Date: Wed, 28 Aug 2019 10:56:41 +0300 Message-ID: <20190828075644.4493-8-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828075644.4493-1-t-kristo@ti.com> References: <20190828075644.4493-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Convert dra7 IOMMUs to use ti-sysc instead of legacy omap-hwmod based implementation. Enable the IOMMUs also while doing this. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/dra7.dtsi | 140 +++++++++++++++++++++++++++--------- 1 file changed, 108 insertions(+), 32 deletions(-) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index 95147289be9c..98c01f204a1a 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -377,44 +377,120 @@ ti,hwmods = "dmm"; }; - mmu0_dsp1: mmu@40d01000 { - compatible = "ti,dra7-dsp-iommu"; - reg = <0x40d01000 0x100>; - interrupts = ; - ti,hwmods = "mmu0_dsp1"; - #iommu-cells = <0>; - ti,syscon-mmuconfig = <&dsp1_system 0x0>; - status = "disabled"; + target-module@40d01000 { + compatible = "ti,sysc-omap2", "ti,sysc"; + reg = <0x40d01000 0x4>, + <0x40d01010 0x4>, + <0x40d01014 0x4>; + reg-names = "rev", "sysc", "syss"; + ti,sysc-sidle = , + , + ; + ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY | + SYSC_OMAP2_SOFTRESET | + SYSC_OMAP2_AUTOIDLE)>; + clocks = <&dsp1_clkctrl DRA7_DSP1_MMU0_DSP1_CLKCTRL 0>; + clock-names = "fck"; + resets = <&prm_dsp1 1>; + reset-names = "rstctrl"; + ranges = <0x0 0x40d01000 0x1000>; + #size-cells = <1>; + #address-cells = <1>; + + mmu0_dsp1: mmu@0 { + compatible = "ti,dra7-dsp-iommu"; + reg = <0x0 0x100>; + interrupts = ; + #iommu-cells = <0>; + ti,syscon-mmuconfig = <&dsp1_system 0x0>; + }; }; - mmu1_dsp1: mmu@40d02000 { - compatible = "ti,dra7-dsp-iommu"; - reg = <0x40d02000 0x100>; - interrupts = ; - ti,hwmods = "mmu1_dsp1"; - #iommu-cells = <0>; - ti,syscon-mmuconfig = <&dsp1_system 0x1>; - status = "disabled"; + target-module@40d02000 { + compatible = "ti,sysc-omap2", "ti,sysc"; + reg = <0x40d02000 0x4>, + <0x40d02010 0x4>, + <0x40d02014 0x4>; + reg-names = "rev", "sysc", "syss"; + ti,sysc-sidle = , + , + ; + ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY | + SYSC_OMAP2_SOFTRESET | + SYSC_OMAP2_AUTOIDLE)>; + clocks = <&dsp1_clkctrl DRA7_DSP1_MMU0_DSP1_CLKCTRL 0>; + clock-names = "fck"; + resets = <&prm_dsp1 1>; + reset-names = "rstctrl"; + ranges = <0x0 0x40d02000 0x1000>; + #size-cells = <1>; + #address-cells = <1>; + + mmu1_dsp1: mmu@0 { + compatible = "ti,dra7-dsp-iommu"; + reg = <0x0 0x100>; + interrupts = ; + #iommu-cells = <0>; + ti,syscon-mmuconfig = <&dsp1_system 0x1>; + }; }; - mmu_ipu1: mmu@58882000 { - compatible = "ti,dra7-iommu"; - reg = <0x58882000 0x100>; - interrupts = ; - ti,hwmods = "mmu_ipu1"; - #iommu-cells = <0>; - ti,iommu-bus-err-back; - status = "disabled"; + target-module@58882000 { + compatible = "ti,sysc-omap2", "ti,sysc"; + reg = <0x58882000 0x4>, + <0x58882010 0x4>, + <0x58882014 0x4>; + reg-names = "rev", "sysc", "syss"; + ti,sysc-sidle = , + , + ; + ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY | + SYSC_OMAP2_SOFTRESET | + SYSC_OMAP2_AUTOIDLE)>; + clocks = <&ipu1_clkctrl DRA7_IPU1_MMU_IPU1_CLKCTRL 0>; + clock-names = "fck"; + resets = <&prm_ipu 2>; + reset-names = "rstctrl"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x58882000 0x100>; + + mmu_ipu1: mmu@0 { + compatible = "ti,dra7-iommu"; + reg = <0x0 0x100>; + interrupts = ; + #iommu-cells = <0>; + ti,iommu-bus-err-back; + }; }; - mmu_ipu2: mmu@55082000 { - compatible = "ti,dra7-iommu"; - reg = <0x55082000 0x100>; - interrupts = ; - ti,hwmods = "mmu_ipu2"; - #iommu-cells = <0>; - ti,iommu-bus-err-back; - status = "disabled"; + target-module@55082000 { + compatible = "ti,sysc-omap2", "ti,sysc"; + reg = <0x55082000 0x4>, + <0x55082010 0x4>, + <0x55082014 0x4>; + reg-names = "rev", "sysc", "syss"; + ti,sysc-sidle = , + , + ; + ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY | + SYSC_OMAP2_SOFTRESET | + SYSC_OMAP2_AUTOIDLE)>; + clocks = <&ipu2_clkctrl DRA7_IPU2_MMU_IPU2_CLKCTRL 0>; + clock-names = "fck"; + resets = <&prm_core 2>; + reset-names = "rstctrl"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x55082000 0x100>; + + mmu_ipu2: mmu@0 { + compatible = "ti,dra7-iommu"; + reg = <0x0 0x100>; + interrupts = ; + #iommu-cells = <0>; + ti,iommu-bus-err-back; + }; }; abb_mpu: regulator-abb-mpu { From patchwork Wed Aug 28 07:56:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172347 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp396556ily; Wed, 28 Aug 2019 00:57:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIpFhOB+LlFnd+DJ/YkfR1yJfsjx4FxeXGyZfjnQDIWb2tbWLNo3EQB8Q38R9/2SKHx8Fk X-Received: by 2002:a17:902:f24:: with SMTP id 33mr2938990ply.309.1566979034885; Wed, 28 Aug 2019 00:57:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566979034; cv=none; d=google.com; s=arc-20160816; b=Zz80/Xu/FNhlGgyzQSXhHngKg9Ncxainr/X8Uke/ADehYpin2pScaojVo10skUsmPX KNofKGmy7qS//cWguBatRrcEsSMWD4t5h8lVewRL842Q5gQY/1gjQjx5u90ybYxjziFY iLhCQfOc206GHMI4g8c9RvMogb3jm+Bx7UbsBhe4MXiB1ccjGz9CnLajME0YbP3gTKXb u9GSNFajxhu7nW47wOE3sN+cLt2dF21IEC+h+9HB65MhanWPJ+Iyj8P+QV6TH8SkhHCJ 0fUEYoz2gMcAUaYpcOJU6sUd/uYvZ7oG9iq0NORYT6c1c95kjCfOvF/PYU3T3IbNJGb6 bBGg== 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=gdGNt8Bd4D3tOazg61iqzY4jL5JivnDdetottPmFFxY=; b=tF9osXyLm3H4iKWou/kGQV4QA+QCqpuv42EH9Nb7GISHiW5mo8EqlEOk15sBMczm9f 9PYMCWs/5cKovd+ALb2sDRTkHfIoQiURbJXCa0wEctBNliRaLGDDM9T5yslM3ipZkqbu VUJ/+yVjXz+vfuCtbRZfTXaDUcFFrO81pOCe8tiZaw2Smezk3b9U5x1vEoGM/T12tevx YHJtPlAv8yMt3YsWuyjOMwAGLiL6wEwghGmEjeb1bFAkErU8M4SeVgMiK4+tOdRDtY0J OF184lHFD2wmG0gAHwHPlSILPhCAgeY2ge2888SNpOEJ+6bV4pDupHXIyNv8N6WYZmiQ bkww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=yZLlUsyN; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 e8si1256163pjw.86.2019.08.28.00.57.14; Wed, 28 Aug 2019 00:57:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=yZLlUsyN; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S1726463AbfH1H5N (ORCPT + 5 others); Wed, 28 Aug 2019 03:57:13 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:48498 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726437AbfH1H5N (ORCPT ); Wed, 28 Aug 2019 03:57:13 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7S7v9kS014940; Wed, 28 Aug 2019 02:57:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566979029; bh=gdGNt8Bd4D3tOazg61iqzY4jL5JivnDdetottPmFFxY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=yZLlUsyNd3RG0FDRjfy+iA7z2Wq7qFdt+gtKqMrRitq07hQJjQw+ArASwxWDLT5sM dfa59sZFk0+y/ratrTQWxmSYIjsS57RCbXY1wOqx7MlXH31wqpy087Dx1kaDmWyoZ0 zymYOGTxNHuDm7OoCUqUyqJlfpxXZEH6Ta4h3GKM= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7v9rV072447 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:57:09 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 28 Aug 2019 02:57:09 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 28 Aug 2019 02:57:09 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7S7uuFr107124; Wed, 28 Aug 2019 02:57:08 -0500 From: Tero Kristo To: , CC: , Subject: [PATCH 08/10] ARM: dts: dra74x: convert IOMMUs to use ti-sysc Date: Wed, 28 Aug 2019 10:56:42 +0300 Message-ID: <20190828075644.4493-9-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828075644.4493-1-t-kristo@ti.com> References: <20190828075644.4493-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Convert dra74x IOMMUs to use ti-sysc instead of legacy omap-hwmod based implementation. Enable the IOMMUs also while doing this. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/dra74x.dtsi | 71 +++++++++++++++++++++++++++-------- 1 file changed, 55 insertions(+), 16 deletions(-) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm/boot/dts/dra74x.dtsi b/arch/arm/boot/dts/dra74x.dtsi index d1b5b76bc5a8..c5abc436ca1f 100644 --- a/arch/arm/boot/dts/dra74x.dtsi +++ b/arch/arm/boot/dts/dra74x.dtsi @@ -66,24 +66,63 @@ }; }; - mmu0_dsp2: mmu@41501000 { - compatible = "ti,dra7-dsp-iommu"; - reg = <0x41501000 0x100>; - interrupts = ; - ti,hwmods = "mmu0_dsp2"; - #iommu-cells = <0>; - ti,syscon-mmuconfig = <&dsp2_system 0x0>; - status = "disabled"; + target-module@41501000 { + compatible = "ti,sysc-omap2", "ti,sysc"; + reg = <0x41501000 0x4>, + <0x41501010 0x4>, + <0x41501014 0x4>; + reg-names = "rev", "sysc", "syss"; + ti,sysc-sidle = , + , + ; + ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY | + SYSC_OMAP2_SOFTRESET | + SYSC_OMAP2_AUTOIDLE)>; + clocks = <&dsp2_clkctrl DRA7_DSP2_MMU0_DSP2_CLKCTRL 0>; + clock-names = "fck"; + resets = <&prm_dsp2 1>; + reset-names = "rstctrl"; + ranges = <0x0 0x41501000 0x1000>; + #size-cells = <1>; + #address-cells = <1>; + + mmu0_dsp2: mmu@0 { + compatible = "ti,dra7-dsp-iommu"; + reg = <0x0 0x100>; + interrupts = ; + #iommu-cells = <0>; + ti,syscon-mmuconfig = <&dsp2_system 0x0>; + }; }; - mmu1_dsp2: mmu@41502000 { - compatible = "ti,dra7-dsp-iommu"; - reg = <0x41502000 0x100>; - interrupts = ; - ti,hwmods = "mmu1_dsp2"; - #iommu-cells = <0>; - ti,syscon-mmuconfig = <&dsp2_system 0x1>; - status = "disabled"; + target-module@41502000 { + compatible = "ti,sysc-omap2", "ti,sysc"; + reg = <0x41502000 0x4>, + <0x41502010 0x4>, + <0x41502014 0x4>; + reg-names = "rev", "sysc", "syss"; + ti,sysc-sidle = , + , + ; + ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY | + SYSC_OMAP2_SOFTRESET | + SYSC_OMAP2_AUTOIDLE)>; + + clocks = <&dsp2_clkctrl DRA7_DSP2_MMU0_DSP2_CLKCTRL 0>; + clock-names = "fck"; + resets = <&prm_dsp2 1>; + reset-names = "rstctrl"; + ranges = <0x0 0x41502000 0x1000>; + #size-cells = <1>; + #address-cells = <1>; + + mmu1_dsp2: mmu@0 { + compatible = "ti,dra7-dsp-iommu"; + reg = <0x0 0x100>; + interrupts = ; + #iommu-cells = <0>; + ti,syscon-mmuconfig = <&dsp2_system 0x1>; + }; }; }; }; From patchwork Wed Aug 28 07:56:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172348 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp396577ily; Wed, 28 Aug 2019 00:57:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPrlzga1+8w7xJ5uld5e2wY0sxBkhcyoFM905vE3lEkLAYsiL5Oh+8+F168HaW+UntbJt8 X-Received: by 2002:aa7:8acb:: with SMTP id b11mr3019522pfd.109.1566979036734; Wed, 28 Aug 2019 00:57:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566979036; cv=none; d=google.com; s=arc-20160816; b=hLaRsIJSdlaJtgzT+mdBwG7SEO9Abqj+bkIp0sWPxLHGmyBVX8hnN2UjuqMOZjf7DD 9v0tR9vIghY4VCXY5e1civ0ykft35RszfVpETsyGeyQAVlNW5ce+wZ23rC1/0F/xh8EU Indl6k+A62+onLtRnUuDf05rCUAhpR/EUgtEzT9keji+hL9C/6I/n+cWexPi5ILZPBvH twXsnWzR3kgLwEj15ahO27+izFuuATbqZkOg7NMdH+ddmqSczWvrN8AL2RvpNnWuEAYm lvRWxVWErmBTMrqJfXBPTwRkwrwPJMsr9X2t/L8AHOVbJr3GHdKlfwsINEGw9+JZ8ALD XSGA== 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=5yW8fV2aU6cp78IZNk82SS1ovC+9UqCNq1P3T0ks24o=; b=SHtW/eK8Kpmp9rF67k7U+vpy1EHNhXGdjO6WO/AJOc1GXn22uwltZJAoQMC2mkiN2E OThytg8D7AgFqL5PgnFwH+zAg8XuyNU526iUEriJE6XpZOoIMwOSH7dOWUaOLFdW32dr QUdPoCdabgUvvsIi0hYM5JvbzZrmD33Lqw6gm6e3YswIWMPzEPmymJ77C+eU+nC377AH fNn2//jNSN6g18X6adq+wHD/XlTsgoL847+v9k9OcFFownNOBiW5T3AJwFnWV68OZZqt lAOtGrtCDR/kvEAnEV7/4u6444uLIALpQwtp5kUL8suTHn3sIjafrXaod3t7uPt0UlMV UP4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=WTjatuQZ; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 e8si1256163pjw.86.2019.08.28.00.57.16; Wed, 28 Aug 2019 00:57:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=WTjatuQZ; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S1726437AbfH1H5Q (ORCPT + 5 others); Wed, 28 Aug 2019 03:57:16 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:37178 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726432AbfH1H5P (ORCPT ); Wed, 28 Aug 2019 03:57:15 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7S7vBIU127680; Wed, 28 Aug 2019 02:57:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566979031; bh=5yW8fV2aU6cp78IZNk82SS1ovC+9UqCNq1P3T0ks24o=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=WTjatuQZFbOkDItcdVs8lF25JbP8N1+tRMJ0V1iSmb6dMu8b5PF5JUBFbzr5SwWDB sZMMKI0lNVEhjXUSjP2UxuUQfE457FWBOWoHZG9PHsYcX06nc/mU/WI3KfV8qSrVFb GM3G0WskhfwnnrFeJNr0WyDZMAZ7hvOlZEY7LIKY= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7vA9I124390 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:57:10 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 28 Aug 2019 02:57:10 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 28 Aug 2019 02:57:10 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7S7uuFs107124; Wed, 28 Aug 2019 02:57:09 -0500 From: Tero Kristo To: , CC: , Subject: [PATCH 09/10] ARM: dts: omap4: convert IOMMUs to use ti-sysc Date: Wed, 28 Aug 2019 10:56:43 +0300 Message-ID: <20190828075644.4493-10-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828075644.4493-1-t-kristo@ti.com> References: <20190828075644.4493-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Convert omap4 IOMMUs to use ti-sysc instead of legacy omap-hwmod based implementation. Enable the IOMMUs also while doing this. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/omap4-l4.dtsi | 11 ++++++--- arch/arm/boot/dts/omap4.dtsi | 43 +++++++++++++++++++++------------ 2 files changed, 36 insertions(+), 18 deletions(-) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm/boot/dts/omap4-l4.dtsi b/arch/arm/boot/dts/omap4-l4.dtsi index 0977bc39955b..7eca6cdbbdd9 100644 --- a/arch/arm/boot/dts/omap4-l4.dtsi +++ b/arch/arm/boot/dts/omap4-l4.dtsi @@ -321,7 +321,6 @@ target-module@66000 { /* 0x4a066000, ap 25 26.0 */ compatible = "ti,sysc-omap2", "ti,sysc"; - ti,hwmods = "mmu_dsp"; reg = <0x66000 0x4>, <0x66010 0x4>, <0x66014 0x4>; @@ -335,12 +334,18 @@ /* Domains (V, P, C): iva, tesla_pwrdm, tesla_clkdm */ clocks = <&tesla_clkctrl OMAP4_DSP_CLKCTRL 0>; clock-names = "fck"; + resets = <&prm_tesla 1>; + reset-names = "rstctrl"; #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x66000 0x1000>; - /* mmu_dsp cannot be moved before reset driver */ - status = "disabled"; + mmu_dsp: mmu@0 { + compatible = "ti,omap4-iommu"; + reg = <0x0 0x100>; + interrupts = ; + #iommu-cells = <0>; + }; }; }; diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi index e377f66fc322..f28fe1c36b0c 100644 --- a/arch/arm/boot/dts/omap4.dtsi +++ b/arch/arm/boot/dts/omap4.dtsi @@ -173,14 +173,6 @@ #gpio-cells = <2>; }; - mmu_dsp: mmu@4a066000 { - compatible = "ti,omap4-iommu"; - reg = <0x4a066000 0x100>; - interrupts = ; - ti,hwmods = "mmu_dsp"; - #iommu-cells = <0>; - }; - target-module@52000000 { compatible = "ti,sysc-omap4", "ti,sysc"; ti,hwmods = "iss"; @@ -206,14 +198,35 @@ /* No child device binding, driver in staging */ }; - mmu_ipu: mmu@55082000 { - compatible = "ti,omap4-iommu"; - reg = <0x55082000 0x100>; - interrupts = ; - ti,hwmods = "mmu_ipu"; - #iommu-cells = <0>; - ti,iommu-bus-err-back; + target-module@55082000 { + compatible = "ti,sysc-omap2", "ti,sysc"; + reg = <0x55082000 0x4>, + <0x55082010 0x4>, + <0x55082014 0x4>; + reg-names = "rev", "sysc", "syss"; + ti,sysc-sidle = , + , + ; + ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY | + SYSC_OMAP2_SOFTRESET | + SYSC_OMAP2_AUTOIDLE)>; + clocks = <&ducati_clkctrl OMAP4_IPU_CLKCTRL 0>; + clock-names = "fck"; + resets = <&prm_core 2>; + reset-names = "rstctrl"; + ranges = <0x0 0x55082000 0x100>; + #size-cells = <1>; + #address-cells = <1>; + + mmu_ipu: mmu@0 { + compatible = "ti,omap4-iommu"; + reg = <0x0 0x100>; + interrupts = ; + #iommu-cells = <0>; + ti,iommu-bus-err-back; + }; }; + target-module@4012c000 { compatible = "ti,sysc-omap4", "ti,sysc"; ti,hwmods = "slimbus1"; From patchwork Wed Aug 28 07:56:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172350 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp396799ily; Wed, 28 Aug 2019 00:57:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCRDX5v++L8mqyiEhVzLTv8GuWgXWTOREL5eJg5kG+lYx8dmqL1cSd2PUbZ8ePhaf1UQss X-Received: by 2002:a62:e109:: with SMTP id q9mr3152859pfh.71.1566979052048; Wed, 28 Aug 2019 00:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566979052; cv=none; d=google.com; s=arc-20160816; b=Rvoy9M7NKLzAorBqPhEjl4jNVqYhH9l2fQ4Hi0BBtNecAO6yMaNxi+/r0ritpVNqlD FTFdfx/ldYXxfmFst7yTFSXYCH1pjVwVUxGEXMGafWklJF5iI1IF86hB/BPkhtFOyt/h 9OmtvFbI0FY2H+8A2iVWwJ0FT8mJTrQeZejVMpR6ffWAmDPfRPZDcAfm9gwevXOYNyZ2 BDlNa29RcPjjP8BfK/e+vqTjTwW/82gfUqwSfYOqReZ7jwR2xgYQHrmdbeRB5zJzUzF6 8kboLn5pQVGNLBFwmtvVcDTs6PSlNCox32kqtLi3znGAfmN08NxHdgJd4xlOe2okkj+t No0w== 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=TGUVPD43qbXTCmcwpihYxSJ/SRD6X4Ttg1A4Zd2r+Xk=; b=ucLiMANfjKZ+wrcbQ8rFvM0E2HfouOxe2Ol2YLED6hTrMgaKM1OlC/NrhEtfq/bIpY DeFZmUS4vorBLFv1OOu3pQxcraxebGwT/OSpNQTQ4xJlIqY3IJ1J7T3ap5VxZ6a3KPuJ pE8RBdfTMSFCf+8YubKlgrs66bi/4xnQhTf9EUfZPmdIw3AI82AkwCjvP2LdMEqpxOk5 pk88sQ/7YwVhz60JQke/699pt57Y4YkYTXqkweV1+T000PupzE22zGApREoTnP82aE9u tGp1JH8fFmjj6u3VC7+vK1tCQXkl5VqS1JXdPo91Gu9d94UHwQ7HSXj1WTY74CsitIQS RXPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=apg1o24Y; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 e8si1256163pjw.86.2019.08.28.00.57.31; Wed, 28 Aug 2019 00:57:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=apg1o24Y; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S1726465AbfH1H5b (ORCPT + 5 others); Wed, 28 Aug 2019 03:57:31 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:39496 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726432AbfH1H5b (ORCPT ); Wed, 28 Aug 2019 03:57:31 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7S7vRxD007447; Wed, 28 Aug 2019 02:57:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1566979047; bh=TGUVPD43qbXTCmcwpihYxSJ/SRD6X4Ttg1A4Zd2r+Xk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=apg1o24YwGO1eLSjaCit8514janK3qe2NeoN8RFojLPDvnKt7OYOmymY5ducRgcL1 0mXwKT3CtGjQ3RrllutdV31SarlGlfrnBK065wn+5qcVvMVRnrJ0JapRbMMrbkPFbu feh5YrgNr8jrxkjkUEot/3K1M6237SZCUmBsXE28= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7S7vRiJ128550 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Aug 2019 02:57:27 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 28 Aug 2019 02:57:26 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.1713.5 via Frontend Transport; Wed, 28 Aug 2019 02:57:27 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7S7uuFt107124; Wed, 28 Aug 2019 02:57:10 -0500 From: Tero Kristo To: , CC: , Subject: [PATCH 10/10] ARM: dts: omap5: convert IOMMUs to use ti-sysc Date: Wed, 28 Aug 2019 10:56:44 +0300 Message-ID: <20190828075644.4493-11-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828075644.4493-1-t-kristo@ti.com> References: <20190828075644.4493-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Convert omap5 IOMMUs to use ti-sysc instead of legacy omap-hwmod based implementation. Enable the IOMMUs also while doing this. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/omap5-l4.dtsi | 11 ++++++--- arch/arm/boot/dts/omap5.dtsi | 40 +++++++++++++++++++++------------ 2 files changed, 34 insertions(+), 17 deletions(-) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/arch/arm/boot/dts/omap5-l4.dtsi b/arch/arm/boot/dts/omap5-l4.dtsi index 0960348002ad..80c2d2fcc03b 100644 --- a/arch/arm/boot/dts/omap5-l4.dtsi +++ b/arch/arm/boot/dts/omap5-l4.dtsi @@ -349,7 +349,6 @@ target-module@66000 { /* 0x4a066000, ap 23 0a.0 */ compatible = "ti,sysc-omap2", "ti,sysc"; - ti,hwmods = "mmu_dsp"; reg = <0x66000 0x4>, <0x66010 0x4>, <0x66014 0x4>; @@ -364,12 +363,18 @@ /* Domains (V, P, C): mm, dsp_pwrdm, dsp_clkdm */ clocks = <&dsp_clkctrl OMAP5_MMU_DSP_CLKCTRL 0>; clock-names = "fck"; + resets = <&prm_dsp 1>; + reset-names = "rstctrl"; #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x66000 0x1000>; - /* mmu_dsp cannot be moved before reset driver */ - status = "disabled"; + mmu_dsp: mmu@0 { + compatible = "ti,omap4-iommu"; + reg = <0x0 0x100>; + interrupts = ; + #iommu-cells = <0>; + }; }; target-module@70000 { /* 0x4a070000, ap 79 2e.0 */ diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi index c8bde171a949..05929d59b0af 100644 --- a/arch/arm/boot/dts/omap5.dtsi +++ b/arch/arm/boot/dts/omap5.dtsi @@ -186,21 +186,33 @@ #gpio-cells = <2>; }; - mmu_dsp: mmu@4a066000 { - compatible = "ti,omap4-iommu"; - reg = <0x4a066000 0x100>; - interrupts = ; - ti,hwmods = "mmu_dsp"; - #iommu-cells = <0>; - }; + target-module@55082000 { + compatible = "ti,sysc-omap2", "ti,sysc"; + reg = <0x55082000 0x4>, + <0x55082010 0x4>, + <0x55082014 0x4>; + reg-names = "rev", "sysc", "syss"; + ti,sysc-sidle = , + , + ; + ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY | + SYSC_OMAP2_SOFTRESET | + SYSC_OMAP2_AUTOIDLE)>; + clocks = <&ipu_clkctrl OMAP5_MMU_IPU_CLKCTRL 0>; + clock-names = "fck"; + resets = <&prm_core 2>; + reset-names = "rstctrl"; + ranges = <0x0 0x55082000 0x100>; + #size-cells = <1>; + #address-cells = <1>; - mmu_ipu: mmu@55082000 { - compatible = "ti,omap4-iommu"; - reg = <0x55082000 0x100>; - interrupts = ; - ti,hwmods = "mmu_ipu"; - #iommu-cells = <0>; - ti,iommu-bus-err-back; + mmu_ipu: mmu@0 { + compatible = "ti,omap4-iommu"; + reg = <0x0 0x100>; + interrupts = ; + #iommu-cells = <0>; + ti,iommu-bus-err-back; + }; }; dmm@4e000000 {