From patchwork Sat Jul 22 18:58:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9858139 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 130DD600CA for ; Sat, 22 Jul 2017 18:58:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E64ED2851A for ; Sat, 22 Jul 2017 18:58:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB38728524; Sat, 22 Jul 2017 18:58:35 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FE2A2851A for ; Sat, 22 Jul 2017 18:58:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752393AbdGVS6f (ORCPT ); Sat, 22 Jul 2017 14:58:35 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:37439 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752265AbdGVS6d (ORCPT ); Sat, 22 Jul 2017 14:58:33 -0400 Received: by mail-wm0-f67.google.com with SMTP id m4so10437770wmi.4; Sat, 22 Jul 2017 11:58:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LyeTuWuYNHG7ToCz88sY8CEn078Iz74DcXEoOvrCqXY=; b=QSRjh/dZEywt+EppgV6e/LG9Z7YrwKUOGaXadTgIBD35cDW7nUPtRECxcM8P25WHTp 9ASGVrmQdQyTN05YKuhMZsFQS1MuMwpY2XyrvammrCTyUGnPJ6LT7FTu57wdWezUmHRo KjdaLQu+ne1vGeQUSsrV/U0t5bAqYgj/4RywNfVVX/i5cxN4Eal8gciaiYOybllznwXs O1hLmUyIffYbbf3G4BErsYYBYHozmuPzz7fOWXPp3GcjhlnO0VdsrrthbfHEScCypiQu s6iwOoi9QTQaNqFRZeRfkXsPOATmB0m+UK4nCweCpB6aeAyLroSZMM/Zk1GcuOSrLgB6 YI7A== 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:in-reply-to :references; bh=LyeTuWuYNHG7ToCz88sY8CEn078Iz74DcXEoOvrCqXY=; b=Ftk9V2/TuG/FCfzC2p6bqyoQKpdcBuD2Atw/RYlUHQbk7YrIMfCXJk7OnYpJCJBsap RbglDkTFc1WdVC6ztyXT0+3jji5a8hEZ2D66gSdxXkIVROHrUG66H7R2ipFXB5/w0/lv r+0iTYfGjhl+4yj/wF36FWLK3r1Kzi1O9grrdAMWKHGMWBs6qfYwapQMbylxmo7wpOjl mtbtqLGiHbmrmQXA6jY5yzl5cDLW1S/xG5eAyb05cu3UGY2ZVcewKJPfW5GcJv1GRLlK 9p4lwHmUe0htwr9+xUIfTVfilQ+iAyQX8VfqwHituIQtpceP9L1LCtGlazG2+oRo2SaW cbUQ== X-Gm-Message-State: AIVw111v9uWIHcZly7XDAlsH6GNFytcW4Tlz9Z2zEKuPZ3s2r4NAVqcx CZb+CD16Ls1MPg== X-Received: by 10.28.109.26 with SMTP id i26mr1821342wmc.64.1500749912623; Sat, 22 Jul 2017 11:58:32 -0700 (PDT) Received: from blackbox.darklights.net (p5B056101.dip0.t-ipconnect.de. [91.5.97.1]) by smtp.googlemail.com with ESMTPSA id 192sm4498185wml.41.2017.07.22.11.58.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Jul 2017 11:58:32 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org, narmstrong@baylibre.com, jbrunet@baylibre.com, linux-clk@vger.kernel.org, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux@armlinux.org.uk, mark.rutland@arm.com, mturquette@baylibre.com, sboyd@codeaurora.org, Martin Blumenstingl Subject: [PATCH v2 1/3] dt-bindings: clock: meson8b: describe the embedded reset controller Date: Sat, 22 Jul 2017 20:58:05 +0200 Message-Id: <20170722185807.10504-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170722185807.10504-1-martin.blumenstingl@googlemail.com> References: <20170722185807.10504-1-martin.blumenstingl@googlemail.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Amlogic Meson8/Meson8b/Meson8m2 clock controller provides some reset lines. These are used for example to boot the secondary CPU cores. This patch describes the reset controller which is embedded into the clock controller on these SoCs. Signed-off-by: Martin Blumenstingl Reviewed-by: Neil Armstrong --- Documentation/devicetree/bindings/clock/amlogic,meson8b-clkc.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/amlogic,meson8b-clkc.txt b/Documentation/devicetree/bindings/clock/amlogic,meson8b-clkc.txt index 606da38c0959..e1af4764114d 100644 --- a/Documentation/devicetree/bindings/clock/amlogic,meson8b-clkc.txt +++ b/Documentation/devicetree/bindings/clock/amlogic,meson8b-clkc.txt @@ -16,18 +16,24 @@ Required Properties: mapped region. - #clock-cells: should be 1. +- #reset-cells: should be 1. Each clock is assigned an identifier and client nodes can use this identifier to specify the clock which they consume. All available clocks are defined as preprocessor macros in the dt-bindings/clock/meson8b-clkc.h header and can be used in device tree sources. +This is also valid for the reset lines provided by the clock controller: a +preprocessor macro for each reset line is defined (in the same header file as +the clock identifiers). + Example: Clock controller node: clkc: clock-controller@c1104000 { - #clock-cells = <1>; compatible = "amlogic,meson8b-clkc"; reg = <0xc1108000 0x4>, <0xc1104000 0x460>; + #clock-cells = <1>; + #reset-cells = <1>; };