From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752048AbeCUDfS (ORCPT ); Tue, 20 Mar 2018 23:35:18 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:38620 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751581AbeCUDfP (ORCPT ); Tue, 20 Mar 2018 23:35:15 -0400 X-Google-Smtp-Source: AG47ELuOZ8GMXuPErxQwgKfA8RgoJnXN0r/rBmbMpsfTe6ow1IxvPVu+bI/DVNSPawYhQSlwmjmlmg== Date: Wed, 21 Mar 2018 11:35:18 +0800 From: Bjorn Andersson To: srinivas.kandagatla@linaro.org Cc: andy.gross@linaro.org, linux-arm-msm@vger.kernel.org, david.brown@linaro.org, robh+dt@kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: dts: db600c: add support to pcie refclk Message-ID: <20180321033518.GB1403@tuxbook-pro> References: <20180320092840.4600-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180320092840.4600-1-srinivas.kandagatla@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 20 Mar 17:28 HKT 2018, Srinivas Kandagatla wrote: > From: Srinivas Kandagatla > > This patch adds support to external pcie refclk. > > Signed-off-by: Srinivas Kandagatla > --- > arch/arm/boot/dts/qcom-apq8064-db600c.dts | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/arch/arm/boot/dts/qcom-apq8064-db600c.dts b/arch/arm/boot/dts/qcom-apq8064-db600c.dts > index 50151ef6e912..7587088c122f 100644 > --- a/arch/arm/boot/dts/qcom-apq8064-db600c.dts > +++ b/arch/arm/boot/dts/qcom-apq8064-db600c.dts > @@ -45,6 +45,18 @@ > > }; > > + clocks { > + compatible = "simple-bus"; > + pcie_refclk: pcie-refclk { As the si53154 is used to acquire 3 different clocks (2 pcie and 1 sata) it would be nice to accurately represent this in the DT. That said, exposing this as a clock allow us to change the representation here later. (Both pcie_core_clk and pcie_eth_clk use the same gpio pin as enable pin, so I don't know how to represent this...) So for now, please name this "pcie_core_clk", per the schematics. > + pinctrl-0 = <&pcie_pins>; > + pinctrl-names = "default"; > + compatible = "gpio-gate-clock"; > + clocks = <&rpmcc 27>; > + #clock-cells = <0>; > + enable-gpios = <&pm8921_gpio 22 GPIO_ACTIVE_HIGH>; > + }; > + }; > + > hdmi-out { > compatible = "hdmi-connector"; > type = "a"; > @@ -140,6 +152,16 @@ > > qcom,ssbi@500000 { > pmic@0 { > + gpio@150 { > + pcie_pins: pcie_pins { Please label this "pcie_clk_en_pin" and don't use '_' in the name of the node. > + pios { You can omit this level and just put the properties in directly in the pcie-clk-en node. > + pins = "gpio22"; > + function = "normal"; > + power-source = ; > + }; > + }; > + }; > + Regards, Bjorn