From patchwork Wed Oct 19 12:51:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9383979 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 4145B607D0 for ; Wed, 19 Oct 2016 12:55:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32786299EB for ; Wed, 19 Oct 2016 12:55:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26E93299F4; Wed, 19 Oct 2016 12:55:00 +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 A9913299EB for ; Wed, 19 Oct 2016 12:54:59 +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 1bwqNI-0007nY-5n; Wed, 19 Oct 2016 12:53:40 +0000 Received: from mail-qt0-x22f.google.com ([2607:f8b0:400d:c0d::22f]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwqLf-0006my-Bd for linux-arm-kernel@lists.infradead.org; Wed, 19 Oct 2016 12:52:01 +0000 Received: by mail-qt0-x22f.google.com with SMTP id q7so17674861qtq.1 for ; Wed, 19 Oct 2016 05:51:38 -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=6NsedYwGIHQuJ+Zzp4W8rQrLuBURV90Q0rdT6xwgM3s=; b=cPVxweLkbqpFLtJGKasbEWPL4SBIigVeGMO63u5zAHxVKtSaXoae9y6+MaZn1Ub6U3 iuC3t7BMtpYPofpBXQtQo1OIu8Xrjij6WIPupFkL2AQ+Y+rDs2uXCU7ngnhVEkGJ8kf+ ntx5lJSY9KjdYEV+CMDSZqh0B/XOGnW/9mXRpEtZHbHMLyZjz2+5l9n3OyPrJXB6Qua0 TvMN2396DmOx9WLj4/DTTwVLpfPa3k7wEp3dTkd5mXvhWb+hhob64smNgRSj/FgQSvUI TNIMHwWc9NtjnmdK4IsiGfPpjV/Ijn8s/iLs4WomFIPjYBUpxGqmcjxkwZMm3NRBC3Mw DMwQ== 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=6NsedYwGIHQuJ+Zzp4W8rQrLuBURV90Q0rdT6xwgM3s=; b=Ek6OnwMn4bYR2Pjv11YYd6aU7lXg+9OLJqHq5mHYSxTQ18KX7RQqv6vP+/QBmQ3eCB JG8wHpzL51BCQM7JX7IRKVlDZK2MgGxyTn0yABun44H7o9eInnAKx+FlyovjpCZgAVlU T7EJlGzf6NOVC94zL1J2X1j16Ha4zj6D7hWpFcMqv3fVjGGxyJoz6hMn+yYFAcCcjWLL sq/ADhrN/tfHs8qCL6SVWd1Q4r5cByRdLeMSTNuQKUs0Lk8kZXkWsHANx25L9/zuNDpH h3TDHo40MLHiP1Yc2oB103bW/wZRa5/Y1I76vD2OYztzJbLiU16IwI3en4zZIgo2QG9W BFDg== X-Gm-Message-State: AA6/9Rm4WyLmP7ErBJhMYqLnmQkaLsN0DUKYZAw2Cf5jj98RwKYSmhSUDEf1Pldk6AQnlsWF X-Received: by 10.28.198.11 with SMTP id w11mr4854546wmf.8.1476881497847; Wed, 19 Oct 2016 05:51:37 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c7sm68947212wjk.19.2016.10.19.05.51.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Oct 2016 05:51:37 -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 v5 5/5] ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes Date: Wed, 19 Oct 2016 14:51:12 +0200 Message-Id: <1476881472-13055-6-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1476881472-13055-1-git-send-email-narmstrong@baylibre.com> References: <1476881472-13055-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161019_055159_658445_1F5AA686 X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. 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 28e218d..ff1975e 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";