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: 10551651 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2916F139A for ; Wed, 1 Aug 2018 03:40:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16B042B120 for ; Wed, 1 Aug 2018 03:40:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 093E52B125; Wed, 1 Aug 2018 03:40:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AB46E2B0F5 for ; Wed, 1 Aug 2018 03:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=mbycKvTLmTXVdDxPQJBrXDYJa7mr0Z4l3TZGOPX5/Mk=; b=Zgw Ci+aGK+BTy1EF77YA1SGB4tyl8bseBUDeIKjZgi0OOd88whj0fn0rDGLqn98/oxhy3b5EJPt6Les1 +jxuRzN+WIuN2enOlFnwqVzXfnEwQ9TX1epIsAgOknwroObQixNGLskcsPtrxJ3EfpAAYdwnQODDT dYf8FdiiuyoHSaTaLFGV8+794li27iNSvBAy9qayRJMVR2gV9hL1U5dR+cwnWbud0qSvYsxnHORQS MbjC1Dg9965cKxKplsDVmHB8G8S+HEfQy8dBy+LnIGIIU6FU5/Dekn2h5g2zyMYc5KLwu6c896y7+ qt6w5zgrJZ7JWHRJUkwIpNcdHHkJoIw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkhzQ-00026g-B1; Wed, 01 Aug 2018 03:39:56 +0000 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkhzN-00025h-GV for linux-arm-kernel@lists.infradead.org; Wed, 01 Aug 2018 03:39:54 +0000 Received: by mail-pl0-x244.google.com with SMTP id t17-v6so8090653ply.13 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=C+v5jM+BeBMmyMW95FiJlH/JRjxcf3pmwarPEPTeb+U334zrs1zDEda8O45LGE0I1g alLNady1dOM+tKNY+W3Ov3hEXxdIEKsluxv1jhiofyBvDphy8QAfGByfANYNnGYa7cti R6Kz90NfVzD8ieFEkAirW6FJrhmVdrbWMZ0/HVsikf9MdV7MpjGi34FUH4Cvmr5sulno Efzi6odnAyIGDdMHqNbETBWlhyXO0/gcp0kveyjA6AT3pCJ0gPHG9eYNgDBukW3AyDyQ fJlfr2V/1i3zm2YvyEBtVDzxfX0qlZmiqRyuIBA8JyCCTb3TCnxKczzC6Go4MoTaN08I sTuA== X-Gm-Message-State: AOUpUlHc6Umqf5Goujo3get0scrRZvO7AU9Az1QjYDEQ9sApjlhNzNwc YvBYp53I01EwxopB7z6vWjMI X-Google-Smtp-Source: AAOMgpevBiq+Dtys991j+C6OcQTUcmFSjVf/N+jxrDoLFqh3HVF+FBUz/bINdkrRwPyoVEX4sknWKw== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180731_203953_552725_75EE9BF5 X-CRM114-Status: GOOD ( 15.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, daniel.thompson@linaro.org, manivannanece23@gmail.com, sravanhome@gmail.com, jeff.chen@actions-semi.com, thomas.liau@actions-semi.com, bdong@ucrobotics.com, liuwei@actions-semi.com, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, edgar.righi@lsitec.org.br, hzhang@ucrobotics.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, pn@denx.de, Manivannan Sadhasivam , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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