From patchwork Wed Oct 5 07:33:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9362579 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 04A7E607D6 for ; Wed, 5 Oct 2016 07:50:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E95EA26D08 for ; Wed, 5 Oct 2016 07:50:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D90D12850D; Wed, 5 Oct 2016 07:50:51 +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=ham 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 23E0F26D08 for ; Wed, 5 Oct 2016 07:50:51 +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 1brgxA-0001f7-Lj; Wed, 05 Oct 2016 07:49:24 +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 1brgx6-0001RN-3b for linux-arm-kernel@bombadil.infradead.org; Wed, 05 Oct 2016 07:49:20 +0000 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]) by casper.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1brgiS-0001xQ-4g for linux-arm-kernel@lists.infradead.org; Wed, 05 Oct 2016 07:34:14 +0000 Received: by mail-wm0-x22b.google.com with SMTP id f193so211344000wmg.0 for ; Wed, 05 Oct 2016 00:33:51 -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=ShEI3/ydWRDmphatvSZTBiwuKm0TF+E+NrTtIpoU884=; b=m0HgYoI6SFUCWi+VFbRWo/3w4vnJSMChBgdzuuOd/uC6Dt/piH0QcPLSLqCeJlZvnM gc3PHUZZLs5Q8R318xRzOy9pIAyapTd+Gum3nM8nQr8c4QjGy/BUg2lbCY5o6zC3LPZ2 qRH+toE2hOb4naSFtnHdJzNtqUi0YayJ74+W+0sTkShDCf4lLktSBkoEx6QQeJ8Pb52W 3GbwYin1EAlHiXAQpL3f4IadRq/IXF3diSMy3GVw0FsdiUGIclKfsD6zZMh4q6XN7i7Z lsP+poRBiOaQ+RDC+6PQcy+VPxKKhrccEBnJ+xo0uwIn4rpv2vg1EKh6R2tsbmKfO1FA WhjA== 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=ShEI3/ydWRDmphatvSZTBiwuKm0TF+E+NrTtIpoU884=; b=MVvPoPnrKoO+rtuGu1JBPz7Xk5oAjWyZh4IZD60jTSKMv5rHRGGg2cz3YlqITVQfme JGWoME7XJ+D1ObzkmA49qZaI+tsLtOE3Zp3YeWurcTvFsm9dy5p25AZURYBtxAQN972U V8VTgx+ofoYPzAqKEmxvv2rWZa/gqU1ZCJBz5QIVH+4HBOZHxFECZZqIZeJyBVmgrrw9 Dha637YpMo7HdHnjjauLAoVwENtDMKChoqlOMqraGkAuH1dPLh5byQE1n4gRKsr72j9Q CYb7EzKTBaSZdAfYWYJ+I+Zoj663Ieoch3NkVwetnptCEyvDsuPsZwhTh5oJLTw1o1Gu dtdw== X-Gm-Message-State: AA6/9Rns75ViR/4cbrPvWFO96bYUsp6jrQhI1dXLuvA+HwBfHYlJIb/iOn9XFRDbf98OOEN/ X-Received: by 10.28.24.14 with SMTP id 14mr6969599wmy.107.1475652830063; Wed, 05 Oct 2016 00:33:50 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 142sm7923866wmh.12.2016.10.05.00.33.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Oct 2016 00:33:49 -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 v4 8/8] ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes Date: Wed, 5 Oct 2016 09:33:34 +0200 Message-Id: <1475652814-30619-9-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475652814-30619-1-git-send-email-narmstrong@baylibre.com> References: <1475652814-30619-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161005_083412_226276_E15BBC00 X-CRM114-Status: GOOD ( 10.20 ) 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 | 48 +++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index 88f98f5..3fdb2d7 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -74,6 +74,28 @@ }; }; + 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>; + }; + }; + soc { usb0_phy: phy@c0000000 { compatible = "amlogic,meson-gxbb-usb2-phy"; @@ -101,6 +123,16 @@ #address-cells = <1>; #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>; + }; }; usb0: usb@c9000000 { @@ -143,6 +175,22 @@ }; }; +&cpu0 { + clocks = <&scpi_dvfs 0>; +}; + +&cpu1 { + clocks = <&scpi_dvfs 0>; +}; + +&cpu2 { + clocks = <&scpi_dvfs 0>; +}; + +&cpu3 { + clocks = <&scpi_dvfs 0>; +}; + &cbus { reset: reset-controller@4404 { compatible = "amlogic,meson-gxbb-reset";