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: 10284359 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 C44F0602BD for ; Thu, 15 Mar 2018 11:58:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE0AB287A8 for ; Thu, 15 Mar 2018 11:58:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2B79289ED; Thu, 15 Mar 2018 11:58:01 +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 68E46287A8 for ; Thu, 15 Mar 2018 11:57: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=8s7TzrOWhyAyKT3ez9q45CD5nKHkKuAD+0oEo5cHK2c=; b=IGTCkACIYVlsYARHzyL1s70+xA nEzynRl9YcyCRgNTAw+qhFeP+RQUCFgRZKOE3Ouq1McmFs1CnDJlM8oQ8ZMQHj+sLQbe+w9JjpcT6 WZfJSVlObBPcLzFDcpqJ+9UYBwtljFGU9aGXD0N1NkCnYOUBLTF6kA53pE52TG7rHRjv8dLWPM4+R Hg9NQhPJq64luj3DKlsy0IopGCRe5TCBIqv6Y3R22/Z/8tNxO9Uf899TIhExZ0p9NCxjC9kaDLNS+ sM8FnAqcGsiEwJsQhzst8UVhC/dRPv+u0uPz4SUhxNi0GdhPkK5EUWaoHbrpqLw0Wi8jAhZ7dEtbt tORZ1L4Q==; 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 1ewRW7-0004YZ-PB; Thu, 15 Mar 2018 11:57:55 +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-0003RH-9b for linux-amlogic@lists.infradead.org; Thu, 15 Mar 2018 11:56:11 +0000 Received: by mail-wm0-x243.google.com with SMTP id 139so9982025wmn.2 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=JQlapZ2G1vk5IHsp6B+Y8/svksgs5JAi6Mm906s3kb6ahOFYqNse1bbRuAbDYkdPsC ijb2DvIQHctz1P0nSjhCbqh9y5tuxxsuvJgHO3UrwUP8ZwbjlZDQw7eDNrSnpCnufgG8 p87HMFYGciOkejwkg2R6fKhRYwYtSfLcJx/xmFY3KdT27nui78Jy2IYafSrBcbtdooia Ea4VhWqcAuILrhBBdkf63yPo0RqkKM3rcTnQDnyyjoGEsfHbjarIMGHkXSchKtDg4IMS RlaGQXtz/a2bFx753AtVpmRNLSLhDT2kOaZOS6IIm98j6mWJl2P1ZTYs2/5kmw1wEoq9 A4Ew== X-Gm-Message-State: AElRT7E+fSsbPhgubyZ5o4HaLZVAEnXa1xFaWEsD6U4FeQZvWC9IP8wf kUOfjsxXDEQyPo6Ln647jnaHpA== 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_771149_76F65448 X-CRM114-Status: GOOD ( 11.96 ) 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: 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-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=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>; + }; }; };