From patchwork Wed Sep 7 15:34:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9319601 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 CF0966077F for ; Wed, 7 Sep 2016 15:52:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BADF029386 for ; Wed, 7 Sep 2016 15:52:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A219129385; Wed, 7 Sep 2016 15:52:12 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6014129385 for ; Wed, 7 Sep 2016 15:52:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhf7O-0007gt-8T; Wed, 07 Sep 2016 15:50:30 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhf70-0006RJ-4r for linux-arm-kernel@bombadil.infradead.org; Wed, 07 Sep 2016 15:50:06 +0000 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by casper.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bhesS-0006LV-Qs for linux-arm-kernel@lists.infradead.org; Wed, 07 Sep 2016 15:35:05 +0000 Received: by mail-wm0-x234.google.com with SMTP id b187so122492317wme.1 for ; Wed, 07 Sep 2016 08:34:44 -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=HAR+9rJgBRE42CC7G6ogLEHo6triiav+TATSO4nnJWw=; b=AKy2PMAgHr2R9GFFZYku6dl+KsvkX/07ioGVdMjI4lCUZB847aLql4pjVJ0vveQRuv DxX7g/MRmaSIUMguRQ2FJ31BTZ5GJ6UZ5fn4/MGfTVaQfeAow6ZG30bKiuCUW+VKGWCe 4J6hiizO+MbSe2/5H6ycNy6+IaS6Ep6ZJ8V41SkhZJNb46HRkMgvRZoogBflb1lPzr19 5diYQMxzGtnrnQ2ArvlPSTqpg0J2/hemRzCMRyzsVuR6uhWJXCb8Pp185gZB8VzKe0Mz AzqphopSdENhZA9oPKQdx2QnpNtSEhSMwjK4iKccCKeIbvWnrIhrCG5OcNJM8eVXjA5v sjJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HAR+9rJgBRE42CC7G6ogLEHo6triiav+TATSO4nnJWw=; b=lxDA2yfYZPSukfk70iblU5xNGcnWe3e08sHH1x1XniHvQ5tRGOlje48CKgqPo8ATyJ s/Qk7LjmmDqYkRqRRhLxJfvoGENapuM4Du0iERYSu5ezt1eqOYhkfrB1itQ3n3SlZOf8 6q/VfJV87nLHJY6yz0fS9dbruQCBu0HwiO0HyWpd+JPD6M8/WnRdeHimzVScqmcU9h4M IBe1tE7IcILGTtjxvS6F2S7elo8BU91V7WWLJWsvFJcOosPLpfLq1DKE+1Kptj66j5bW +jWYOlhIpNdK2W/CjeDYzuCxqH0fboL7cj47LZFgYAZHUrftqX1Yn63XBhJnzj7gOTe5 e6ng== X-Gm-Message-State: AE9vXwNJeNADfIqrS7sTfTQeznN89bvG4l0XXOX+XY+MlTH9afvs46b1kuLzw5iS/ZlHdG9i X-Received: by 10.28.66.6 with SMTP id p6mr4300999wma.59.1473262483028; Wed, 07 Sep 2016 08:34:43 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id q65sm4838480wmd.24.2016.09.07.08.34.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Sep 2016 08:34:42 -0700 (PDT) From: Neil Armstrong To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sudeep.holla@arm.com, devicetree@vger.kernel.org Subject: [PATCH v3 8/8] ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes Date: Wed, 7 Sep 2016 17:34:37 +0200 Message-Id: <1473262477-18045-9-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1473262477-18045-1-git-send-email-narmstrong@baylibre.com> References: <1473262477-18045-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160907_163504_954519_C423CA59 X-CRM114-Status: GOOD ( 10.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: heiko@sntech.de, Neil Armstrong , frank.wang@rock-chips.com, khilman@baylibre.com, linux-amlogic@lists.infradead.org, wxt@rock-chips.com 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 Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index 2748007..257845a 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -61,6 +61,7 @@ compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x0 0x0>; enable-method = "psci"; + clocks = <&scpi_dvfs 0>; }; cpu1: cpu@1 { @@ -68,6 +69,7 @@ compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x0 0x1>; enable-method = "psci"; + clocks = <&scpi_dvfs 0>; }; cpu2: cpu@2 { @@ -75,6 +77,7 @@ compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x0 0x2>; enable-method = "psci"; + clocks = <&scpi_dvfs 0>; }; cpu3: cpu@3 { @@ -82,6 +85,7 @@ compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x0 0x3>; enable-method = "psci"; + clocks = <&scpi_dvfs 0>; }; }; @@ -99,6 +103,28 @@ method = "smc"; }; + scpi { + compatible = "amlogic,meson-gxbb-scpi"; + mboxes = <&mailbox 1 &mailbox 2>; + shmem = <&cpu_scp_lpri &cpu_scp_hpri>; + + clocks { + compatible = "arm,scpi-clocks"; + + scpi_dvfs: scpi_clocks@0 { + compatible = "arm,scpi-dvfs-clocks"; + #clock-cells = <1>; + clock-indices = <0>; + clock-output-names = "vcpu"; + }; + }; + + scpi_sensors: sensors { + compatible = "arm,scpi-sensors"; + #thermal-sensor-cells = <1>; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts = ; #size-cells = <1>; ranges = <0 0x0 0xc8000000 0x14000>; + + cpu_scp_lpri: scp-shmem@0 { + compatible = "amlogic,meson-gxbb-scp-shmem"; + reg = <0x13000 0x400>; + }; + + cpu_scp_hpri: scp-shmem@200 { + compatible = "amlogic,meson-gxbb-scp-shmem"; + reg = <0x13400 0x400>; + }; }; cbus: cbus@c1100000 {