diff mbox series

[1/4] dt-bindings: fsl: add i.MX7ULP PMC binding doc

Message ID 1599795053-5091-2-git-send-email-peng.fan@nxp.com
State New
Headers show
Series imx: support i.MX7ULP HSRUN mode | expand

Commit Message

Peng Fan Sept. 11, 2020, 3:30 a.m. UTC
From: Peng Fan <peng.fan@nxp.com>


Add i.MX7ULP Power Management Controller binding doc

Signed-off-by: Peng Fan <peng.fan@nxp.com>

---
 .../bindings/arm/freescale/imx7ulp-pmc.yaml   | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml

-- 
2.28.0

Comments

Aisheng Dong Sept. 11, 2020, 7:19 a.m. UTC | #1
> From: Peng Fan <peng.fan@nxp.com>

> Sent: Friday, September 11, 2020 11:31 AM

> 

> Add i.MX7ULP Power Management Controller binding doc

> 

> Signed-off-by: Peng Fan <peng.fan@nxp.com>

> ---

>  .../bindings/arm/freescale/imx7ulp-pmc.yaml   | 33 +++++++++++++++++++

>  1 file changed, 33 insertions(+)

>  create mode 100644

> Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml


I wonder if we can merge it into the exist imx7ulp pm binding doc.
Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.yaml

> 

> diff --git

> a/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml

> b/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml

> new file mode 100644

> index 000000000000..33a31d87dd62

> --- /dev/null

> +++ b/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml

> @@ -0,0 +1,33 @@

> +# SPDX-License-Identifier: GPL-2.0

> +%YAML 1.2

> +---

> +$id: http://devicetree.org/schemas/arm/freescale/imx7ulp-pmc.yaml#

> +$schema: http://devicetree.org/meta-schemas/core.yaml#

> +

> +title: i.MX7ULP Power Management Controller(PMC) Device Tree Bindings

> +

> +maintainers:

> +  - Peng Fan <peng.fan@nxp.com>

> +

> +properties:

> +  compatible:

> +    items:

> +      - enum:

> +          - fsl,imx7ulp-pmc-m4

> +          - fsl,imx7ulp-pmc-a7


Can we change to the exist naming pattern which also align with HW reference manual?
e.g.
fsl,imx7ulp-pmc0
fsl,imx7ulp-pmc1

Aligned with:
fsl,imx7ulp-smc1
fsl,imx7ulp-pcc2
fsl,imx7ulp-scg1

Regards
Aisheng

> +

> +  reg:

> +    maxItems: 1

> +

> +required:

> +  - compatible

> +  - reg

> +

> +additionalProperties: false

> +

> +examples:

> +  - |

> +    pmc0: pmc-m4@410a1000 {

> +        compatible = "fsl,imx7ulp-pmc-m4";

> +        reg = <0x410a1000 0x1000>;

> +    };

> --

> 2.28.0
Peng Fan Sept. 11, 2020, 7:45 a.m. UTC | #2
> Subject: RE: [PATCH 1/4] dt-bindings: fsl: add i.MX7ULP PMC binding doc

> 

> > From: Peng Fan <peng.fan@nxp.com>

> > Sent: Friday, September 11, 2020 11:31 AM

> >

> > Add i.MX7ULP Power Management Controller binding doc

> >

> > Signed-off-by: Peng Fan <peng.fan@nxp.com>

> > ---

> >  .../bindings/arm/freescale/imx7ulp-pmc.yaml   | 33

> +++++++++++++++++++

> >  1 file changed, 33 insertions(+)

> >  create mode 100644

> > Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml

> 

> I wonder if we can merge it into the exist imx7ulp pm binding doc.

> Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.yaml


Not sure about this.

> 

> >

> > diff --git

> > a/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml

> > b/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml

> > new file mode 100644

> > index 000000000000..33a31d87dd62

> > --- /dev/null

> > +++

> b/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml

> > @@ -0,0 +1,33 @@

