public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Gary Yang <gary.yang@cixtech.com>
Cc: "robh@kernel.org" <robh@kernel.org>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"p.zabel@pengutronix.de" <p.zabel@pengutronix.de>,
	Peter Chen <peter.chen@cixtech.com>,
	"unicorn_wang@outlook.com" <unicorn_wang@outlook.com>,
	"inochiama@gmail.com" <inochiama@gmail.com>,
	"alchark@gmail.com" <alchark@gmail.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	cix-kernel-upstream <cix-kernel-upstream@cixtech.com>
Subject: Re: 回复: [PATCH v7 1/3] dt-bindings: soc: cix: document the simple-mfd syscon on Sky1 SoC
Date: Thu, 5 Feb 2026 19:59:02 +0100	[thread overview]
Message-ID: <f8ac62ad-5b04-4148-aee6-cd401a2143cd@kernel.org> (raw)
In-Reply-To: <TYUPR06MB587652FD43724BE26B15975DEF99A@TYUPR06MB5876.apcprd06.prod.outlook.com>

On 05/02/2026 11:39, Gary Yang wrote:
> Hi Krzysztof:
> 
> I'm glad to see your comments
> 
>> EXTERNAL EMAIL
>>
>> On Wed, Feb 04, 2026 at 10:06:42AM +0800, Gary Yang wrote:
>>> There are two system control on Cix sky1 Soc. One is located in S0
>>> domain, and the other is located in S0 and S5 domain. The system
>>> control contains resets, usb typeC and more. At this point, only the
>>> reset controller child is described as usb typeC uses it by phandle.
>>>
>>> Signed-off-by: Gary Yang <gary.yang@cixtech.com>
>>> ---
>>>  .../soc/cix/cix,sky1-system-control.yaml      |  49 ++++++
>>>  include/dt-bindings/reset/cix,sky1-rst-fch.h  |  42 +++++
>>>  include/dt-bindings/reset/cix,sky1-rst.h      | 164
>> ++++++++++++++++++
>>>  3 files changed, 255 insertions(+)
>>>  create mode 100644
>>> Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.yaml
>>>  create mode 100644 include/dt-bindings/reset/cix,sky1-rst-fch.h
>>>  create mode 100644 include/dt-bindings/reset/cix,sky1-rst.h
>>>
>>> diff --git
>>> a/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.ya
>>> ml
>>> b/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-control.ya
>>> ml
>>> new file mode 100644
>>> index 000000000000..5fb6b97c3c00
>>> --- /dev/null
>>> +++ b/Documentation/devicetree/bindings/soc/cix/cix,sky1-system-contro
>>> +++ l.yaml
>>> @@ -0,0 +1,49 @@
>>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause %YAML 1.2
>>> +---
>>> +$id:
>>> +http://devicetree.org/schemas/soc/cix/cix,sky1-system-control.yaml#
>>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>>> +
>>> +title: Cix Sky1 SoC system control register region
>>> +
>>> +maintainers:
>>> +  - Gary Yang <gary.yang@cixtech.com>
>>> +
>>> +description:
>>> +  An wide assortment of registers of the system controller on Sky1
>>> +SoC,
>>> +  including resets, usb, wakeup sources and so on.
>>> +
>>> +properties:
>>> +  compatible:
>>> +    items:
>>> +      - enum:
>>> +          - cix,sky1-system-control
>>> +          - cix,sky1-s5-system-control
>>> +      - const: syscon
>>> +      - const: simple-mfd
>>
>> Drop simple-mfd, no children
>>
> 
> Yes, just now there is no child nodes. We want to reserve it for further.
> If you feel confuse, we can also delete this strings.

Sorry, you cannot reserve it. Bindings should be complete (see writing
bindings), so you should post a COMPLETE binding for this device now.

Adding ABI for "reserved case" is poor idea, because you will have to
support it forever.


> 
>>> +
>>> +  reg:
>>> +    maxItems: 1
>>> +
>>> +  '#address-cells':
>>
>> Drop, no children
> 
> The same as above
> 
>>
>>> +    const: 1
>>> +
>>> +  '#size-cells':
>>
>> Drop
>>
> 
> same
> 
>> Do you see any recent simple-mfd binding written like this? There are no. Did
>> you read any of other bindings before sending this? Or at least my slides or
>> amny other resources from vast documentation from elinux.org?
>>
> 
> This yaml comes from microchip,mpfs-mss-top-sysreg.yaml as conor's suggestions on V3.
> More info: https://patchwork.kernel.org/project/linux-arm-kernel/patch/20251124063235.952136-2-gary.yang@cixtech.com/

Please point to a specific message, not entire thread of 8 untrimmed
replies.

> If you have the different views, please give more information. Thanks

These are simply wrong in this context.

If you claim you might need it, it means you actually need to finish the
binding with missing pieces. Look, do you write such Cc code:

int some_probe() {
	...

	if (0) {
		/* Code reserved for future */
	}

	return 0;
}

No. Creating unused code means more maintenance, wasted review, wasted
cycles of preprocessor or compiler. We NEVER write such code.


> 
> If miss any information, please remind me.

Yeah, please post COMPLETE bindings for this device.


Best regards,
Krzysztof


  reply	other threads:[~2026-02-05 18:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-04  2:06 [PATCH v7 0/3] Add support for Cix Sky1 resets Gary Yang
2026-02-04  2:06 ` [PATCH v7 1/3] dt-bindings: soc: cix: document the simple-mfd syscon on Sky1 SoC Gary Yang
2026-02-05  9:13   ` Krzysztof Kozlowski
2026-02-05 10:39     ` 回复: " Gary Yang
2026-02-05 18:59       ` Krzysztof Kozlowski [this message]
2026-02-06  5:42         ` 回复: " Gary Yang
2026-02-06  7:06           ` Krzysztof Kozlowski
2026-02-09  2:38             ` 回复: " Gary Yang
2026-02-04  2:06 ` [PATCH v7 2/3] reset: add Sky1 soc reset support Gary Yang
2026-02-04  2:06 ` [PATCH v7 3/3] arm64: dts: cix: add support for cix sky1 resets Gary Yang
2026-02-05 19:04   ` Krzysztof Kozlowski
2026-02-06  2:32     ` 回复: " Gary Yang

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=f8ac62ad-5b04-4148-aee6-cd401a2143cd@kernel.org \
    --to=krzk@kernel.org \
    --cc=alchark@gmail.com \
    --cc=cix-kernel-upstream@cixtech.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gary.yang@cixtech.com \
    --cc=inochiama@gmail.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=peter.chen@cixtech.com \
    --cc=robh@kernel.org \
    --cc=unicorn_wang@outlook.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