From patchwork Wed Aug 1 03:39:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 143221 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp345058ljj; Tue, 31 Jul 2018 20:39:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeMiOxWkbOaqHJQ1KJt6yrj4aBbRuEclYnCig6iS/tUMZ6Zmd3/+7Gge5ycL/Vbhyeim4F+ X-Received: by 2002:a63:6092:: with SMTP id u140-v6mr22999975pgb.433.1533094783849; Tue, 31 Jul 2018 20:39:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533094783; cv=none; d=google.com; s=arc-20160816; b=sYhlr5DF3lDeWjHYRBy8FY9UjCMtOxVTyX/hooEeKPDehIf72vdELMBPGk/MPXYLtB cuG9wnv7zhhnoVWL+bPrn66FXCwTMkhi+62ZeewEktvj+wO0FS7fh7AWDIOvh/SUlLhs jjFF1aNOQY+ZLy7EWIx1+K/ojOxI58JBKe1Ci742k9FVZgT7TOzGgd0iosVTmjtz/NQe ymNFhIA3O6X2fJrh/ffubQJyacUxYtSrtwJL9aH73DeGF9rxKzLyGmNksVRxrvW405As bHRSr85h6uFwZmlDv3W3Wbo8yOjRlhcO4FM/XfIwu208FjSzWdHlH/fXZz3C7KqL5w0F vUgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=eBzSuoSS2MSxgx21ymR/Nz3MV4O1OVgFyLfz9s73Tw8=; b=i/vcQMwDBZsfllvmqyXoVRi/AuubQZanzfTyUw8ecHOMKEW66YEjD7KB/i2RXQFFnj kOXcXBwsGdFXRhXE6kYAXrxPdsKVYGoTnkmtRlMcaKTISgdVtXF+CVQLYl+JAzz8x/ty u+NF5k99sOj7Ja56xgUQRSayWL/yPoVeEw+23dAxztvBXkAHjLQfAwIDwNZ2u5TJKkaF yqz10jR9XI8u74PXQnhWcmeRMVErg/8gViv6UL5rAEyQpgj+ftlBYMOpO/oxNLP8IXnV 8hChdC7hKFitBuyMMtHoPr+DldPLm2PC0FYihfYTMzuCheRtPoO/npCA1Z0razUIJSdq XIdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fqUU1JsT; 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=fail (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 65-v6si15891334pgi.195.2018.07.31.20.39.43; Tue, 31 Jul 2018 20:39:43 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fqUU1JsT; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726972AbeHAFXI (ORCPT + 5 others); Wed, 1 Aug 2018 01:23:08 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:38572 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbeHAFXI (ORCPT ); Wed, 1 Aug 2018 01:23:08 -0400 Received: by mail-pl0-f65.google.com with SMTP id u11-v6so2560106plq.5 for ; Tue, 31 Jul 2018 20:39:42 -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; bh=Y9HQDT6O0bUQrEKHBF5VUMmagpdhqNtYcCUMwS8a+wM=; b=fqUU1JsT8KHBgh548klaBujbxykYpidqtalc74Jw4feJDtgi9NB5ZXH9EdMi5QHAJp f5e30KcDODpiP9nhOrk9hoY34fv60V0k7NxnWvhmD5x7Nu78R7GCXZ3A8wBVfUfjTBYI vubS4s8go3qACvs4bUAxn6bly7u9lxtmXCOu0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Y9HQDT6O0bUQrEKHBF5VUMmagpdhqNtYcCUMwS8a+wM=; b=NDLD+inm1eVgOuUPX/fJ3LVSGPODr5q8C8pAQ2BJm+FUF0BUz4ht71lGRB4ZbQVG2b Co4Sa3+XOtALRcDZQn5rwjbtO1WKiZV/NWXef9xnlRWMWS9608sWHsSNg5j062BAUAYV gn8GXh8LIs2t4sheDzN9GpnVuZcgYrJWbv+EDUqqw3XWA2PbHvusxFzBWRGMkdKdezuW m9fZpAJSs/chUtZLfFxuaXveL8ZcloVQLY8YncuDB6i+wH+E51AcT64NrlaGVBsMU+UA 8NdWJ+Ucd4afazwrmbZvoHHoocGX5aq1nRzLttaXnNImHNZ71zhq5OPbemoqErQfilqJ AVjQ== X-Gm-Message-State: AOUpUlGK3v0rY14YyNS+GT2bu/WErlon2G7+BzntfMpqq300kaUrPv8s 0p5jaW9TvWfoTr/+BPsD6p5P X-Received: by 2002:a17:902:8b86:: with SMTP id ay6-v6mr22360158plb.25.1533094782057; Tue, 31 Jul 2018 20:39:42 -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.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 20:39:41 -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 00/10] Add Reset Controller support for Actions Semi Owl SoCs Date: Wed, 1 Aug 2018 09:09:05 +0530 Message-Id: <20180801033915.15880-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patchset adds Reset Controller (RMU) support for Actions Semi Owl SoCs, S900 and S700. For the Owl SoCs, RMU's registers has been integrated into the CMU memory map in hardware. Hence, in this patchset the CMU driver has been converted to syscon so that the same memory map can be resued by both CMU and RMU drivers. Finally, the support for RMU in S700 and S900 SoCs are added. This patch series depends on the recently posted S700 clk series: "[PATCH v7 0/5] Add clock driver for Actions S700 SoC". For the S700 clk series, driver and bindings patches are applied through the clk tree. But the DTS patches are not yet picked up by the platform maintainer, Andreas. Hence, Andreas is expected to pick the DTS patches in this series once reviewed by the maintainers along with S700 clk DTS patches. Note: I have only tested the S900 part, S700 is only compile tested. But there is no reason for it to fail. Thanks, Mani Changes in v2: * Converted the CMU and RMU drivers to syscon for a more cleaner approach * Declared the owl_reset_map structs to const * Used regmap_update_bits instead of a combined regmap_read and write * Removed unused headers in RMU drivers * Added MAINTAINERS entry for the RMU driver and bindings Manivannan Sadhasivam (10): dt-bindings: clock: Add syscon support to Actions Semi Owl SoCs arm64: dts: actions: Convert Owl SoCs clock-controller nodes to syscon clk: actions: Add syscon support for Actions Semi Owl SoCs dt-bindings: reset: Add Actions Semi S900 SoC RMU support dt-bindings: reset: Add Actions Semi S700 SoC RMU support arm64: dts: actions: Add RMU node for Actions Semi S900 SoC arm64: dts: actions: Add RMU node for Actions Semi S700 SoC reset: Add Actions Semi S900 SoC Reset Management Unit support reset: Add Actions Semi S700 SoC Reset Management Unit support MAINTAINERS: Add entry for Actions Semi Owl SoCs Reset Management Unit .../bindings/clock/actions,owl-cmu.txt | 21 +- .../bindings/reset/actions,owl-reset.txt | 35 +++ MAINTAINERS | 4 + arch/arm64/boot/dts/actions/s700.dtsi | 18 +- arch/arm64/boot/dts/actions/s900.dtsi | 18 +- drivers/clk/actions/owl-common.c | 20 +- drivers/reset/Kconfig | 6 + drivers/reset/Makefile | 1 + drivers/reset/reset-owl.c | 225 ++++++++++++++++++ include/dt-bindings/reset/actions,s700-rmu.h | 34 +++ include/dt-bindings/reset/actions,s900-rmu.h | 65 +++++ 11 files changed, 416 insertions(+), 31 deletions(-) create mode 100644 Documentation/devicetree/bindings/reset/actions,owl-reset.txt create mode 100644 drivers/reset/reset-owl.c create mode 100644 include/dt-bindings/reset/actions,s700-rmu.h create mode 100644 include/dt-bindings/reset/actions,s900-rmu.h -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html