From: Krzysztof Kozlowski <krzk@kernel.org>
To: Wilson Ding <dingwei@marvell.com>, Rob Herring <robh@kernel.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"andrew@lunn.ch" <andrew@lunn.ch>,
"gregory.clement@bootlin.com" <gregory.clement@bootlin.com>,
"sebastian.hesselbarth@gmail.com"
<sebastian.hesselbarth@gmail.com>,
"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
"conor+dt@kernel.org" <conor+dt@kernel.org>,
"p.zabel@pengutronix.de" <p.zabel@pengutronix.de>,
Sanghoon Lee <salee@marvell.com>,
Geethasowjanya Akula <gakula@marvell.com>
Subject: Re: [PATCH v2 1/4] dt-bindings: reset: Add Armada8K reset controller
Date: Sun, 23 Feb 2025 09:48:31 +0100 [thread overview]
Message-ID: <a8ad3469-f170-4af0-abaf-d34c60e4df52@kernel.org> (raw)
In-Reply-To: <BY3PR18MB4673F55565B70458E1F3F9A6A7C62@BY3PR18MB4673.namprd18.prod.outlook.com>
On 22/02/2025 21:57, Wilson Ding wrote:
>>>> + offset:
>>>> + $ref: /schemas/types.yaml#/definitions/uint32
>>>> + description: Offset in the register map for the gpio registers
>>>> + (in bytes)
>>>
>>> That's neither correct nor needed. Your device knows ofsset based on
>>> the compatible.
>>
>> Or use 'reg'.
>>
>> But really, just add #reset-cells to the parent node. There's no need for a child
>> node here. The parent needs a specific compatible though.
>>
>
> I am not inventing the 'offset' property. I just tried to follow the other existing
> sub-nodes under the same parent node (system-controller). The mvebu-gpio
> driver also uses 'offset' instead of 'reg' for the syscon device (see below). But it
You never answered why do you need offset and why it cannot work without.
> seems also not correct from your point of view. Now, I am a bit confused what
> should be the right scheme for the Armada's system-controller, including GPIO
> and Reset controller. And dt_binding_check complains "system-controller@
> 440000: compatible: ['syscon', 'simple-mfd'] is too short". Can you point me
> any reference for me to fix these issues.
See all other syscon devices. 'git grep simple-mfd' or for syscon
>
> CP110_LABEL(syscon0): system-controller@440000 {
> compatible = "syscon", "simple-mfd";
> reg = <0x440000 0x1000>;
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-02-23 8:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-20 23:25 [PATCH v2 0/4] Add Armada8K reset controller support Wilson Ding
2025-02-20 23:25 ` [PATCH v2 1/4] dt-bindings: reset: Add Armada8K reset controller Wilson Ding
2025-02-21 3:11 ` Rob Herring (Arm)
2025-02-21 8:46 ` Krzysztof Kozlowski
2025-02-21 23:40 ` Rob Herring
2025-02-22 20:57 ` Wilson Ding
2025-02-23 8:48 ` Krzysztof Kozlowski [this message]
2025-02-24 18:19 ` Wilson Ding
2025-02-20 23:25 ` [PATCH v2 2/4] dt-bindings: cp110: Document the " Wilson Ding
2025-02-21 8:46 ` Krzysztof Kozlowski
2025-02-22 21:02 ` [EXTERNAL] " Wilson Ding
2025-02-23 8:46 ` Krzysztof Kozlowski
2025-02-20 23:25 ` [PATCH v2 3/4] reset: Add support for Armada8K " Wilson Ding
2025-02-20 23:25 ` [PATCH v2 4/4] arm64: dts: marvell: cp11x: Add reset controller node Wilson Ding
2025-02-21 8:47 ` Krzysztof Kozlowski
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=a8ad3469-f170-4af0-abaf-d34c60e4df52@kernel.org \
--to=krzk@kernel.org \
--cc=andrew@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dingwei@marvell.com \
--cc=gakula@marvell.com \
--cc=gregory.clement@bootlin.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=salee@marvell.com \
--cc=sebastian.hesselbarth@gmail.com \
/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
all inboxes | Powered by JetHome®