From patchwork Wed Mar 14 13:53:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 131576 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp904314ljb; Wed, 14 Mar 2018 06:53:36 -0700 (PDT) X-Google-Smtp-Source: AG47ELsCR9MkZ6MKYrsKR1NpNm5GoFlAghyFa0hvMGsjIsuhAXG90nKVp9N0AskgR6bODRZRa7Yr X-Received: by 10.98.137.147 with SMTP id n19mr4417833pfk.193.1521035616741; Wed, 14 Mar 2018 06:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521035616; cv=none; d=google.com; s=arc-20160816; b=DsLgFwhU7sHNB/95ItpeSMtiqJqeA+/jkg56yR9FrxaAgjY95drCwXvagtip3SP/t0 dip6Tj0L8PKq8sULkIOX81XAxu68U+ZoVCRpYIpDdBLqOXFtqsVkdTT05hC9TxH4w9k+ J0yiTWgNhBo6aSCMtJ8jZob+enpryqEXmpVWy4Wewzj2Lm4QUPrAXEMJhjYpndoWw8iB 2MQTiz00HTz5LlIlIK/O5ZmQ1FX8FoyRj8qCARyaX+2EdZNNjzykwpr6j4dQWv7kOQbq s9fcci5JlyQ6rLce8s79n8eXu0lCGwx17pyQMr9gOaQkcI6goA+Z73rq8uj1188ZsLzj 6qWQ== 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 :arc-authentication-results; bh=Lfncrwwfw5/XDgYtkgCIXIrzMllQOpEKcf1HDYJxYuM=; b=qtxLweuYwNxZFimBdapLBOv2aBujXzH0EE0eJiHKd+FIbfcDRAEXYa3qIN9v88gxD7 ybhY/0j39AwiBp6KgRYHNAW3VUnYnsfeJT4tXfD5Vq7PFuR8mAsL8HpcA4P4RMwx51re iZgeKwmHBpQOIkheWFwMhqlJsIl3Jvp5mg3zBNTZ7Cl0lTCat1ETF9rE0bVhE9L2TlBm aGD9Pm6ggAugEph21NhICO4m6jqMiIiSwENqvqJjhGGGvZXKbevcoJX3sqEcuFe0K+Sp YpkvaTKe9YHnviY5zCBPL8mbbLZK6/kDIanvlZlO468QgUf4hclUCW5zH9yV3iB/uEh/ e7BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=KRtaowdH; 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=fail (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 h1-v6si15640pli.645.2018.03.14.06.53.36; Wed, 14 Mar 2018 06:53:36 -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=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=KRtaowdH; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751977AbeCNNxf (ORCPT + 5 others); Wed, 14 Mar 2018 09:53:35 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:21553 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751964AbeCNNxd (ORCPT ); Wed, 14 Mar 2018 09:53:33 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w2EDrGLo019354; Wed, 14 Mar 2018 08:53:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1521035596; bh=+pHSdIUlE1A78kRObQzmVw9SLMT1/D5P5kCFKy65Hcs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=KRtaowdHF8GnVpnP2ibXwpQYPwe6cCEMj/9WES6+ECq8Sh6CBpHd7UgN8gTptqmoL 6IjnYarTbJe3EWpE8+K59OaKdWTOI8bSqwDE3aAeFj3Kw90rLpLvnwt4zQlacm/qQK mnGTfuyYoq60cYq+pRqevPGfMDvzc+YurOG6AfeY= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2EDrGti018025; Wed, 14 Mar 2018 08:53:16 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Wed, 14 Mar 2018 08:53:15 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) 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.1261.35 via Frontend Transport; Wed, 14 Mar 2018 08:53:15 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2EDrCg2025495; Wed, 14 Mar 2018 08:53:14 -0500 From: Peter Ujfalusi To: , CC: , Subject: [PATCH v2 1/6] ARM: omap2+: control: add support for auxiliary control module instances Date: Wed, 14 Mar 2018 15:53:10 +0200 Message-ID: <20180314135315.11215-2-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180314135315.11215-1-peter.ujfalusi@ti.com> References: <20180314135315.11215-1-peter.ujfalusi@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 From: Tero Kristo Control module can have multiple instances in a system, each with separate address space and features. Add base support for these auxiliary instances, with support for syscon and clock mappings under them. Signed-off-by: Tero Kristo Tested-by: Peter Ujfalusi --- arch/arm/mach-omap2/control.c | 15 +++++++++++---- include/linux/clk/ti.h | 1 + 2 files changed, 12 insertions(+), 4 deletions(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/control.c b/arch/arm/mach-omap2/control.c index bd8089ff929f..632adb2b7d03 100644 --- a/arch/arm/mach-omap2/control.c +++ b/arch/arm/mach-omap2/control.c @@ -623,6 +623,7 @@ void __init omap3_ctrl_init(void) struct control_init_data { int index; + void __iomem *mem; s16 offset; }; @@ -660,15 +661,21 @@ int __init omap2_control_base_init(void) struct device_node *np; const struct of_device_id *match; struct control_init_data *data; + void __iomem *mem; for_each_matching_node_and_match(np, omap_scrm_dt_match_table, &match) { data = (struct control_init_data *)match->data; - omap2_ctrl_base = of_iomap(np, 0); - if (!omap2_ctrl_base) + mem = of_iomap(np, 0); + if (!mem) return -ENOMEM; - omap2_ctrl_offset = data->offset; + if (data->index == TI_CLKM_CTRL) { + omap2_ctrl_base = mem; + omap2_ctrl_offset = data->offset; + } + + data->mem = mem; } return 0; @@ -713,7 +720,7 @@ int __init omap_control_init(void) } else { /* No scm_conf found, direct access */ ret = omap2_clk_provider_init(np, data->index, NULL, - omap2_ctrl_base); + data->mem); if (ret) return ret; } diff --git a/include/linux/clk/ti.h b/include/linux/clk/ti.h index d18da839b810..7e3bceee3489 100644 --- a/include/linux/clk/ti.h +++ b/include/linux/clk/ti.h @@ -203,6 +203,7 @@ enum { TI_CLKM_PRM, TI_CLKM_SCRM, TI_CLKM_CTRL, + TI_CLKM_CTRL_AUX, TI_CLKM_PLLSS, CLK_MAX_MEMMAPS }; From patchwork Wed Mar 14 13:53:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 131577 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp904327ljb; Wed, 14 Mar 2018 06:53:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELu9J11KdUiZzS4uRe7ly8IdZV1mRyj5GaRBwWHYACjW9pGe7YVQEkH9d0rlTdgtMONinCMY X-Received: by 2002:a17:902:a58c:: with SMTP id az12-v6mr4101356plb.156.1521035617280; Wed, 14 Mar 2018 06:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521035617; cv=none; d=google.com; s=arc-20160816; b=1G43ezK+8VloLJbO6/L8F7P+T1HczcQklzxVJot86pU+mIEBTBjTH4Dl8svfizM/DH tDO01scPALbjV1OpujnKuqJibO/OdXJaOqRjdLNWSXNtITD/hIyda8daHE1/Hn7cI1il 9JsMb0QhpJMPcWfnoto9YlRywtNCfC/0g2DNS5SuT0CdVhnhhX9yoXCy2KGaYlRdtYux eP7YMxXpk8g8eKzkmsWIQOlqXqYhqmBRgXMAbRH4YvenJx63WJJnubT3RIWgZUEo3VvU 86wZAQ7T36doJE8F8H8vInpjqd7A5P93c2EMkgCbWCPqp0KKPgKWZ/6f41+NpVzIauUK nUjw== 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 :arc-authentication-results; bh=+XjDFQdfrjP8Lb63jZjRtcby98e0McbV/a1oTaXVAjQ=; b=IF01b07WVxz2SYH9BLwx+vR9uOd8krN4Gekejp/7FGT9uiuRDt5eMIF9FUTelVN5RK r7vvLD0YXyrqX0c5p9EtFqOpiWJBzlZ06+z6jt2lXcrvva9o6Opgxg9nOIAjnFK+ZaBn ryyB7afpK6tC6FYubL4zfalsICwz2t5DH0CK5cWoJngrS9paw9n/fUD7GQMGwK4okhoG ssBk+ahQOJPpZzjStWDbWRfMJs539xEjON5faY7JcVvuDdJHLXQwKj/GpWoqm+vdsYVS COJ0YxzP+OqwcI3vcZL88dUqY6xuX0NuZKeZjueGUUBxOsN9cGDKuJNEbyF+Lpv9CHk+ AvIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=EJQVUyLJ; 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=fail (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 h1-v6si15640pli.645.2018.03.14.06.53.37; Wed, 14 Mar 2018 06:53:37 -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=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=EJQVUyLJ; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751980AbeCNNxe (ORCPT + 5 others); Wed, 14 Mar 2018 09:53:34 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:21554 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751977AbeCNNxd (ORCPT ); Wed, 14 Mar 2018 09:53:33 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w2EDrIIv019359; Wed, 14 Mar 2018 08:53:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1521035598; bh=bkdIISzBTTtvUt7V3BaJS3/A5++X2ndWjy1uyAcprz0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=EJQVUyLJB/ur8vfqcYk6+2lN/+dM4nKT+m6AjOIwGCZ7RgmO/WgDVB+ptREcQgSod ckaaN4n5QcdlvF1QRz33imWY0uzLSYhs7cAAtYKmcAnt0J55jYoqeE7T7d6V4Uqkc4 gpPfXbzv7uY6dO/eoWCbaKsq5+QaDIjEWibq1mmQ= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2EDrHQt001755; Wed, 14 Mar 2018 08:53:17 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Wed, 14 Mar 2018 08:53:17 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Wed, 14 Mar 2018 08:53:17 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2EDrCg3025495; Wed, 14 Mar 2018 08:53:16 -0500 From: Peter Ujfalusi To: , CC: , Subject: [PATCH v2 2/6] dt-bindings: omap5: ctrl: Support for control module wkup pad config Date: Wed, 14 Mar 2018 15:53:11 +0200 Message-ID: <20180314135315.11215-3-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180314135315.11215-1-peter.ujfalusi@ti.com> References: <20180314135315.11215-1-peter.ujfalusi@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 From: Tero Kristo The pad configuration area under control module wkup has some miscellaneous config registers, that are not pinmux related. Add new compatible string for this section of control module. Signed-off-by: Tero Kristo --- Documentation/devicetree/bindings/arm/omap/ctrl.txt | 1 + 1 file changed, 1 insertion(+) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/arm/omap/ctrl.txt b/Documentation/devicetree/bindings/arm/omap/ctrl.txt index ce8dabf8c0f9..f35b77920786 100644 --- a/Documentation/devicetree/bindings/arm/omap/ctrl.txt +++ b/Documentation/devicetree/bindings/arm/omap/ctrl.txt @@ -25,6 +25,7 @@ Required properties: "ti,omap4-scm-padconf-wkup" "ti,omap5-scm-core" "ti,omap5-scm-padconf-core" + "ti,omap5-scm-wkup-pad-conf" "ti,dra7-scm-core" - reg: Contains Control Module register address range (base address and length) From patchwork Wed Mar 14 13:53:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 131578 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp904334ljb; Wed, 14 Mar 2018 06:53:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELvL7MktC5iqs01czYAX+hwqXMvELIqpclLwZsTKWPuVv55iFVa37ts79Gy4pSYeW10jFSPm X-Received: by 10.98.223.93 with SMTP id u90mr4404225pfg.13.1521035617847; Wed, 14 Mar 2018 06:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521035617; cv=none; d=google.com; s=arc-20160816; b=LRx/H1beeiffZ9WGgRA8vSM1xlKyBCzZBfxn2BGs4pBRCiUNiIl+3TkVpZtacEWoWT wzNyuO6sNXBcnTZLNOGleTzuqy75LOJLqowlwC4XWwEp4/nEWRCqzBBLuRedu9DvGaW6 1DwOZD2QJAD0NZoKNLUpmAdEnu0flbzDJjgtPxobTHaZG9AwWBLPddQ+f/vtbx5DASug DI80ytSduRZFo9nqJzHcbhM8/1uxEIm0nAMhvpnr1nVGPTYShpD3WD7n3GkA50W2tDzq wqeqM/UMifL2I6oi50r6Ww76f7iDUedtRRiMfyEWtUxk2kgeWEYPha5zFs69BGlX2f4c ibLw== 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 :arc-authentication-results; bh=IkVP0Y7k7l0/Azhm59l41xgdMVv1DOBmAqYRpeDZlYQ=; b=IqyK8DAkdjjqMr4/Mfjno72GD4Idh5e1jmKq86GN+OB4SwQ8NMSio/+KZ0/QapL5W3 5IdEc5erjy8asTmtsqObgFNCVKwhV/EMqDBtgQxB0lRZsbP2IT5oXoXWAQaaTDgR4/+/ ApVnK9pb+2epQTeFOzDGaLMCQj3or9oNWKA/8ZnCe7JUGNsTSS1fNrMDLEphwNFPYmT3 a05uxYlSLHD70rW6k6cckpAZZnH6l+B/wABsnRJr+YE1c96JbQCDMKpTMuLu7hApr/3U REZtpR6trrhRqUxUhK0EAkI16zsG8q/gzd2Q/SAyEKogG7a6twF95XWGBXvKhQD4sx7c dOIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=SPJGo1df; 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=fail (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 h1-v6si15640pli.645.2018.03.14.06.53.37; Wed, 14 Mar 2018 06:53:37 -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=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=SPJGo1df; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751964AbeCNNxg (ORCPT + 5 others); Wed, 14 Mar 2018 09:53:36 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:41711 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751480AbeCNNxd (ORCPT ); Wed, 14 Mar 2018 09:53:33 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w2EDrKUD001179; Wed, 14 Mar 2018 08:53:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1521035600; bh=utv2kjVsl5GUwDdTxXzVzvP8u+yDfcZUZlk0LNvu/6w=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SPJGo1df5OGQ3djlkZQtR8VOwvc8684FJo6cFmjTN6TA26bBywRsxS5L9nGB4+Tcx CGvuBi6R5DDlPfX+/8wfx8r2ueCsxk+GxZ6c0OEPEo0HfOx6zHao/F2eC6sT7HgFwz eT6eAbaPA1vX+Ih/Xvce0bpU9Ic2EcCop3JwcTaA= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2EDrKla018117; Wed, 14 Mar 2018 08:53:20 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) 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.1261.35; Wed, 14 Mar 2018 08:53:19 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Wed, 14 Mar 2018 08:53:19 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2EDrCg4025495; Wed, 14 Mar 2018 08:53:17 -0500 From: Peter Ujfalusi To: , CC: , Subject: [PATCH v2 3/6] ARM: dts: omap5: add support for control module wkup pad config Date: Wed, 14 Mar 2018 15:53:12 +0200 Message-ID: <20180314135315.11215-4-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180314135315.11215-1-peter.ujfalusi@ti.com> References: <20180314135315.11215-1-peter.ujfalusi@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 From: Tero Kristo The pad configuration area under control module wkup has some miscellaneous config registers, that are not pinmux related. Add a separate area for these, and add support for syscon / clocks under this new area. Signed-off-by: Tero Kristo Tested-by: Peter Ujfalusi --- arch/arm/boot/dts/omap5.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi index 511606c17a04..732b61a0e990 100644 --- a/arch/arm/boot/dts/omap5.dtsi +++ b/arch/arm/boot/dts/omap5.dtsi @@ -287,6 +287,28 @@ pinctrl-single,register-width = <16>; pinctrl-single,function-mask = <0x7fff>; }; + + omap5_scm_wkup_pad_conf: omap5_scm_wkup_pad_conf@cda0 { + compatible = "ti,omap5-scm-wkup-pad-conf", + "simple-bus"; + reg = <0xcda0 0x60>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0xcda0 0x60>; + + scm_wkup_pad_conf: scm_conf@0 { + compatible = "syscon", "simple-bus"; + reg = <0x0 0x60>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x0 0x60>; + + scm_wkup_pad_conf_clocks: clocks@0 { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + }; }; ocmcram: ocmcram@40300000 { From patchwork Wed Mar 14 13:53:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 131579 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp904388ljb; Wed, 14 Mar 2018 06:53:41 -0700 (PDT) X-Google-Smtp-Source: AG47ELt8naP0Ym9apAO5jAd/H/NqLyIgRR03NGg7AwV8Qx3OUlv0vlaYkfV/hp/3rV/QrvgVoWV3 X-Received: by 2002:a17:902:6e8c:: with SMTP id v12-v6mr4153650plk.24.1521035621144; Wed, 14 Mar 2018 06:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521035621; cv=none; d=google.com; s=arc-20160816; b=N2c12p9fiEYN5y4FzwwQ5eRb9OQhPj5hQZrOW1wTCWze7ELMUwMoZGcU7n8pzhSvaD L9yPmSV3UVo8h2480a8coH0vQM4NLYU2cPGRINlbotv6+f6gvTig1DPSbaM5muPZqOov occvP4Gu9SkYI/ELHtdQob1OKWOWzmBL1vPUUHmORI/4vBHHkYLqD1SdvJMKeno8fs8Y gHvRNoN9T2yQkQc+7YDMFZr/Ro1bStJimO0WzVFVo1g2qYpk70+/wvHKE4Y0KU7xK59U oHVRzVK6PLHguXumtwQqZ1OezzwNvGiinbmhdVw5xpaujnROUTRO0pmGszH4RDldiBc4 EuIg== 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 :arc-authentication-results; bh=+/ujJI5qfgachnC7S/Fx1NMLHByT63jq7id4QkIUlGs=; b=N1YcEWvyfC2p3ssaYb7FqoHJY1GFAuZ1Mrw6EnH3gkS+ROp06CmiJjme12VXwuEWEG fRwbiAQIXWxuUf8Lb/f0JKu6ABaMT1L6gfSHfCQ9F7nHFgPXfCyYleSydmZUGWZcH7Oi mvvnLh2WLD44ipYj3V45p8Tsgmvo+ouvZv3ceWgzM4xqYUd37IPJRV/k+8lFVj3QJhGt bOrqgFLtPGemnIT05LNqepwZGNhAb4BSgj374wDw2SRgejIfX8AKMduckSeFliZL2TJO aepKvpP1QLtjvh36mtSM0V1ODjtIBzC7Dz6lDD+8sNDGYYj7rto66FUqXyZqPCPCFNvz tEnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=PszQ09Bl; 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=fail (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 h1-v6si15640pli.645.2018.03.14.06.53.40; Wed, 14 Mar 2018 06:53:41 -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=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=PszQ09Bl; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751758AbeCNNxk (ORCPT + 5 others); Wed, 14 Mar 2018 09:53:40 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:10562 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751480AbeCNNxj (ORCPT ); Wed, 14 Mar 2018 09:53:39 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w2EDrLQt015588; Wed, 14 Mar 2018 08:53:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1521035601; bh=aedRU3tzN74AlAZA/MyhvX526TP3CCKz2MHOOx8tits=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=PszQ09BlHj35n+/6RHhmPlTU6WO46uCCuNOpgIY5f/Hr4M3/EqPRA9qXG+jW52eCl izN+157fzXGgZ+Pl24uQQigXMvtGiOeH0jAK9dXvRrlkUkNSQd6BLywxJQIB+5XBCj 8v5Y7xdErHepVLnHwfFx+wprnNOfG9mFHQIYAmsU= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2EDrLx5001913; Wed, 14 Mar 2018 08:53:21 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) 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.1261.35; Wed, 14 Mar 2018 08:53:21 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Wed, 14 Mar 2018 08:53:21 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2EDrCg5025495; Wed, 14 Mar 2018 08:53:19 -0500 From: Peter Ujfalusi To: , CC: , Subject: [PATCH v2 4/6] ARM: OMAP5: control: add support for control module wkup pad config Date: Wed, 14 Mar 2018 15:53:13 +0200 Message-ID: <20180314135315.11215-5-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180314135315.11215-1-peter.ujfalusi@ti.com> References: <20180314135315.11215-1-peter.ujfalusi@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 From: Tero Kristo Match the new compatible string in the control module driver. The base infra maps the required syscon ranges and clock registers if available. Signed-off-by: Tero Kristo Tested-by: Peter Ujfalusi --- arch/arm/mach-omap2/control.c | 5 +++++ 1 file changed, 5 insertions(+) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/control.c b/arch/arm/mach-omap2/control.c index 632adb2b7d03..180da403639e 100644 --- a/arch/arm/mach-omap2/control.c +++ b/arch/arm/mach-omap2/control.c @@ -636,6 +636,10 @@ static const struct control_init_data omap2_ctrl_data = { .offset = -OMAP2_CONTROL_GENERAL, }; +static const struct control_init_data ctrl_aux_data = { + .index = TI_CLKM_CTRL_AUX, +}; + static const struct of_device_id omap_scrm_dt_match_table[] = { { .compatible = "ti,am3-scm", .data = &ctrl_data }, { .compatible = "ti,am4-scm", .data = &ctrl_data }, @@ -645,6 +649,7 @@ static const struct of_device_id omap_scrm_dt_match_table[] = { { .compatible = "ti,dm816-scrm", .data = &ctrl_data }, { .compatible = "ti,omap4-scm-core", .data = &ctrl_data }, { .compatible = "ti,omap5-scm-core", .data = &ctrl_data }, + { .compatible = "ti,omap5-scm-wkup-pad-conf", .data = &ctrl_aux_data }, { .compatible = "ti,dra7-scm-core", .data = &ctrl_data }, { } }; From patchwork Wed Mar 14 13:53:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 131575 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp904297ljb; Wed, 14 Mar 2018 06:53:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELva+jEL5EpkUPWunPpdmhH6p0IaFEfugIZUHlWEwmkd10AUzLyHTmaMNO1xjhu4UOrz/cNW X-Received: by 10.101.98.205 with SMTP id m13mr3767623pgv.100.1521035615366; Wed, 14 Mar 2018 06:53:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521035615; cv=none; d=google.com; s=arc-20160816; b=Zd1P66vm0xVy9/PvXp9d+xEU8S6O/rCDWe8zB0QqD6PjvaXfDjhMD8MyeHLNgMre+p ANBUE7YSRq6k7KP8lAAqC2pDN7PD+2DuFUyX8Rq3dE3wd/q0wr1e/4iFgDn81vxF5yMf yOu/jex18r8Gv6jxXQ1UijymrJu3TwLCQ5qkx1RBjQ5CEwbZ8ZlHtJFTNUumFDWHbymu ZL4l+gwJ6ANKlf+pll2400PnBBbvAtxlfcIUJ5goCaCt1Nbve51lmIoQiZz+NZKNRpWM YxdEO4q95GU+Vucw0itdPvRLlkHWFETILWW9CkxofzCrFYTKYr0PInSLYjQU0WH2+B/z Qiww== 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 :arc-authentication-results; bh=kDdjFrk3CgESYH9Sw9xrrHwQlL+GWPP/psncSa3kd7k=; b=TKPwkNYYp6SrBT3UaXTHAuzPAy0G8SBhN/DwK6cbu27JjOXTdHUz+5ufXiVqilK1R5 WxDIZUMF60yFZadmT5CJppS32HwhqaTs4H4YTyzOgjzrWDONhvNYM/93cwT3O67iaBaO uv9eydAFN7+H7X55wL9gLjPWIiaDYH7TtQxdatdC+2RmLiTkE0dG6SwMh2dK9kCSIMZs tiB8Y2fO84l0FiGg5BBLcy3jHV99YZyWIrXTS+ET0F7Jr79Z7WlQX/NzcTh+FG624A7y kxe1lPX0kjUosX+MddCeLIairuP9rgnaQIN9yPWwDuY8EYTegj8apCfFK1nxJPPhRq42 MW0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=g7W9z8/7; 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=fail (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 h1-v6si15640pli.645.2018.03.14.06.53.35; Wed, 14 Mar 2018 06:53:35 -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=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=g7W9z8/7; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751961AbeCNNxd (ORCPT + 5 others); Wed, 14 Mar 2018 09:53:33 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:41709 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751378AbeCNNxb (ORCPT ); Wed, 14 Mar 2018 09:53:31 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w2EDrNcs001184; Wed, 14 Mar 2018 08:53:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1521035603; bh=LNF9ZDfpBLwIVWTtrh4Ds+Fl/X7DWCcTMtcQKATTKiM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=g7W9z8/7ooPeiUiiFhEs/Elmxa6vhYIf4ztJA2mjXbJw1oWbMIWj82E2eMxYBSpTj yiWgRjH2nXwAmg4FQn8wp/bdBzIrbdCUn8ENwEqY4bKIIYvBz92Fig3IMlLWav/suM tkaDN6RxQ/7CGdxH73/Cv/JhUbKL1FWoF4rr+T/A= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2EDrNIs001935; Wed, 14 Mar 2018 08:53:23 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) 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.1261.35; Wed, 14 Mar 2018 08:53:22 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Wed, 14 Mar 2018 08:53:22 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2EDrCg6025495; Wed, 14 Mar 2018 08:53:21 -0500 From: Peter Ujfalusi To: , CC: , Subject: [PATCH v2 5/6] ARM: dts: omap5: add fref_xtal_ck support Date: Wed, 14 Mar 2018 15:53:14 +0200 Message-ID: <20180314135315.11215-6-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180314135315.11215-1-peter.ujfalusi@ti.com> References: <20180314135315.11215-1-peter.ujfalusi@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 From: Tero Kristo The clock is directly sourced from sys_clkin, and provides an external output clock for (typically) TWL6040 chip. Signed-off-by: Tero Kristo Tested-by: Peter Ujfalusi --- arch/arm/boot/dts/omap54xx-clocks.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/omap54xx-clocks.dtsi b/arch/arm/boot/dts/omap54xx-clocks.dtsi index 9619a746d657..ecc5573d264c 100644 --- a/arch/arm/boot/dts/omap54xx-clocks.dtsi +++ b/arch/arm/boot/dts/omap54xx-clocks.dtsi @@ -1179,3 +1179,13 @@ }; }; }; + +&scm_wkup_pad_conf_clocks { + fref_xtal_ck: fref_xtal_ck { + #clock-cells = <0>; + compatible = "ti,gate-clock"; + clocks = <&sys_clkin>; + ti,bit-shift = <28>; + reg = <0x14>; + }; +};