* [PATCH] dt-bindings: usb: analogix,anx7411: drop redundant connector properties
@ 2024-02-22 8:28 Krzysztof Kozlowski
2024-02-22 16:08 ` Conor Dooley
2024-02-22 21:29 ` Pavel Machek
0 siblings, 2 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2024-02-22 8:28 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Xin Ji, linux-usb, devicetree, linux-kernel
Cc: Krzysztof Kozlowski, Pavel Machek
The binding references usb-connector.yaml schema, which lists all
allowed properties and ends with unevaluatedProperties:false, so we can
simplify analogix,anx7411 binding by dropping everything covered by
usb-connector.yaml.
Suggested-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../devicetree/bindings/usb/analogix,anx7411.yaml | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml
index e4d893369d57..3f5857aee3b0 100644
--- a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml
+++ b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml
@@ -23,24 +23,11 @@ properties:
connector:
type: object
$ref: ../connector/usb-connector.yaml
- unevaluatedProperties: false
-
- description:
- Properties for usb c connector.
properties:
compatible:
const: usb-c-connector
- power-role: true
-
- data-role: true
-
- try-power-role: true
-
- required:
- - compatible
-
required:
- compatible
- reg
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: usb: analogix,anx7411: drop redundant connector properties
2024-02-22 8:28 [PATCH] dt-bindings: usb: analogix,anx7411: drop redundant connector properties Krzysztof Kozlowski
@ 2024-02-22 16:08 ` Conor Dooley
2024-02-22 16:56 ` Krzysztof Kozlowski
2024-02-22 21:29 ` Pavel Machek
1 sibling, 1 reply; 5+ messages in thread
From: Conor Dooley @ 2024-02-22 16:08 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Xin Ji, linux-usb, devicetree, linux-kernel,
Pavel Machek
[-- Attachment #1: Type: text/plain, Size: 1481 bytes --]
On Thu, Feb 22, 2024 at 09:28:19AM +0100, Krzysztof Kozlowski wrote:
> The binding references usb-connector.yaml schema, which lists all
> allowed properties and ends with unevaluatedProperties:false, so we can
> simplify analogix,anx7411 binding by dropping everything covered by
> usb-connector.yaml.
>
> Suggested-by: Pavel Machek <pavel@ucw.cz>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> .../devicetree/bindings/usb/analogix,anx7411.yaml | 13 -------------
> 1 file changed, 13 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml
> index e4d893369d57..3f5857aee3b0 100644
> --- a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml
> +++ b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml
> @@ -23,24 +23,11 @@ properties:
> connector:
> type: object
> $ref: ../connector/usb-connector.yaml
> - unevaluatedProperties: false
The connector schema sets `additionalProperties: true`. Is removing this
correct?
> -
> - description:
> - Properties for usb c connector.
>
> properties:
> compatible:
> const: usb-c-connector
>
> - power-role: true
> -
> - data-role: true
> -
> - try-power-role: true
> -
> - required:
> - - compatible
> -
> required:
> - compatible
> - reg
> --
> 2.34.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: usb: analogix,anx7411: drop redundant connector properties
2024-02-22 16:08 ` Conor Dooley
@ 2024-02-22 16:56 ` Krzysztof Kozlowski
2024-02-22 17:30 ` Conor Dooley
0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2024-02-22 16:56 UTC (permalink / raw)
To: Conor Dooley
Cc: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Xin Ji, linux-usb, devicetree, linux-kernel,
Pavel Machek
On 22/02/2024 17:08, Conor Dooley wrote:
> On Thu, Feb 22, 2024 at 09:28:19AM +0100, Krzysztof Kozlowski wrote:
>> The binding references usb-connector.yaml schema, which lists all
>> allowed properties and ends with unevaluatedProperties:false, so we can
>> simplify analogix,anx7411 binding by dropping everything covered by
>> usb-connector.yaml.
>>
>> Suggested-by: Pavel Machek <pavel@ucw.cz>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> ---
>> .../devicetree/bindings/usb/analogix,anx7411.yaml | 13 -------------
>> 1 file changed, 13 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml
>> index e4d893369d57..3f5857aee3b0 100644
>> --- a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml
>> +++ b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml
>> @@ -23,24 +23,11 @@ properties:
>> connector:
>> type: object
>> $ref: ../connector/usb-connector.yaml
>> - unevaluatedProperties: false
>
> The connector schema sets `additionalProperties: true`. Is removing this
> correct?
>
I think you look at some old version:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/connector/usb-connector.yaml?h=v6.8-rc5#n327
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: usb: analogix,anx7411: drop redundant connector properties
2024-02-22 16:56 ` Krzysztof Kozlowski
@ 2024-02-22 17:30 ` Conor Dooley
0 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2024-02-22 17:30 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Xin Ji, linux-usb, devicetree, linux-kernel,
Pavel Machek
[-- Attachment #1: Type: text/plain, Size: 1751 bytes --]
On Thu, Feb 22, 2024 at 05:56:12PM +0100, Krzysztof Kozlowski wrote:
> On 22/02/2024 17:08, Conor Dooley wrote:
> > On Thu, Feb 22, 2024 at 09:28:19AM +0100, Krzysztof Kozlowski wrote:
> >> The binding references usb-connector.yaml schema, which lists all
> >> allowed properties and ends with unevaluatedProperties:false, so we can
> >> simplify analogix,anx7411 binding by dropping everything covered by
> >> usb-connector.yaml.
> >>
> >> Suggested-by: Pavel Machek <pavel@ucw.cz>
> >> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> >> ---
> >> .../devicetree/bindings/usb/analogix,anx7411.yaml | 13 -------------
> >> 1 file changed, 13 deletions(-)
> >>
> >> diff --git a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml
> >> index e4d893369d57..3f5857aee3b0 100644
> >> --- a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml
> >> +++ b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml
> >> @@ -23,24 +23,11 @@ properties:
> >> connector:
> >> type: object
> >> $ref: ../connector/usb-connector.yaml
> >> - unevaluatedProperties: false
> >
> > The connector schema sets `additionalProperties: true`. Is removing this
> > correct?
> >
>
> I think you look at some old version:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/connector/usb-connector.yaml?h=v6.8-rc5#n327
Huh, you are correct. I had a stable kernel checked out somehow in the
git worktree I apply dt patches to while reviewing them rather than
linux-next. Sorry about that..
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Cheers,
Conor.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: usb: analogix,anx7411: drop redundant connector properties
2024-02-22 8:28 [PATCH] dt-bindings: usb: analogix,anx7411: drop redundant connector properties Krzysztof Kozlowski
2024-02-22 16:08 ` Conor Dooley
@ 2024-02-22 21:29 ` Pavel Machek
1 sibling, 0 replies; 5+ messages in thread
From: Pavel Machek @ 2024-02-22 21:29 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Xin Ji, linux-usb, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 736 bytes --]
Hi!
> The binding references usb-connector.yaml schema, which lists all
> allowed properties and ends with unevaluatedProperties:false, so we can
> simplify analogix,anx7411 binding by dropping everything covered by
> usb-connector.yaml.
>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Thank you.
> +++ b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml
> @@ -23,24 +23,11 @@ properties:
> connector:
> type: object
> $ref: ../connector/usb-connector.yaml
You wanted me to use absolute path here -- $ref:
/schemas/connector/usb-connector.yaml -- so it may be worth fixing
here as well.
Best regards,
Pavel
--
People of Russia, stop Putin before his war on Ukraine escalates.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-02-22 21:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-22 8:28 [PATCH] dt-bindings: usb: analogix,anx7411: drop redundant connector properties Krzysztof Kozlowski
2024-02-22 16:08 ` Conor Dooley
2024-02-22 16:56 ` Krzysztof Kozlowski
2024-02-22 17:30 ` Conor Dooley
2024-02-22 21:29 ` Pavel Machek
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.