From patchwork Mon Jul 31 12:42:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9871763 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 6028D60365 for ; Mon, 31 Jul 2017 12:43:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53DD3285C3 for ; Mon, 31 Jul 2017 12:43:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48537285D4; Mon, 31 Jul 2017 12:43:14 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BFD25285DA for ; Mon, 31 Jul 2017 12:43:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=4xf3f0CXVRX6Y2LylGmv2AamEfS+bMBC3v28kH2epnw=; b=TlqtBmBButXQgzdKY3Co7N++nt ps0b2zZpI3g0xM5cQjamK0yEoZxjEkw13tiw1e8/ZOWSvM0kndZcN1FQS7girYrOejrTciNV5nVyZ WRNotg7n12/tvn7cbK/I6iz3ND7rpJ4WDgeFyH/Xu34wfyM7JSj4hMRYF2HxHIwT4JRHNMINA5fvF 70GgAYCsAyFpeEXGXyyzCY4ZAiK/frtAm4csqBdI/D1HdXFs1ANs0QrAIGNpefpGjGqDKON9bfPAa u9PgZBqZlXVXFBQ2xY6d9x1FSXUrn78wChGmMJaDWBBJlwRRaVrenvd6VjMcRKf0qt5J48Gb0RE5E VjhWC1LQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dcA2P-0001pB-0t; Mon, 31 Jul 2017 12:43:09 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dcA2J-0001SI-Ck for linux-arm-kernel@lists.infradead.org; Mon, 31 Jul 2017 12:43:07 +0000 Received: by mail-wm0-x233.google.com with SMTP id m85so74621053wma.0 for ; Mon, 31 Jul 2017 05:42:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=b7i59rdVTaPJSNZY5wM3lp3p8yLkZ72JM07SsPsCAKk=; b=H/tDcj6zNf89VTSDcYN+lXA3p6OiuqkeDE+YKfk76XcUnHJWjr9JQc9p941f8OYzMz oSu6zFfHxokpg07ESM8WeXvKv9T+H4M+jS4GSfMz/SskZb61rAyY1i4cecNJZfMxZ9fx qabyjyKsS81gofA2wsXeRGIBmkMmUlj3wOYq4wP6lPR6fky6nZBw9LTXtIQgvd2wbwco tUmcKY7DebD6g57g6VL/yxdHpI1D4Me5skt2a5+0ruL4VMH1qgg+cGYC8WIMgAzyLop/ P027t7aNXHgx7EJwaDIC8qIhQSfhNTwTOAslZaHkN9VCuw9QYuZ5DaJWT6dExm9d/puU ZpFA== 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=b7i59rdVTaPJSNZY5wM3lp3p8yLkZ72JM07SsPsCAKk=; b=ucsoihf7aKQBo4K/SXtb1+N/LoMNFrmEJCO8bQWJX58JB4KdNGNaWveMqyiA409U2n iTqvVXQqUZS0ygrghDqev7Cl111mYfzeAclWpF1LZHmV8SiEWBJSu66dlmd1Hu2Vh0KZ aidV2EtlsbJtm/vkyvAnQUSyVCrPfsKSKxjBy2XbdDTIZUJBVrXaVGDozh2ya9NDUwT1 qjtR70/8OqgXamqovcu8+wxvyHFGI5RB6WiDl0IwK7aU8heAJ+UXuhuQYXWkc/xjHVhq Cyv6OOXhAOXKHUo6bTWWc3+l6LCwrClhUuEr6fx8Hz50zvrFPYKYTqjYjA/CqX2QJ8f6 eWFg== X-Gm-Message-State: AIVw111LN0mC8wC9RhQMkEmhZbqPStL5xaV7/WrxVadge7+eF3cYrOso /aClC20ODm3lA1IMIHvG9w== X-Received: by 10.28.0.19 with SMTP id 19mr10724271wma.168.1501504961142; Mon, 31 Jul 2017 05:42:41 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id i15sm11291455wmd.13.2017.07.31.05.42.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 31 Jul 2017 05:42:40 -0700 (PDT) From: Neil Armstrong To: jbrunet@baylibre.com, narmstrong@baylibre.com Subject: [PATCH v3 1/4] dt-bindings: clock: amlogic, gxbb-aoclkc: Update bindings Date: Mon, 31 Jul 2017 14:42:34 +0200 Message-Id: <1501504957-19476-2-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501504957-19476-1-git-send-email-narmstrong@baylibre.com> References: <1501504957-19476-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170731_054303_713260_4CD73BA4 X-CRM114-Status: GOOD ( 13.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.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-Virus-Scanned: ClamAV using ClamSMTP On the first revision of the bindings, only the gates + resets were known in the AO Clock HW, but more registers used to configures AO clock are known to be spread among the AO register space. This patch adds a parent node for the entire system control zone for the AO domain then moves the clock controller as a subnode of the system control node. Signed-off-by: Neil Armstrong --- .../bindings/clock/amlogic,gxbb-aoclkc.txt | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt b/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt index a55d31b..64884ed 100644 --- a/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt +++ b/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt @@ -5,9 +5,11 @@ controllers within the Always-On part of the SoC. Required Properties: -- compatible: should be "amlogic,gxbb-aoclkc" -- reg: physical base address of the clock controller and length of memory - mapped region. +- compatible: value should be different for each SoC family as : + - GXBB (S905) : "amlogic,meson-gxbb-aoclkc" + - GXL (S905X, S905D) : "amlogic,meson-gxl-aoclkc" + - GXM (S912) : "amlogic,meson-gxm-aoclkc" + followed by the common "amlogic,meson-gx-aoclkc" - #clock-cells: should be 1. @@ -23,14 +25,22 @@ to specify the reset which they consume. All available resets are defined as preprocessor macros in the dt-bindings/reset/gxbb-aoclkc.h header and can be used in device tree sources. +Parent node should have the following properties : +- compatible: "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd" +- reg: base address and size of the AO system control register space. + Example: AO Clock controller node: - clkc_AO: clock-controller@040 { - compatible = "amlogic,gxbb-aoclkc"; - reg = <0x0 0x040 0x0 0x4>; +ao_sysctrl: sys-ctrl@0 { + compatible = "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd"; + reg = <0x0 0x0 0x0 0x100>; + + clkc_AO: clock-controller { + compatible = "amlogic,meson-gxbb-aoclkc", "amlogic,meson-gx-aoclkc"; #clock-cells = <1>; #reset-cells = <1>; }; +}; Example: UART controller node that consumes the clock and reset generated by the clock controller: