From patchwork Wed Aug 1 03:39:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 143223 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp345448ljj; Tue, 31 Jul 2018 20:40:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf+ueF7Qzbyfar9riwuYEkkQ1RyiowD4eOZ1UNHaLXb5vFz9dQyL89y40r6igkk+bHVQ1pc X-Received: by 2002:a62:9849:: with SMTP id q70-v6mr24927116pfd.178.1533094813142; Tue, 31 Jul 2018 20:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533094813; cv=none; d=google.com; s=arc-20160816; b=VUObFRmFlxHxhcQRO9wt8oRAm6YfbiObRQi4zyRdtI/r2So7Qm6ty4IOl/TAoPcR0p AoPszAAVs0xwjzLdSNKUOFgkrGTm+9W2sRCE41qJPAudYB2T1u+5WUTV6OlsMFTvAJKc Rmu+76lvtNP8bDPGGiZ7jPd4jPGEG9362r7YU4FJyolOy5saaMyyh0kQl7HF7SpiPsyl hJi6lR4o8diixdYJ935SR7n2E51Iavx9/3AK0ZBEzqU2xjTLqnnybCt1hWCXjvxfS61O Yzui1vWcfqtX0wbF3ETYgfkov3cWij9wSDltjSDF2ADi2a279U6vfxq/nACFMO3hqP+M vuWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=C4k4BFBDKpYNBDQHAjAavWfPFuGdz6CBzaB97h2SixQ=; b=YqPvYHuXKUt66vmmiwKmUVEvGmyqCLTQUennjb7BbLz0KEl+ALRVEXXUaanApSAwKs E2g0eJw3ZOTs+VhLjAV3zRabBNFqv+fuhIFZ0kOMSyEktcTIbxcXIAr+VArt6dnek52u fi9/TRBFmuG4d4VXdH/TQx5dtuVJdnB9325WwfL7DoiJyt/88zNhj5EYF6MAOZKQzxcT tqARuQNXbWtR98zJvXsOPt+spnNJs/++yzqVK4vEnwX/2TP+9oc9HVizE+1JDzIPxXVE F1JkYSw33V9uSfpAGdzdHHjiFDs0qm6Q9un6NrPRBGUMARofHRylww6hYYyVvZ0418vS BoRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B3jO5iAJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10-v6si14411885pfg.258.2018.07.31.20.40.12; Tue, 31 Jul 2018 20:40:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B3jO5iAJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731959AbeHAFXe (ORCPT + 31 others); Wed, 1 Aug 2018 01:23:34 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:45908 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731877AbeHAFXd (ORCPT ); Wed, 1 Aug 2018 01:23:33 -0400 Received: by mail-pg1-f196.google.com with SMTP id f1-v6so10086795pgq.12 for ; Tue, 31 Jul 2018 20:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=C4k4BFBDKpYNBDQHAjAavWfPFuGdz6CBzaB97h2SixQ=; b=B3jO5iAJyXtuXz/6Dh7j4sZXgl6BYvMVnCF9len0iLW1ZLFiABrdS9rYasN7rl8rD1 z5JmMphaXkb6kh4Ww7sLx6Ss8BqkSx/MhDZa0umbEKPz7UuWFdTrcogRVOfrEq4dwY2c 7MsHantHxHq/VseB7kz4jlOuQAY0rKn/LiwpA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=C4k4BFBDKpYNBDQHAjAavWfPFuGdz6CBzaB97h2SixQ=; b=dQls12Rm3x23Vti+ulecN1MvxrqcjcXDDIsbB6wut8OocdmSsrJ6dIOnh52sy/3J/+ jlX9wDDMEYo0DZlPUZeiyO1BuQZBsI9vvCGn5XwgUiD2rbv0u98xO++LPVCmORgeMvVn iPfEr1iXN+R7Q+hSt8HqBApXqTUHg6SQVixXYBBHnWFwgKeBrvMN34CRn09/5/Z8wRa4 Pp7YG4/mj0z/FGgQnL/RbT6cKQR3QwRjBDx9UubZmApVz6mwn3SRBg2Fodwe3INm4Y3Z 8kUdXJ5HtoSgvNPC7qyz/wAsb3yoMbmkZdxAG4cZbeTNYo47TKR0z20LInB9ljG8MO9F kuCA== X-Gm-Message-State: AOUpUlEgY1awwZ2MxcSeENW77TESbOg+2+EfURzd0vyYLIa6FPq1yP4T czEKEeDW7CPUqw2SSOQIVSXM X-Received: by 2002:a65:53cb:: with SMTP id z11-v6mr22703811pgr.218.1533094806359; Tue, 31 Jul 2018 20:40:06 -0700 (PDT) Received: from localhost.localdomain ([2405:204:730e:f0ae:ac4e:9cdd:28a2:4bf9]) by smtp.gmail.com with ESMTPSA id d19-v6sm34879545pgi.50.2018.07.31.20.39.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 20:40:05 -0700 (PDT) From: Manivannan Sadhasivam To: p.zabel@pengutronix.de, mturquette@baylibre.com, sboyd@kernel.org, afaerber@suse.de, robh+dt@kernel.org, lee.jones@linaro.org, arnd@arndb.de Cc: linux-clk@vger.kernel.org, liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, thomas.liau@actions-semi.com, jeff.chen@actions-semi.com, pn@denx.de, edgar.righi@lsitec.org.br, sravanhome@gmail.com, Manivannan Sadhasivam Subject: [PATCH v2 02/10] arm64: dts: actions: Convert Owl SoCs clock-controller nodes to syscon Date: Wed, 1 Aug 2018 09:09:07 +0530 Message-Id: <20180801033915.15880-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180801033915.15880-1-manivannan.sadhasivam@linaro.org> References: <20180801033915.15880-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since clock and reset management units are sharing the same memory map, Owl SoCs clock-controller nodes needs to be converted to syscon so that the corresponding reset drivers can also reuse the same memory region. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s700.dtsi | 12 ++++++++---- arch/arm64/boot/dts/actions/s900.dtsi | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/actions/s700.dtsi b/arch/arm64/boot/dts/actions/s700.dtsi index 59d29e4ca404..a57f54587164 100644 --- a/arch/arm64/boot/dts/actions/s700.dtsi +++ b/arch/arm64/boot/dts/actions/s700.dtsi @@ -160,11 +160,15 @@ status = "disabled"; }; - cmu: clock-controller@e0168000 { - compatible = "actions,s700-cmu"; + sysctrl: system-controller@e0168000 { + compatible = "syscon", "simple-mfd"; reg = <0x0 0xe0168000 0x0 0x1000>; - clocks = <&hosc>, <&losc>; - #clock-cells = <1>; + + cmu: clock-controller { + compatible = "actions,s700-cmu"; + clocks = <&hosc>, <&losc>; + #clock-cells = <1>; + }; }; sps: power-controller@e01b0100 { diff --git a/arch/arm64/boot/dts/actions/s900.dtsi b/arch/arm64/boot/dts/actions/s900.dtsi index aa3a49b0d646..d239033f9599 100644 --- a/arch/arm64/boot/dts/actions/s900.dtsi +++ b/arch/arm64/boot/dts/actions/s900.dtsi @@ -167,11 +167,15 @@ status = "disabled"; }; - cmu: clock-controller@e0160000 { - compatible = "actions,s900-cmu"; + sysctrl: system-controller@e0160000 { + compatible = "syscon", "simple-mfd"; reg = <0x0 0xe0160000 0x0 0x1000>; - clocks = <&hosc>, <&losc>; - #clock-cells = <1>; + + cmu: clock-controller { + compatible = "actions,s900-cmu"; + clocks = <&hosc>, <&losc>; + #clock-cells = <1>; + }; }; pinctrl: pinctrl@e01b0000 { From patchwork Wed Aug 1 03:39:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 143224 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp345550ljj; Tue, 31 Jul 2018 20:40:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdkwVNPQsVbCp3gthMRc6eu9M9rzU2odvVimSnoKzC2Ue9UUXhSz9/Egh6Aa0Dyhps4qgnH X-Received: by 2002:a17:902:6907:: with SMTP id j7-v6mr22917524plk.323.1533094823067; Tue, 31 Jul 2018 20:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533094823; cv=none; d=google.com; s=arc-20160816; b=yeltMSJp65domRD8fx7XmtwsS5BRSr22a2FAKPj3FqwbcwZ0Gj+tbe0d8DZC0F7lc7 qyL0mw3LrRkduoSjLncrx9Y8ZuCtgds66ZzCymQvwWZnQYibpwtisVMICq8wNPSREA6/ MgoSXtMM7ePovZohvWaIIU3WWYv2iHn/Pe9jBaIUTpOklREcEKo/t9njXIe2IMvxbyWt U4H/xDTdoJ9Fk9et4qBUcr1a9Lzd2PCCbzRHls7rHdfdNQVc95LnykiavF+3+8fR6iWW d2hvI7fPQMWcdNLJa1PtsRRuyRd9QDlW/JfE2xN3dO0yW1Vklf50nb1k1S4ouNJcErlp EO8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=nLg8nF2BVGhHBSt4qBWUxorV5/Diq0j0iCeB6+14Bu0=; b=DQ2Mw9LnAgM4drnntYpXD4J/nYVK8ABCh4I5qatDTPPaHStR1ga09t3sUSY1/SwLYd jjgDcfyJVt5HqMrOUgOY8lmsRWSaXWvdgnSfsjC2PcHaxHhyJLWX4wWLEyaU/LKSh6od 4d/aaT1a2w8ZjKCrdd/PFa9hny8YpDb9cAdBddxiSxP8in0wr7/K/22wljYCH+1nWwHD 1P6HrMCeuirXjFMSRdtWH4S51nozlcmCmlsrBUZ1P+MA0I43mOgT+tWeIPy0GhYtEECx MaDY55qTwhSavyKeQwcDKJTNyhD/mKOVLrLK1f7zfVPKMF3iRWGpxkr392FCkzhChVQ1 iuRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cDpJ2Sg7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w21-v6si15778259pgk.206.2018.07.31.20.40.22; Tue, 31 Jul 2018 20:40:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cDpJ2Sg7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732945AbeHAFXq (ORCPT + 31 others); Wed, 1 Aug 2018 01:23:46 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:35685 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730957AbeHAFXq (ORCPT ); Wed, 1 Aug 2018 01:23:46 -0400 Received: by mail-pg1-f196.google.com with SMTP id e6-v6so10097965pgv.2 for ; Tue, 31 Jul 2018 20:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nLg8nF2BVGhHBSt4qBWUxorV5/Diq0j0iCeB6+14Bu0=; b=cDpJ2Sg7+xTvhO/XV7boURbpH+hTQpETKhd5CsCXhbGtk37EPIe93+0S8UZeNS2wae mNOV9md7MCmqL21HP/9CfENPIqBQafmHEHGu6aUo6A16jzysJmLCeqYeBuJ/WuGGXtPA bk5FCH3UfQ9249y8GgE+ZIp8XRT3uEj8hQLgs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nLg8nF2BVGhHBSt4qBWUxorV5/Diq0j0iCeB6+14Bu0=; b=uXm68eRpMTEZSAw0jRK3/SVVP7w0igPy4WWKdiaLxbCfE/snT9fjihD682qF2mE3on 9Xg/DBr9auSyF9nx2OPExIqh5TymFsMjeVNkUbQyEeaXVfE8EkrPp732BCvg0Bx7fZ3u nCaIHXlkf9JpJmZu7Gk5U4YyvAQpGDXD/zMKBw1JTyGdH+Vrcx7TN1KgGpGxNfbH3QRn byYhKmai/PdOdkACAWNHYbkuV0a2RffGvgXqJ9LFi7ukNSzVINRMXTd4sw2HN1E8LvAB 3WzxLCE3RjFkakNJuzcvuaJhoyDd06Nn+6s7cQeT8q9YEOSwXTduKi+66ry4U/d/+wmh VkWw== X-Gm-Message-State: AOUpUlF5OcvM7ujFOZjOqdUFPS3vrj/ysKIE1UTAYnEjXZG2pKIlymEs 4J4eySTiJBVHX9s4/nh7LxtM X-Received: by 2002:a63:ae02:: with SMTP id q2-v6mr22509271pgf.189.1533094819428; Tue, 31 Jul 2018 20:40:19 -0700 (PDT) Received: from localhost.localdomain ([2405:204:730e:f0ae:ac4e:9cdd:28a2:4bf9]) by smtp.gmail.com with ESMTPSA id d19-v6sm34879545pgi.50.2018.07.31.20.40.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 20:40:18 -0700 (PDT) From: Manivannan Sadhasivam To: p.zabel@pengutronix.de, mturquette@baylibre.com, sboyd@kernel.org, afaerber@suse.de, robh+dt@kernel.org, lee.jones@linaro.org, arnd@arndb.de Cc: linux-clk@vger.kernel.org, liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, thomas.liau@actions-semi.com, jeff.chen@actions-semi.com, pn@denx.de, edgar.righi@lsitec.org.br, sravanhome@gmail.com, Manivannan Sadhasivam Subject: [PATCH v2 03/10] clk: actions: Add syscon support for Actions Semi Owl SoCs Date: Wed, 1 Aug 2018 09:09:08 +0530 Message-Id: <20180801033915.15880-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180801033915.15880-1-manivannan.sadhasivam@linaro.org> References: <20180801033915.15880-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the clock and reset management units are sharing the same memory map, convert the Owl common clock driver to support System Controller so that the reset driver can reuse the same memory region. Signed-off-by: Manivannan Sadhasivam --- drivers/clk/actions/owl-common.c | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) -- 2.17.1 diff --git a/drivers/clk/actions/owl-common.c b/drivers/clk/actions/owl-common.c index 61c1071b5180..080f980b2ec4 100644 --- a/drivers/clk/actions/owl-common.c +++ b/drivers/clk/actions/owl-common.c @@ -8,6 +8,7 @@ // Copyright (c) 2018 Linaro Ltd. // Author: Manivannan Sadhasivam +#include #include #include #include @@ -15,14 +16,6 @@ #include "owl-common.h" -static const struct regmap_config owl_regmap_config = { - .reg_bits = 32, - .reg_stride = 4, - .val_bits = 32, - .max_register = 0x00cc, - .fast_io = true, -}; - static void owl_clk_set_regmap(const struct owl_clk_desc *desc, struct regmap *regmap) { @@ -41,18 +34,11 @@ static void owl_clk_set_regmap(const struct owl_clk_desc *desc, int owl_clk_regmap_init(struct platform_device *pdev, const struct owl_clk_desc *desc) { - void __iomem *base; struct regmap *regmap; - struct resource *res; - - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(base)) - return PTR_ERR(base); - regmap = devm_regmap_init_mmio(&pdev->dev, base, &owl_regmap_config); + regmap = syscon_node_to_regmap(of_get_parent(pdev->dev.of_node)); if (IS_ERR(regmap)) { - pr_err("failed to init regmap\n"); + dev_err(&pdev->dev, "failed to get regmap\n"); return PTR_ERR(regmap); } From patchwork Wed Aug 1 03:39:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 143225 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp345688ljj; Tue, 31 Jul 2018 20:40:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpceCOFQze8E/+Y4AG9xWgTwgHRN8E9LIqWhzs9FVJYzlcCvQU07WEbBdfhUpWcqAvWaMsEn X-Received: by 2002:a17:902:8341:: with SMTP id z1-v6mr22475285pln.51.1533094834660; Tue, 31 Jul 2018 20:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533094834; cv=none; d=google.com; s=arc-20160816; b=vHxOJKTc8/PMJl8qrU7XWP5u4HIEAdoQl7BcZJpEV2Es3CxO8EwrzhsuWZpef1pV6N pBCgXBezhgwpAAe2sOtWLrUVmo+6uwjrU6LyYxW3+AyV6aVq4Qo/2F/Rz6DRERQGMQyy QIMfaa2e4QFkhzxDe3A0+txZqhocRw8iotNtlPvoGRUsCcbkIuQRVhgUOjH2KN/Pyusd 6A42YrBKxlYphiU+QwfTvKn6dlpGbBXKJ3FCmPdCOhMr7eMi+vNhS9WxlwBRnkNBlRMM //3voptbXsGhFMU/Ti+kjH/dU+a6pWTnUq5EZpr79wJHckFNP/rFaiNVGhf5Lb5vD4BI zoQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=DFOLXivB49bmcMKwO1dGAMausF59FrddEHKCGI/sQ6k=; b=p747f7j88NYGA9jGr28hyASvCroBQmYv7+klGjpm/+6mpGvJ+f/KeVKDSFUhKkVank YfmvQgwQRcNvFSg/jl1ghyahlVAE32gtJI2jsFJfIBvKaBdLZ5p39ShmND8HfdafL1Gg nPkFOUVmLHaO0o3R0At5BxopO9Cn4TmYSzDMhBMOGzD0nRexlXpZef4lP66wshiAxyAW PfbbjkoXizzQkyWkHsAmPeuZKGmU/pqp/LIMmUzi2p21p5jHt3zRj8fO6/M0cTUTI46/ TJCSrddyRLqoP1Zwi97d6poKgmihJ+4SygALFXJ29YGTgpT8QHpP6fkTVkJxrdg8oibq B97Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fx9EH1c0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13-v6si14705366pgl.104.2018.07.31.20.40.34; Tue, 31 Jul 2018 20:40:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Fx9EH1c0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732991AbeHAFX7 (ORCPT + 31 others); Wed, 1 Aug 2018 01:23:59 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39856 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731051AbeHAFX6 (ORCPT ); Wed, 1 Aug 2018 01:23:58 -0400 Received: by mail-pf1-f196.google.com with SMTP id j8-v6so7106709pff.6 for ; Tue, 31 Jul 2018 20:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DFOLXivB49bmcMKwO1dGAMausF59FrddEHKCGI/sQ6k=; b=Fx9EH1c0ckh3gH32Q8FrFsIJh2rE2D+Z5yYgSsonPpIh2p9O480nTPV+S2Eo70D9uX TU6W60wuuq0yiNu6IxZr+OIYRNe7DOyURqffwPcN/W77znJLlBoOVLgid4QM2CaqyY36 ajYFwknEwx2vLig5xLbm2XT60ndGX/Ig9jo9I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DFOLXivB49bmcMKwO1dGAMausF59FrddEHKCGI/sQ6k=; b=b5kMjVA0AHUOqA6OzkipME01nrscpiW0StXmqLwTviCuyu+LlzZbrEfH2rI+Hq1KkL doGuh27MwZ8u/ESRDPel4mkmk06Ph4B71OQw6aSmvapa4peIAT1eOxJt/ZUgyfM55mrv YnJ975jQbF0CAov8Pd0Mt1xb9k7KFDNLRnLLShn1tLCWQYteviiyV490MLPD0wzEMiot Xr92PidCEQ/5OBWVwu/XLE5tOhehWEcnYgiv9HMDftrIvIJx4gfHTS0fSSbjZ0lkdEap XKoUd1rc4xmDdI3K5SwNDT9UxWlzyEynVP0kHTCSsLh9bt2FEF8NA0K1y73jODq5l70T 4V1w== X-Gm-Message-State: AOUpUlENeqIu+n8uTx8WryLr50QU+v0D/mkCa7r4IO9RlubZHYZlYFmX izU9nr5LIwVqUlqFNGVyB1tP X-Received: by 2002:a63:ce43:: with SMTP id r3-v6mr22750823pgi.439.1533094831456; Tue, 31 Jul 2018 20:40:31 -0700 (PDT) Received: from localhost.localdomain ([2405:204:730e:f0ae:ac4e:9cdd:28a2:4bf9]) by smtp.gmail.com with ESMTPSA id d19-v6sm34879545pgi.50.2018.07.31.20.40.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 20:40:30 -0700 (PDT) From: Manivannan Sadhasivam To: p.zabel@pengutronix.de, mturquette@baylibre.com, sboyd@kernel.org, afaerber@suse.de, robh+dt@kernel.org, lee.jones@linaro.org, arnd@arndb.de Cc: linux-clk@vger.kernel.org, liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, thomas.liau@actions-semi.com, jeff.chen@actions-semi.com, pn@denx.de, edgar.righi@lsitec.org.br, sravanhome@gmail.com, Manivannan Sadhasivam Subject: [PATCH v2 04/10] dt-bindings: reset: Add Actions Semi S900 SoC RMU support Date: Wed, 1 Aug 2018 09:09:09 +0530 Message-Id: <20180801033915.15880-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180801033915.15880-1-manivannan.sadhasivam@linaro.org> References: <20180801033915.15880-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add RMU (Reset Management Unit) support for the Actions Semi S900 SoC which is a part of the Actions Semi Owl family series. Signed-off-by: Manivannan Sadhasivam --- .../bindings/reset/actions,owl-reset.txt | 33 ++++++++++ include/dt-bindings/reset/actions,s900-rmu.h | 65 +++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/actions,owl-reset.txt create mode 100644 include/dt-bindings/reset/actions,s900-rmu.h -- 2.17.1 diff --git a/Documentation/devicetree/bindings/reset/actions,owl-reset.txt b/Documentation/devicetree/bindings/reset/actions,owl-reset.txt new file mode 100644 index 000000000000..38e2c7051d86 --- /dev/null +++ b/Documentation/devicetree/bindings/reset/actions,owl-reset.txt @@ -0,0 +1,33 @@ +Actions Semi Owl SoCs Reset Management Unit (RMU) +================================================= + +Please also refer to reset.txt in this directory for common reset +controller binding usage. + +The RMU registers are part of the system-controller block on Owl SoCs. + +Required properties: +- compatible: Should be "actions,s900-rmu" +- #reset-cells: Should be 1 + +All available resets are defined as preprocessor macros in corresponding +dt-bindings/reset/actions,s900-rmu.h header and can be used in device +tree sources. + +Parent node should have the following properties : +- compatible: "syscon", "simple-mfd" +- reg: physical base address of the system controller and length of + memory mapped region. + +Example: + + sysctrl: system-controller@e0160000 { + compatible = "syscon", "simple-mfd"; + reg = <0x0 0xe0160000 0x0 0x1000>; + + rmu: reset-controller { + compatible = "actions,s900-rmu"; + #reset-cells = <1>; + }; + }; + diff --git a/include/dt-bindings/reset/actions,s900-rmu.h b/include/dt-bindings/reset/actions,s900-rmu.h new file mode 100644 index 000000000000..09e6dca46936 --- /dev/null +++ b/include/dt-bindings/reset/actions,s900-rmu.h @@ -0,0 +1,65 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) +// +// Device Tree binding constants for Actions Semi S900 Reset Management Unit +// +// Copyright (c) 2018 Linaro Ltd. + +#ifndef _DT_BINDINGS_ACTIONS_S900_RESET_H +#define _DT_BINDINGS_ACTIONS_S900_RESET_H + +#define S900_RESET_CHIPID 0 +#define S900_RESET_CPU_SCNT 1 +#define S900_RESET_SRAMI 2 +#define S900_RESET_DDR_CTL_PHY 3 +#define S900_RESET_DMAC 4 +#define S900_RESET_GPIO 5 +#define S900_RESET_BISP_AXI 6 +#define S900_RESET_CSI0 7 +#define S900_RESET_CSI1 8 +#define S900_RESET_DE 9 +#define S900_RESET_DSI 10 +#define S900_RESET_GPU3D_PA 11 +#define S900_RESET_GPU3D_PB 12 +#define S900_RESET_HDE 13 +#define S900_RESET_I2C0 14 +#define S900_RESET_I2C1 15 +#define S900_RESET_I2C2 16 +#define S900_RESET_I2C3 17 +#define S900_RESET_I2C4 18 +#define S900_RESET_I2C5 19 +#define S900_RESET_IMX 20 +#define S900_RESET_NANDC0 21 +#define S900_RESET_NANDC1 22 +#define S900_RESET_SD0 23 +#define S900_RESET_SD1 24 +#define S900_RESET_SD2 25 +#define S900_RESET_SD3 26 +#define S900_RESET_SPI0 27 +#define S900_RESET_SPI1 28 +#define S900_RESET_SPI2 29 +#define S900_RESET_SPI3 30 +#define S900_RESET_UART0 31 +#define S900_RESET_UART1 32 +#define S900_RESET_UART2 33 +#define S900_RESET_UART3 34 +#define S900_RESET_UART4 35 +#define S900_RESET_UART5 36 +#define S900_RESET_UART6 37 +#define S900_RESET_HDMI 38 +#define S900_RESET_LVDS 39 +#define S900_RESET_EDP 40 +#define S900_RESET_USB2HUB 41 +#define S900_RESET_USB2HSIC 42 +#define S900_RESET_USB3 43 +#define S900_RESET_PCM1 44 +#define S900_RESET_AUDIO 45 +#define S900_RESET_PCM0 46 +#define S900_RESET_SE 47 +#define S900_RESET_GIC 48 +#define S900_RESET_DDR_CTL_PHY_AXI 49 +#define S900_RESET_CMU_DDR 50 +#define S900_RESET_DMM 51 +#define S900_RESET_HDCP2TX 52 +#define S900_RESET_ETHERNET 53 + +#endif /* _DT_BINDINGS_ACTIONS_S900_RESET_H */ From patchwork Wed Aug 1 03:39:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 143227 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp345974ljj; Tue, 31 Jul 2018 20:40:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe20As8UXUAOkkhF3uBEc6tWWg3R4mpUBbxcOdaVlCKG3x7l6G6BUdT3asEeW7rs68SFXuX X-Received: by 2002:a63:cf10:: with SMTP id j16-v6mr22994111pgg.238.1533094857809; Tue, 31 Jul 2018 20:40:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533094857; cv=none; d=google.com; s=arc-20160816; b=b1+J8Xfr7tI5bA/6rWOqrcOPiTi6Cy8Q4Jevt9QEIT7modcZBrTnuuXYaJuN+qS3bU uY+wkE+bWL7JEWf+p0QFDWUDgIYDoEqqa7EkCy2bhh5et5TYguqXMp4PwhRM8G5HpNAF /ybMq1iPjMg5aIa7FpkhwKqeI7U+EnRiOr305QgcJTWRNHm1AcJghSFBh4Eb0LmZPiH+ WGPK4tpUEHBfaJdU6RxB0MXLBbsPoA4hxp+cyaD1nXObjk5O/vJcH8ecgrZEAt3XUSIz 2pLgysMwEcRBotm6YpVBx6WwMXBkeoiEFCSdXO0ErA5XTMWUeVnA346uHrax8JxAjGsB UIQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=87ctvXnEfYlfyPeonG8uMOze3/fxbszxeHlLbAhYYFw=; b=CpFYXok2unS3l75+e5DkA4AOpYcgClvy/Ahgk3v4/VKnAHw/iCnf3TY6hFrGKLSI0P 5koW6+TtkwJyB0sjLeyTx63+mDXa+ab8JS3ZcLm2IHn1bJ95Z/KdRQIEGMZy+7Fv3PY2 d1eGhpZ2Lna8DOG1XLllPUo6b9LVisR9KcG/qMSWxeOQL/NXEFO/ua+efC+YfS0GJv3y T4sURgsmUr9sOiJ2a7HBVWEX379noluZcIyopStS8Eguru5M18K78U9w8zyB2BQZV0wv tgEWhVlGBewRqSuOeV73Yc1TN5UkA4iwpEOIChoSP1O229OeDV5fIWKqWKik+xPBU80u LSsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g4dhPdgK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d26-v6si14988385pgb.571.2018.07.31.20.40.57; Tue, 31 Jul 2018 20:40:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g4dhPdgK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733021AbeHAFYW (ORCPT + 31 others); Wed, 1 Aug 2018 01:24:22 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:37859 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732998AbeHAFYW (ORCPT ); Wed, 1 Aug 2018 01:24:22 -0400 Received: by mail-pl0-f68.google.com with SMTP id d5-v6so2561205pll.4 for ; Tue, 31 Jul 2018 20:40:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=87ctvXnEfYlfyPeonG8uMOze3/fxbszxeHlLbAhYYFw=; b=g4dhPdgKrVIDWcT2rr0rlzk9On0nFtMI4xE5GMSnCThE0Iq8pljshwpm3eyB8CSJR3 yD7F8VA+J5BsoeusUUKdkf45NqO0CMjzguxYnYhrJ9wC6owqemBsnJs1Zvxn58R0GEHC TRkN5dhllk616WTjf6TBW9QmxBaq/h/gcSxW8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=87ctvXnEfYlfyPeonG8uMOze3/fxbszxeHlLbAhYYFw=; b=aIiGnDwcPbIAOmqWOGEPCvXR2PKx1Z1RMoe9JSoSJQ7IoUAO5slaZP5qVJfjcHR9ag HUcan+d5iy3C4/Br3LtwtXE3NU/O64HHozoxTOdiqIo+PfVYuDCuZ1+nZqbI5R7ZHRGP aSN2n0l2y3V+guSApBHdYfYPOc/WCbb+0CbKnTzIvknUTtmzYsjkg38ptezZqPV9dd8X wyX8EDbhBg4Sl5hrd16dnFiohXNDBvnCygTHYMxdtMq7EX091V0vnDglDsHbF/9O0TAF 15LgbTbDgOqHcOobOl+pew88jSQ81dm40xi8DQ4Qg5iiPI1hkE9fizwQ+P5FnKY+6fXY 615w== X-Gm-Message-State: AOUpUlHwfz5pICBuOHZcqTbcWJKeNHXvIcdyjqrBvaS7HPZUM7G6jJmo 1YoRSxdi6+a+fe4XvyshK+uFiVliWQ== X-Received: by 2002:a17:902:8f8e:: with SMTP id z14-v6mr22709509plo.139.1533094854810; Tue, 31 Jul 2018 20:40:54 -0700 (PDT) Received: from localhost.localdomain ([2405:204:730e:f0ae:ac4e:9cdd:28a2:4bf9]) by smtp.gmail.com with ESMTPSA id d19-v6sm34879545pgi.50.2018.07.31.20.40.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 20:40:54 -0700 (PDT) From: Manivannan Sadhasivam To: p.zabel@pengutronix.de, mturquette@baylibre.com, sboyd@kernel.org, afaerber@suse.de, robh+dt@kernel.org, lee.jones@linaro.org, arnd@arndb.de Cc: linux-clk@vger.kernel.org, liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, thomas.liau@actions-semi.com, jeff.chen@actions-semi.com, pn@denx.de, edgar.righi@lsitec.org.br, sravanhome@gmail.com, Manivannan Sadhasivam Subject: [PATCH v2 06/10] arm64: dts: actions: Add RMU node for Actions Semi S900 SoC Date: Wed, 1 Aug 2018 09:09:11 +0530 Message-Id: <20180801033915.15880-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180801033915.15880-1-manivannan.sadhasivam@linaro.org> References: <20180801033915.15880-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Reset Controller Unit (RMU) node under the system-controller node for Actions Semi S900 SoC. Also add the bindings constant header to be used by clients. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/actions/s900.dtsi b/arch/arm64/boot/dts/actions/s900.dtsi index d239033f9599..a242d3193a6a 100644 --- a/arch/arm64/boot/dts/actions/s900.dtsi +++ b/arch/arm64/boot/dts/actions/s900.dtsi @@ -6,6 +6,7 @@ #include #include +#include / { compatible = "actions,s900"; @@ -176,6 +177,11 @@ clocks = <&hosc>, <&losc>; #clock-cells = <1>; }; + + rmu: reset-controller { + compatible = "actions,s900-rmu"; + #reset-cells = <1>; + }; }; pinctrl: pinctrl@e01b0000 { From patchwork Wed Aug 1 03:39:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 143228 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp346088ljj; Tue, 31 Jul 2018 20:41:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcwCGHHMkSrNyWtinbsj4tKmlsbCbf7KimyHt9FQp9aUmVKs5inLVk/OOk7UYGjyWvO2zyR X-Received: by 2002:a62:4add:: with SMTP id c90-v6mr25182602pfj.23.1533094868401; Tue, 31 Jul 2018 20:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533094868; cv=none; d=google.com; s=arc-20160816; b=DthNdR6OUUnYgheZaNYkxj+Vkht/rqpOdB18jAC0XrHl6xfWniNzAnNpLiqM5Gz4IA OU+QHA+UhoEiE4Daduhjyfc+U74Boz8qQcBC2tgYCVvJ8wio6qGIh8nmaDusNJyalDB2 Etv+ahs7FZxEil0x5TUkXHSbBK4GqfqDRcgRJ/i9c5DSfMu6514VYBturiq8eshmax8N /Ch/4lzNhOk9QPQX0vaWVWyn7W02lBmbRttfm0HO/up/qInSNNwGZfrkTeFm5GvQD6Qs l33z31m5ty+rOKxvrcjG4GZ3YSJAcL2QTufdhXpjESI62XtzablkZ1KYl8/AljtCmhzF qPOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Yo+LDLCDhPR78yjrPZOfTq5WVkY5aMuwoeScTScvKuk=; b=vKBYQUSuoYtW/b8OHMXnVkycYIWxzH5RlvmTEZ0CAtZAtk3DZBzDHhz0Bt86Bhfp7g Zu94+KCtUic8lkaOMM9NaXPU5kHuEI5Cja+YYK07mgDfE3eRtrjzOgxNYPQrnVGrwdvE 0SuVLa4n2M79ZGU2Ba4wSer5yspWZlRJnERn2JMWUmem820LJYlED2R7IyuYH06sUL+E iH2Iv97Nlum0cSSO3cghElT6vZFJbhQzxiquXFKFaQ5ruWp9oq6IHvVnURITOrHlcSDf ulCT+hch+tJ8ASrJLDIzKeCXMj7fLgPowrGykubhiA5DqQOItGwslKNG0LY8uvPIc5KA 87RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DuNvVWyY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4-v6si14056701ply.481.2018.07.31.20.41.08; Tue, 31 Jul 2018 20:41:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DuNvVWyY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733053AbeHAFYd (ORCPT + 31 others); Wed, 1 Aug 2018 01:24:33 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:33154 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727014AbeHAFYd (ORCPT ); Wed, 1 Aug 2018 01:24:33 -0400 Received: by mail-pl0-f66.google.com with SMTP id 6-v6so8096363plb.0 for ; Tue, 31 Jul 2018 20:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Yo+LDLCDhPR78yjrPZOfTq5WVkY5aMuwoeScTScvKuk=; b=DuNvVWyYM2I0jhIGBxbnDXq0A0Gs0fFCYGxCEIBYhvCUviBTGpLMTm1eS3Oz0O7V/u jX0nJxufmdwf47TrFdXfAG2wHawc5jQR3trlvbG1rfm54vObbjSliLL1iywVu6Bvt9oY azCm+5mlEBeH3GXjJy7jPvFFzmpDU1Uzo3zt4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Yo+LDLCDhPR78yjrPZOfTq5WVkY5aMuwoeScTScvKuk=; b=CCWnFVB1jDuffabkudxYJeumR/K0DD21xp8wG0mm/MYGDmlZFf5W0EnGIaPFeYoV/K bHYMIHsfnhTLd2sR7P4jDjiETYJH6HbIZKGHb/7jLU/nDm2LUXOlwLwlNYFNAJf3tgXq plyXdkH3XilRlEALsWDiVsgk4LE9UMuXxz1zj/PMPH6jm3pqywINdh+3I/ze1LXr9trS nGybhzUqsEa2IGwmiJUkkxxxXoiqFPW9Xlt8ldDFARlApM+YQmF4DbrIiT/StqXXVgK5 kKzHjwEoqPPubWWIIqa0TqQgZJjuPyyT7ha2nzBuxxf+czdskBfqV1dQZQVSyIFW/UqJ 78OQ== X-Gm-Message-State: AOUpUlGjVR+Xr0fOU2jDgG5IT2zqtAjM5RcjdpPkvDdpzJJAS4V31WML bZbpjC4k4IfKzgBbLheITqyZ X-Received: by 2002:a17:902:bf44:: with SMTP id u4-v6mr23196504pls.84.1533094865650; Tue, 31 Jul 2018 20:41:05 -0700 (PDT) Received: from localhost.localdomain ([2405:204:730e:f0ae:ac4e:9cdd:28a2:4bf9]) by smtp.gmail.com with ESMTPSA id d19-v6sm34879545pgi.50.2018.07.31.20.40.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 20:41:05 -0700 (PDT) From: Manivannan Sadhasivam To: p.zabel@pengutronix.de, mturquette@baylibre.com, sboyd@kernel.org, afaerber@suse.de, robh+dt@kernel.org, lee.jones@linaro.org, arnd@arndb.de Cc: linux-clk@vger.kernel.org, liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, thomas.liau@actions-semi.com, jeff.chen@actions-semi.com, pn@denx.de, edgar.righi@lsitec.org.br, sravanhome@gmail.com, Manivannan Sadhasivam Subject: [PATCH v2 07/10] arm64: dts: actions: Add RMU node for Actions Semi S700 SoC Date: Wed, 1 Aug 2018 09:09:12 +0530 Message-Id: <20180801033915.15880-8-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180801033915.15880-1-manivannan.sadhasivam@linaro.org> References: <20180801033915.15880-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Reset Controller Unit (RMU) node under the system-controller node for Actions Semi S700 SoC. Also add the bindings constant header to be used by clients. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s700.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/actions/s700.dtsi b/arch/arm64/boot/dts/actions/s700.dtsi index a57f54587164..8498579504c7 100644 --- a/arch/arm64/boot/dts/actions/s700.dtsi +++ b/arch/arm64/boot/dts/actions/s700.dtsi @@ -5,6 +5,7 @@ #include #include +#include / { compatible = "actions,s700"; @@ -169,6 +170,11 @@ clocks = <&hosc>, <&losc>; #clock-cells = <1>; }; + + rmu: reset-controller { + compatible = "actions,s700-rmu"; + #reset-cells = <1>; + }; }; sps: power-controller@e01b0100 { From patchwork Wed Aug 1 03:39:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 143230 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp346328ljj; Tue, 31 Jul 2018 20:41:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcCY64/mRLF+WL6bx3XTIJyLBUghcAoaPxZWeW2eg51dUZ1fAm44//CeO56S7cbcFvLtg8Y X-Received: by 2002:a63:e516:: with SMTP id r22-v6mr22486732pgh.170.1533094891122; Tue, 31 Jul 2018 20:41:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533094891; cv=none; d=google.com; s=arc-20160816; b=pPUr5vEoprF8/o4Ws8wte5OAMeCXpti4bJwpP26CMJLdkmm4K8XbuuyZkZnzowZUwG Gb4wOlr4KUuu20wjlovxHDn23YWbggTmP+yoFPumY3UZmoVqtUOtdP/IJYkSf+odODf0 p2mWbkR/btvjUntMVYrZWE8uOJEIRWiZJiSoFJILMCB10qzWZTiS8fPzQA8T+gWEv59x YtoLSBBolCT+F2Yq87FWWZXwTEwKYAPAdtigHZd/H1hCGQZzN+f+KLtznTiiSkgRIbPq iJAgIRJT+ER7BsPcNirS7beARk8KMNuQ0RFEdJWc/djwjLo5MS9cnjeKfsAnRsxV5qab pUyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=bLZERzJcsBKallzHCWYCzW5/4DVNzq1sHF/567lQEeM=; b=hqOhTZwAhVt+9GLlXq6v0PTJZN6H+xqkzKlnGCH4MKq/5jAfrRxpw3h9bAHnrEEEx3 grGVmDi4bRzZgkHOvW+OiXob6fLNy4aRjFxQloA+L4pZm1wAWGXb1zoRk0H18jqyQwst tXhSzS8+MgI/SSyiWTx54vjYqNLQbd5Nuj1oj673mU8dneJ5n4uFLLy6E+e5BM7B5gH2 L8uDMMhNsqWZOM2kn2/Dv6XqODfiOgnugoK3Ea064zfVTtJYeFLlu62ymS4TgxPRl8vm kKwrqsIFbd+ADO48OLWzY3P/iCXaDN/9w25WZzIagLYrkEjFdxB+uAJ06ux6bSVmaIux tJvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FxmRuULI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9-v6si13403089pgq.172.2018.07.31.20.41.30; Tue, 31 Jul 2018 20:41:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FxmRuULI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733078AbeHAFYz (ORCPT + 31 others); Wed, 1 Aug 2018 01:24:55 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:35936 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731454AbeHAFYz (ORCPT ); Wed, 1 Aug 2018 01:24:55 -0400 Received: by mail-pf1-f194.google.com with SMTP id b11-v6so1930211pfo.3 for ; Tue, 31 Jul 2018 20:41:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bLZERzJcsBKallzHCWYCzW5/4DVNzq1sHF/567lQEeM=; b=FxmRuULI6IVipPlB7j2Djl9s6LW/wW/4cHy7aQk6bmf9+BowQkdoSzT5sBbM71VFvE uz+lcGrShCrmh8yIP1uxRHoLMA42sM3gGpjqlmEZvzdREVC2VFBRpBZxMLq1HSYEjbjE /iFKynr21lQoHBZQh6VaeFjmVtSLyB01qj4hY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bLZERzJcsBKallzHCWYCzW5/4DVNzq1sHF/567lQEeM=; b=gbYxREnF+fyCbhqpXaKUxMcFKlnIcNbZ/9Hc6CUeb1jr7wn0zCcGmiVYgX0jiAvR02 oxRgqC/3hXbwjnd5qr5i5EHu+G7sL4I6V6mQ1aOacO9R/766uqYZx+v+uOB0ZWQ77DHl kRTlE9wR+ZueCun7TNKoqtFUvgTsurkGERe137q5bWWnbzhj/MqFBTsNmg5q3dkUVCuD fYwUtEZcNys8SlTp6p7WOBbdB/YIglqa/CztIINVzhTJlKmjFi+tsM6Bvv55D8VVW6nq jW4siDdeI73h5jJwlfkM8h+NDXBU9EzywWDxzowR0ScOIUMPQw4q3NEfc7uw4jl3+bK8 /XFw== X-Gm-Message-State: AOUpUlFP6F7Ba0CI+VVGtbgiCqGJl5ooir/Q0Bopr/lpJwYS9+2LkdQ9 STgeHL+HOO9PDMMm2qcS/scO X-Received: by 2002:a63:4c21:: with SMTP id z33-v6mr22749300pga.383.1533094888018; Tue, 31 Jul 2018 20:41:28 -0700 (PDT) Received: from localhost.localdomain ([2405:204:730e:f0ae:ac4e:9cdd:28a2:4bf9]) by smtp.gmail.com with ESMTPSA id d19-v6sm34879545pgi.50.2018.07.31.20.41.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 20:41:27 -0700 (PDT) From: Manivannan Sadhasivam To: p.zabel@pengutronix.de, mturquette@baylibre.com, sboyd@kernel.org, afaerber@suse.de, robh+dt@kernel.org, lee.jones@linaro.org, arnd@arndb.de Cc: linux-clk@vger.kernel.org, liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, thomas.liau@actions-semi.com, jeff.chen@actions-semi.com, pn@denx.de, edgar.righi@lsitec.org.br, sravanhome@gmail.com, Manivannan Sadhasivam Subject: [PATCH v2 09/10] reset: Add Actions Semi S700 SoC Reset Management Unit support Date: Wed, 1 Aug 2018 09:09:14 +0530 Message-Id: <20180801033915.15880-10-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180801033915.15880-1-manivannan.sadhasivam@linaro.org> References: <20180801033915.15880-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Reset Management Unit (RMU) support for Actions Semi S700 SoC of the Owl family series. RMU belongs to the Owl SoCs system-controller which also includes CMU (Clock Management Unit). Signed-off-by: Manivannan Sadhasivam --- drivers/reset/reset-owl.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) -- 2.17.1 diff --git a/drivers/reset/reset-owl.c b/drivers/reset/reset-owl.c index c4f07691fb36..2e761c64f81b 100644 --- a/drivers/reset/reset-owl.c +++ b/drivers/reset/reset-owl.c @@ -12,6 +12,7 @@ #include #include +#include #define CMU_DEVRST0 0x00a8 #define CMU_DEVRST1 0x00ac @@ -84,11 +85,42 @@ static const struct owl_reset_map s900_resets[] = { [S900_RESET_I2C3] = { CMU_DEVRST1, BIT(19) }, }; +static const struct owl_reset_map s700_resets[] = { + [S700_RESET_DE] = { CMU_DEVRST0, BIT(0) }, + [S700_RESET_LCD0] = { CMU_DEVRST0, BIT(1) }, + [S700_RESET_DSI] = { CMU_DEVRST0, BIT(2) }, + [S700_RESET_CSI] = { CMU_DEVRST0, BIT(13) }, + [S700_RESET_SI] = { CMU_DEVRST0, BIT(14) }, + [S700_RESET_I2C0] = { CMU_DEVRST1, BIT(0) }, + [S700_RESET_I2C1] = { CMU_DEVRST1, BIT(1) }, + [S700_RESET_I2C2] = { CMU_DEVRST1, BIT(2) }, + [S700_RESET_I2C3] = { CMU_DEVRST1, BIT(3) }, + [S700_RESET_SPI0] = { CMU_DEVRST1, BIT(4) }, + [S700_RESET_SPI1] = { CMU_DEVRST1, BIT(5) }, + [S700_RESET_SPI2] = { CMU_DEVRST1, BIT(6) }, + [S700_RESET_SPI3] = { CMU_DEVRST1, BIT(7) }, + [S700_RESET_UART0] = { CMU_DEVRST1, BIT(8) }, + [S700_RESET_UART1] = { CMU_DEVRST1, BIT(9) }, + [S700_RESET_UART2] = { CMU_DEVRST1, BIT(10) }, + [S700_RESET_UART3] = { CMU_DEVRST1, BIT(11) }, + [S700_RESET_UART4] = { CMU_DEVRST1, BIT(12) }, + [S700_RESET_UART5] = { CMU_DEVRST1, BIT(13) }, + [S700_RESET_UART6] = { CMU_DEVRST1, BIT(14) }, + [S700_RESET_KEY] = { CMU_DEVRST1, BIT(24) }, + [S700_RESET_GPIO] = { CMU_DEVRST1, BIT(25) }, + [S700_RESET_AUDIO] = { CMU_DEVRST1, BIT(29) }, +}; + static const struct owl_reset_hw s900_reset_hw = { .resets = s900_resets, .num_resets = ARRAY_SIZE(s900_resets), }; +static const struct owl_reset_hw s700_reset_hw = { + .resets = s700_resets, + .num_resets = ARRAY_SIZE(s700_resets), +}; + static inline struct owl_reset *to_owl_reset(struct reset_controller_dev *rcdev) { return container_of(rcdev, struct owl_reset, rcdev); @@ -179,6 +211,7 @@ static int owl_reset_probe(struct platform_device *pdev) static const struct of_device_id owl_reset_of_match[] = { { .compatible = "actions,s900-rmu", .data = &s900_reset_hw }, + { .compatible = "actions,s700-rmu", .data = &s700_reset_hw }, { /* sentinel */ } };