> > +# SPDX-License-Identifier: GPL-2.0

> > +%YAML 1.2

> > +---

> > +$id: http://devicetree.org/schemas/arm/freescale/imx7ulp-pmc.yaml#

> > +$schema: http://devicetree.org/meta-schemas/core.yaml#

> > +

> > +title: i.MX7ULP Power Management Controller(PMC) Device Tree Bindings

> > +

> > +maintainers:

> > +  - Peng Fan <peng.fan@nxp.com>

> > +

> > +properties:

> > +  compatible:

> > +    items:

> > +      - enum:

> > +          - fsl,imx7ulp-pmc-m4

> > +          - fsl,imx7ulp-pmc-a7

> 

> Can we change to the exist naming pattern which also align with HW

> reference manual?

> e.g.

> fsl,imx7ulp-pmc0

> fsl,imx7ulp-pmc1


This was rejected by Shawn before.
https://patchwork.kernel.org/patch/11390591/

Thanks,
Peng.

> 

> Aligned with:

> fsl,imx7ulp-smc1

> fsl,imx7ulp-pcc2

> fsl,imx7ulp-scg1

> 

> Regards

> Aisheng

> 

> > +

> > +  reg:

> > +    maxItems: 1

> > +

> > +required:

> > +  - compatible

> > +  - reg

> > +

> > +additionalProperties: false

> > +

> > +examples:

> > +  - |

> > +    pmc0: pmc-m4@410a1000 {

> > +        compatible = "fsl,imx7ulp-pmc-m4";

> > +        reg = <0x410a1000 0x1000>;

> > +    };

> > --

> > 2.28.0
Aisheng Dong Sept. 11, 2020, 10:02 a.m. UTC | #3
> From: Peng Fan <peng.fan@nxp.com>

> Sent: Friday, September 11, 2020 3:45 PM

> 

> > Subject: RE: [PATCH 1/4] dt-bindings: fsl: add i.MX7ULP PMC binding

> > doc

> >

> > > From: Peng Fan <peng.fan@nxp.com>

> > > Sent: Friday, September 11, 2020 11:31 AM

> > >

> > > Add i.MX7ULP Power Management Controller binding doc

> > >

> > > Signed-off-by: Peng Fan <peng.fan@nxp.com>

> > > ---

> > >  .../bindings/arm/freescale/imx7ulp-pmc.yaml   | 33

> > +++++++++++++++++++

> > >  1 file changed, 33 insertions(+)

> > >  create mode 100644

> > > Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml

> >

> > I wonder if we can merge it into the exist imx7ulp pm binding doc.

> > Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.yaml

> 

> Not sure about this.

> 


If not merge, we probably need change the name of existing pm binding doc to avoid confusing.
e.g.
fsl,imx7ulp-pm.yaml -> fsl,imx7ulp-smc.yaml.

> >

> > >

> > > diff --git

> > > a/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml

> > > b/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml

> > > new file mode 100644

> > > index 000000000000..33a31d87dd62

> > > --- /dev/null

> > > +++

> > b/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml

> > > @@ -0,0 +1,33 @@

> > > +# SPDX-License-Identifier: GPL-2.0

> > > +%YAML 1.2

> > > +---

> > > +$id: http://devicetree.org/schemas/arm/freescale/imx7ulp-pmc.yaml#

> > > +$schema: http://devicetree.org/meta-schemas/core.yaml#

> > > +

> > > +title: i.MX7ULP Power Management Controller(PMC) Device Tree

> > > +Bindings

> > > +

> > > +maintainers:

> > > +  - Peng Fan <peng.fan@nxp.com>

> > > +

> > > +properties:

> > > +  compatible:

> > > +    items:

> > > +      - enum:

> > > +          - fsl,imx7ulp-pmc-m4

> > > +          - fsl,imx7ulp-pmc-a7

> >

> > Can we change to the exist naming pattern which also align with HW

> > reference manual?

> > e.g.

