[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <zaqykppssizdpd2mynpoatp4smbzkr7atuurxkkegbegk5dw6s@a2daqovt2aod>
Date: Fri, 25 Oct 2024 18:22:28 +0000
From: Karan Sanghavi <karansanghvi98@...il.com>
To: Krzysztof Kozlowski <krzk@...nel.org>
Cc: Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Florian Fainelli <florian.fainelli@...adcom.com>,
Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>, Ray Jui <rjui@...adcom.com>,
Scott Branden <sbranden@...adcom.com>, devicetree@...r.kernel.org, linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Shuah Khan <skhan@...uxfoundation.org>, Alexander Aring <alex.aring@...il.com>,
Eric Anholt <eric@...olt.net>
Subject: Re: [PATCH v2] dt-bindings: soc: bcm: Convert
raspberrypi,bcm2835-power to Dt schema
On Wed, Oct 23, 2024 at 09:12:53AM +0200, Krzysztof Kozlowski wrote:
> On Tue, Oct 22, 2024 at 06:17:03PM +0000, Karan Sanghavi wrote:
> > Convert the raspberrypi,bcm2835-power binding to Dt schema
> >
> > Signed-off-by: Karan Sanghavi <karansanghvi98@...il.com>
> > ---
> > Changes in v2:
> > - Added original file maintainers
> > - Removed unnecessary headers from example and formating from description
> > - Link to v1: https://lore.kernel.org/r/20241019-raspberrypi-bcm2835-power-v1-1-75e924dc3745@gmail.com
> > ---
>
> > @@ -0,0 +1,42 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/soc/bcm/raspberrypi,bcm2835-power.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Broadcom BCM2835 power domain driver
>
> Drop "driver"
>
> > +
> > +maintainers:
> > + - Alexander Aring <alex.aring@...il.com>
> > + - Eric Anholt <eric@...olt.net>
> > +
> > +description:
> > + The Raspberry Pi power domain driver manages power for various subsystems
>
> Drop "driver"
>
> > + in the Raspberry Pi BCM2835 SoC.
> > +
> > +properties:
> > + compatible:
> > + enum:
> > + - raspberrypi,bcm2835-power
> > +
> > + firmware:
> > + $ref: /schemas/types.yaml#/definitions/phandle
>
> phandle to what? Missing description.
>
> > +
> > + '#power-domain-cells':
>
> Use consistent quotes, either ' or ".
>
> > + const: 1
> > +
> > +required:
> > + - compatible
> > + - firmware
> > + - "#power-domain-cells"
> > +
> > +unevaluatedProperties: false
> > +
> > +examples:
> > + - |
> > + power: power {
>
> Drop label. Node name: power-controller
>
> I don't think this passes tests because of this. See power-domain.yaml
> schema.
>
Below code is from bcm2711-rpi-4-b.dts decompiled from the dtb file.
firmware {
compatible = "raspberrypi,bcm2835-firmware\0simple-mfd";
mboxes = <0x1d>;
phandle = <0x1e>;
...
};
power {
compatible = "raspberrypi,bcm2835-power";
firmware = <0x1e>;
#power-domain-cells = <0x01>;
phandle = <0x0b>;
};
I had a doubt that as above the raspberrypi,bcm2835-power compatible node
is defined with power keyword, so should I still rename the node as
power-controll or keep it has power?
Also it does passes the dt_binding_check and CHECK_DTBS=y broadcom/bcm2711-rpi-4-b.dtb
but does gives the message as
soc: power: 'ranges' is a required property
so do I need to add the range property here?
> Best regards,
> Krzysztof
>
Powered by blists - more mailing lists