From patchwork Thu Mar 15 11:55:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10284347 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 4EC76602BD for ; Thu, 15 Mar 2018 11:56:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 360B2289E9 for ; Thu, 15 Mar 2018 11:56:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A807289EC; Thu, 15 Mar 2018 11:56:59 +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=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 B0129289EC for ; Thu, 15 Mar 2018 11:56:58 +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=o993Mq3QPfXJBdShU9MzmlH5NAXqYMfEZlzy37U6ApI=; b=HYX32gRP765AM39VA37nktEI6v txKM2pbxMsukzwJXmyJLxn+AXRpsufafjbyu6+1PRnJHVQP/K30YENcITKF3pBFqzpAQR/D/7SQvf lfrgSiHR6fhNGTwOEX46EVNb8LTXKxjAtf+YDjUwkpSlNKCMdK8/gHCuB0K3JyZ7ZMt9ogD2QUOy1 Gf8jlVpNW9B4qvG45GvQ2pN0lM8459qH1gf1lhKT0V8i/TagWzBZ7Olhu8WJZ5A3K+YDpYwtSSV/D rin5KZJ3nzcadhw2rek3b8cUpLSKxHrkqWjiHnYY2SgyoWzuuNajBotHqolCHw9hdVXfIF8D5H6cT ecClHuCg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewRV5-0003wM-DK; Thu, 15 Mar 2018 11:56:51 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewRUI-0003Qt-0L for linux-arm-kernel@lists.infradead.org; Thu, 15 Mar 2018 11:56:10 +0000 Received: by mail-wr0-x243.google.com with SMTP id h2so7937197wre.12 for ; Thu, 15 Mar 2018 04:55:51 -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=q3q9PRMA5EPH9HvpB896Y2fd/Dwgod9dm0kyC99EDb4=; b=GsbQFQ+pDYTPkRR922Q4QygK0tlcZJr19j2E9Uo9dHlBg3Strx7I8qipNm43u+Re6o 7HMeyYv3tvSLGAI5FcL6PCVCjC/2/IsVfMmXmwZITSEE8IxqCCTFbeqzrVm1Svm1pR79 AO04X3EVm3Ktjt3vrU8SGAcNepfIlizKfOsV3I7mSegctBKbm+qdZXQDVFmW2UBPw+yA gNbh7D6osjlYHveURvkafk4T8btLvWP/SsI/cMqEVQxaVBFnEmNHdD9EqGFWgfst18m3 LYhgX1ZG4LnYXwaXLOK5CUwhO38itHKnIJszdYrOfaEO8DDEQeELh6bsfgqlyilMEfIt chtA== 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=q3q9PRMA5EPH9HvpB896Y2fd/Dwgod9dm0kyC99EDb4=; b=FoSSqseiTB3v615vtErSMekRiBKaBAcHNnYQ6rjzF9SI+pbIqKW5PiCGjrKYYPokt6 /Ub/knUwq0b+zx4hROTUvvL8lILfC3ZE7yKM3Q7ddIXgL+BGzx3MRIVKP8RWG8ge1qQU rM7+skniwNdkQfDiT0lXY8sjj3OV/8NCXAoxzNRQYpJ+CDuBGHzdiB8l3VlaV8osH+3G 5iLSYCkXyWAi7g8ktJxIFVMaTmsxUOERxSg0L5YSomv6xffCIFFSuNH/IVVNc/YltpQm F9BNf9qOm74ST2yxwaPIea7OenwocxhNeSSDT/xKFCGBQjRNsVInh++ef60VVIvoVrpd APsw== X-Gm-Message-State: AElRT7FknU4S8VcUxxwXrvidCeFPogto/IscLEc+8KX5fieBIcBwXdZG pD+CD4otXz5akIwzCtVmt5oXmg== X-Google-Smtp-Source: AG47ELuOMXVZCUzeZyCwiAXOwWOn4lpgV5Z9ESsc0pOWcV+zGU5k82W2oPtDHyNp5oro8jQtgh9Pvg== X-Received: by 10.223.146.133 with SMTP id 5mr7155821wrn.109.1521114950214; Thu, 15 Mar 2018 04:55:50 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id e18sm4483318wmc.21.2018.03.15.04.55.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Mar 2018 04:55:49 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione , Neil Armstrong Subject: [PATCH 1/4] dt-bindings: clock: meson: update documentation with hhi syscon Date: Thu, 15 Mar 2018 12:55:42 +0100 Message-Id: <20180315115545.1884-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180315115545.1884-1-jbrunet@baylibre.com> References: <20180315115545.1884-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180315_045602_268530_5FFA4C57 X-CRM114-Status: GOOD ( 15.88 ) 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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet 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 The HHI register region hosts more than just clocks and needs to accessed drivers other than the clock controller, such as the display driver. This register region should be managed by syscon. It is already the case on gxbb/gxl and it soon will be on axg. The clock controllers must use this system controller instead of directly mapping the registers. This changes the bindings of gxbb and axg's clock controllers. This is due to an initial 'incomplete' knowledge of these SoCs, which is why the meson bindings are unstable ATM. Signed-off-by: Jerome Brunet --- .../devicetree/bindings/clock/amlogic,gxbb-clkc.txt | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt index e2b377ed6f91..e950599566a9 100644 --- a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt +++ b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt @@ -10,9 +10,6 @@ Required Properties: "amlogic,gxl-clkc" for GXL and GXM SoC, "amlogic,axg-clkc" for AXG SoC. -- reg: physical base address of the clock controller and length of memory - mapped region. - - #clock-cells: should be 1. Each clock is assigned an identifier and client nodes can use this identifier @@ -20,13 +17,22 @@ to specify the clock which they consume. All available clocks are defined as preprocessor macros in the dt-bindings/clock/gxbb-clkc.h header and can be used in device tree sources. +Parent node should have the following properties : +- compatible: "syscon", "simple-mfd, and "amlogic,meson-gx-hhi-sysctrl" or + "amlogic,meson-axg-hhi-sysctrl" +- reg: base address and size of the HHI system control register space. + Example: Clock controller node: - clkc: clock-controller@c883c000 { +sysctrl: system-controller@0 { + compatible = "amlogic,meson-gx-hhi-sysctrl", "syscon", "simple-mfd"; + reg = <0 0 0 0x400>; + + clkc: clock-controller { #clock-cells = <1>; compatible = "amlogic,gxbb-clkc"; - reg = <0x0 0xc883c000 0x0 0x3db>; }; +}; Example: UART controller node that consumes the clock generated by the clock controller: