From patchwork Thu Jul 6 10:24:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9827979 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 6530C60317 for ; Thu, 6 Jul 2017 10:25:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55A27285B7 for ; Thu, 6 Jul 2017 10:25:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A6BD28600; Thu, 6 Jul 2017 10:25:39 +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 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 EEC01285B7 for ; Thu, 6 Jul 2017 10:25:38 +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=HI3tI4p0JGd2a8qqlqex1aSw8Sv8+5XHRRBGn6h9kqw=; b=aiH5a4dooG8sF1nxzRtELdiMeT nUiFfa8t5qtthrmT/1VesIYT+JbDBVAjhLGRZZs2Y0SpZ8VMKUhVyzg+svEWaI8T9CAJMyPiwatbw 7noLXJnexd8vIksVg7O/c+GB2djIfiE27LSc4trCzcR13ibqriKZO+lLngK2IJY9Ap5ZVNHXkFKyv Xc7gjweXiXoJZwGUOChiEVwKuOU4kOzt5gsKoXb81z2o7c6ADlOMkZ/NqRTsKFCUSUi/Wqa2NUQk1 wVQR0uS5ZCeO8McVvhMBeQN1zG9O6yRNCD5MbBt5yxIw2XHv0ZifL8itsS+4h1rqos/2NZ5/5i1VQ L8rjuxug==; 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 1dT3yT-0004vj-RC; Thu, 06 Jul 2017 10:25:29 +0000 Received: from mail-wr0-x233.google.com ([2a00:1450:400c:c0c::233]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dT3xx-000372-82 for linux-amlogic@lists.infradead.org; Thu, 06 Jul 2017 10:25:00 +0000 Received: by mail-wr0-x233.google.com with SMTP id 77so22665401wrb.1 for ; Thu, 06 Jul 2017 03:24:39 -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=kmsO2YpX20AbzIOdEHie/4Q4l+kqgrI8eY2t0a4GUcs=; b=VH1HWrzm78GhKjw6G83HJ6c+B2jbBDPw5dn4Z/ITqBcdvYpqMxXTmNTfBhPbTpe8j6 aoGt6ZauWYLNM4+1cu69jKWdLA8QBsFy0NPi31pnp03YpEx5Efrf7YOB8zE0xQLR8oTT 7SZb7VBLc8QoGmP7eZTt8wzvdDQ7Lx4/059cnH6T2bT9vqrlQx+6CMVIZbUIyDdLiBpa jiU0JR11goBIZeV2wwoCnRso8fh6Tp7r7r0VW0rwYdGtAMpnkhoaukhft9SXSZeholZe g1VcXMyouk1gNYDWJzW6SbsBxjYWfVj1yBgtFKB1C49BZbKbzda138N3T1hQznueNn9y KU1w== 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=kmsO2YpX20AbzIOdEHie/4Q4l+kqgrI8eY2t0a4GUcs=; b=GBkxE5RedZxG4X21DGZdI8Tpnh5nmRgL9KmTWN8UKs3xJJ2oWmVMeQPHoniP/DnpUl fUCvvKfJh0MuQHmRKNaut+xwcm1crzSVQ7BaFIjXw2ImaiZgVIm5Yl5NUq4/j9VpxTrp qZP1mZlRr664vznwisMhRKtbf4p+12OgoV/jg7IfhwvRSUOlOQLgUF7QE3VPI2fR4nM3 Kv3aGQO7HHOZ9LjfY2z/8esv1OhGZXwiTdlw16njr6KTctaST/JWQLw/FKOjmZ3tDEl9 +DesnIn9Rk2qkT0WJ8JuqAGfw89m35zD94k+CL7swzpdE78h5h/Hk4iVq/yNvNsFg6ei olVA== X-Gm-Message-State: AKS2vOw3i/68zOf1CARmG80XH2i0nxtvlreFnCuu2NizqVyv/SQyclQ6 9e/YCnLDbgpqk1tD X-Received: by 10.223.174.194 with SMTP id y60mr46896862wrc.19.1499336678492; Thu, 06 Jul 2017 03:24:38 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w197sm31936286wme.20.2017.07.06.03.24.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Jul 2017 03:24:37 -0700 (PDT) From: Neil Armstrong To: jbrunet@baylibre.com, narmstrong@baylibre.com Subject: [PATCH 3/3] dt-bindings: clock: amlogic, gxbb-aoclkc: Update bindings Date: Thu, 6 Jul 2017 12:24:23 +0200 Message-Id: <1499336663-23875-4-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499336663-23875-1-git-send-email-narmstrong@baylibre.com> References: <1499336663-23875-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170706_032457_436777_448DE4E0 X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=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 these registers to the Ao Clock bindings with direct access and shared extcon access. Signed-off-by: Neil Armstrong Acked-by: Rob Herring --- .../devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt b/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt index a55d31b..5c5ccec 100644 --- a/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt +++ b/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt @@ -7,7 +7,10 @@ Required Properties: - compatible: should be "amlogic,gxbb-aoclkc" - reg: physical base address of the clock controller and length of memory - mapped region. + mapped region for each registers listed in reg-names. +- reg-names: should contain the following register names : + "aoclk", "aocrt" and "aortc". +- amlogic,pwr-ctrl: A phandle to the AO Power Control node. - #clock-cells: should be 1. @@ -27,9 +30,13 @@ Example: AO Clock controller node: clkc_AO: clock-controller@040 { compatible = "amlogic,gxbb-aoclkc"; - reg = <0x0 0x040 0x0 0x4>; + reg = <0x0 0x00040 0x0 0x4>, + <0x0 0x00068 0x0 0x4>, + <0x0 0x00094 0x0 0x8>; + reg-names = "aoclk", "aocrt", "aortc"; #clock-cells = <1>; #reset-cells = <1>; + amlogic,pwr-ctrl = <&pwr_AO>; }; Example: UART controller node that consumes the clock and reset generated