From patchwork Thu Mar 15 11:55:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10284357 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 A339460291 for ; Thu, 15 Mar 2018 11:57:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C766289E9 for ; Thu, 15 Mar 2018 11:57:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8105A289EC; Thu, 15 Mar 2018 11:57:26 +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 [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 034AB289E9 for ; Thu, 15 Mar 2018 11:57:26 +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=ohucqXLwjxjf+rpmDCIjmRijRibkJq1omzh5o6ltz4s=; b=BY1+pzbBqSoqKXjUGnu6LjgYRd ux4TOS7H4cJo3mPPnAMiOhzH4DnKExjzVs+buD8fEWRjg64BluEn3xCcZoBzns3k8AjuY4zNWBpuK +YdwnlmdxDJY6pOuq+tQLNR/IJOw8iutx/YxEfSHoRtdUHwhY6UnzpmY2xmijFswJLdOInrdBLB16 /lK95aqK8IjPlG+RHVsOm/vqiAytKmMOz5QthtLx3vT6A7eDtWUeNRmKHuBsw/HP0VoAPHBYgR1RQ EUKHtkpe1FR1cRr/8j/+ouAcI4MH9VnKxDlZnnRKxI4TynCGwlJAUJFdqH05fV4KWfpmPT+lzGEMg LBdFvCGw==; 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 1ewRVZ-0004Dq-NX; Thu, 15 Mar 2018 11:57:21 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewRUM-0003RG-B9 for linux-arm-kernel@lists.infradead.org; Thu, 15 Mar 2018 11:56:10 +0000 Received: by mail-wm0-x243.google.com with SMTP id a20so22783161wmd.1 for ; Thu, 15 Mar 2018 04:55:55 -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=BFqExKL+Zfi+OaObdYROKm6ClzW8BL6weYy5S50d+xY=; b=FKzsD3I61THt402GdH/wi8he2cijCiwx9pZ7QWLypQbzF5IOR244mFepSCV5I3Pplp QNp8zeyQkCv7+oxnhI3wGGJUpPhtOBjLFMJgk9Vt9bLrPZ8p85zgov+w2k+ZlTIuc9oR /fsfzgMsKZkS2bD0PS247NUCm0R4aijIXGZEv0muNbn6jBFaAvl90vcIZWjLX9IjEx5S kxludseAUGlaQF9gKBE4t0PIv4iCqV3F0uKF5TokH/oQALivTufjv92VXbEhlQCZCmug +FKF0NcCrfuyxhofB0PKQQricJkPoYRfutvMuJ68BXntNTfhNyn3VgVqrlDr/Q0rR+v0 jUaA== 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=BFqExKL+Zfi+OaObdYROKm6ClzW8BL6weYy5S50d+xY=; b=EVnfvWACavN3A47WokRewjZSVgppR9zrjCeOfUef2NqMsQtvI8VNwvA2+fdedoEa9Q wRJNfI2eUFooZc3jIYz2+2TJFXr9bt4VQHlsHGwo9VHf5WeGEgbj00j9scismgaUU2TW Hw7jC4LWK+4LTxSuxgBxenQKC6tFhrVqcnk5JkO+HmvmHzv8nIy9sjt3LBop8CLiQtdC e3t7WlQxs1Q7Pu47I1Vctt3KTiNW4/fxJRwjWbLjte6VWCxi9Ij1DK02REXwhrV09zKh Zaqfdw0u1HC9T2QzgBRLxS9RrKpTAZTt0NEFta/+08TR5UpmvROu8u3ej/8bwqkd1L1U Ksrw== X-Gm-Message-State: AElRT7E7DBZK670i8WDat6IZBVknAjKRlVCzq73rKX/20L8DnRKjLW2y SWT6DACba7sIgjk/0yfx0QuqOQ== X-Google-Smtp-Source: AG47ELuWH/h6pGw4NrPFC6nLoEwZvOdZy+qv1T5zGoK0TO0xX9Ym4NkPrLq4rOY+UvSgQYfEAvhNoA== X-Received: by 10.28.206.65 with SMTP id e62mr4495926wmg.26.1521114954606; Thu, 15 Mar 2018 04:55:54 -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.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Mar 2018 04:55:53 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione , Neil Armstrong Subject: [PATCH 3/4] ARM64: dts: meson-axg: use hhi syscon for the clock controller Date: Thu, 15 Mar 2018 12:55:44 +0100 Message-Id: <20180315115545.1884-4-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_045606_760323_496E25CF X-CRM114-Status: GOOD ( 13.83 ) 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 Like the meson-gx, the axg clock controller should go through a syscon to access the hhi register region, and not directly map the region. This way, the hhi register region can be used safely by multiple drivers. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index b58808eb3cc8..d4c5507fff30 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -262,10 +262,14 @@ #size-cells = <2>; ranges = <0x0 0x0 0x0 0xff63c000 0x0 0x1c00>; - clkc: clock-controller@0 { - compatible = "amlogic,axg-clkc"; - #clock-cells = <1>; - reg = <0x0 0x0 0x0 0x320>; + sysctrl: system-controller@0 { + compatible = "amlogic,meson-axg-hhi-sysctrl", "syscon", "simple-mfd"; + reg = <0 0 0 0x400>; + + clkc: clock-controller { + compatible = "amlogic,axg-clkc"; + #clock-cells = <1>; + }; }; };