From patchwork Sun Aug 13 09:00:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Katsuhiro Suzuki X-Patchwork-Id: 109949 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp3009915qge; Sun, 13 Aug 2017 02:01:20 -0700 (PDT) X-Received: by 10.84.128.9 with SMTP id 9mr23044489pla.98.1502614880605; Sun, 13 Aug 2017 02:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502614880; cv=none; d=google.com; s=arc-20160816; b=emMq2p3xhAsTQTv6IiMVglcbTQWqGB9EvGcBnuJ0kfUNrY5E6//+REBV/qANRuEGPR ApcNKB6JjbvzS68M65UJTxkBAt1SvhzUeMI+VxEAbG4a3op92mZF1SlhBWwGBUTC888Q CexqV8f7iEElKwNaOyEfd0fjD9dO9MP+4sBX7jyBu0Tk46Cb420Jetjpz4hG0VPaa5Ff VzHzLhB1iBKiRoCJg3vcO12JRPPhSvk/jyGo8K+imniz43qmb+9siPrscF+eYuyPcgI0 puqWllhZu4WWYMoNhoVHN2+w7ZSwedwHN34/LWPf1b+RfKS0JqBJ21x2G1NNoAKeCim2 kDKA== 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:arc-authentication-results; bh=wGTI7pATQE1oDylPKrwbN+oVqF06jdl5enHmNdSSE+c=; b=Zo8bR9KpN2qC62GXP3mHbddGYjqwebm+u51Kf/ogk12eLqNJjfLP2ODfVNiiG8FWYg NGDSOnVEp71dBcvPJfDrFoxZP9Y0VSVf3XKz3dJEFohfl0okCcAK68UqJsEPyUHWK4TK SyEjcTnK9Oj++fGASxYrDg6OOpJ95uKoA0LHkZhWEe7fqrxkghTud+nifxvpZ3YAsGv9 CIrJoB87ssO0aZ6KsIDLtWHAMuswWYTIkGhiIY/2vj3hx/rkL0GXBeyDrWaqBfvzC52k yGiAhhi+FQpeVFWf6excz7ivH44MFoqwNDrCSF7HtRMfedaTbw5vnZSwoVhmkdmbqEty CHLg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d29si3082820plj.904.2017.08.13.02.01.20; Sun, 13 Aug 2017 02:01:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752443AbdHMJBS (ORCPT + 25 others); Sun, 13 Aug 2017 05:01:18 -0400 Received: from mx.socionext.com ([202.248.49.38]:59553 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750955AbdHMJAy (ORCPT ); Sun, 13 Aug 2017 05:00:54 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 13 Aug 2017 18:00:52 +0900 Received: from mail.mfilter.local (unknown [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 006666007D; Sun, 13 Aug 2017 18:00:52 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Sun, 13 Aug 2017 18:00:52 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id A1ADE1A0E16; Sun, 13 Aug 2017 18:00:52 +0900 (JST) Received: from aegis.e01.socionext.com (unknown [10.213.134.210]) by yuzu.css.socionext.com (Postfix) with ESMTP id 75AD2120455; Sun, 13 Aug 2017 18:00:52 +0900 (JST) From: Katsuhiro Suzuki To: Philipp Zabel , Masahiro Yamada , linux-arm-kernel@lists.infradead.org Cc: Masami Hiramatsu , Jassi Brar , linux-kernel@vger.kernel.org, Katsuhiro Suzuki Subject: [PATCH v2 3/3] reset: uniphier: add analog amplifiers reset control Date: Sun, 13 Aug 2017 18:00:43 +0900 Message-Id: <20170813090043.3828-3-suzuki.katsuhiro@socionext.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170813090043.3828-1-suzuki.katsuhiro@socionext.com> References: <20170813090043.3828-1-suzuki.katsuhiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a reset line for analog signal amplifier core (ADAMV) on UniPhier LD11/LD20 SoCs. Signed-off-by: Katsuhiro Suzuki --- Changes for v2: - ID changes to 0 because ADAMV reset controller independents from other reset controllers. - Add DT-binding documents. --- .../devicetree/bindings/reset/uniphier-reset.txt | 25 ++++++++++++++++++++++ drivers/reset/reset-uniphier.c | 15 +++++++++++++ 2 files changed, 40 insertions(+) -- 2.13.2 Acked-by: Masahiro Yamada diff --git a/Documentation/devicetree/bindings/reset/uniphier-reset.txt b/Documentation/devicetree/bindings/reset/uniphier-reset.txt index b80ccc03ab9f..68a6f487c409 100644 --- a/Documentation/devicetree/bindings/reset/uniphier-reset.txt +++ b/Documentation/devicetree/bindings/reset/uniphier-reset.txt @@ -90,3 +90,28 @@ Example: other nodes ... }; + + +Analog signal amplifier reset +----------------------------- + +Required properties: +- compatible: should be one of the following: + "socionext,uniphier-ld11-adamv-reset" - for LD11 SoC + "socionext,uniphier-ld20-adamv-reset" - for LD20 SoC +- #reset-cells: should be 1. + +Example: + + adamv@57920000 { + compatible = "socionext,uniphier-ld11-adamv", + "simple-mfd", "syscon"; + reg = <0x57920000 0x1000>; + + adamv_rst: reset { + compatible = "socionext,uniphier-ld11-adamv-reset"; + #reset-cells = <1>; + }; + + other nodes ... + }; diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index f60c137c17cb..bda2dd196ae5 100644 --- a/drivers/reset/reset-uniphier.c +++ b/drivers/reset/reset-uniphier.c @@ -196,6 +196,12 @@ static const struct uniphier_reset_data uniphier_pro4_peri_reset_data[] = { UNIPHIER_RESET_END, }; +/* Analog signal amplifiers reset data */ +static const struct uniphier_reset_data uniphier_ld11_adamv_reset_data[] = { + UNIPHIER_RESETX(0, 0x10, 6), /* EVEA */ + UNIPHIER_RESET_END, +}; + /* core implementaton */ struct uniphier_reset_priv { struct reset_controller_dev rcdev; @@ -415,6 +421,15 @@ static const struct of_device_id uniphier_reset_match[] = { .compatible = "socionext,uniphier-ld20-peri-reset", .data = uniphier_pro4_peri_reset_data, }, + /* Analog signal amplifiers reset */ + { + .compatible = "socionext,uniphier-ld11-adamv-reset", + .data = uniphier_ld11_adamv_reset_data, + }, + { + .compatible = "socionext,uniphier-ld20-adamv-reset", + .data = uniphier_ld11_adamv_reset_data, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, uniphier_reset_match);