* [PATCH v3 0/2] Add RZ/G2L POEG support
@ 2022-11-04 15:19 Biju Das
2022-11-04 15:19 ` [PATCH v3 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG binding Biju Das
0 siblings, 1 reply; 7+ messages in thread
From: Biju Das @ 2022-11-04 15:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski
Cc: Biju Das, Geert Uytterhoeven, Thierry Reding,
Uwe Kleine-König, linux-pwm, linux-renesas-soc, linux-gpio,
devicetree, Chris Paterson, Prabhakar Mahadev Lad
The output pins of the general PWM timer (GPT) can be disabled by using the port
output enabling function for the GPT (POEG). Specifically, either of the
following ways can be used.
* Input level detection of the GTETRGA to GTETRGD pins.
* Output-disable request from the GPT.
* Register setting(ie, by setting POEGGn.SSF to 1)
This patch series add support for controlling output disable function using sysfs.
For output disable operation, POEG group needs to be linked with GPT.
Plan to send a follow up patch with renesas,poeg-group as numeric
property in pwm bindings for linking both GPT and POEG devices.
v2->v3:
* Removed Rb tag from Rob as there are some changes introduced.
* Added companion property, so that poeg can link with gpt device
* Documented renesas,id, as identifier for POEGG{A,B,C,D}.
* Updated the binding example.
* Added sysfs documentation for output_disable
* PWM_RZG2L_GPT implies ARCH_RZG2L. So removed ARCH_RZG2L dependency
* Used dev_get_drvdata to get device data
* Replaced sprintf->sysfs_emit in show().
v1->v2:
* Updated binding description.
* Renamed the file poeg-rzg2l->rzg2l-poeg
* Removed the macro POEGG as there is only single register and
updated rzg2l_poeg_write() and rzg2l_poeg_read()
* Updated error handling in probe()
REF->v1:
* Modelled as pincontrol as most of its configuration is intended to be
static and moved driver files from soc to pincontrol directory.
* Updated reg size in dt binding example.
* Updated Kconfig
REF:
https://lore.kernel.org/linux-renesas-soc/20220510151112.16249-1-biju.das.jz@bp.renesas.com/
Biju Das (2):
dt-bindings: pinctrl: renesas: Add RZ/G2L POEG binding
drivers: pinctrl: renesas: Add RZ/G2L POEG driver support
.../ABI/testing/sysfs-platform-rzg2l-poeg | 18 ++
.../bindings/pinctrl/renesas,rzg2l-poeg.yaml | 86 ++++++++++
drivers/pinctrl/renesas/Kconfig | 2 +
drivers/pinctrl/renesas/Makefile | 2 +
drivers/pinctrl/renesas/poeg/Kconfig | 11 ++
drivers/pinctrl/renesas/poeg/Makefile | 2 +
drivers/pinctrl/renesas/poeg/rzg2l-poeg.c | 157 ++++++++++++++++++
7 files changed, 278 insertions(+)
create mode 100644 Documentation/ABI/testing/sysfs-platform-rzg2l-poeg
create mode 100644 Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
create mode 100644 drivers/pinctrl/renesas/poeg/Kconfig
create mode 100644 drivers/pinctrl/renesas/poeg/Makefile
create mode 100644 drivers/pinctrl/renesas/poeg/rzg2l-poeg.c
--
2.25.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v3 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG binding
2022-11-04 15:19 [PATCH v3 0/2] Add RZ/G2L POEG support Biju Das
@ 2022-11-04 15:19 ` Biju Das
2022-11-07 20:56 ` Rob Herring
2022-11-07 20:57 ` Rob Herring
0 siblings, 2 replies; 7+ messages in thread
From: Biju Das @ 2022-11-04 15:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski
Cc: Biju Das, Geert Uytterhoeven, Thierry Reding,
Uwe Kleine-König, linux-pwm, linux-renesas-soc, linux-gpio,
devicetree, Chris Paterson, Prabhakar Mahadev Lad
Add device tree bindings for the RZ/G2L Port Output Enable for GPT (POEG).
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
v2->v3:
* Removed Rb tag from Rob as there are some changes introduced.
* Added companion property, so that poeg can link with gpt device
* Documented renesas,id, as identifier for POEGG{A,B,C,D}.
* Updated the example.
v1->v2:
* Updated the description.
REF->v1:
* Modelled as pincontrol as most of its configuration is intended to be
static.
* Updated reg size in example.
---
.../bindings/pinctrl/renesas,rzg2l-poeg.yaml | 86 +++++++++++++++++++
1 file changed, 86 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
new file mode 100644
index 000000000000..8adf01682de5
--- /dev/null
+++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
@@ -0,0 +1,86 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pinctrl/renesas,rzg2l-poeg.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Renesas RZ/G2L Port Output Enable for GPT (POEG)
+
+maintainers:
+ - Biju Das <biju.das.jz@bp.renesas.com>
+
+description: |
+ The output pins(GTIOCxA and GTIOCxB) of the general PWM timer (GPT) can be
+ disabled by using the port output enabling function for the GPT (POEG).
+ Specifically, either of the following ways can be used.
+ * Input level detection of the GTETRGA to GTETRGD pins.
+ * Output-disable request from the GPT.
+ * SSF bit setting(ie, by setting POEGGn.SSF to 1)
+
+ The state of the GTIOCxA and the GTIOCxB pins when the output is disabled,
+ are controlled by the GPT module.
+
+properties:
+ compatible:
+ items:
+ - enum:
+ - renesas,r9a07g044-poeg # RZ/G2{L,LC}
+ - renesas,r9a07g054-poeg # RZ/V2L
+ - const: renesas,rzg2l-poeg
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+ power-domains:
+ maxItems: 1
+
+ resets:
+ maxItems: 1
+
+ companion:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description: phandle of a companion.
+
+ renesas,id:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum: [ 0, 1, 2, 3 ]
+ description: |
+ POEG group index. Valid values are:
+ <0> : POEG group A (default)
+ <1> : POEG group B
+ <2> : POEG group C
+ <3> : POEG group D
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+ - power-domains
+ - resets
+ - renesas,id
+ - companion
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/r9a07g044-cpg.h>
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+ poeggd: poeg@10049400 {
+ compatible = "renesas,r9a07g044-poeg", "renesas,rzg2l-poeg";
+ reg = <0x10049400 0x400>;
+ interrupts = <GIC_SPI 325 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD R9A07G044_POEG_D_CLKP>;
+ power-domains = <&cpg>;
+ resets = <&cpg R9A07G044_POEG_D_RST>;
+ renesas,id = <3>;
+ companion = <&gpt>;
+ };
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG binding
2022-11-04 15:19 ` [PATCH v3 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG binding Biju Das
@ 2022-11-07 20:56 ` Rob Herring
2022-11-07 21:12 ` Biju Das
2022-11-07 20:57 ` Rob Herring
1 sibling, 1 reply; 7+ messages in thread
From: Rob Herring @ 2022-11-07 20:56 UTC (permalink / raw)
To: Biju Das
Cc: Linus Walleij, Krzysztof Kozlowski, Geert Uytterhoeven,
Thierry Reding, Uwe Kleine-König, linux-pwm,
linux-renesas-soc, linux-gpio, devicetree, Chris Paterson,
Prabhakar Mahadev Lad
On Fri, Nov 04, 2022 at 03:19:34PM +0000, Biju Das wrote:
> Add device tree bindings for the RZ/G2L Port Output Enable for GPT (POEG).
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> ---
> v2->v3:
> * Removed Rb tag from Rob as there are some changes introduced.
> * Added companion property, so that poeg can link with gpt device
> * Documented renesas,id, as identifier for POEGG{A,B,C,D}.
> * Updated the example.
> v1->v2:
> * Updated the description.
> REF->v1:
> * Modelled as pincontrol as most of its configuration is intended to be
> static.
> * Updated reg size in example.
> ---
> .../bindings/pinctrl/renesas,rzg2l-poeg.yaml | 86 +++++++++++++++++++
> 1 file changed, 86 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
>
> diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
> new file mode 100644
> index 000000000000..8adf01682de5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
> @@ -0,0 +1,86 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/pinctrl/renesas,rzg2l-poeg.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Renesas RZ/G2L Port Output Enable for GPT (POEG)
> +
> +maintainers:
> + - Biju Das <biju.das.jz@bp.renesas.com>
> +
> +description: |
> + The output pins(GTIOCxA and GTIOCxB) of the general PWM timer (GPT) can be
> + disabled by using the port output enabling function for the GPT (POEG).
> + Specifically, either of the following ways can be used.
> + * Input level detection of the GTETRGA to GTETRGD pins.
> + * Output-disable request from the GPT.
> + * SSF bit setting(ie, by setting POEGGn.SSF to 1)
> +
> + The state of the GTIOCxA and the GTIOCxB pins when the output is disabled,
> + are controlled by the GPT module.
> +
> +properties:
> + compatible:
> + items:
> + - enum:
> + - renesas,r9a07g044-poeg # RZ/G2{L,LC}
> + - renesas,r9a07g054-poeg # RZ/V2L
> + - const: renesas,rzg2l-poeg
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + power-domains:
> + maxItems: 1
> +
> + resets:
> + maxItems: 1
> +
> + companion:
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description: phandle of a companion.
> +
> + renesas,id:
Perhaps 'poeg' in the name.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [ 0, 1, 2, 3 ]
> + description: |
> + POEG group index. Valid values are:
> + <0> : POEG group A (default)
default: 0
Though a default for a required property doesn't make much sense...
> + <1> : POEG group B
> + <2> : POEG group C
> + <3> : POEG group D
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clocks
> + - power-domains
> + - resets
> + - renesas,id
> + - companion
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/r9a07g044-cpg.h>
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> + poeggd: poeg@10049400 {
> + compatible = "renesas,r9a07g044-poeg", "renesas,rzg2l-poeg";
> + reg = <0x10049400 0x400>;
> + interrupts = <GIC_SPI 325 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&cpg CPG_MOD R9A07G044_POEG_D_CLKP>;
> + power-domains = <&cpg>;
> + resets = <&cpg R9A07G044_POEG_D_RST>;
> + renesas,id = <3>;
> + companion = <&gpt>;
> + };
> --
> 2.25.1
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG binding
2022-11-04 15:19 ` [PATCH v3 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG binding Biju Das
2022-11-07 20:56 ` Rob Herring
@ 2022-11-07 20:57 ` Rob Herring
2022-11-07 21:14 ` Biju Das
1 sibling, 1 reply; 7+ messages in thread
From: Rob Herring @ 2022-11-07 20:57 UTC (permalink / raw)
To: Biju Das
Cc: Linus Walleij, Krzysztof Kozlowski, Geert Uytterhoeven,
Thierry Reding, Uwe Kleine-König, linux-pwm,
linux-renesas-soc, linux-gpio, devicetree, Chris Paterson,
Prabhakar Mahadev Lad
On Fri, Nov 04, 2022 at 03:19:34PM +0000, Biju Das wrote:
> Add device tree bindings for the RZ/G2L Port Output Enable for GPT (POEG).
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> ---
> v2->v3:
> * Removed Rb tag from Rob as there are some changes introduced.
> * Added companion property, so that poeg can link with gpt device
> * Documented renesas,id, as identifier for POEGG{A,B,C,D}.
> * Updated the example.
> v1->v2:
> * Updated the description.
> REF->v1:
> * Modelled as pincontrol as most of its configuration is intended to be
> static.
> * Updated reg size in example.
> ---
> .../bindings/pinctrl/renesas,rzg2l-poeg.yaml | 86 +++++++++++++++++++
> 1 file changed, 86 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
>
> diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
> new file mode 100644
> index 000000000000..8adf01682de5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
> @@ -0,0 +1,86 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/pinctrl/renesas,rzg2l-poeg.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Renesas RZ/G2L Port Output Enable for GPT (POEG)
> +
> +maintainers:
> + - Biju Das <biju.das.jz@bp.renesas.com>
> +
> +description: |
> + The output pins(GTIOCxA and GTIOCxB) of the general PWM timer (GPT) can be
> + disabled by using the port output enabling function for the GPT (POEG).
> + Specifically, either of the following ways can be used.
> + * Input level detection of the GTETRGA to GTETRGD pins.
> + * Output-disable request from the GPT.
> + * SSF bit setting(ie, by setting POEGGn.SSF to 1)
> +
> + The state of the GTIOCxA and the GTIOCxB pins when the output is disabled,
> + are controlled by the GPT module.
> +
> +properties:
> + compatible:
> + items:
> + - enum:
> + - renesas,r9a07g044-poeg # RZ/G2{L,LC}
> + - renesas,r9a07g054-poeg # RZ/V2L
> + - const: renesas,rzg2l-poeg
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + power-domains:
> + maxItems: 1
> +
> + resets:
> + maxItems: 1
> +
> + companion:
Also, needs a vendor prefix. The companion is the GPT, right? Perhaps
'renesas,gpt' instead.
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description: phandle of a companion.
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH v3 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG binding
2022-11-07 20:56 ` Rob Herring
@ 2022-11-07 21:12 ` Biju Das
0 siblings, 0 replies; 7+ messages in thread
From: Biju Das @ 2022-11-07 21:12 UTC (permalink / raw)
To: Rob Herring
Cc: Linus Walleij, Krzysztof Kozlowski, Geert Uytterhoeven,
Thierry Reding, Uwe Kleine-König, linux-pwm@vger.kernel.org,
linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org, Chris Paterson, Prabhakar Mahadev Lad
Hi Rob,
Thanks for the feedback.
> Subject: Re: [PATCH v3 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG
> binding
>
> On Fri, Nov 04, 2022 at 03:19:34PM +0000, Biju Das wrote:
> > Add device tree bindings for the RZ/G2L Port Output Enable for GPT (POEG).
> >
> > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> > ---
> > v2->v3:
> > * Removed Rb tag from Rob as there are some changes introduced.
> > * Added companion property, so that poeg can link with gpt device
> > * Documented renesas,id, as identifier for POEGG{A,B,C,D}.
> > * Updated the example.
> > v1->v2:
> > * Updated the description.
> > REF->v1:
> > * Modelled as pincontrol as most of its configuration is intended to be
> > static.
> > * Updated reg size in example.
> > ---
> > .../bindings/pinctrl/renesas,rzg2l-poeg.yaml | 86
> > +++++++++++++++++++
> > 1 file changed, 86 insertions(+)
> > create mode 100644
> > Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
> >
> > diff --git
> > a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
> > b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
> > new file mode 100644
> > index 000000000000..8adf01682de5
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yam
> > +++ l
> > @@ -0,0 +1,86 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2
> > +---
> > +$id:
> > +
> > +title: Renesas RZ/G2L Port Output Enable for GPT (POEG)
> > +
> > +maintainers:
> > + - Biju Das <biju.das.jz@bp.renesas.com>
> > +
> > +description: |
> > + The output pins(GTIOCxA and GTIOCxB) of the general PWM timer (GPT)
> > +can be
> > + disabled by using the port output enabling function for the GPT (POEG).
> > + Specifically, either of the following ways can be used.
> > + * Input level detection of the GTETRGA to GTETRGD pins.
> > + * Output-disable request from the GPT.
> > + * SSF bit setting(ie, by setting POEGGn.SSF to 1)
> > +
> > + The state of the GTIOCxA and the GTIOCxB pins when the output is
> > + disabled, are controlled by the GPT module.
> > +
> > +properties:
> > + compatible:
> > + items:
> > + - enum:
> > + - renesas,r9a07g044-poeg # RZ/G2{L,LC}
> > + - renesas,r9a07g054-poeg # RZ/V2L
> > + - const: renesas,rzg2l-poeg
> > +
> > + reg:
> > + maxItems: 1
> > +
> > + interrupts:
> > + maxItems: 1
> > +
> > + clocks:
> > + maxItems: 1
> > +
> > + power-domains:
> > + maxItems: 1
> > +
> > + resets:
> > + maxItems: 1
> > +
> > + companion:
> > + $ref: /schemas/types.yaml#/definitions/phandle
> > + description: phandle of a companion.
> > +
> > + renesas,id:
>
> Perhaps 'poeg' in the name.
OK, will use 'renesas,poeg-id'
>
> > + $ref: /schemas/types.yaml#/definitions/uint32
> > + enum: [ 0, 1, 2, 3 ]
> > + description: |
> > + POEG group index. Valid values are:
> > + <0> : POEG group A (default)
>
> default: 0
>
> Though a default for a required property doesn't make much sense...
OK will remove the default.
Cheers,
Biju
>
> > + <1> : POEG group B
> > + <2> : POEG group C
> > + <3> : POEG group D
> > +
> > +required:
> > + - compatible
> > + - reg
> > + - interrupts
> > + - clocks
> > + - power-domains
> > + - resets
> > + - renesas,id
> > + - companion
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > + - |
> > + #include <dt-bindings/clock/r9a07g044-cpg.h>
> > + #include <dt-bindings/interrupt-controller/arm-gic.h>
> > +
> > + poeggd: poeg@10049400 {
> > + compatible = "renesas,r9a07g044-poeg", "renesas,rzg2l-poeg";
> > + reg = <0x10049400 0x400>;
> > + interrupts = <GIC_SPI 325 IRQ_TYPE_LEVEL_HIGH>;
> > + clocks = <&cpg CPG_MOD R9A07G044_POEG_D_CLKP>;
> > + power-domains = <&cpg>;
> > + resets = <&cpg R9A07G044_POEG_D_RST>;
> > + renesas,id = <3>;
> > + companion = <&gpt>;
> > + };
> > --
> > 2.25.1
> >
> >
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH v3 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG binding
2022-11-07 20:57 ` Rob Herring
@ 2022-11-07 21:14 ` Biju Das
2022-11-11 6:51 ` Biju Das
0 siblings, 1 reply; 7+ messages in thread
From: Biju Das @ 2022-11-07 21:14 UTC (permalink / raw)
To: Rob Herring
Cc: Linus Walleij, Krzysztof Kozlowski, Geert Uytterhoeven,
Thierry Reding, Uwe Kleine-König, linux-pwm@vger.kernel.org,
linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org, Chris Paterson, Prabhakar Mahadev Lad
Hi Rob,
Thanks for the feedback.
> Subject: Re: [PATCH v3 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG
> binding
>
> On Fri, Nov 04, 2022 at 03:19:34PM +0000, Biju Das wrote:
> > Add device tree bindings for the RZ/G2L Port Output Enable for GPT (POEG).
> >
> > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> > ---
> > v2->v3:
> > * Removed Rb tag from Rob as there are some changes introduced.
> > * Added companion property, so that poeg can link with gpt device
> > * Documented renesas,id, as identifier for POEGG{A,B,C,D}.
> > * Updated the example.
> > v1->v2:
> > * Updated the description.
> > REF->v1:
> > * Modelled as pincontrol as most of its configuration is intended to be
> > static.
> > * Updated reg size in example.
> > ---
> > .../bindings/pinctrl/renesas,rzg2l-poeg.yaml | 86
> > +++++++++++++++++++
> > 1 file changed, 86 insertions(+)
> > create mode 100644
> > Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
> >
> > diff --git
> > a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
> > b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
> > new file mode 100644
> > index 000000000000..8adf01682de5
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yam
> > +++ l
> > @@ -0,0 +1,86 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2
> > +---
> > +$id:
> > +
> > +title: Renesas RZ/G2L Port Output Enable for GPT (POEG)
> > +
> > +maintainers:
> > + - Biju Das <biju.das.jz@bp.renesas.com>
> > +
> > +description: |
> > + The output pins(GTIOCxA and GTIOCxB) of the general PWM timer (GPT)
> > +can be
> > + disabled by using the port output enabling function for the GPT (POEG).
> > + Specifically, either of the following ways can be used.
> > + * Input level detection of the GTETRGA to GTETRGD pins.
> > + * Output-disable request from the GPT.
> > + * SSF bit setting(ie, by setting POEGGn.SSF to 1)
> > +
> > + The state of the GTIOCxA and the GTIOCxB pins when the output is
> > + disabled, are controlled by the GPT module.
> > +
> > +properties:
> > + compatible:
> > + items:
> > + - enum:
> > + - renesas,r9a07g044-poeg # RZ/G2{L,LC}
> > + - renesas,r9a07g054-poeg # RZ/V2L
> > + - const: renesas,rzg2l-poeg
> > +
> > + reg:
> > + maxItems: 1
> > +
> > + interrupts:
> > + maxItems: 1
> > +
> > + clocks:
> > + maxItems: 1
> > +
> > + power-domains:
> > + maxItems: 1
> > +
> > + resets:
> > + maxItems: 1
> > +
> > + companion:
>
> Also, needs a vendor prefix. The companion is the GPT, right? Perhaps
> 'renesas,gpt' instead.
Yes, it is GPT. Will use 'renesas,gpt'.
Cheers,
Biju
>
> > + $ref: /schemas/types.yaml#/definitions/phandle
> > + description: phandle of a companion.
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH v3 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG binding
2022-11-07 21:14 ` Biju Das
@ 2022-11-11 6:51 ` Biju Das
0 siblings, 0 replies; 7+ messages in thread
From: Biju Das @ 2022-11-11 6:51 UTC (permalink / raw)
To: Biju Das, Rob Herring
Cc: Linus Walleij, Krzysztof Kozlowski, Geert Uytterhoeven,
Thierry Reding, Uwe Kleine-König, linux-pwm@vger.kernel.org,
linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org, Chris Paterson, Prabhakar Mahadev Lad
> -----Original Message-----
> From: Biju Das <biju.das.jz@bp.renesas.com>
> Sent: 07 November 2022 21:14
> To: Rob Herring <robh@kernel.org>
> Cc: Linus Walleij <linus.walleij@linaro.org>; Krzysztof Kozlowski
> <krzysztof.kozlowski+dt@linaro.org>; Geert Uytterhoeven
> <geert+renesas@glider.be>; Thierry Reding <thierry.reding@gmail.com>; Uwe
> Kleine-König <u.kleine-koenig@pengutronix.de>; linux-pwm@vger.kernel.org;
> linux-renesas-soc@vger.kernel.org; linux-gpio@vger.kernel.org;
> devicetree@vger.kernel.org; Chris Paterson <Chris.Paterson2@renesas.com>;
> Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>
> Subject: RE: [PATCH v3 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG
> binding
>
> Hi Rob,
>
> Thanks for the feedback.
>
> > Subject: Re: [PATCH v3 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L
> > POEG binding
> >
> > On Fri, Nov 04, 2022 at 03:19:34PM +0000, Biju Das wrote:
> > > Add device tree bindings for the RZ/G2L Port Output Enable for GPT
> (POEG).
> > >
> > > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> > > ---
> > > v2->v3:
> > > * Removed Rb tag from Rob as there are some changes introduced.
> > > * Added companion property, so that poeg can link with gpt device
> > > * Documented renesas,id, as identifier for POEGG{A,B,C,D}.
> > > * Updated the example.
> > > v1->v2:
> > > * Updated the description.
> > > REF->v1:
> > > * Modelled as pincontrol as most of its configuration is intended to be
> > > static.
> > > * Updated reg size in example.
> > > ---
> > > .../bindings/pinctrl/renesas,rzg2l-poeg.yaml | 86
> > > +++++++++++++++++++
> > > 1 file changed, 86 insertions(+)
> > > create mode 100644
> > > Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
> > >
> > > diff --git
> > > a/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
> > > b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.yaml
> > > new file mode 100644
> > > index 000000000000..8adf01682de5
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-poeg.y
> > > +++ am
> > > +++ l
> > > @@ -0,0 +1,86 @@
> > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2
> > > +---
> > > +$id:
> > > +
> > > +title: Renesas RZ/G2L Port Output Enable for GPT (POEG)
> > > +
> > > +maintainers:
> > > + - Biju Das <biju.das.jz@bp.renesas.com>
> > > +
> > > +description: |
> > > + The output pins(GTIOCxA and GTIOCxB) of the general PWM timer
> > > +(GPT) can be
> > > + disabled by using the port output enabling function for the GPT
> (POEG).
> > > + Specifically, either of the following ways can be used.
> > > + * Input level detection of the GTETRGA to GTETRGD pins.
> > > + * Output-disable request from the GPT.
> > > + * SSF bit setting(ie, by setting POEGGn.SSF to 1)
> > > +
> > > + The state of the GTIOCxA and the GTIOCxB pins when the output is
> > > + disabled, are controlled by the GPT module.
> > > +
> > > +properties:
> > > + compatible:
> > > + items:
> > > + - enum:
> > > + - renesas,r9a07g044-poeg # RZ/G2{L,LC}
> > > + - renesas,r9a07g054-poeg # RZ/V2L
> > > + - const: renesas,rzg2l-poeg
> > > +
> > > + reg:
> > > + maxItems: 1
> > > +
> > > + interrupts:
> > > + maxItems: 1
> > > +
> > > + clocks:
> > > + maxItems: 1
> > > +
> > > + power-domains:
> > > + maxItems: 1
> > > +
> > > + resets:
> > > + maxItems: 1
> > > +
> > > + companion:
> >
> > Also, needs a vendor prefix. The companion is the GPT, right? Perhaps
> > 'renesas,gpt' instead.
>
>
> Yes, it is GPT. Will use 'renesas,gpt'.
>
OK will send V4 with these changes.
Cheers,
Biju
>
>
> >
> > > + $ref: /schemas/types.yaml#/definitions/phandle
> > > + description: phandle of a companion.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-11-11 6:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-04 15:19 [PATCH v3 0/2] Add RZ/G2L POEG support Biju Das
2022-11-04 15:19 ` [PATCH v3 1/2] dt-bindings: pinctrl: renesas: Add RZ/G2L POEG binding Biju Das
2022-11-07 20:56 ` Rob Herring
2022-11-07 21:12 ` Biju Das
2022-11-07 20:57 ` Rob Herring
2022-11-07 21:14 ` Biju Das
2022-11-11 6:51 ` Biju Das
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox