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: 10674243 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 F113214BD for ; Thu, 8 Nov 2018 13:54:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEB622D9D7 for ; Thu, 8 Nov 2018 13:54:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D32AA2DA35; Thu, 8 Nov 2018 13:54:44 +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 7FFCD2D9D7 for ; Thu, 8 Nov 2018 13:54:44 +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=s6RQTHBbvgl6R83ZAa1PlbIi1c5T/qTfABvpiTnilSU=; b=sIFmudrYQz+zKI W0dJohrPgb6agJRPCIpKn67coarxvt3nUrfNFseU3WYB95SE6PUuq+NrO/EdPwYPnbObg2RgpCmNT BnMQA9ABsDx3dsaWed1+o5tfPJZuFbtoeyLvVZKikNjrOaOr6me8V+mUbSSzWGsDU61trqkyfQ1Zi b4jOV7Feum1ZZ4oHUPGI8wCkezAijjpzsTn7lyNE4EplJSt4AVIaF/Pwt0zPR82w8QMckKlArPzzs cUN6BzuwqdbEjcE6ZDs9R5EXNcLZXbPN3VqX+cijuKX9nfqhRN+yE9K0gzSnje6PmZUZ1CSR3sLYm V13M5ZdgouJM2G/uStaA==; 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 1gKkla-0005SL-Jn; Thu, 08 Nov 2018 13:54:38 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKklB-0004yD-Ut for linux-arm-kernel@lists.infradead.org; Thu, 08 Nov 2018 13:54:19 +0000 Received: by mail-wr1-x443.google.com with SMTP id y3-v6so21037478wrh.10 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=jrrhL5nAFYra4GCcIKogBJD1HoquyfkWk0de60qMYrns7ljMe9bj0lUwQGTkIa5oBG Eq7DpYPuScm+c3h5HCx584wNoDiq4MsJ48lg2XJE7aViMDmy8YyHkmlBzeBqzRFg3aYe LbCpbmeLOKom2iVo1I7j2HITdnbzdO4FwSlJjBP2xR27wAgmQ5KblXRKnEOCTqgWmchv jFHg9nj7KFBzd0oUQod08fsRy8X3euBIL8+bj0vyc05rojqWpIS7xP8FQazPfWD9nzZW KMKJsYV0f7DfpnyphVxoIu/iWxwARbYbVR/3PlTKKrnfrA+/YavlBLMgCPGLsRk/+p2c niSg== X-Gm-Message-State: AGRZ1gInpoG/d04USeJ4U24QvK96xvFXFE+cT20PZLKjRsD2JxHdunkq LUYtou5a3EpekISoTjcJnBLAtQ== 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_111320_0B9C7F00 X-CRM114-Status: GOOD ( 11.28 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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>;