* [PATCH 1/2] dt-bindings: usb: mt6360-tcpc: Rename IRQ to PD-IRQB
@ 2024-01-12 9:45 AngeloGioacchino Del Regno
2024-01-12 9:45 ` [PATCH 2/2] usb: typec: tcpci_mt6360: Rename interrupt PD_IRQB " AngeloGioacchino Del Regno
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-01-12 9:45 UTC (permalink / raw)
To: chunfeng.yun
Cc: gregkh, robh+dt, krzysztof.kozlowski+dt, conor+dt, matthias.bgg,
angelogioacchino.delregno, linux, heikki.krogerus, cy_huang,
linux-usb, linux-arm-kernel, linux-mediatek, devicetree,
linux-kernel, kernel
Since there is no user yet, rename the only interrupt of this device
to "PD-IRQB", avoiding underscores.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
.../devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml b/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml
index 053264e60583..0bea23ce2f09 100644
--- a/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml
+++ b/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml
@@ -24,7 +24,7 @@ properties:
interrupt-names:
items:
- - const: PD_IRQB
+ - const: PD-IRQB
connector:
type: object
@@ -58,7 +58,7 @@ examples:
tcpc {
compatible = "mediatek,mt6360-tcpc";
interrupts-extended = <&gpio26 3 IRQ_TYPE_LEVEL_LOW>;
- interrupt-names = "PD_IRQB";
+ interrupt-names = "PD-IRQB";
connector {
compatible = "usb-c-connector";
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] usb: typec: tcpci_mt6360: Rename interrupt PD_IRQB to PD-IRQB
2024-01-12 9:45 [PATCH 1/2] dt-bindings: usb: mt6360-tcpc: Rename IRQ to PD-IRQB AngeloGioacchino Del Regno
@ 2024-01-12 9:45 ` AngeloGioacchino Del Regno
2024-01-12 11:15 ` [PATCH 1/2] dt-bindings: usb: mt6360-tcpc: Rename IRQ " Rob Herring
2024-01-12 14:20 ` Rob Herring
2 siblings, 0 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-01-12 9:45 UTC (permalink / raw)
To: chunfeng.yun
Cc: gregkh, robh+dt, krzysztof.kozlowski+dt, conor+dt, matthias.bgg,
angelogioacchino.delregno, linux, heikki.krogerus, cy_huang,
linux-usb, linux-arm-kernel, linux-mediatek, devicetree,
linux-kernel, kernel
For the sake of avoiding underscores in devicetrees, rename PD_IRQB
to PD-IRQB.
Since at the moment there is no user of this driver (yet!), it is not
necessary to retain backwards compatibility.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
drivers/usb/typec/tcpm/tcpci_mt6360.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/typec/tcpm/tcpci_mt6360.c b/drivers/usb/typec/tcpm/tcpci_mt6360.c
index 02b7fd302265..745463283323 100644
--- a/drivers/usb/typec/tcpm/tcpci_mt6360.c
+++ b/drivers/usb/typec/tcpm/tcpci_mt6360.c
@@ -153,7 +153,7 @@ static int mt6360_tcpc_probe(struct platform_device *pdev)
return -ENODEV;
}
- mti->irq = platform_get_irq_byname(pdev, "PD_IRQB");
+ mti->irq = platform_get_irq_byname(pdev, "PD-IRQB");
if (mti->irq < 0)
return mti->irq;
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: usb: mt6360-tcpc: Rename IRQ to PD-IRQB
2024-01-12 9:45 [PATCH 1/2] dt-bindings: usb: mt6360-tcpc: Rename IRQ to PD-IRQB AngeloGioacchino Del Regno
2024-01-12 9:45 ` [PATCH 2/2] usb: typec: tcpci_mt6360: Rename interrupt PD_IRQB " AngeloGioacchino Del Regno
@ 2024-01-12 11:15 ` Rob Herring
2024-01-12 14:20 ` Rob Herring
2 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2024-01-12 11:15 UTC (permalink / raw)
To: AngeloGioacchino Del Regno
Cc: linux-mediatek, linux, linux-arm-kernel, conor+dt, kernel,
matthias.bgg, gregkh, heikki.krogerus, robh+dt, cy_huang,
linux-usb, linux-kernel, krzysztof.kozlowski+dt, chunfeng.yun,
devicetree
On Fri, 12 Jan 2024 10:45:37 +0100, AngeloGioacchino Del Regno wrote:
> Since there is no user yet, rename the only interrupt of this device
> to "PD-IRQB", avoiding underscores.
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
> .../devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/mfd/mediatek,mt6360.example.dtb: pmic@34: tcpc:interrupt-names:0: 'PD-IRQB' was expected
from schema $id: http://devicetree.org/schemas/mfd/mediatek,mt6360.yaml#
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/mfd/mediatek,mt6360.example.dtb: tcpc: interrupt-names:0: 'PD-IRQB' was expected
from schema $id: http://devicetree.org/schemas/usb/mediatek,mt6360-tcpc.yaml#
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20240112094538.65639-1-angelogioacchino.delregno@collabora.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: usb: mt6360-tcpc: Rename IRQ to PD-IRQB
2024-01-12 9:45 [PATCH 1/2] dt-bindings: usb: mt6360-tcpc: Rename IRQ to PD-IRQB AngeloGioacchino Del Regno
2024-01-12 9:45 ` [PATCH 2/2] usb: typec: tcpci_mt6360: Rename interrupt PD_IRQB " AngeloGioacchino Del Regno
2024-01-12 11:15 ` [PATCH 1/2] dt-bindings: usb: mt6360-tcpc: Rename IRQ " Rob Herring
@ 2024-01-12 14:20 ` Rob Herring
2024-01-19 9:13 ` AngeloGioacchino Del Regno
2 siblings, 1 reply; 5+ messages in thread
From: Rob Herring @ 2024-01-12 14:20 UTC (permalink / raw)
To: AngeloGioacchino Del Regno
Cc: chunfeng.yun, gregkh, krzysztof.kozlowski+dt, conor+dt,
matthias.bgg, linux, heikki.krogerus, cy_huang, linux-usb,
linux-arm-kernel, linux-mediatek, devicetree, linux-kernel,
kernel
On Fri, Jan 12, 2024 at 10:45:37AM +0100, AngeloGioacchino Del Regno wrote:
> Since there is no user yet, rename the only interrupt of this device
> to "PD-IRQB", avoiding underscores.
It is primarily node and property names that have this recommendation,
not so much -names values.
If there is only 1 interrupt, I'd just drop the name.
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
> .../devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml b/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml
> index 053264e60583..0bea23ce2f09 100644
> --- a/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml
> +++ b/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml
> @@ -24,7 +24,7 @@ properties:
>
> interrupt-names:
> items:
> - - const: PD_IRQB
> + - const: PD-IRQB
>
> connector:
> type: object
> @@ -58,7 +58,7 @@ examples:
> tcpc {
> compatible = "mediatek,mt6360-tcpc";
> interrupts-extended = <&gpio26 3 IRQ_TYPE_LEVEL_LOW>;
> - interrupt-names = "PD_IRQB";
> + interrupt-names = "PD-IRQB";
>
> connector {
> compatible = "usb-c-connector";
> --
> 2.43.0
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: usb: mt6360-tcpc: Rename IRQ to PD-IRQB
2024-01-12 14:20 ` Rob Herring
@ 2024-01-19 9:13 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-01-19 9:13 UTC (permalink / raw)
To: Rob Herring
Cc: chunfeng.yun, gregkh, krzysztof.kozlowski+dt, conor+dt,
matthias.bgg, linux, heikki.krogerus, cy_huang, linux-usb,
linux-arm-kernel, linux-mediatek, devicetree, linux-kernel,
kernel
Il 12/01/24 15:20, Rob Herring ha scritto:
> On Fri, Jan 12, 2024 at 10:45:37AM +0100, AngeloGioacchino Del Regno wrote:
>> Since there is no user yet, rename the only interrupt of this device
>> to "PD-IRQB", avoiding underscores.
>
> It is primarily node and property names that have this recommendation,
> not so much -names values.
>
> If there is only 1 interrupt, I'd just drop the name.
>
Yeah, you're totally right. I'll just drop it.
Thanks!
Angelo
>> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
>> ---
>> .../devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml b/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml
>> index 053264e60583..0bea23ce2f09 100644
>> --- a/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml
>> +++ b/Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml
>> @@ -24,7 +24,7 @@ properties:
>>
>> interrupt-names:
>> items:
>> - - const: PD_IRQB
>> + - const: PD-IRQB
>>
>> connector:
>> type: object
>> @@ -58,7 +58,7 @@ examples:
>> tcpc {
>> compatible = "mediatek,mt6360-tcpc";
>> interrupts-extended = <&gpio26 3 IRQ_TYPE_LEVEL_LOW>;
>> - interrupt-names = "PD_IRQB";
>> + interrupt-names = "PD-IRQB";
>>
>> connector {
>> compatible = "usb-c-connector";
>> --
>> 2.43.0
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-01-19 9:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-12 9:45 [PATCH 1/2] dt-bindings: usb: mt6360-tcpc: Rename IRQ to PD-IRQB AngeloGioacchino Del Regno
2024-01-12 9:45 ` [PATCH 2/2] usb: typec: tcpci_mt6360: Rename interrupt PD_IRQB " AngeloGioacchino Del Regno
2024-01-12 11:15 ` [PATCH 1/2] dt-bindings: usb: mt6360-tcpc: Rename IRQ " Rob Herring
2024-01-12 14:20 ` Rob Herring
2024-01-19 9:13 ` AngeloGioacchino Del Regno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).