Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10632813ybi; Thu, 11 Jul 2019 08:26:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuBByhnQUZ8s42JFYs4+LCKEaQJTnumQolE0xhkxTreWCQf2gQfDS6Eipyzw1i5eRmLMVh X-Received: by 2002:a17:90a:db52:: with SMTP id u18mr5533906pjx.107.1562858813187; Thu, 11 Jul 2019 08:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562858813; cv=none; d=google.com; s=arc-20160816; b=0nEuQXB4XICFkBUTEZ7klRZ35MaB8G+P+0mobDeZBODNI3e6Qba8lYGgkQTnFTQP7S ZhmjmN0elfHbybTf0SmK8XXnpVQ5vrEeWiZMQcgdxylh0HQdyEMpdczT69u1t1lwUsjz ecZYJzOiMf0D7XKYcQfe8egA4BlsP6hYrauINRRfy/qcJl7zVBVR873UjXkj29H+8q+N 4SnJonPbJqfJi9wIEd4hetqfWCYRvn9GooXX9Gcawq8Vofb2AgBvanolrTbsdCLi7Kg7 8KNxex6tC71AcPIZSLMeSyoT4wqSuHMYx93jjOIRX8GTz0aB6RNW5X8KAdiLPy0sqQPl jJYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AeWgNBL0vGG9Q0W1XyAtTTadhrtMpodZjMiQ47VNvNo=; b=jOHRzSBL4PvOIqvRepoWDS7GZa4IAw+yADAM24zR2O6rnfvDCIgSuzgP2G1MujKjO7 i6Oq3kLdoPcNltWS2kwaZEbXX0IWUvGpDizi8VWC6iT1UhZlvqP5vaG08VZsO0z1mews 5SALFzEWc1k1B9UrIC3VEszX2gsgLMHipZ3AdjuCPB+BcQu3GL/RM6dy8BSshD27GnnQ +2D7Uc9MCL4368F+pL6765fkLTArhGLhHdP0koBFfwV/aco+chp5YOw1GF4CUZJO8SyW UvUTxxE55cGzqN9r99EADfsqz6EhYIZFQwi0aPli67cddVekVScGpkSvaO2MvBwbbDKU wUnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jAcuVEQQ; 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 m15si5655416pff.267.2019.07.11.08.26.37; Thu, 11 Jul 2019 08:26:53 -0700 (PDT) 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=jAcuVEQQ; 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 S1728782AbfGKOos (ORCPT + 99 others); Thu, 11 Jul 2019 10:44:48 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41602 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728481AbfGKOos (ORCPT ); Thu, 11 Jul 2019 10:44:48 -0400 Received: by mail-pg1-f196.google.com with SMTP id q4so3051174pgj.8 for ; Thu, 11 Jul 2019 07:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=AeWgNBL0vGG9Q0W1XyAtTTadhrtMpodZjMiQ47VNvNo=; b=jAcuVEQQIMZ8TtPCtZhvvkOswtz9kMXpu3/fl/zZ8r2p4lBere/WDYW8TgghDn2afu Fl6E9jUg+eQKbEvv/wdRFpHjhczPrnpR5mV+JSSzuFvBpBnBvIeuSylHd1+G+y4gm8m/ WHejBbnCV+/tD3TGRTKQo0gCHz786gypWQuMPD6gZ5PqSYfzSg8ZJONaxqVNSimqfhfr z/qYC+ij9SNjlI/oFpP5tVSy2t785VOBlar9uPk9Q2NnaKVczX3MfmeWMQplMkOxL8FU rrVL4yRhgm7uTQBxiRofM6yk/8gBYjhhjLfj9GmvY5rUUnPYIc4CCwVzDDRjF12o1f8j DE/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=AeWgNBL0vGG9Q0W1XyAtTTadhrtMpodZjMiQ47VNvNo=; b=s26BH86TgBTUmRw/Waja0Bpeldg8lELhuap45lhyhYLdinih6MiAAhT2I/e93TN3j7 wby6/XSQzBbhWUpetMIAW7DEsqVWpTF8YdM3liJGUiCLj/jUCFud/gmaqUs9dLwDMnUv y6Z90f+5pL0dS0sUDSe7/+rOm7cSP9NYAYKwRtVEy2zQLXTTEi08FuLA0Qg121K9hG5m NmUpSW72ivhXQwSyvfapsThgpEStambVP0zclNm0cPoo6/ur6zCHX50LhlXCf8gzKtnB h+aNIj7wlwr8KK7U3EsxxStTGAYF1VkYiIJPb9APlRHdKVXGitTst6ycbpftByoa1zXT zdFw== X-Gm-Message-State: APjAAAXIioji5cGhLlMA27XZ4fA9AEAcy3cmelkxymdLuvBvQ8ltpcdj lCo3mhtEL72319zvgkMcUqMg6A== X-Received: by 2002:a17:90a:23ce:: with SMTP id g72mr5299751pje.77.1562856287236; Thu, 11 Jul 2019 07:44:47 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id a5sm4953523pjv.21.2019.07.11.07.44.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 11 Jul 2019 07:44:46 -0700 (PDT) Date: Thu, 11 Jul 2019 07:45:57 -0700 From: Bjorn Andersson To: Jorge Ramirez-Ortiz Cc: sboyd@kernel.org, david.brown@linaro.org, jassisinghbrar@gmail.com, mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org, will.deacon@arm.com, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, sibis@codeaurora.org, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net, vkoul@kernel.org, niklas.cassel@linaro.org, georgi.djakov@linaro.org, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, khasim.mohammed@linaro.org Subject: Re: [PATCH v3 04/14] dt-bindings: mailbox: qcom: Add clock-name optional property Message-ID: <20190711144557.GE7234@tuxbook-pro> References: <20190625164733.11091-1-jorge.ramirez-ortiz@linaro.org> <20190625164733.11091-5-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190625164733.11091-5-jorge.ramirez-ortiz@linaro.org> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 25 Jun 09:47 PDT 2019, Jorge Ramirez-Ortiz wrote: > When the APCS clock is registered (platform dependent), it retrieves > its parent names from hardcoded values in the driver. > > The following commit allows the DT node to provide such clock names to > the platform data based clock driver therefore avoiding having to > explicitly embed those names in the clock driver source code. > > Co-developed-by: Niklas Cassel > Signed-off-by: Niklas Cassel > Signed-off-by: Jorge Ramirez-Ortiz > Reviewed-by: Rob Herring Reviewed-by: Bjorn Andersson > --- > .../mailbox/qcom,apcs-kpss-global.txt | 24 ++++++++++++++++--- > 1 file changed, 21 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt > index 1232fc9fc709..b69310322b09 100644 > --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt > +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt > @@ -18,10 +18,11 @@ platforms. > Usage: required > Value type: > Definition: must specify the base address and size of the global block > + > - clocks: > - Usage: required if #clocks-cells property is present > - Value type: > - Definition: phandle to the input PLL, which feeds the APCS mux/divider > + Usage: required if #clock-names property is present > + Value type: > + Definition: phandles to the two parent clocks of the clock driver. > > - #mbox-cells: > Usage: required > @@ -33,6 +34,12 @@ platforms. > Value type: > Definition: as described in clock.txt, must be 0 > > +- clock-names: > + Usage: required if the platform data based clock driver needs to > + retrieve the parent clock names from device tree. > + This will requires two mandatory clocks to be defined. > + Value type: > + Definition: must be "aux" and "pll" > > = EXAMPLE > The following example describes the APCS HMSS found in MSM8996 and part of the > @@ -65,3 +72,14 @@ Below is another example of the APCS binding on MSM8916 platforms: > clocks = <&a53pll>; > #clock-cells = <0>; > }; > + > +Below is another example of the APCS binding on QCS404 platforms: > + > + 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>; > + }; > -- > 2.21.0 >