From patchwork Thu Sep 19 12:30:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 174056 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp944747ill; Thu, 19 Sep 2019 05:30:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTJC70mI+NKm8VcDvKP0TQBZw+fligbiTp7MdkIvbbk5IiRCVYfnw0figT4Wzem5apJqM5 X-Received: by 2002:a17:906:fc20:: with SMTP id ov32mr14228523ejb.22.1568896221363; Thu, 19 Sep 2019 05:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568896221; cv=none; d=google.com; s=arc-20160816; b=hLnr3vL9J3felIC4UKufWdaaPpen/O5R5fvqwgkd6POAhE2ARU611efb/8P4Tb81Ke nRtm5mdprCFd3gZ5rE8GLeqv934D/T5nBuwTfks0natfeSrbSX9Xyedw/0YBBOvK9Ge3 wNzqUa+U3NrHdtDQAp92B/vX95lhzbdJQAk3E1ov+0QqMQQYLbujH3GMJTZs2v2WwZe3 61MaTh4g9ZC7j7VGCxizQwJoy9cLPRxXH2ao6GFZhe+dgQsH6q0sMmLeoaByISv1NHsA wTaU1LwciIzOY68MjnfBqZPlcmNjzvP9yvKe9AFCpuhBxMIWAbGd/B2Ar1hSgnjyw3gA L6XQ== 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=F+n1rsuLrfMe5CItyh0FKyzxNzdl4TWNUEWsERsnn/c=; b=lK5PBpn+PGQW0VtmYG3PJCgApMyULPRhhdPcv5yfncvCBg7qewF6rKuZqWJ378DCez pe8Eo8RNJOI4DYaHtymOtixLco0cTHBEGO6EBn9Gk3p8KTTUAQ3VchwMLzH/jc+eR9Cn YD9vC+HFBAUzRvua7iuPAvhdq90fslq5Crg6zk3DKw2CbvxAZT7a0PRSDDGPhgcPzEGR DUeVolHpim/85G9jXPvxz7q3kItuBIg8Ex0EgiYCeldv+Fh8Liz8qQ2RAksXI/D9wS33 a5+E9uxcATZcvGRmhlwmszM/mo9Cqhu4IcEfG4Bm7u5Semy/JNePD7JKCETuCMGadGYT fS7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HaKj6eiI; 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=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 se14si4552462ejb.322.2019.09.19.05.30.20; Thu, 19 Sep 2019 05:30:21 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b=HaKj6eiI; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390329AbfISMaU (ORCPT + 8 others); Thu, 19 Sep 2019 08:30:20 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:46760 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389347AbfISMaT (ORCPT ); Thu, 19 Sep 2019 08:30:19 -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 x8JCU5Oa127637; Thu, 19 Sep 2019 07:30:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1568896205; bh=F+n1rsuLrfMe5CItyh0FKyzxNzdl4TWNUEWsERsnn/c=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=HaKj6eiIcizrmEfFq5MvgBz2M9Nm9jN1itAeHvmI10aQdHnY9IzWwiT64Z06ftRon Xn7NBMz5SKBXWRwI7nro8ktcJ1cBeZO/lZlhwoY3ksTOctWDF/yi38YgJ0Mj0k8qr3 eMe4rIAD+hF8PThUnZqGRfu/+04kU94qn7hZCXt8= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8JCU4aM037316; Thu, 19 Sep 2019 07:30:04 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 19 Sep 2019 07:30:01 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE104.ent.ti.com (10.64.6.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; Thu, 19 Sep 2019 07:30:04 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8JCU2Pe084177; Thu, 19 Sep 2019 07:30:02 -0500 From: Tero Kristo To: , , , CC: , , , Subject: [PATCHv6 01/10] dt-bindings: omap: add new binding for PRM instances Date: Thu, 19 Sep 2019 15:30:01 +0300 Message-ID: <20190919123001.23081-1-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190917174817.GA27938@bogus> References: <20190917174817.GA27938@bogus> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add new binding for OMAP PRM (Power and Reset Manager) instances. Each of these will act as a power domain controller and potentially as a reset provider. Signed-off-by: Tero Kristo --- v6: added common compatible as per request from Tony Lindgren. This is to simplify the support code in patch #10 of the series slightly .../devicetree/bindings/arm/omap/prm-inst.txt | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/omap/prm-inst.txt -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki Reviewed-by: Tony Lindgren diff --git a/Documentation/devicetree/bindings/arm/omap/prm-inst.txt b/Documentation/devicetree/bindings/arm/omap/prm-inst.txt new file mode 100644 index 000000000000..31f8d8b44a51 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/omap/prm-inst.txt @@ -0,0 +1,30 @@ +OMAP PRM instance bindings + +Power and Reset Manager is an IP block on OMAP family of devices which +handle the power domains and their current state, and provide reset +handling for the domains and/or separate IP blocks under the power domain +hierarchy. + +Required properties: +- compatible: Must contain one of the following: + "ti,am3-prm-inst" + "ti,am4-prm-inst" + "ti,omap4-prm-inst" + "ti,omap5-prm-inst" + "ti,dra7-prm-inst" + and additionally must contain: + "ti,omap-prm-inst" +- reg: Contains PRM instance register address range + (base address and length) + +Optional properties: +- #reset-cells: Should be 1 if the PRM instance in question supports resets. + +Example: + +prm_dsp2: prm@1b00 { + compatible = "ti,omap-prm-inst", "ti,dra7-prm-inst"; + reg = <0x1b00 0x40>; + #reset-cells = <1>; + clocks = <&dsp2_clkctrl DRA7_DSP2_MMU0_DSP2_CLKCTRL 0>; +}; From patchwork Thu Sep 19 12:32:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 174057 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp948222ill; Thu, 19 Sep 2019 05:33:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqym/1GCV8JcOk4MIJGFWh2wOS3QcRIWGmRJZVndAApFFGNlFuUeUOfSCDG/y1WVATpJatpU X-Received: by 2002:a17:906:f82:: with SMTP id q2mr14210085ejj.143.1568896394185; Thu, 19 Sep 2019 05:33:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568896394; cv=none; d=google.com; s=arc-20160816; b=q/jKQg1aS05/Hu+bSTYgH40c0zdAhlZy0ngEG3AucE1Pqgu7UmPnuHPShIMTytgpQk F+oYj4TYRZHrnYZNVAVjTaoFSVB19VlB+Nyb7/s6H7fgXIpTdilD6qy15YE0N+161ZX+ B7Ox+WxwBAVvE2lTkJZUgSK5iXv2/RHSg5YYzAtkg7NDQEwKlNISWXevadSCOuOe9dnZ 61rLB9UfoMr4yIVVleL4Mlnn0zyjTE+T05RubfFFvtc2WkXT8PnKSkVbli+iRATW0s20 +6IMZ+TtrUlCarYjxVHj//PVX5w5hpHtDrITel53r0rCUqAqyXHSM+CIeELdz6//3meo Xx4w== 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=ZO0958N5aCxnvytAw9cNMsH9aVBWOiBYRFXIEH+HxcA=; b=YfNqAPf6sg06cRA3zVe+yTy4DuRdWTlnwI1SwMdZIJeiid007X/ZViSy9Xc4MA9bIK 8Ee5DmM/3QEMvbN3cnrDUVyz7U/gyiZECDEwErk2DNRJYxFams4SpTY1zhyC4EtMpWEQ 6v7bzmhuUDs2zlRTaC5bcQXIE4iNgT/jb3O1QTYYpQF0ZWaulMlNdKSq9h9t6XyA7IlM KoDmgSPDYRSQQzYkqrQhfLY2yFS3MfTUbRH4qCwirEy2k1gJv6KyrG+SWpfaudwgKmel jRADv1/Pn51vIMaAnl2RYNdUvOoJvjrLU4fR8ncZwt2/e3l48epljm2+gVOS3WvlRyak sYLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=V32yxdTF; 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=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 h13si5362100edh.242.2019.09.19.05.33.14; Thu, 19 Sep 2019 05:33:14 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b=V32yxdTF; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732112AbfISMdN (ORCPT + 8 others); Thu, 19 Sep 2019 08:33:13 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:39526 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727980AbfISMdN (ORCPT ); Thu, 19 Sep 2019 08:33: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 x8JCX3ZF022919; Thu, 19 Sep 2019 07:33:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1568896383; bh=ZO0958N5aCxnvytAw9cNMsH9aVBWOiBYRFXIEH+HxcA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=V32yxdTF4MiXT+OdiFMd2y4kHDzuQSGqnpSS0TlP8aXVpGaU7qkpzLygF6gcr12TN q0WJ6ph4ynS/oaB6WFkLnqafv8n7Hs9/ZdhSKQOPqzNczbcZZJYtBCV1iW11mrZGWn J0syZtF/5lZ74VlSGVGgNC8NrUrWtTNzzj7InOVw= 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 x8JCX3dZ038051 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 19 Sep 2019 07:33:03 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) 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; Thu, 19 Sep 2019 07:32:58 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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 via Frontend Transport; Thu, 19 Sep 2019 07:32:58 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8JCWxIK089133; Thu, 19 Sep 2019 07:33:00 -0500 From: Tero Kristo To: , , CC: , , , , Subject: [PATCHv6 10/10] ARM: OMAP2+: pdata-quirks: add PRM data for reset support Date: Thu, 19 Sep 2019 15:32:58 +0300 Message-ID: <20190919123258.23172-1-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190912170953.GT52127@atomide.com> References: <20190912170953.GT52127@atomide.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The parent clockdomain for reset must be in force wakeup mode, otherwise the reset may never complete. Add pdata quirks for this purpose for PRM driver. Signed-off-by: Tero Kristo --- v6: replaced platform specific compatibles with a single common compatible check arch/arm/mach-omap2/pdata-quirks.c | 8 ++++++++ 1 file changed, 8 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/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index 6c6f8fce854e..45ffa1204cd2 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "clockdomain.h" #include "common.h" @@ -565,6 +566,12 @@ void omap_pcs_legacy_init(int irq, void (*rearm)(void)) pcs_pdata.rearm = rearm; } +static struct ti_prm_platform_data ti_prm_pdata = { + .clkdm_deny_idle = clkdm_deny_idle, + .clkdm_allow_idle = clkdm_allow_idle, + .clkdm_lookup = clkdm_lookup, +}; + /* * GPIOs for TWL are initialized by the I2C bus and need custom * handing until DSS has device tree bindings. @@ -664,6 +671,7 @@ static struct of_dev_auxdata omap_auxdata_lookup[] = { /* Common auxdata */ OF_DEV_AUXDATA("ti,sysc", 0, NULL, &ti_sysc_pdata), OF_DEV_AUXDATA("pinctrl-single", 0, NULL, &pcs_pdata), + OF_DEV_AUXDATA("ti,omap-prm-inst", 0, NULL, &ti_prm_pdata), { /* sentinel */ }, };