> > fsl,imx7ulp-pmc0

> > fsl,imx7ulp-pmc1

> 

> This was rejected by Shawn before.

> https://patchwork.kernel.org/patch/11390591/


I didn't see NACK from Shawn from above URL.
Shawn seemed to just ask for some clarifications why need number suffix.
Am I missed something?

Regards
Aisheng

> 

> Thanks,

> Peng.

> 

> >

> > Aligned with:

> > fsl,imx7ulp-smc1

> > fsl,imx7ulp-pcc2

> > fsl,imx7ulp-scg1

> >

> > Regards

> > Aisheng

> >

> > > +

> > > +  reg:

> > > +    maxItems: 1

> > > +

> > > +required:

> > > +  - compatible

> > > +  - reg

> > > +

> > > +additionalProperties: false

> > > +

> > > +examples:

> > > +  - |

> > > +    pmc0: pmc-m4@410a1000 {

> > > +        compatible = "fsl,imx7ulp-pmc-m4";

> > > +        reg = <0x410a1000 0x1000>;

> > > +    };

> > > --

> > > 2.28.0
Shawn Guo Sept. 13, 2020, 2:50 a.m. UTC | #4
On Fri, Sep 11, 2020 at 07:45:20AM +0000, Peng Fan wrote:
> > b/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml

> > > @@ -0,0 +1,33 @@

> > > +# SPDX-License-Identifier: GPL-2.0

> > > +%YAML 1.2

> > > +---

> > > +$id: http://devicetree.org/schemas/arm/freescale/imx7ulp-pmc.yaml#

> > > +$schema: http://devicetree.org/meta-schemas/core.yaml#

> > > +

> > > +title: i.MX7ULP Power Management Controller(PMC) Device Tree Bindings

> > > +

> > > +maintainers:

> > > +  - Peng Fan <peng.fan@nxp.com>

> > > +

> > > +properties:

> > > +  compatible:

> > > +    items:

> > > +      - enum:

> > > +          - fsl,imx7ulp-pmc-m4

> > > +          - fsl,imx7ulp-pmc-a7

> > 

> > Can we change to the exist naming pattern which also align with HW

> > reference manual?

> > e.g.

> > fsl,imx7ulp-pmc0

> > fsl,imx7ulp-pmc1

> 

> This was rejected by Shawn before.

> https://patchwork.kernel.org/patch/11390591/


Oh, I'm fine with the naming if pmc0 and pmc1 are different HW block
rather than two instances of the same block.

Shawn
Shawn Guo Sept. 13, 2020, 2:57 a.m. UTC | #5
On Fri, Sep 11, 2020 at 07:19:59AM +0000, Aisheng Dong wrote:
> > From: Peng Fan <peng.fan@nxp.com>

> > Sent: Friday, September 11, 2020 11:31 AM

> > 

> > Add i.MX7ULP Power Management Controller binding doc

> > 

> > Signed-off-by: Peng Fan <peng.fan@nxp.com>

> > ---

> >  .../bindings/arm/freescale/imx7ulp-pmc.yaml   | 33 +++++++++++++++++++

> >  1 file changed, 33 insertions(+)

> >  create mode 100644

> > Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml

> 

> I wonder if we can merge it into the exist imx7ulp pm binding doc.

> Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.yaml


+1

Shawn
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml b/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml
new file mode 100644
index 000000000000..33a31d87dd62
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/freescale/imx7ulp-pmc.yaml
@@ -0,0 +1,33 @@ 
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/freescale/imx7ulp-pmc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: i.MX7ULP Power Management Controller(PMC) Device Tree Bindings
+
+maintainers:
+  - Peng Fan <peng.fan@nxp.com>
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - fsl,imx7ulp-pmc-m4
+          - fsl,imx7ulp-pmc-a7
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    pmc0: pmc-m4@410a1000 {
+        compatible = "fsl,imx7ulp-pmc-m4";
+        reg = <0x410a1000 0x1000>;
+    };