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: 9190201 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 716536075E for ; Tue, 21 Jun 2016 10:18:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61C6828159 for ; Tue, 21 Jun 2016 10:18:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 563B128173; Tue, 21 Jun 2016 10:18:53 +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 E126828159 for ; Tue, 21 Jun 2016 10:18:52 +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 1bFIld-0000a1-CK; Tue, 21 Jun 2016 10:18:49 +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 1bFIlc-0000V3-6A for linux-amlogic@bombadil.infradead.org; Tue, 21 Jun 2016 10:18:48 +0000 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]) by casper.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bFIWx-0004An-DC for linux-amlogic@lists.infradead.org; Tue, 21 Jun 2016 10:03:40 +0000 Received: by mail-lf0-x22e.google.com with SMTP id q132so15623758lfe.3 for ; Tue, 21 Jun 2016 03:03:18 -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=QAk0O+BMjGNB5ODbItkEOssMr2i8WPddHOkmWUBUF78tPXpdj7UGm7Fc4Kkbcba+PG uPt+Xo6UHBOXiEXCNHaiYWtF8PnO+IbNwfvWAQ4OXW1BQibMQ2z7xv8BCwDFqgRtT+q1 9j3Q0zQgWS96V41PfmVn6SLY1ENlXeokixDFGN3q3UegWNs/sQnMej3ceZjBfyka3gAn b2xPeCzspEZTPzYU5HoSqsHC5hrTFdeXLJoZ3zPPlB9mrpIRdmZgg3CuDH4SCtkD53Z3 WqIgL2k6V4oWsxWkjPiUs1r0fhFGR+pBgFrCLuzk6B4QXIqGyh42dEWYfjKkhKoEZmjT gLPQ== X-Gm-Message-State: ALyK8tIaAPF2gmLXmEpZ+G2XN/RVmdsbc4E1wgTIo3HOycwlPSUqdaEFA5I/jLYyiVVxU/3E 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_110339_516976_833C0EE0 X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=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 {