From patchwork Sun Aug 13 09:00:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Katsuhiro Suzuki X-Patchwork-Id: 109947 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp3009513qge; Sun, 13 Aug 2017 02:00:57 -0700 (PDT) X-Received: by 10.84.160.226 with SMTP id v31mr23023855plg.91.1502614857849; Sun, 13 Aug 2017 02:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502614857; cv=none; d=google.com; s=arc-20160816; b=m3VC8rU72xEv4NGbTdf9sgFEiZtpvHFJvbKzLkT0Yn4KWA8aZ2AB2Y91DH//Fxx2cO y6cX0K5MXwfulpPqWBJ7g5kdcmyUFcGcsKQj20goa7k7kcIv5aYk4v6xtnU74VMNNKn4 QMOQqCMjYcT4mq7ckL5+1GDDiYSPoJMdyYyaPOFGUGiYK1p4zuVLw0wM6ax6bhAFJDn+ DXO1MKXZs2XP1cgFrIhbye6ncrwNtTW+v6b5b/r3imBK/j8TIXNRHCHd6G0r1NJWnVzs lTbAm9YgKhw/MO3qp2BWWaHU4QFVtHRPYvBtYBwl4KVxBq9l2HVEQqmKztM4MH1uj5FV +hoQ== 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 :arc-authentication-results; bh=nGvX1sOFhygqCD4f9jpqfCAJsY/KXhswbrcJS64OjwM=; b=bo1PUVskme/Euw9Hr7d/lFOcb4fJS/ed6WGTNB7G0jr0gZoXH/8rBCnj0I9IwaASy6 TE634stuWzoAXQa5q+oWL5sfn4NtJvcznpWGls3kvdbNm3G4QLKLKugrmf7Vfmz0Gu8I XaXILDoxLleQrWU93bipgtI7GOj25fjYVhgVVTcpi2Mos2VYXhGuZGCpYs5iOdIa2nKl A94GDWwiDfBpsVE0YRO8Ks1j6t4clor1xUcYD7DYxiLC71GmKeeHLudb2zituFQ7801V ITn1b8zIxVRR9ZCouYPexD0itjtYPLoMU7b34fGO3scTnj/vuOca1cp2oHC0gLYuL+ZT En2Q== 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 11si3150553plc.623.2017.08.13.02.00.57; Sun, 13 Aug 2017 02:00: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; 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 S1751431AbdHMJAy (ORCPT + 25 others); Sun, 13 Aug 2017 05:00:54 -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 S1750922AbdHMJAx (ORCPT ); Sun, 13 Aug 2017 05:00:53 -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.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 81B0C6007D; Sun, 13 Aug 2017 18:00:52 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) 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 iyokan.css.socionext.com (Postfix) with ESMTP id 327B64087F; 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 F0B2A120455; Sun, 13 Aug 2017 18:00:51 +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 1/3] reset: uniphier: add audio systems reset control Date: Sun, 13 Aug 2017 18:00:41 +0900 Message-Id: <20170813090043.3828-1-suzuki.katsuhiro@socionext.com> X-Mailer: git-send-email 2.13.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add reset lines for audio subsystem (AIO) and SoC internal audio codec (EVEA) on UniPhier LD11/LD20 SoCs. Signed-off-by: Katsuhiro Suzuki Acked-by: Masahiro Yamada --- drivers/reset/reset-uniphier.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.13.2 diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index 954b2c4e6ca7..90c52a96f775 100644 --- a/drivers/reset/reset-uniphier.c +++ b/drivers/reset/reset-uniphier.c @@ -93,6 +93,8 @@ static const struct uniphier_reset_data uniphier_ld11_sys_reset_data[] = { UNIPHIER_RESETX(2, 0x200c, 0), /* NAND */ UNIPHIER_RESETX(4, 0x200c, 2), /* eMMC */ UNIPHIER_RESETX(8, 0x200c, 8), /* STDMAC (HSC, MIO) */ + UNIPHIER_RESETX(40, 0x2008, 0), /* AIO */ + UNIPHIER_RESETX(41, 0x2008, 1), /* EVEA */ UNIPHIER_RESET_END, }; @@ -105,6 +107,8 @@ static const struct uniphier_reset_data uniphier_ld20_sys_reset_data[] = { UNIPHIER_RESETX(17, 0x200c, 13), /* USB30-PHY1 */ UNIPHIER_RESETX(18, 0x200c, 14), /* USB30-PHY2 */ UNIPHIER_RESETX(19, 0x200c, 15), /* USB30-PHY3 */ + UNIPHIER_RESETX(40, 0x2008, 0), /* AIO */ + UNIPHIER_RESETX(41, 0x2008, 1), /* EVEA */ UNIPHIER_RESET_END, }; From patchwork Sun Aug 13 09:00:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Katsuhiro Suzuki X-Patchwork-Id: 109948 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp3009539qge; Sun, 13 Aug 2017 02:00:59 -0700 (PDT) X-Received: by 10.98.211.197 with SMTP id z66mr21746821pfk.160.1502614859385; Sun, 13 Aug 2017 02:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502614859; cv=none; d=google.com; s=arc-20160816; b=fiVejrp4HGwK7oEBGTCgvElC/VNRhXCUHNzxQckt3TWqzkVvaPIIeRkTm/BPqKnWbF 5rkHy/QlIXuIQPTDabSgyEmBzyLhagOzgYMYNF55jHV6mLGXOeie/HgfL5yjX3fVcSA+ hNLjxv2hhZMQ6RV769U0tWmrM/AYtbicG/VYuOCTUPQnfQoXJa3Vb1VULpLE5JdireSz OLMNBPPZRsPKZkmC7khzBHqLkWLfFCyUgsohjs0rRNHYjVWK6fdplT4ir8AMCNxY+MGq UVUXnSvz+YKa3d7S7caku32jsMqsiCxFh7MjjTWscL8RgXNsQMaYw4KzMJxn/MHuxBBk XKTQ== 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=Uq9P/Yxs+JzGGiiD0pEvE1D5eK6jMr0geDkAwlvtIpQ=; b=kRkiUtJhh0QBsBPSbrVUgsAO54mOLZqLMozQNL9m42ve5vQdfWINgFGkCl7r1GNV4f 6YeLxWT/IeTYh8iQ6I3dnSxSWNsLDtmTQ8xNL8He8u8ve2cSADN6O4j34wtkbMWVHb1h lxoHJHvVJMCsv5qqZIm0I970S7WiNkVGEJu470Ib5EbZ77XJe2c5Tuykkw8Ul7klHHWw WviuaGDR0PdkcnCZE5ZiUtoSXY0Q8EbRN3OcOP+ZI5FRKzWSlFI3vmGJRaPLEBwiZ2JU fROzH7GPm591it2Nhpt7rtpyJ8F4CWueLyw2ju05XnqsFnSrnDsi/0M3o4mT6FAjcW06 8ofw== 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.00.58; Sun, 13 Aug 2017 02:00:59 -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 S1751803AbdHMJA4 (ORCPT + 25 others); Sun, 13 Aug 2017 05:00:56 -0400 Received: from mx.socionext.com ([202.248.49.38]:59554 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750925AbdHMJAx (ORCPT ); Sun, 13 Aug 2017 05:00:53 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Aug 2017 18:00:52 +0900 Received: from mail.mfilter.local (unknown [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id F2B48180098; Sun, 13 Aug 2017 18:00:52 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) 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 iyokan.css.socionext.com (Postfix) with ESMTP id 6DB4E4087F; 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 3A532120455; 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 2/3] reset: uniphier: add video input subsystem reset control Date: Sun, 13 Aug 2017 18:00:42 +0900 Message-Id: <20170813090043.3828-2-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 video input subsystem (EXIV) on UniPhier LD11/LD20 SoCs. Signed-off-by: Katsuhiro Suzuki Acked-by: Masahiro Yamada --- drivers/reset/reset-uniphier.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.13.2 diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index 90c52a96f775..f60c137c17cb 100644 --- a/drivers/reset/reset-uniphier.c +++ b/drivers/reset/reset-uniphier.c @@ -95,6 +95,7 @@ static const struct uniphier_reset_data uniphier_ld11_sys_reset_data[] = { UNIPHIER_RESETX(8, 0x200c, 8), /* STDMAC (HSC, MIO) */ UNIPHIER_RESETX(40, 0x2008, 0), /* AIO */ UNIPHIER_RESETX(41, 0x2008, 1), /* EVEA */ + UNIPHIER_RESETX(42, 0x2010, 2), /* EXIV */ UNIPHIER_RESET_END, }; @@ -109,6 +110,7 @@ static const struct uniphier_reset_data uniphier_ld20_sys_reset_data[] = { UNIPHIER_RESETX(19, 0x200c, 15), /* USB30-PHY3 */ UNIPHIER_RESETX(40, 0x2008, 0), /* AIO */ UNIPHIER_RESETX(41, 0x2008, 1), /* EVEA */ + UNIPHIER_RESETX(42, 0x2010, 2), /* EXIV */ UNIPHIER_RESET_END, }; 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);