From: swarren@wwwdotorg.org (Stephen Warren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 1/7] dt/bindings: Add binding for the Raspberry Pi clock provider
Date: Mon, 27 Jul 2015 20:53:56 -0600 [thread overview]
Message-ID: <55B6EEC4.40504@wwwdotorg.org> (raw)
In-Reply-To: <20150724153008.GT3436@x1>
On 07/24/2015 09:30 AM, Lee Jones wrote:
> On Tue, 07 Jul 2015, Eric Anholt wrote:
>
>> Lee Jones <lee@kernel.org> writes:
>>
>>> If I were the Clock Maintainer, I would have probably missed this
>>> patch. You _must_ intimate which subsystem you are submitting to.
>>>
>>>> The hardware clocks are not controllable by the ARM, so we have to
>>>> make requests to the firmware to do so from the VPU side. This will
>>>> let us replace fixed clocks in our DT with actual clock control (and
>>>> correct frequency information).
>>>>
>>>> v2: Include the dt-bindings header in this commit instead of the next
>>>> one. Make the clock indices match the firmware clock IDs. Rename
>>>> the binding's compat string. Move the firmware phandle to be
>>>> under a vendor-specific namespace.
>>>>
>>>> Signed-off-by: Eric Anholt <eric@anholt.net>
>>>> ---
>>>> .../clock/raspberrypi,bcm2835-firmware-clocks.txt | 25 ++++++++++++++++++++++
>>>> include/dt-bindings/clk/raspberrypi.h | 23 ++++++++++++++++++++
>>>> 2 files changed, 48 insertions(+)
>>>> create mode 100644 Documentation/devicetree/bindings/clock/raspberrypi,bcm2835-firmware-clocks.txt
>>>> create mode 100644 include/dt-bindings/clk/raspberrypi.h
>>>>
>>>> diff --git a/Documentation/devicetree/bindings/clock/raspberrypi,bcm2835-firmware-clocks.txt b/Documentation/devicetree/bindings/clock/raspberrypi,bcm2835-firmware-clocks.txt
>>>> new file mode 100644
>>>> index 0000000..0972602
>>>> --- /dev/null
>>>> +++ b/Documentation/devicetree/bindings/clock/raspberrypi,bcm2835-firmware-clocks.txt
>>>> @@ -0,0 +1,25 @@
>>>> +Raspberry Pi firmware clock provider.
>>>> +
>>>> +The Raspberry Pi architecture doesn't provide direct access to the
>>>> +CLOCKMAN peripheral from the ARM side, so Linux has to make requests
>>>> +to the VPU firmware to program them.
>>>> +
>>>> +This binding uses the common clock binding:
>>>> +Documentation/devicetree/bindings/clock/clock-bindings.txt
>>>> +
>>>> +Required properties:
>>>> +- compatible: Should be "raspberrypi,bcm2835-firmware-clocks"
>>>> +
>>>> +- #clock-cells: Shall have value <1>. The permitted clock-specifier
>>>> + values can be found in
>>>> + include/dt-bindings/clk/raspberrypi.h.
>>>> +
>>>> +- raspberrypi,firmware: Phandle to the firmware driver node.
>>>
>>> I think 'firmware' is a candidate for a generic phandle name.
>>
>> Stephen Warren asked in the last version that I change it from
>> "firmware" to "raspberrypi,firmware", which made sense to me since we're
>> not some core infrastructure using these references. Which should it
>> be?
>
> We tend to use vendor specific bindings when others are unlikely to
> make use of them. I would have thought that different vendors would
> also make use of a generic 'firmware' phandle. The final decision
> would probably be taken by the DT guys.
I wouldn't expect there to be a need for a common firmware API for
firmwares that don't implement some common standard (such as ACPI),
since the operations supported by the firmwares will be
firmware-specific, and hence not be amenable to generic clients (a
client of the raspberrypi,firmware object may "translate" it to standard
APIs such as clock, power domains, etc., while allowing other clients
access to all the custom features). As such, I expect using a generic
property name here isn't that useful.
prev parent reply other threads:[~2015-07-28 2:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-08 23:58 [PATCH v3 1/7] dt/bindings: Add binding for the Raspberry Pi clock provider Eric Anholt
2015-06-08 23:58 ` [PATCH v3 2/7] ARM: bcm2835: Add a Raspberry Pi-specific clock driver Eric Anholt
2015-06-09 1:56 ` Stephen Warren
2015-06-09 9:56 ` Lee Jones
2015-06-08 23:58 ` [PATCH v3 3/7] ARM: bcm2835: Add DT for the firmware clocks driver Eric Anholt
2015-06-08 23:58 ` [PATCH v3 4/7] ARM: bcm2835: Drop never-used clock-frequency property of uart0 Eric Anholt
2015-06-08 23:58 ` [PATCH v3 5/7] ARM: bcm2835: Drop the fixed sys_pclk Eric Anholt
2015-06-08 23:58 ` [PATCH v3 6/7] ARM: bcm2835: Use the RPi firmware clocks for uart Eric Anholt
2015-06-08 23:59 ` [PATCH v3 7/7] ARM: bcm2835: Tie SPI clock to the core clock rate Eric Anholt
2015-06-09 0:03 ` [PATCH v3 1/7] dt/bindings: Add binding for the Raspberry Pi clock provider Eric Anholt
2015-06-09 10:03 ` Lee Jones
2015-07-07 20:13 ` Eric Anholt
2015-07-24 15:30 ` Lee Jones
2015-07-28 2:53 ` Stephen Warren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55B6EEC4.40504@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).