From patchwork Thu Nov 8 13:53:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10674249 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E49E515E9 for ; Thu, 8 Nov 2018 13:55:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D24AE2DA34 for ; Thu, 8 Nov 2018 13:55:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2E902DA41; Thu, 8 Nov 2018 13:55: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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AA1A62DA34 for ; Thu, 8 Nov 2018 13:55:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oJMjRZr5CfMtUgb42xspCWufKslXWkRgWe/SCEzFF44=; b=AhO5ZW2ljkdAVw 54T+GFcL7bgOwIpEL7HG7cnpA6ISgnVqY7FZhvVUKMOVyoVpVksdOhKzZ+DvWv3Zl8w15rAYAnwpw GRDnrE/30hfweJWYA5TRGDuM+4tp7f6jxKLuB0vm/sog2YpvifpTiWrKUJnMFQcdJ+gz/ErxsqzE3 JuThwJlUHZWRDe7h/0NNWE0JWH6Yr++O8Z0bjrBSucySHBSx+dV6Iiq7NlF119otAP9alfx0fA/zh 1nSp4zd4NeBbHUfBXJ8o4cn3rZeJeEbvG9ez/YR2w7dj6A3h2wjHxlA2FItO8ARWcX9Qk6z5373+D rq/RIwjS0aW87zdpG9Lw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKkls-0005pw-7e; Thu, 08 Nov 2018 13:54:56 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKklB-0004yC-Ux for linux-amlogic@lists.infradead.org; Thu, 08 Nov 2018 13:54:17 +0000 Received: by mail-wr1-x441.google.com with SMTP id k15-v6so18361264wre.12 for ; Thu, 08 Nov 2018 05:54:04 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=3Trob3Eu4mkFDnpfZtYiuy74jOX9CM+snY60wneQxcg=; b=rn8Z6gvPJwy21I71vry5wevhZl3tSLH4x64kk8GfqPKCxQ5DKjr3sqJwd0vy6yo/aq tHyfHWdWWa/iVpQfHRkYvlOUsyLhjAU5JM5W1IbXkkYyP2G8C50xXE080VefudtJ/z/y 2C6NEXgjREeNK7scfGWhQu+1QoDWXC9HGebtEM2fogK1iPyBCswcaljIymOUFc/iSBCE 25004+HuJ4SIjJKkUCf8Ywb0QmYLCIc7hY0yQue0VXHjvuKMVJzut39f+No7EbTXDltA oqa7Z5KAx2Ik3oqZWDas6OO3vQb/Jin1Fp75JrNpzb5FNW3CO/X8WRU7sFewrqtnBelp 4BdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3Trob3Eu4mkFDnpfZtYiuy74jOX9CM+snY60wneQxcg=; b=NFSAZ9bNv/723L3bsUCey/MOtEyJsM7JGvI7P701nGIUARHUl3KzYhSwUm0eY5gesh 82b43eu18H0DtefLfv67fwbFZNRBS+CWO5o5108sHB/tJPJrIjYwzep6QbiNoP6wI6xC WcN7a6rWmIAPS9FWR9pzB+ibLksmczO9hCYzqiqV5gvcfj8Sdk2I+yqS17z5mtcbCcwF gv+AFTZX0uBl6qscSYHT5XSrX+1eDsCMu6j3SXn4huIrC94T5ocSuqKLcoBPofXV6feQ nqoQsrmTFgXDiTLdsNB43jtR79RzTsJoefpzBwvCFsCzhqKdZQKbTk6ZunLE8lBsaDY2 z4lA== X-Gm-Message-State: AGRZ1gL6hoszI3Hl7EcLRx1d3g6sxjSXZxQOsxewk9zFOcFDaabWvYUi 6bKz17xaoKwmop6iHEXGYBTRjA== X-Google-Smtp-Source: AJdET5ea+Zkph+ibbRJhDUu2cq9DMyFvl8YtEenTUNYTIAxjv8LCUX0zDxqGmchM+usPZpaVq1lotQ== X-Received: by 2002:a5d:4e83:: with SMTP id e3-v6mr4523972wru.187.1541685243602; Thu, 08 Nov 2018 05:54:03 -0800 (PST) Received: from boomer.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id p6sm2740329wrx.39.2018.11.08.05.54.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Nov 2018 05:54:03 -0800 (PST) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [PATCH 4/4] arm64: dts: meson-axg: enable SCPI Date: Thu, 8 Nov 2018 14:53:52 +0100 Message-Id: <20181108135352.8459-5-jbrunet@baylibre.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108135352.8459-1-jbrunet@baylibre.com> References: <20181108135352.8459-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181108_055414_084502_A5DDF77F X-CRM114-Status: UNSURE ( 9.41 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable SCPI on the axg platform, with cpu clock and hwmon (core temperature) support Signed-off-by: Jerome Brunet Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index b8893675e39c..5f512c91471e 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -79,6 +79,7 @@ reg = <0x0 0x0>; enable-method = "psci"; next-level-cache = <&l2>; + clocks = <&scpi_dvfs 0>; }; cpu1: cpu@1 { @@ -87,6 +88,7 @@ reg = <0x0 0x1>; enable-method = "psci"; next-level-cache = <&l2>; + clocks = <&scpi_dvfs 0>; }; cpu2: cpu@2 { @@ -95,6 +97,7 @@ reg = <0x0 0x2>; enable-method = "psci"; next-level-cache = <&l2>; + clocks = <&scpi_dvfs 0>; }; cpu3: cpu@3 { @@ -103,6 +106,7 @@ reg = <0x0 0x3>; enable-method = "psci"; next-level-cache = <&l2>; + clocks = <&scpi_dvfs 0>; }; l2: l2-cache0 { @@ -137,6 +141,28 @@ }; }; + scpi { + compatible = "arm,scpi-pre-1.0"; + mboxes = <&mailbox 1 &mailbox 2>; + shmem = <&cpu_scp_lpri &cpu_scp_hpri>; + + scpi_clocks: clocks { + compatible = "arm,scpi-clocks"; + + scpi_dvfs: clock-controller { + compatible = "arm,scpi-dvfs-clocks"; + #clock-cells = <1>; + clock-indices = <0>; + clock-output-names = "vcpu"; + }; + }; + + scpi_sensors: sensors { + compatible = "amlogic,meson-gxbb-scpi-sensors"; + #thermal-sensor-cells = <1>; + }; + }; + soc { compatible = "simple-bus"; #address-cells = <2>;