From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752302AbdF3KBk (ORCPT ); Fri, 30 Jun 2017 06:01:40 -0400 Received: from foss.arm.com ([217.140.101.70]:40046 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751935AbdF3KAI (ORCPT ); Fri, 30 Jun 2017 06:00:08 -0400 From: Andre Przywara To: Jassi Brar , Sudeep Holla Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH 8/8] arm64: dts: allwinner: a64: add (unused) MMC clock node Date: Fri, 30 Jun 2017 10:56:08 +0100 Message-Id: <20170630095608.24943-9-andre.przywara@arm.com> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170630095608.24943-1-andre.przywara@arm.com> References: <20170630095608.24943-1-andre.przywara@arm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org More of a demo than to be really useful as it this adds a clock producer node for the MMC clock. This can be used instead of the existing clock driver for driving a clock. Use cases include providing clock control by hypervisors or driving new SoCs which don't have an appropriate clock driver in the kernel. The number here is made explicitly compatible with the in-kernel CCF numbering, so any consumer can be switched over by just exchaning the phandle. Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 30cad44..6949a70 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -162,6 +162,15 @@ clock-indices = <0>; clock-output-names = "cpu_clk"; }; + + scpi_clk: scpi_clocks { + compatible = "arm,scpi-variable-clocks"; + #clock-cells = <1>; + clock-indices = <75>, <76>, + <77>; + clock-output-names = "mmc0_clk", "mmc1_clk", + "mmc2_clk"; + }; }; scpi_sensors0: sensors { -- 2.9.0 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Przywara Subject: [PATCH 8/8] arm64: dts: allwinner: a64: add (unused) MMC clock node Date: Fri, 30 Jun 2017 10:56:08 +0100 Message-ID: <20170630095608.24943-9-andre.przywara@arm.com> References: <20170630095608.24943-1-andre.przywara@arm.com> Reply-To: andre.przywara-5wv7dgnIgG8@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org In-Reply-To: <20170630095608.24943-1-andre.przywara-5wv7dgnIgG8@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Jassi Brar , Sudeep Holla Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Rob Herring , Mark Rutland , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org More of a demo than to be really useful as it this adds a clock producer node for the MMC clock. This can be used instead of the existing clock driver for driving a clock. Use cases include providing clock control by hypervisors or driving new SoCs which don't have an appropriate clock driver in the kernel. The number here is made explicitly compatible with the in-kernel CCF numbering, so any consumer can be switched over by just exchaning the phandle. Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 30cad44..6949a70 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -162,6 +162,15 @@ clock-indices = <0>; clock-output-names = "cpu_clk"; }; + + scpi_clk: scpi_clocks { + compatible = "arm,scpi-variable-clocks"; + #clock-cells = <1>; + clock-indices = <75>, <76>, + <77>; + clock-output-names = "mmc0_clk", "mmc1_clk", + "mmc2_clk"; + }; }; scpi_sensors0: sensors { -- 2.9.0 From mboxrd@z Thu Jan 1 00:00:00 1970 From: andre.przywara@arm.com (Andre Przywara) Date: Fri, 30 Jun 2017 10:56:08 +0100 Subject: [PATCH 8/8] arm64: dts: allwinner: a64: add (unused) MMC clock node In-Reply-To: <20170630095608.24943-1-andre.przywara@arm.com> References: <20170630095608.24943-1-andre.przywara@arm.com> Message-ID: <20170630095608.24943-9-andre.przywara@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org More of a demo than to be really useful as it this adds a clock producer node for the MMC clock. This can be used instead of the existing clock driver for driving a clock. Use cases include providing clock control by hypervisors or driving new SoCs which don't have an appropriate clock driver in the kernel. The number here is made explicitly compatible with the in-kernel CCF numbering, so any consumer can be switched over by just exchaning the phandle. Signed-off-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 30cad44..6949a70 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -162,6 +162,15 @@ clock-indices = <0>; clock-output-names = "cpu_clk"; }; + + scpi_clk: scpi_clocks { + compatible = "arm,scpi-variable-clocks"; + #clock-cells = <1>; + clock-indices = <75>, <76>, + <77>; + clock-output-names = "mmc0_clk", "mmc1_clk", + "mmc2_clk"; + }; }; scpi_sensors0: sensors { -- 2.9.0