Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1679877imu; Thu, 17 Jan 2019 01:17:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN4XA/FaXmzxag9Xar/+XuERQJgLu61GQSzH8Xl3k0KJFMssTCvoIT7W45GtVvsEdpOQeI7M X-Received: by 2002:a62:d701:: with SMTP id b1mr14007302pfh.34.1547716637958; Thu, 17 Jan 2019 01:17:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547716637; cv=none; d=google.com; s=arc-20160816; b=Mpj9LAo226otPzBqo5bm4L3BfECE3EfdMjWVXr8vNk95dsuRjHZuXn1gQFymSj1SFy b9pai0lODW3V0kwr/H/4W2tBHHK8FS1BoysNLYSontPeSsAmsf9kLJUU10nf9BPfDYdm v/Lr6v6eWJmoi5FG0c6GKajFwDs6x0ylntp2OY9fsM/sO41IiVHVbyM7A3UiZOzymbBT +yn4pfKmsMdzCbfDbhkfWG5oxu0SnDSKU5VO8hoLVIk4L20mcGrUrZEKwJm/PFcXB1Vp 6MAiZXakf7quMBWcye1qyNyVt+ZR+P6wE6KO+KORh8xvwvKw/yKjCxSz6KKA56U/tfuO MFsg== 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=atLgXCZJmtT0O+GD3SkLBWNlve906gHwrgA3+iQTNq8=; b=iwUwvAVpYXqYmBB92pojEvmNBkG0vsyOo6ImFi+Cxt1erswIGqP+wCCAG4DjCyqw8a +Z3o9xqcXMqzcFfCGJrtoARo3TCN45Tx2mr6md9zQ6d5Gebk7V1EVEWZ0NLYvDzJWPcb ZXk7FZIrDcTSpMemR5aNfBsaQGcpNhIcpxyaknH9f4jfZPcYrgx221R2M+vOGwmD6R7P X+JigLxxsg5l/Tb7QkxilabP9va4BFsyANzji2DUfReOqa35eLHhgFDHjmFKGbebKYsX mEe+kyEcnKg5FzKEHOXmR/56ABQcpUnZL2pj275wKEmeuuyqO3qvLhj201ZUJ6KtuTn6 +6Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FoLHtbyD; 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 d4si1109844pfa.150.2019.01.17.01.17.02; Thu, 17 Jan 2019 01:17:17 -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=FoLHtbyD; 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 S1728276AbfAQGoy (ORCPT + 99 others); Thu, 17 Jan 2019 01:44:54 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:44001 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727991AbfAQGox (ORCPT ); Thu, 17 Jan 2019 01:44:53 -0500 Received: by mail-pf1-f196.google.com with SMTP id w73so4325634pfk.10 for ; Wed, 16 Jan 2019 22:44:53 -0800 (PST) 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=atLgXCZJmtT0O+GD3SkLBWNlve906gHwrgA3+iQTNq8=; b=FoLHtbyD+T0hvK+Xsp8pX/kYm+I/+k4QezqwPy4hZEZOawY2bnAnmlg4Lqho8lfRFC Pe+kTdIIXJOQiqLOuMj2BNQwVtPcMeN9yRHNlK3tuyW9GRfX/qzmxsKxAR+caOljDVnx 7oIH1rzzHgC/Mst7cn6AwQQOxI6ERIWzCV4G4= 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=atLgXCZJmtT0O+GD3SkLBWNlve906gHwrgA3+iQTNq8=; b=DnF0uN3ZSZ6quXcpdiytB0FA96vECVV2CFnowGBtARZu1Mj+68SMQUC7CAufa2YZfZ iMw1Ws34Xe9yjUe4lQt67CcxLkf0b5lw7lZHx9sOIOPj1YKPo5MXDo7RQfsgxj0jJcxX VsXBoP3cgN/+Mj8Bnsdlk4LhM30dMvZD9ERgbe68e83UDHYTzXVi+WX8/JPoqc0ZFOBK 11qPb1O1quwVCAw4iXNN10st60XAnswEcHVC7p2kX7aFYLZV6nMNKbgMtGxyYPlSw8Ve Jqd8atAo96BlcYJFQD3maHLjJCo3FZM/yP65ay+SZ5FDeIhPNLYH35NB2tg/LOgmzjRT XL4A== X-Gm-Message-State: AJcUukddt5rZwZrXPRgMQvlthHbVwH2oFsR7TJK7nn9+e6gV7ZQWjxBd xjUYiHfYvwedj38FX0bjRD38Dg== X-Received: by 2002:a62:2fc3:: with SMTP id v186mr13782534pfv.82.1547707492463; Wed, 16 Jan 2019 22:44:52 -0800 (PST) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id v190sm977708pfv.26.2019.01.16.22.44.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Jan 2019 22:44:51 -0800 (PST) Date: Wed, 16 Jan 2019 22:44:11 -0800 From: Bjorn Andersson To: Jorge Ramirez-Ortiz Cc: robh+dt@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, david.brown@linaro.org, sboyd@kernel.org, will.deacon@arm.com, mturquette@baylibre.com, jassisinghbrar@gmail.com, vkoul@kernel.org, niklas.cassel@linaro.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 Subject: Re: [PATCH 04/13] dt-bindings: mailbox: qcom: Add clock-name optional property Message-ID: <20190117064411.GK25498@builder> References: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> <1545039990-19984-5-git-send-email-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1545039990-19984-5-git-send-email-jorge.ramirez-ortiz@linaro.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 17 Dec 01:46 PST 2018, 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 > --- > .../bindings/mailbox/qcom,apcs-kpss-global.txt | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt > index 1232fc9..f252439 100644 > --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt > +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt > @@ -23,6 +23,10 @@ platforms. > 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. I presume you meant to replace the existing definition of "clocks"? I think the purpose of "required if #clock-cells" comes from that meaning that it represents a clock-controller if #clock-cells is specified, in which case it requires the upstream clock(s). Regards, Bjorn > + > - #mbox-cells: > Usage: required > Value type: > @@ -33,6 +37,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 +75,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.7.4 >