Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp494190ybe; Thu, 5 Sep 2019 00:55:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwz+tXi88d8PCI7mRbmd3aQ+ZbmtaFVcF18SvID3Bt+v7EU9S3SXD493cAvnc7px5RpCwX2 X-Received: by 2002:a17:902:ff15:: with SMTP id f21mr1893840plj.185.1567670152093; Thu, 05 Sep 2019 00:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567670152; cv=none; d=google.com; s=arc-20160816; b=tS4oijOrQOYoZVmcPUXgdJ+7ygZdWojH0VqrkxDgoLmcheNrCMMQs7m8ATte0L2F6O U/hsxU3lF/NraJ2PkOnbl4ydXWvzGsYZnSS+VRUvqCM3Ns5zG6N6nkfUpBuX2uOkt5i7 FHdBcEh88LrI8X74M+IZLe4EWWghY+vlu3d/Nphk0q2x+ebAUo2/YigrckgW47yxQchh qCgEw1hYafhFuvIoa1hDGt4oQ+hqQvkwqGyp6jsB2LheaptW+rxCRJO1JhqK6ZeE4r2v Qb8ZR0lQfws6CgSOum11ZVgGhfNk7trZrAfOC+ceVspGYQsifXMvklgobIp6Ywe4ny4Z 2o1g== 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=czADCPpBouBr4RlUcd9U0vudTJQdLc/9VjUgpg9TOCI=; b=EXbUAEWKiVTnrlDbp2Ky//Kjl+NwAkLRC71BeNSxIlCVrGo5fNIjAQ9xwfifuvmXpp GugcvRNzdfIpPCm1NA30vgcB2Lfc1V6Sd2ToRUghM3BcYDwSpbNCrJtaAPU7yJoWAvrf HMoOdKKSE6t+yEClX4c4t9M5Mv/IVttn9dml/K0zUImIjROBQJ5ktpJFT/R2GlLqja1b wnglodQSDhdFhl3vLq8G2WzOkvCT1ZGP/CiR0PdCR+wwmY/zgYrmY9yEhganX9CAq7UD EQKh3xQQLV5gNUzdKaU/HXeGYpbvO+F+cLmQTijPB1of5xJqpV95soCljGzxWcRMvMfZ XysQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="bGxj+S/o"; 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 c7si1333302pfd.63.2019.09.05.00.55.36; Thu, 05 Sep 2019 00:55:52 -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="bGxj+S/o"; 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 S1732020AbfIEHaf (ORCPT + 99 others); Thu, 5 Sep 2019 03:30:35 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:37347 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732011AbfIEHae (ORCPT ); Thu, 5 Sep 2019 03:30:34 -0400 Received: by mail-wm1-f67.google.com with SMTP id r195so1556634wme.2 for ; Thu, 05 Sep 2019 00:30:33 -0700 (PDT) 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=czADCPpBouBr4RlUcd9U0vudTJQdLc/9VjUgpg9TOCI=; b=bGxj+S/oSU6NNgkdANj77ejufcuBunqr3KRzEhD2AP/fTn0xoHTEt6N4gmHOsRz7YB x5I7ZhOT7P7GIN9ZY/SIdXU2doCVa1/ihXLHg/K/7nsYr6DmqVTTceaweQWm1mi87KKM 8UG9M8mRyK0YPhsKf95Rv3W3LlCbOflV6b5OfUXVtutIobAZ7IAWoJtH3NDTSPhphcYd KHaZjVABP6wWeaxF7QJ+DYc/yaiVr2VCRjmNCaN5ozZu5krTycN3Ij5ZFhy52YTi9cLU JfvcnUORmJ5kZFo4i4xSJR2hUR+HtvOotJYiBOCrOTp6STCotno4O3Zcw04UcPJuEC3v /mcg== 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=czADCPpBouBr4RlUcd9U0vudTJQdLc/9VjUgpg9TOCI=; b=DOef6VvFeFtd8Y6SV0RSTon49HTnfrfsaDkEND4pXfjFcIcJ+Mr2Wgo8CpWsKtwlDi /uvHyLXMlby8udxGyEyewlFdXwLJsP+23DGk9uu4vsUO6Zn4vQa2u4cFHpyEgBBeMmXb TxgyL5f/C1CmfbvBvqAb7G3mR2K7ivFE/Ob04sTs2cnx8JlwP93rmIAjKgme/PYONAGZ ce3HrMRS2GhXfJu6jMg0nAN2c8a+EEzCsYix7+FjR67/FR1nJtk53gOcxBmTBy0pmEWv JoNdx6W7Rix522o3FAxURAnCX1D7AZDR43fW4aEFulubC8f7Q49RyW2Lxr1qXADE2sAa 2sqg== X-Gm-Message-State: APjAAAVXMqNQBVSXNpxon2/3rhQA8FPY8o9gtQMcOETctrs6K1rLAhqZ 7uc7QckU2ygpxM+SU4TVxL5r9+La+t8= X-Received: by 2002:a1c:7a10:: with SMTP id v16mr1629906wmc.2.1567668632226; Thu, 05 Sep 2019 00:30:32 -0700 (PDT) Received: from [192.168.1.6] (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id h2sm1914031wrb.31.2019.09.05.00.30.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Sep 2019 00:30:31 -0700 (PDT) Subject: Re: [PATCH 1/6] dt-bindings: mailbox: qcom: Add clock-name optional property To: bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org, mark.rutland@arm.com Cc: niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190826164807.7028-1-jorge.ramirez-ortiz@linaro.org> From: Jorge Ramirez Message-ID: Date: Thu, 5 Sep 2019 09:30:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190826164807.7028-1-jorge.ramirez-ortiz@linaro.org> Content-Type: text/plain; charset=utf-8 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 8/26/19 18:48, 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>; > + }; > just a quick follow up, is this series being picked-up?