Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5374523imu; Wed, 26 Dec 2018 01:30:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN4AhcQWW/KWwqEBcl9Vk7Td0JOOJIFQdmU9fnmAIJdjcWCmuGNWkE8uZjpRCI7bFAl8SBuY X-Received: by 2002:a62:435a:: with SMTP id q87mr19108040pfa.109.1545816638227; Wed, 26 Dec 2018 01:30:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545816638; cv=none; d=google.com; s=arc-20160816; b=sqS8c5aKOJwHRgtV3HbATQ2VZ7JPARwCm3N8X0T/8zQjUFLAm1sr/wR7NW7B8gad/I IDsdLWVCDdMG+cp7+Iiphzxgd2w567Ci+uNNOcUU7EptiQAbhzzZqHA85xoVVCBxVaQc DcOrViFK5HtOVFwopKTBWVR3NegQeH4t3mvtlISwIKZA7w+R+gFSzmqWl29HX1eazt7D qx3wJC1cHYODMR5vbY5qdbGSxZ0K6fGptNZ1gJth8zxXpLdD3FlKRAP87+uyM//LnfUQ J5GTyfdGznn4fEu+zARNFtpfg2p1CImKP/EwCexWvwb4oX7cyKaPVyIk+BWA2Hg6/T6W ar4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=cPkYBpJFj3rRgobWvv5/Zg1QLJiRxRLFFuoVIzu1RGU=; b=M9H01VQdUpvskxy27bzuaDhMW5tBaFcswlEe0miHPtSvjyKivLdXpRJKfXndtdDdlv bDoH3G1BEHPkCL5qsZA4jpWzyiRKqtZAALD6oJEQwiePzE/fk2KeD/Kuqakfgn4uC8e5 32GczJpGm5X+LhBAFLlZnAMFn+CVpcfD3yKChcSTw3wKj72C++JQPV4Z1oRU5LTWqaI9 9VMWhFuf6uujew5yiol6F4yMLU2k7SYeTiY3DkI/dqLZ9ofwafYBN0P8DNgphELbXsgs hydI9IHit4gustrdczrAezYLJsZkMsqsTbv5WFUTcv8yCx+xRyRx+LpgcZrXuVRgWOeD WxFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bFAHfm3f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si1155282pll.271.2018.12.26.01.30.10; Wed, 26 Dec 2018 01:30:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bFAHfm3f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726434AbeLZJUN (ORCPT + 99 others); Wed, 26 Dec 2018 04:20:13 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39047 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbeLZJUN (ORCPT ); Wed, 26 Dec 2018 04:20:13 -0500 Received: by mail-wr1-f65.google.com with SMTP id t27so15162074wra.6 for ; Wed, 26 Dec 2018 01:20:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=cPkYBpJFj3rRgobWvv5/Zg1QLJiRxRLFFuoVIzu1RGU=; b=bFAHfm3fwnWQGByGvmlEfB71fCHzpTOnC9nkLhBcM1T+/KTzeBLQzOx1ScmHEV/7Gk qZDLgdJ5Z+RdREt3RYgQVHnMuyZUhesoZ1bBhcpS/L+yx7RDXmN0oX5auh6v/p4NLsXf bNwq2AX5jFa3VKu6RDyKEjP9id9XnQgJwrSH0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=cPkYBpJFj3rRgobWvv5/Zg1QLJiRxRLFFuoVIzu1RGU=; b=D/ZWFBVSED8ZIBRRvn+tLxx+z9x7dKyy3kyaYZdCDjWY9rIJTYVtyHgW1VhSLPN0R6 SQtyqufiPUjrVz5UyLA+Yrtqc469Ru9ALhIkPlKc3A836Z4e9qV0+oPy7xZylb1U9SyI HGfINbRwg8ytqa+6zxyDa0CuctkwgHCCjCFJdHcJLRCaGsBnE3i1uLPpwNvvjj/sb5Sn P71ZcClfM8ewXaMO8bM2cUOIcf53UJ8m4dIs+EI0NbF5GqW2YrlSnEjdpJk4Ub/hNnGn G5Y/f4n0AnIU8F+pdMu4Nzu71CHrZsQX2utt6/WXDmqKZB7usPXIs/30v44UEKy2OTqr 1EdA== X-Gm-Message-State: AJcUukelg+bTV7pEqnyc63UfxsNN1yykDYQ3oESwfwpJL7COUk8gIhqH xkUelyZuAbktnuLj3r99Pp0fVg== X-Received: by 2002:adf:91a3:: with SMTP id 32mr16217113wri.99.1545816010832; Wed, 26 Dec 2018 01:20:10 -0800 (PST) Received: from [192.168.1.2] (227.red-79-146-82.dynamicip.rima-tde.net. [79.146.82.227]) by smtp.gmail.com with ESMTPSA id l37sm49776483wre.69.2018.12.26.01.20.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Dec 2018 01:20:10 -0800 (PST) Subject: Re: [PATCH 05/13] clk: qcom: apcs-msm8916: get parent clock names from DT To: Niklas Cassel , Stephen Boyd Cc: andy.gross@linaro.org, david.brown@linaro.org, jassisinghbrar@gmail.com, mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org, will.deacon@arm.com, bjorn.andersson@linaro.org, vkoul@kernel.org, sibis@codeaurora.org, georgi.djakov@linaro.org, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org References: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> <1545039990-19984-6-git-send-email-jorge.ramirez-ortiz@linaro.org> <154508986359.19322.1555129141976726505@swboyd.mtv.corp.google.com> <20181218143503.GA32562@centauri.ideon.se> From: Jorge Ramirez Message-ID: <72bc192f-b60a-1209-7818-78a2fed07831@linaro.org> Date: Wed, 26 Dec 2018 10:20:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181218143503.GA32562@centauri.ideon.se> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/18/18 15:35, Niklas Cassel wrote: > On Mon, Dec 17, 2018 at 03:37:43PM -0800, Stephen Boyd wrote: >> Quoting Jorge Ramirez-Ortiz (2018-12-17 01:46:22) >>> Allow accessing the parent clock names required for the driver >>> operation by using the device tree node. >>> >>> This permits extending the driver to other platforms without having to >>> modify its source code. >>> >>> For backwards compatibility leave previous values as default. >> >> Why do we need to maintain backwards compatibility? Isn't is required >> that the nodes have clocks properties? >> > > Hello Stephen, > > > This is the existing DT nodes for msm8916: > > a53pll: clock@b016000 { > compatible = "qcom,msm8916-a53pll"; > reg = <0xb016000 0x40>; > #clock-cells = <0>; > }; > > apcs: mailbox@b011000 { > compatible = "qcom,msm8916-apcs-kpss-global", "syscon"; > reg = <0xb011000 0x1000>; > #mbox-cells = <1>; > clocks = <&a53pll>; > #clock-cells = <0>; > }; > > > This is the (suggested) DT nodes for qcs404: > > apcs_hfpll: clock-controller@0b016000 { > compatible = "qcom,hfpll"; > reg = <0x0b016000 0x30>; > #clock-cells = <0>; > clock-output-names = "apcs_hfpll"; > clocks = <&xo_board>; > clock-names = "xo"; > }; > > apcs_glb: mailbox@b011000 { > compatible = "qcom,qcs404-apcs-apps-global", "syscon"; > reg = <0x0b011000 0x1000>; > #mbox-cells = <1>; > clocks = <&gcc GCC_GPLL0_AO_OUT_MAIN>, <&apcs_hfpll>; > clock-names = "aux", "pll"; > #clock-cells = <0>; > }; > > qcs404 specifies two clocks, with an accompanied clock-name for each clock. > > msm8916 specifies a single clock, without an accompanied clock-name. > > It is possible to append clock-names = "pll" for the existing clock, > as well as to define the aux clock in the apcs node in the msm8916 DT: > clocks = <&gcc GPLL0_VOTE>; > clock-names = "aux"; > > However, since the DT is treated as an ABI, the existing DT for msm8916 must > still work, so I don't think that it is possible to ignore having backwards > compability in the apcs clock driver. so where are we with this? do we remove backwards compatibility (see below] for v2 or is the DT really an ABI and therefore the patch under review is good as is? diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index c5348c3..729c117 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -425,7 +425,8 @@ compatible = "qcom,msm8916-apcs-kpss-global", "syscon"; reg = <0xb011000 0x1000>; #mbox-cells = <1>; - clocks = <&a53pll>; + clocks = <&gcc GPLL0_VOTE>, <&a53pll>; + clock-names = "aux", "pll"; #clock-cells = <0>; }; > > > Kind regards, > Niklas >