From patchwork Thu Aug 18 10:11:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9287325 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 E6F0F600CB for ; Thu, 18 Aug 2016 10:25:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D60C329099 for ; Thu, 18 Aug 2016 10:25:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9DCB290AA; Thu, 18 Aug 2016 10:25:42 +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 7B96C29099 for ; Thu, 18 Aug 2016 10:25:42 +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 1baKW0-0003xc-OO; Thu, 18 Aug 2016 10:25:36 +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 1baKVf-0002LW-3E for linux-amlogic@bombadil.infradead.org; Thu, 18 Aug 2016 10:25:15 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by casper.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1baKIi-0002AH-16 for linux-amlogic@lists.infradead.org; Thu, 18 Aug 2016 10:11:52 +0000 Received: by mail-wm0-x232.google.com with SMTP id i5so24626160wmg.0 for ; Thu, 18 Aug 2016 03:11:34 -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=fOmpi728rV/pSzp+ubOWTsKC9t6r6urJ1jyy0N748pGLBuopZ1qrmuHC9CFjybEoLc PJvzsR75NwlSOh2m9XB1PE5VgxIk6aFBqjvscFmJJCtozikXSmQQwRGVr1Q9TDOsIh0x jz8PrUCKSpc9lo+7PQBTCD5rKKJLGTAJTToRlyT46EZgeNQRnX+IilT3enflayR9jnlv YM278FRkrftuYR8govGDaaaH7XRvz4iC0JBlSg9JhOGeLx4m8j5hxxvrv8r1I75uja20 lE1/kDH8ticRCNoTyBPgdkHgJDndJ/zQn6N7yenpVfV7QufHvAYejawpGS33MLdKarYG W3Rw== 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=jGPNHZBw1lSE35vWNbGlIbGOINmbCJpUfjDcFxMK44NPacv+pXbWvfvNLNOqbsBREm Y9GjnuP715+PDiUxwN52+OFqj5SgjHJYaLTYW7NPciNtN8uzijaHbdkTSaw3gzdWtSNo XHWlDX5hAbCoPihkBtoMGgkHiWRIFYlwNclGsQJ3XDue+YAPEshNViMH+8sPp4dZwnf/ 6FgjRFM0VG5GaT6XUW6bRBXTyzpy2yLDr0DyUKq8w01FY0tAIUHz++L6VZydizlEm8lw AiAbQcG5TGw1D1/gNxuFl+y+3gKWym6GKHVDm0tMKEwK5d4GOD0YDskBfcr2YGu7nL09 L+3w== X-Gm-Message-State: AEkooutHM3KVMal4E4ZLD3DV4e/yPWpJUp9ne5emGrKsQsivEfhAEcrVoNmpxFIFF0YenIDN X-Received: by 10.194.47.7 with SMTP id z7mr1419880wjm.63.1471515093677; Thu, 18 Aug 2016 03:11:33 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id f4sm30915247wmf.8.2016.08.18.03.11.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Aug 2016 03:11:33 -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 13/13] ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes Date: Thu, 18 Aug 2016 12:11:06 +0200 Message-Id: <1471515066-3626-14-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471515066-3626-1-git-send-email-narmstrong@baylibre.com> References: <1471515066-3626-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160818_111152_109698_464EFB25 X-CRM114-Status: UNSURE ( 8.61 ) 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 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 {