All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Piotr Kubik <piotr.kubik@adtran.com>,
	Oleksij Rempel <o.rempel@pengutronix.de>,
	Kory Maincent <kory.maincent@bootlin.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [EXTERNAL]Re: [PATCH net-next 1/2] dt-bindings: net: pse-pd: Add bindings for Si3474 PSE controller
Date: Fri, 16 May 2025 15:37:50 +0200	[thread overview]
Message-ID: <b3db09da-72f0-465f-b177-ff14fd53608b@kernel.org> (raw)
In-Reply-To: <dccd0e78-81c6-422c-9f8e-11d3e5d55715@adtran.com>

On 15/05/2025 17:20, Piotr Kubik wrote:
> On 5/13/25 10:24, Krzysztof Kozlowski wrote:
>> On 13/05/2025 00:05, Piotr Kubik wrote:
>>> +
>>> +maintainers:
>>> +  - Piotr Kubik <piotr.kubik@adtran.com>
>>> +
>>> +allOf:
>>> +  - $ref: pse-controller.yaml#
>>> +
>>> +properties:
>>> +  compatible:
>>> +    enum:
>>> +      - skyworks,si3474
>>> +
>>> +  reg-names:
>>> +    items:
>>> +      - const: main
>>> +      - const: slave
>>
>> s/slave/secondary/ (or whatever is there in recommended names in coding
>> style)
>>
> 
> Well I was thinking about it and decided to use 'slave' for at least two reasons:
> - si3474 datasheet calls the second part of IC (we configure it here) this way


This could be a reason, but specs are changing over time (see I2C, I3C)
to include different namings. If this annoys certain government sending
their executive directives, then even better.


> - description of i2c_new_ancillary_device() calls this device explicitly slave multiple times

Old driver code should not be an argument. If code changes, which it can
anytime, are you going to change binding? No, because such change in the
binding would not be allowed.

> 
>>> +
>>> +  reg:
>>
>> First reg, then reg-names. Please follow other bindings/examples.
>>
>>> +    maxItems: 2
>>> +
>>> +  channels:
>>> +    description: The Si3474 is a single-chip PoE PSE controller managing
>>> +      8 physical power delivery channels. Internally, it's structured
>>> +      into two logical "Quads".
>>> +      Quad 0 Manages physical channels ('ports' in datasheet) 0, 1, 2, 3
>>> +      Quad 1 Manages physical channels ('ports' in datasheet) 4, 5, 6, 7.
>>> +      This parameter describes the relationship between the logical and
>>> +      the physical power channels.
>>
>> How exactly this maps here logical and physical channels? You just
>> listed channels one after another...
> 
> yes, here in this example it is 1 to 1 simple mapping, but in a real world,
> depending on hw connections, there is a possibility that 
> e.g. "pse_pi0" will use "<&phys0_4>, <&phys0_5>" pairset for lan port 3.
> 

Ack, I see that's actually common for pse-pd. It's fine.


Best regards,
Krzysztof

  reply	other threads:[~2025-05-16 13:37 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-12 22:02 [PATCH net-next 0/2] Add Si3474 PSE controller driver Piotr Kubik
2025-05-12 22:05 ` [PATCH net-next 1/2] dt-bindings: net: pse-pd: Add bindings for Si3474 PSE controller Piotr Kubik
2025-05-13  8:24   ` Krzysztof Kozlowski
2025-05-15 15:20     ` [EXTERNAL]Re: " Piotr Kubik
2025-05-16 13:37       ` Krzysztof Kozlowski [this message]
2025-05-16 14:09         ` Piotr Kubik
2025-05-16 22:35       ` [EXTERNAL]Re: " Kory Maincent
2025-05-17  9:44         ` Piotr Kubik
2025-05-12 22:06 ` [PATCH net-next 2/2] net: pse-pd: Add Si3474 PSE controller driver Piotr Kubik
2025-05-13  8:08   ` Krzysztof Kozlowski
2025-05-15 15:20     ` [EXTERNAL]Re: " Piotr Kubik
2025-05-15 15:32       ` Krzysztof Kozlowski
2025-05-15 15:35         ` Krzysztof Kozlowski
2025-05-15 15:40       ` Krzysztof Kozlowski
2025-05-15 15:58         ` Piotr Kubik
2025-05-16 13:30           ` Krzysztof Kozlowski
2025-05-13 11:48 ` [PATCH net-next 0/2] " Kory Maincent

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=b3db09da-72f0-465f-b177-ff14fd53608b@kernel.org \
    --to=krzk@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=kory.maincent@bootlin.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=o.rempel@pengutronix.de \
    --cc=pabeni@redhat.com \
    --cc=piotr.kubik@adtran.com \
    --cc=robh@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.