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: 533927 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 8A352140DAF for ; Thu, 22 Oct 2015 03:21:18 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=V3hpYt7R; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755801AbbJUQUk (ORCPT ); Wed, 21 Oct 2015 12:20:40 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:33571 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752074AbbJUQUh (ORCPT ); Wed, 21 Oct 2015 12:20:37 -0400 Received: by wijp11 with SMTP id p11so103020841wij.0; 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?= Cc: Vishnu Patekar , Hans de Goede , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Jens Kuske 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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 */ }, };