From patchwork Wed Oct 21 16:20:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Kuske X-Patchwork-Id: 7458631 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 802E7BEEA4 for ; Wed, 21 Oct 2015 16:22:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A3E8D207F7 for ; Wed, 21 Oct 2015 16:22:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D719020790 for ; Wed, 21 Oct 2015 16:22:34 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zow8L-0000q4-2R; Wed, 21 Oct 2015 16:21:01 +0000 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zow8H-0000kk-NL for linux-arm-kernel@lists.infradead.org; Wed, 21 Oct 2015 16:20:58 +0000 Received: by wijp11 with SMTP id p11so103020811wij.0 for ; Wed, 21 Oct 2015 09:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=hrzSqZouAZKk6wKM+WTecYxgmsjViaKPrHA30ov85Pg=; b=V3hpYt7RICXTfB/wkXu/VjuIKMiybTRTEH0wgC4Ow1tNdvBCGBUy3THF96W+fdmSO/ CgQAqqhH/3DRwfTWBUo1hk/Stx5f4z83gHEmvnB33yNLBODsZe65WDIPsqWexmpgAjFD szP2WtIy2ozYTn3AlAbs/NWR5AnZu/SS/pKQdXP6FkDOay/xZoTCHsG7gWDGgppV46Da yieircNY+PUafQivcihD4i8H/lOP2kpSQoobTpTnQ1rXrpdeK67bf0fEg5xQe6810Cm0 JBf+1dWXItjLJyo8EQpdk7mSAH0pCu2Kj8I60dqHDsAK26ZNEhLqFWyikqdlqpJuADgQ 9Ejg== X-Received: by 10.180.35.163 with SMTP id i3mr37385102wij.55.1445444435815; Wed, 21 Oct 2015 09:20:35 -0700 (PDT) Received: from pc-jens.localdomain (p5B2E9C58.dip0.t-ipconnect.de. [91.46.156.88]) by smtp.gmail.com with ESMTPSA id nf15sm7926972wic.22.2015.10.21.09.20.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Oct 2015 09:20:35 -0700 (PDT) From: Jens Kuske To: Maxime Ripard , Chen-Yu Tsai , Michael Turquette , Linus Walleij , Rob Herring , Philipp Zabel , =?UTF-8?q?Emilio=20L=C3=B3pez?= Subject: [PATCH 4/6] reset: sunxi: Add compatible for Allwinner H3 bus resets Date: Wed, 21 Oct 2015 18:20:26 +0200 Message-Id: <1445444428-4652-1-git-send-email-jenskuske@gmail.com> X-Mailer: git-send-email 2.6.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151021_092057_911248_E67D9AE0 X-CRM114-Status: GOOD ( 11.73 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Vishnu Patekar , linux-kernel@vger.kernel.org, Hans de Goede , linux-sunxi@googlegroups.com, Jens Kuske , 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-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adding a new compatible allows us to define SoC specific behaviour if necessary, for example forcing a particular device out of reset even if no driver is actually using it. Signed-off-by: Jens Kuske Acked-by: Maxime Ripard --- Documentation/devicetree/bindings/reset/allwinner,sunxi-clock-reset.txt | 1 + drivers/reset/reset-sunxi.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/reset/allwinner,sunxi-clock-reset.txt b/Documentation/devicetree/bindings/reset/allwinner,sunxi-clock-reset.txt index c8f7757..e11f023 100644 --- a/Documentation/devicetree/bindings/reset/allwinner,sunxi-clock-reset.txt +++ b/Documentation/devicetree/bindings/reset/allwinner,sunxi-clock-reset.txt @@ -8,6 +8,7 @@ Required properties: - compatible: Should be one of the following: "allwinner,sun6i-a31-ahb1-reset" "allwinner,sun6i-a31-clock-reset" + "allwinner,sun8i-h3-bus-reset" - reg: should be register base and length as documented in the datasheet - #reset-cells: 1, see below diff --git a/drivers/reset/reset-sunxi.c b/drivers/reset/reset-sunxi.c index 3d95c87..6f12b5c 100644 --- a/drivers/reset/reset-sunxi.c +++ b/drivers/reset/reset-sunxi.c @@ -124,6 +124,7 @@ err_alloc: */ static const struct of_device_id sunxi_early_reset_dt_ids[] __initdata = { { .compatible = "allwinner,sun6i-a31-ahb1-reset", }, + { .compatible = "allwinner,sun8i-h3-bus-reset", }, { /* sentinel */ }, };