From patchwork Tue Jun 21 10:02:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9190157 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 CE939601C0 for ; Tue, 21 Jun 2016 10:07:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC4DD27F9C for ; Tue, 21 Jun 2016 10:07:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF5392807B; Tue, 21 Jun 2016 10:07: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=-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 A301D27F9C for ; Tue, 21 Jun 2016 10:07:00 +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 1bFIYj-0005Cn-Cn; Tue, 21 Jun 2016 10:05:29 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bFIX1-0002J5-RX for linux-arm-kernel@bombadil.infradead.org; Tue, 21 Jun 2016 10:03:43 +0000 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]) by merlin.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bFIWz-0005CQ-V5 for linux-arm-kernel@lists.infradead.org; Tue, 21 Jun 2016 10:03:42 +0000 Received: by mail-lf0-x231.google.com with SMTP id q132so15623757lfe.3 for ; Tue, 21 Jun 2016 03:03:19 -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=B3liXmsarQWPGAfLB2gF97hcFyTradSeIfZPrlpO938=; b=brYSbX+jaqMEeFEl/HNGSMOBIsu3ILBSVU9xur5SdfYAtDCOE30Tulg1pAz2VaugRp nhVbT7Zm4ziqeIKN0+M/VaE4gSqb6GmtVKv9b5Qu/qNasRiKkaNwfGZTwtsEu84eoUdz owfEna7MB9WjTo34F97B3nE8Ga6JAvSOcDa2FZ+CnoBtuHw9BGe8MZdAYTCSbHFnZdCV fjSVgVkWjvGZKVLBYbP4FvqmCyfYU3rkBaqKdZg7JrUtPvVv4lYY46lKScz+YUQa/y3h IJWjnC9E17gqPr61IbgYXB/ngd7Ds5QxRVTJrOyckULLgaQZ21v0RDjus5AyEhMQUOE7 t3lw== 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=B3liXmsarQWPGAfLB2gF97hcFyTradSeIfZPrlpO938=; b=hQnogmxdhc/FEp6aQaMRJra/7LqCq87cN3F3Zxg+ucpi19gTV0DK/9ZLb6rMpqV33c 4C48fCW+aHaOJa53XMXFL5unwLzNn7sE/V6EbDjKNNZf+3wEhuxpuhH54BbCDCZbRNoP eHTKjCzYowlrSM+7TrDxR0/jK5o5EgasqWofIH/LFjrWs4yrKR6YOLmS9vx6lBljJJKH wVoTsUSAUFSif/7MSCS9zlKDWd0WO4ZsfU8Jc8vxI+kn2FuCAmFe8rS5zD82bK3oZOKm bnI1XGtT5OfQUIK9jbxGhvoKNND4YH0a5I7ZXRl2UPMMbN5N4KJ+INBPyZB7qOIlzw+m JVMw== X-Gm-Message-State: ALyK8tL5+bbmBm6/ttFlfsHZW49tK5uOvTVZWVKP378W/k1pvdCzdPiAKQQNnGMhSHX1mf0T X-Received: by 10.28.31.140 with SMTP id f134mr2342239wmf.69.1466503396879; Tue, 21 Jun 2016 03:03:16 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id q69sm2184821wmd.4.2016.06.21.03.03.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Jun 2016 03:03:16 -0700 (PDT) From: Neil Armstrong To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sudeep.holla@arm.com Subject: [RFC PATCH v2 9/9] ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes Date: Tue, 21 Jun 2016 12:02:54 +0200 Message-Id: <1466503374-28841-10-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466503374-28841-1-git-send-email-narmstrong@baylibre.com> References: <1466503374-28841-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160621_060342_178190_FE1BC451 X-CRM114-Status: GOOD ( 11.33 ) 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 Add the vcpu DVFS clock, the SCPU shared SRAM and the SCPI sensors nodes. 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 913ba86..0f2596e 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 0 &mailbox 1>; + 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 {