All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: mfd: mediatek: Add bindings for MT6360 PMIC
@ 2020-08-20  8:35 ` Gene Chen
  0 siblings, 0 replies; 12+ messages in thread
From: Gene Chen @ 2020-08-20  8:35 UTC (permalink / raw)
  To: matthias.bgg, robh+dt
  Cc: lee.jones, linux-arm-kernel, linux-mediatek, linux-kernel,
	gene_chen, Wilma.Wu, shufan_lee, cy_huang, benjamin.chao

From: Gene Chen <gene_chen@richtek.com>

Add bindings for MT6360 PMIC

Signed-off-by: Gene Chen <gene_chen@richtek.com>
---
 Documentation/devicetree/bindings/mfd/mt6360.yaml | 142 ++++++++++++++++++++++
 1 file changed, 142 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/mt6360.yaml

diff --git a/Documentation/devicetree/bindings/mfd/mt6360.yaml b/Documentation/devicetree/bindings/mfd/mt6360.yaml
new file mode 100644
index 0000000..5ad1afd
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/mt6360.yaml
@@ -0,0 +1,142 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/mt6360.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MT6360 PMIC from MediaTek Integrated
+
+maintainers:
+  - Gene Chen <gene_chen@richtek.com>
+
+description: |
+  MT6360 is a PMIC device with the following sub modules.
+  It is interfaced to host controller using I2C interface.
+
+  This document describes the binding for PMIC device and its sub module.
+
+properties:
+  compatible:
+    const: mediatek,mt6360
+
+  reg:
+    description:
+      I2C device address.
+    maxItems: 1
+
+  wakeup-source: true
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-names:
+      enum:
+        - IRQB
+
+  interrupt-controller: true
+
+  "#interrupt-cells":
+    const: 1
+    description:
+      The first cell is the IRQ number.
+
+  regulator:
+    $ref: ../regulator/mt6360-regulator.yaml
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-controller
+  - "#interrupt-cells"
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        mt6360@34 {
+            compatible = "mediatek,mt6360";
+            reg = <0x34>;
+            wakeup-source;
+            interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
+            interrupt-names = "IRQB";
+            interrupt-controller;
+            #interrupt-cells = <1>;
+            regulator {
+                compatible = "mediatek,mt6360-regulator";
+                LDO_VIN3-supply = <&BUCK2>;
+                buck1 {
+                    regulator-compatible = "BUCK1";
+                    regulator-name = "mt6360,buck1";
+                    regulator-min-microvolt = <300000>;
+                    regulator-max-microvolt = <1300000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP
+                                               MT6360_OPMODE_ULP>;
+                };
+                BUCK2: buck2 {
+                regulator-compatible = "BUCK2";
+                    regulator-name = "mt6360,buck2";
+                    regulator-min-microvolt = <300000>;
+                    regulator-max-microvolt = <1300000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP
+                                               MT6360_OPMODE_ULP>;
+                };
+                ldo6 {
+                    regulator-compatible = "LDO6";
+                    regulator-name = "mt6360,ldo6";
+                    regulator-min-microvolt = <500000>;
+                    regulator-max-microvolt = <2100000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo7 {
+                    regulator-compatible = "LDO7";
+                    regulator-name = "mt6360,ldo7";
+                    regulator-min-microvolt = <500000>;
+                    regulator-max-microvolt = <2100000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo1 {
+                    regulator-compatible = "LDO1";
+                    regulator-name = "mt6360,ldo1";
+                    regulator-min-microvolt = <1200000>;
+                    regulator-max-microvolt = <3600000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo2 {
+                    regulator-compatible = "LDO2";
+                    regulator-name = "mt6360,ldo2";
+                    regulator-min-microvolt = <1200000>;
+                    regulator-max-microvolt = <3600000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo3 {
+                    regulator-compatible = "LDO3";
+                    regulator-name = "mt6360,ldo3";
+                    regulator-min-microvolt = <1200000>;
+                    regulator-max-microvolt = <3600000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo5 {
+                    regulator-compatible = "LDO5";
+                    regulator-name = "mt6360,ldo5";
+                    regulator-min-microvolt = <2700000>;
+                    regulator-max-microvolt = <3600000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+            };
+        };
+    };
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH] dt-bindings: mfd: mediatek: Add bindings for MT6360 PMIC
@ 2020-08-20  8:35 ` Gene Chen
  0 siblings, 0 replies; 12+ messages in thread
From: Gene Chen @ 2020-08-20  8:35 UTC (permalink / raw)
  To: matthias.bgg, robh+dt
  Cc: gene_chen, Wilma.Wu, linux-kernel, cy_huang, benjamin.chao,
	linux-mediatek, lee.jones, linux-arm-kernel, shufan_lee

From: Gene Chen <gene_chen@richtek.com>

Add bindings for MT6360 PMIC

Signed-off-by: Gene Chen <gene_chen@richtek.com>
---
 Documentation/devicetree/bindings/mfd/mt6360.yaml | 142 ++++++++++++++++++++++
 1 file changed, 142 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/mt6360.yaml

diff --git a/Documentation/devicetree/bindings/mfd/mt6360.yaml b/Documentation/devicetree/bindings/mfd/mt6360.yaml
new file mode 100644
index 0000000..5ad1afd
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/mt6360.yaml
@@ -0,0 +1,142 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/mt6360.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MT6360 PMIC from MediaTek Integrated
+
+maintainers:
+  - Gene Chen <gene_chen@richtek.com>
+
+description: |
+  MT6360 is a PMIC device with the following sub modules.
+  It is interfaced to host controller using I2C interface.
+
+  This document describes the binding for PMIC device and its sub module.
+
+properties:
+  compatible:
+    const: mediatek,mt6360
+
+  reg:
+    description:
+      I2C device address.
+    maxItems: 1
+
+  wakeup-source: true
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-names:
+      enum:
+        - IRQB
+
+  interrupt-controller: true
+
+  "#interrupt-cells":
+    const: 1
+    description:
+      The first cell is the IRQ number.
+
+  regulator:
+    $ref: ../regulator/mt6360-regulator.yaml
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-controller
+  - "#interrupt-cells"
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        mt6360@34 {
+            compatible = "mediatek,mt6360";
+            reg = <0x34>;
+            wakeup-source;
+            interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
+            interrupt-names = "IRQB";
+            interrupt-controller;
+            #interrupt-cells = <1>;
+            regulator {
+                compatible = "mediatek,mt6360-regulator";
+                LDO_VIN3-supply = <&BUCK2>;
+                buck1 {
+                    regulator-compatible = "BUCK1";
+                    regulator-name = "mt6360,buck1";
+                    regulator-min-microvolt = <300000>;
+                    regulator-max-microvolt = <1300000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP
+                                               MT6360_OPMODE_ULP>;
+                };
+                BUCK2: buck2 {
+                regulator-compatible = "BUCK2";
+                    regulator-name = "mt6360,buck2";
+                    regulator-min-microvolt = <300000>;
+                    regulator-max-microvolt = <1300000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP
+                                               MT6360_OPMODE_ULP>;
+                };
+                ldo6 {
+                    regulator-compatible = "LDO6";
+                    regulator-name = "mt6360,ldo6";
+                    regulator-min-microvolt = <500000>;
+                    regulator-max-microvolt = <2100000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo7 {
+                    regulator-compatible = "LDO7";
+                    regulator-name = "mt6360,ldo7";
+                    regulator-min-microvolt = <500000>;
+                    regulator-max-microvolt = <2100000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo1 {
+                    regulator-compatible = "LDO1";
+                    regulator-name = "mt6360,ldo1";
+                    regulator-min-microvolt = <1200000>;
+                    regulator-max-microvolt = <3600000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo2 {
+                    regulator-compatible = "LDO2";
+                    regulator-name = "mt6360,ldo2";
+                    regulator-min-microvolt = <1200000>;
+                    regulator-max-microvolt = <3600000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo3 {
+                    regulator-compatible = "LDO3";
+                    regulator-name = "mt6360,ldo3";
+                    regulator-min-microvolt = <1200000>;
+                    regulator-max-microvolt = <3600000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo5 {
+                    regulator-compatible = "LDO5";
+                    regulator-name = "mt6360,ldo5";
+                    regulator-min-microvolt = <2700000>;
+                    regulator-max-microvolt = <3600000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+            };
+        };
+    };
-- 
2.7.4


_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH] dt-bindings: mfd: mediatek: Add bindings for MT6360 PMIC
@ 2020-08-20  8:35 ` Gene Chen
  0 siblings, 0 replies; 12+ messages in thread
From: Gene Chen @ 2020-08-20  8:35 UTC (permalink / raw)
  To: matthias.bgg, robh+dt
  Cc: gene_chen, Wilma.Wu, linux-kernel, cy_huang, benjamin.chao,
	linux-mediatek, lee.jones, linux-arm-kernel, shufan_lee

From: Gene Chen <gene_chen@richtek.com>

Add bindings for MT6360 PMIC

Signed-off-by: Gene Chen <gene_chen@richtek.com>
---
 Documentation/devicetree/bindings/mfd/mt6360.yaml | 142 ++++++++++++++++++++++
 1 file changed, 142 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/mt6360.yaml

diff --git a/Documentation/devicetree/bindings/mfd/mt6360.yaml b/Documentation/devicetree/bindings/mfd/mt6360.yaml
new file mode 100644
index 0000000..5ad1afd
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/mt6360.yaml
@@ -0,0 +1,142 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/mt6360.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MT6360 PMIC from MediaTek Integrated
+
+maintainers:
+  - Gene Chen <gene_chen@richtek.com>
+
+description: |
+  MT6360 is a PMIC device with the following sub modules.
+  It is interfaced to host controller using I2C interface.
+
+  This document describes the binding for PMIC device and its sub module.
+
+properties:
+  compatible:
+    const: mediatek,mt6360
+
+  reg:
+    description:
+      I2C device address.
+    maxItems: 1
+
+  wakeup-source: true
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-names:
+      enum:
+        - IRQB
+
+  interrupt-controller: true
+
+  "#interrupt-cells":
+    const: 1
+    description:
+      The first cell is the IRQ number.
+
+  regulator:
+    $ref: ../regulator/mt6360-regulator.yaml
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-controller
+  - "#interrupt-cells"
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        mt6360@34 {
+            compatible = "mediatek,mt6360";
+            reg = <0x34>;
+            wakeup-source;
+            interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
+            interrupt-names = "IRQB";
+            interrupt-controller;
+            #interrupt-cells = <1>;
+            regulator {
+                compatible = "mediatek,mt6360-regulator";
+                LDO_VIN3-supply = <&BUCK2>;
+                buck1 {
+                    regulator-compatible = "BUCK1";
+                    regulator-name = "mt6360,buck1";
+                    regulator-min-microvolt = <300000>;
+                    regulator-max-microvolt = <1300000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP
+                                               MT6360_OPMODE_ULP>;
+                };
+                BUCK2: buck2 {
+                regulator-compatible = "BUCK2";
+                    regulator-name = "mt6360,buck2";
+                    regulator-min-microvolt = <300000>;
+                    regulator-max-microvolt = <1300000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP
+                                               MT6360_OPMODE_ULP>;
+                };
+                ldo6 {
+                    regulator-compatible = "LDO6";
+                    regulator-name = "mt6360,ldo6";
+                    regulator-min-microvolt = <500000>;
+                    regulator-max-microvolt = <2100000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo7 {
+                    regulator-compatible = "LDO7";
+                    regulator-name = "mt6360,ldo7";
+                    regulator-min-microvolt = <500000>;
+                    regulator-max-microvolt = <2100000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo1 {
+                    regulator-compatible = "LDO1";
+                    regulator-name = "mt6360,ldo1";
+                    regulator-min-microvolt = <1200000>;
+                    regulator-max-microvolt = <3600000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo2 {
+                    regulator-compatible = "LDO2";
+                    regulator-name = "mt6360,ldo2";
+                    regulator-min-microvolt = <1200000>;
+                    regulator-max-microvolt = <3600000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo3 {
+                    regulator-compatible = "LDO3";
+                    regulator-name = "mt6360,ldo3";
+                    regulator-min-microvolt = <1200000>;
+                    regulator-max-microvolt = <3600000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+                ldo5 {
+                    regulator-compatible = "LDO5";
+                    regulator-name = "mt6360,ldo5";
+                    regulator-min-microvolt = <2700000>;
+                    regulator-max-microvolt = <3600000>;
+                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
+                                               MT6360_OPMODE_LP>;
+                };
+            };
+        };
+    };
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH] dt-bindings: mfd: mediatek: Add bindings for MT6360 PMIC
  2020-08-20  8:35 ` Gene Chen
  (?)
@ 2020-11-13  5:54   ` Gene Chen
  -1 siblings, 0 replies; 12+ messages in thread
From: Gene Chen @ 2020-11-13  5:54 UTC (permalink / raw)
  To: Matthias Brugger, Rob Herring
  Cc: Lee Jones, linux-arm Mailing List,
	moderated list:ARM/Mediatek SoC support,
	Linux Kernel Mailing List, Gene Chen, Wilma.Wu, shufan_lee,
	cy_huang, benjamin.chao

Dear Reviewers,

   Please let me know if there is anything need to be revised.

Gene Chen <gene.chen.richtek@gmail.com> 於 2020年8月20日 週四 下午4:36寫道:
>
> From: Gene Chen <gene_chen@richtek.com>
>
> Add bindings for MT6360 PMIC
>
> Signed-off-by: Gene Chen <gene_chen@richtek.com>
> ---
>  Documentation/devicetree/bindings/mfd/mt6360.yaml | 142 ++++++++++++++++++++++
>  1 file changed, 142 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/mfd/mt6360.yaml
>
> diff --git a/Documentation/devicetree/bindings/mfd/mt6360.yaml b/Documentation/devicetree/bindings/mfd/mt6360.yaml
> new file mode 100644
> index 0000000..5ad1afd
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/mt6360.yaml
> @@ -0,0 +1,142 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/mt6360.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: MT6360 PMIC from MediaTek Integrated
> +
> +maintainers:
> +  - Gene Chen <gene_chen@richtek.com>
> +
> +description: |
> +  MT6360 is a PMIC device with the following sub modules.
> +  It is interfaced to host controller using I2C interface.
> +
> +  This document describes the binding for PMIC device and its sub module.
> +
> +properties:
> +  compatible:
> +    const: mediatek,mt6360
> +
> +  reg:
> +    description:
> +      I2C device address.
> +    maxItems: 1
> +
> +  wakeup-source: true
> +
> +  interrupts:
> +    maxItems: 1
> +
> +  interrupt-names:
> +      enum:
> +        - IRQB
> +
> +  interrupt-controller: true
> +
> +  "#interrupt-cells":
> +    const: 1
> +    description:
> +      The first cell is the IRQ number.
> +
> +  regulator:
> +    $ref: ../regulator/mt6360-regulator.yaml
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - interrupt-controller
> +  - "#interrupt-cells"
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/interrupt-controller/irq.h>
> +    #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
> +    i2c {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +
> +        mt6360@34 {
> +            compatible = "mediatek,mt6360";
> +            reg = <0x34>;
> +            wakeup-source;
> +            interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
> +            interrupt-names = "IRQB";
> +            interrupt-controller;
> +            #interrupt-cells = <1>;
> +            regulator {
> +                compatible = "mediatek,mt6360-regulator";
> +                LDO_VIN3-supply = <&BUCK2>;
> +                buck1 {
> +                    regulator-compatible = "BUCK1";
> +                    regulator-name = "mt6360,buck1";
> +                    regulator-min-microvolt = <300000>;
> +                    regulator-max-microvolt = <1300000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP
> +                                               MT6360_OPMODE_ULP>;
> +                };
> +                BUCK2: buck2 {
> +                regulator-compatible = "BUCK2";
> +                    regulator-name = "mt6360,buck2";
> +                    regulator-min-microvolt = <300000>;
> +                    regulator-max-microvolt = <1300000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP
> +                                               MT6360_OPMODE_ULP>;
> +                };
> +                ldo6 {
> +                    regulator-compatible = "LDO6";
> +                    regulator-name = "mt6360,ldo6";
> +                    regulator-min-microvolt = <500000>;
> +                    regulator-max-microvolt = <2100000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo7 {
> +                    regulator-compatible = "LDO7";
> +                    regulator-name = "mt6360,ldo7";
> +                    regulator-min-microvolt = <500000>;
> +                    regulator-max-microvolt = <2100000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo1 {
> +                    regulator-compatible = "LDO1";
> +                    regulator-name = "mt6360,ldo1";
> +                    regulator-min-microvolt = <1200000>;
> +                    regulator-max-microvolt = <3600000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo2 {
> +                    regulator-compatible = "LDO2";
> +                    regulator-name = "mt6360,ldo2";
> +                    regulator-min-microvolt = <1200000>;
> +                    regulator-max-microvolt = <3600000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo3 {
> +                    regulator-compatible = "LDO3";
> +                    regulator-name = "mt6360,ldo3";
> +                    regulator-min-microvolt = <1200000>;
> +                    regulator-max-microvolt = <3600000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo5 {
> +                    regulator-compatible = "LDO5";
> +                    regulator-name = "mt6360,ldo5";
> +                    regulator-min-microvolt = <2700000>;
> +                    regulator-max-microvolt = <3600000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +            };
> +        };
> +    };
> --
> 2.7.4
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] dt-bindings: mfd: mediatek: Add bindings for MT6360 PMIC
@ 2020-11-13  5:54   ` Gene Chen
  0 siblings, 0 replies; 12+ messages in thread
From: Gene Chen @ 2020-11-13  5:54 UTC (permalink / raw)
  To: Matthias Brugger, Rob Herring
  Cc: Gene Chen, Wilma.Wu, Linux Kernel Mailing List, cy_huang,
	benjamin.chao, moderated list:ARM/Mediatek SoC support,
	Lee Jones, linux-arm Mailing List, shufan_lee

Dear Reviewers,

   Please let me know if there is anything need to be revised.

Gene Chen <gene.chen.richtek@gmail.com> 於 2020年8月20日 週四 下午4:36寫道:
>
> From: Gene Chen <gene_chen@richtek.com>
>
> Add bindings for MT6360 PMIC
>
> Signed-off-by: Gene Chen <gene_chen@richtek.com>
> ---
>  Documentation/devicetree/bindings/mfd/mt6360.yaml | 142 ++++++++++++++++++++++
>  1 file changed, 142 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/mfd/mt6360.yaml
>
> diff --git a/Documentation/devicetree/bindings/mfd/mt6360.yaml b/Documentation/devicetree/bindings/mfd/mt6360.yaml
> new file mode 100644
> index 0000000..5ad1afd
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/mt6360.yaml
> @@ -0,0 +1,142 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/mt6360.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: MT6360 PMIC from MediaTek Integrated
> +
> +maintainers:
> +  - Gene Chen <gene_chen@richtek.com>
> +
> +description: |
> +  MT6360 is a PMIC device with the following sub modules.
> +  It is interfaced to host controller using I2C interface.
> +
> +  This document describes the binding for PMIC device and its sub module.
> +
> +properties:
> +  compatible:
> +    const: mediatek,mt6360
> +
> +  reg:
> +    description:
> +      I2C device address.
> +    maxItems: 1
> +
> +  wakeup-source: true
> +
> +  interrupts:
> +    maxItems: 1
> +
> +  interrupt-names:
> +      enum:
> +        - IRQB
> +
> +  interrupt-controller: true
> +
> +  "#interrupt-cells":
> +    const: 1
> +    description:
> +      The first cell is the IRQ number.
> +
> +  regulator:
> +    $ref: ../regulator/mt6360-regulator.yaml
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - interrupt-controller
> +  - "#interrupt-cells"
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/interrupt-controller/irq.h>
> +    #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
> +    i2c {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +
> +        mt6360@34 {
> +            compatible = "mediatek,mt6360";
> +            reg = <0x34>;
> +            wakeup-source;
> +            interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
> +            interrupt-names = "IRQB";
> +            interrupt-controller;
> +            #interrupt-cells = <1>;
> +            regulator {
> +                compatible = "mediatek,mt6360-regulator";
> +                LDO_VIN3-supply = <&BUCK2>;
> +                buck1 {
> +                    regulator-compatible = "BUCK1";
> +                    regulator-name = "mt6360,buck1";
> +                    regulator-min-microvolt = <300000>;
> +                    regulator-max-microvolt = <1300000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP
> +                                               MT6360_OPMODE_ULP>;
> +                };
> +                BUCK2: buck2 {
> +                regulator-compatible = "BUCK2";
> +                    regulator-name = "mt6360,buck2";
> +                    regulator-min-microvolt = <300000>;
> +                    regulator-max-microvolt = <1300000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP
> +                                               MT6360_OPMODE_ULP>;
> +                };
> +                ldo6 {
> +                    regulator-compatible = "LDO6";
> +                    regulator-name = "mt6360,ldo6";
> +                    regulator-min-microvolt = <500000>;
> +                    regulator-max-microvolt = <2100000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo7 {
> +                    regulator-compatible = "LDO7";
> +                    regulator-name = "mt6360,ldo7";
> +                    regulator-min-microvolt = <500000>;
> +                    regulator-max-microvolt = <2100000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo1 {
> +                    regulator-compatible = "LDO1";
> +                    regulator-name = "mt6360,ldo1";
> +                    regulator-min-microvolt = <1200000>;
> +                    regulator-max-microvolt = <3600000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo2 {
> +                    regulator-compatible = "LDO2";
> +                    regulator-name = "mt6360,ldo2";
> +                    regulator-min-microvolt = <1200000>;
> +                    regulator-max-microvolt = <3600000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo3 {
> +                    regulator-compatible = "LDO3";
> +                    regulator-name = "mt6360,ldo3";
> +                    regulator-min-microvolt = <1200000>;
> +                    regulator-max-microvolt = <3600000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo5 {
> +                    regulator-compatible = "LDO5";
> +                    regulator-name = "mt6360,ldo5";
> +                    regulator-min-microvolt = <2700000>;
> +                    regulator-max-microvolt = <3600000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +            };
> +        };
> +    };
> --
> 2.7.4
>

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] dt-bindings: mfd: mediatek: Add bindings for MT6360 PMIC
@ 2020-11-13  5:54   ` Gene Chen
  0 siblings, 0 replies; 12+ messages in thread
From: Gene Chen @ 2020-11-13  5:54 UTC (permalink / raw)
  To: Matthias Brugger, Rob Herring
  Cc: Gene Chen, Wilma.Wu, Linux Kernel Mailing List, cy_huang,
	benjamin.chao, moderated list:ARM/Mediatek SoC support,
	Lee Jones, linux-arm Mailing List, shufan_lee

Dear Reviewers,

   Please let me know if there is anything need to be revised.

Gene Chen <gene.chen.richtek@gmail.com> 於 2020年8月20日 週四 下午4:36寫道:
>
> From: Gene Chen <gene_chen@richtek.com>
>
> Add bindings for MT6360 PMIC
>
> Signed-off-by: Gene Chen <gene_chen@richtek.com>
> ---
>  Documentation/devicetree/bindings/mfd/mt6360.yaml | 142 ++++++++++++++++++++++
>  1 file changed, 142 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/mfd/mt6360.yaml
>
> diff --git a/Documentation/devicetree/bindings/mfd/mt6360.yaml b/Documentation/devicetree/bindings/mfd/mt6360.yaml
> new file mode 100644
> index 0000000..5ad1afd
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/mt6360.yaml
> @@ -0,0 +1,142 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/mt6360.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: MT6360 PMIC from MediaTek Integrated
> +
> +maintainers:
> +  - Gene Chen <gene_chen@richtek.com>
> +
> +description: |
> +  MT6360 is a PMIC device with the following sub modules.
> +  It is interfaced to host controller using I2C interface.
> +
> +  This document describes the binding for PMIC device and its sub module.
> +
> +properties:
> +  compatible:
> +    const: mediatek,mt6360
> +
> +  reg:
> +    description:
> +      I2C device address.
> +    maxItems: 1
> +
> +  wakeup-source: true
> +
> +  interrupts:
> +    maxItems: 1
> +
> +  interrupt-names:
> +      enum:
> +        - IRQB
> +
> +  interrupt-controller: true
> +
> +  "#interrupt-cells":
> +    const: 1
> +    description:
> +      The first cell is the IRQ number.
> +
> +  regulator:
> +    $ref: ../regulator/mt6360-regulator.yaml
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - interrupt-controller
> +  - "#interrupt-cells"
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/interrupt-controller/irq.h>
> +    #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
> +    i2c {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +
> +        mt6360@34 {
> +            compatible = "mediatek,mt6360";
> +            reg = <0x34>;
> +            wakeup-source;
> +            interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
> +            interrupt-names = "IRQB";
> +            interrupt-controller;
> +            #interrupt-cells = <1>;
> +            regulator {
> +                compatible = "mediatek,mt6360-regulator";
> +                LDO_VIN3-supply = <&BUCK2>;
> +                buck1 {
> +                    regulator-compatible = "BUCK1";
> +                    regulator-name = "mt6360,buck1";
> +                    regulator-min-microvolt = <300000>;
> +                    regulator-max-microvolt = <1300000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP
> +                                               MT6360_OPMODE_ULP>;
> +                };
> +                BUCK2: buck2 {
> +                regulator-compatible = "BUCK2";
> +                    regulator-name = "mt6360,buck2";
> +                    regulator-min-microvolt = <300000>;
> +                    regulator-max-microvolt = <1300000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP
> +                                               MT6360_OPMODE_ULP>;
> +                };
> +                ldo6 {
> +                    regulator-compatible = "LDO6";
> +                    regulator-name = "mt6360,ldo6";
> +                    regulator-min-microvolt = <500000>;
> +                    regulator-max-microvolt = <2100000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo7 {
> +                    regulator-compatible = "LDO7";
> +                    regulator-name = "mt6360,ldo7";
> +                    regulator-min-microvolt = <500000>;
> +                    regulator-max-microvolt = <2100000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo1 {
> +                    regulator-compatible = "LDO1";
> +                    regulator-name = "mt6360,ldo1";
> +                    regulator-min-microvolt = <1200000>;
> +                    regulator-max-microvolt = <3600000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo2 {
> +                    regulator-compatible = "LDO2";
> +                    regulator-name = "mt6360,ldo2";
> +                    regulator-min-microvolt = <1200000>;
> +                    regulator-max-microvolt = <3600000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo3 {
> +                    regulator-compatible = "LDO3";
> +                    regulator-name = "mt6360,ldo3";
> +                    regulator-min-microvolt = <1200000>;
> +                    regulator-max-microvolt = <3600000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +                ldo5 {
> +                    regulator-compatible = "LDO5";
> +                    regulator-name = "mt6360,ldo5";
> +                    regulator-min-microvolt = <2700000>;
> +                    regulator-max-microvolt = <3600000>;
> +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> +                                               MT6360_OPMODE_LP>;
> +                };
> +            };
> +        };
> +    };
> --
> 2.7.4
>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] dt-bindings: mfd: mediatek: Add bindings for MT6360 PMIC
  2020-11-13  5:54   ` Gene Chen
  (?)
@ 2020-12-21 10:51     ` Gene Chen
  -1 siblings, 0 replies; 12+ messages in thread
From: Gene Chen @ 2020-12-21 10:51 UTC (permalink / raw)
  To: Matthias Brugger, Rob Herring
  Cc: Lee Jones, linux-arm Mailing List,
	moderated list:ARM/Mediatek SoC support,
	Linux Kernel Mailing List, Gene Chen, Wilma.Wu, shufan_lee,
	cy_huang, benjamin.chao

Dear Reviewers,

    Should I wait for all sub-devices dt-binding review done, then
send the integral binding document?

Gene Chen <gene.chen.richtek@gmail.com> 於 2020年11月13日 週五 下午1:54寫道:
>
> Dear Reviewers,
>
>    Please let me know if there is anything need to be revised.
>
> Gene Chen <gene.chen.richtek@gmail.com> 於 2020年8月20日 週四 下午4:36寫道:
> >
> > From: Gene Chen <gene_chen@richtek.com>
> >
> > Add bindings for MT6360 PMIC
> >
> > Signed-off-by: Gene Chen <gene_chen@richtek.com>
> > ---
> >  Documentation/devicetree/bindings/mfd/mt6360.yaml | 142 ++++++++++++++++++++++
> >  1 file changed, 142 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/mfd/mt6360.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/mfd/mt6360.yaml b/Documentation/devicetree/bindings/mfd/mt6360.yaml
> > new file mode 100644
> > index 0000000..5ad1afd
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/mfd/mt6360.yaml
> > @@ -0,0 +1,142 @@
> > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/mfd/mt6360.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: MT6360 PMIC from MediaTek Integrated
> > +
> > +maintainers:
> > +  - Gene Chen <gene_chen@richtek.com>
> > +
> > +description: |
> > +  MT6360 is a PMIC device with the following sub modules.
> > +  It is interfaced to host controller using I2C interface.
> > +
> > +  This document describes the binding for PMIC device and its sub module.
> > +
> > +properties:
> > +  compatible:
> > +    const: mediatek,mt6360
> > +
> > +  reg:
> > +    description:
> > +      I2C device address.
> > +    maxItems: 1
> > +
> > +  wakeup-source: true
> > +
> > +  interrupts:
> > +    maxItems: 1
> > +
> > +  interrupt-names:
> > +      enum:
> > +        - IRQB
> > +
> > +  interrupt-controller: true
> > +
> > +  "#interrupt-cells":
> > +    const: 1
> > +    description:
> > +      The first cell is the IRQ number.
> > +
> > +  regulator:
> > +    $ref: ../regulator/mt6360-regulator.yaml
> > +
> > +required:
> > +  - compatible
> > +  - reg
> > +  - interrupts
> > +  - interrupt-controller
> > +  - "#interrupt-cells"
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > +  - |
> > +    #include <dt-bindings/interrupt-controller/irq.h>
> > +    #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
> > +    i2c {
> > +        #address-cells = <1>;
> > +        #size-cells = <0>;
> > +
> > +        mt6360@34 {
> > +            compatible = "mediatek,mt6360";
> > +            reg = <0x34>;
> > +            wakeup-source;
> > +            interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
> > +            interrupt-names = "IRQB";
> > +            interrupt-controller;
> > +            #interrupt-cells = <1>;
> > +            regulator {
> > +                compatible = "mediatek,mt6360-regulator";
> > +                LDO_VIN3-supply = <&BUCK2>;
> > +                buck1 {
> > +                    regulator-compatible = "BUCK1";
> > +                    regulator-name = "mt6360,buck1";
> > +                    regulator-min-microvolt = <300000>;
> > +                    regulator-max-microvolt = <1300000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP
> > +                                               MT6360_OPMODE_ULP>;
> > +                };
> > +                BUCK2: buck2 {
> > +                regulator-compatible = "BUCK2";
> > +                    regulator-name = "mt6360,buck2";
> > +                    regulator-min-microvolt = <300000>;
> > +                    regulator-max-microvolt = <1300000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP
> > +                                               MT6360_OPMODE_ULP>;
> > +                };
> > +                ldo6 {
> > +                    regulator-compatible = "LDO6";
> > +                    regulator-name = "mt6360,ldo6";
> > +                    regulator-min-microvolt = <500000>;
> > +                    regulator-max-microvolt = <2100000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo7 {
> > +                    regulator-compatible = "LDO7";
> > +                    regulator-name = "mt6360,ldo7";
> > +                    regulator-min-microvolt = <500000>;
> > +                    regulator-max-microvolt = <2100000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo1 {
> > +                    regulator-compatible = "LDO1";
> > +                    regulator-name = "mt6360,ldo1";
> > +                    regulator-min-microvolt = <1200000>;
> > +                    regulator-max-microvolt = <3600000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo2 {
> > +                    regulator-compatible = "LDO2";
> > +                    regulator-name = "mt6360,ldo2";
> > +                    regulator-min-microvolt = <1200000>;
> > +                    regulator-max-microvolt = <3600000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo3 {
> > +                    regulator-compatible = "LDO3";
> > +                    regulator-name = "mt6360,ldo3";
> > +                    regulator-min-microvolt = <1200000>;
> > +                    regulator-max-microvolt = <3600000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo5 {
> > +                    regulator-compatible = "LDO5";
> > +                    regulator-name = "mt6360,ldo5";
> > +                    regulator-min-microvolt = <2700000>;
> > +                    regulator-max-microvolt = <3600000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +            };
> > +        };
> > +    };
> > --
> > 2.7.4
> >

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] dt-bindings: mfd: mediatek: Add bindings for MT6360 PMIC
@ 2020-12-21 10:51     ` Gene Chen
  0 siblings, 0 replies; 12+ messages in thread
From: Gene Chen @ 2020-12-21 10:51 UTC (permalink / raw)
  To: Matthias Brugger, Rob Herring
  Cc: Gene Chen, Wilma.Wu, Linux Kernel Mailing List, cy_huang,
	benjamin.chao, moderated list:ARM/Mediatek SoC support,
	Lee Jones, linux-arm Mailing List, shufan_lee

Dear Reviewers,

    Should I wait for all sub-devices dt-binding review done, then
send the integral binding document?

Gene Chen <gene.chen.richtek@gmail.com> 於 2020年11月13日 週五 下午1:54寫道:
>
> Dear Reviewers,
>
>    Please let me know if there is anything need to be revised.
>
> Gene Chen <gene.chen.richtek@gmail.com> 於 2020年8月20日 週四 下午4:36寫道:
> >
> > From: Gene Chen <gene_chen@richtek.com>
> >
> > Add bindings for MT6360 PMIC
> >
> > Signed-off-by: Gene Chen <gene_chen@richtek.com>
> > ---
> >  Documentation/devicetree/bindings/mfd/mt6360.yaml | 142 ++++++++++++++++++++++
> >  1 file changed, 142 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/mfd/mt6360.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/mfd/mt6360.yaml b/Documentation/devicetree/bindings/mfd/mt6360.yaml
> > new file mode 100644
> > index 0000000..5ad1afd
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/mfd/mt6360.yaml
> > @@ -0,0 +1,142 @@
> > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/mfd/mt6360.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: MT6360 PMIC from MediaTek Integrated
> > +
> > +maintainers:
> > +  - Gene Chen <gene_chen@richtek.com>
> > +
> > +description: |
> > +  MT6360 is a PMIC device with the following sub modules.
> > +  It is interfaced to host controller using I2C interface.
> > +
> > +  This document describes the binding for PMIC device and its sub module.
> > +
> > +properties:
> > +  compatible:
> > +    const: mediatek,mt6360
> > +
> > +  reg:
> > +    description:
> > +      I2C device address.
> > +    maxItems: 1
> > +
> > +  wakeup-source: true
> > +
> > +  interrupts:
> > +    maxItems: 1
> > +
> > +  interrupt-names:
> > +      enum:
> > +        - IRQB
> > +
> > +  interrupt-controller: true
> > +
> > +  "#interrupt-cells":
> > +    const: 1
> > +    description:
> > +      The first cell is the IRQ number.
> > +
> > +  regulator:
> > +    $ref: ../regulator/mt6360-regulator.yaml
> > +
> > +required:
> > +  - compatible
> > +  - reg
> > +  - interrupts
> > +  - interrupt-controller
> > +  - "#interrupt-cells"
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > +  - |
> > +    #include <dt-bindings/interrupt-controller/irq.h>
> > +    #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
> > +    i2c {
> > +        #address-cells = <1>;
> > +        #size-cells = <0>;
> > +
> > +        mt6360@34 {
> > +            compatible = "mediatek,mt6360";
> > +            reg = <0x34>;
> > +            wakeup-source;
> > +            interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
> > +            interrupt-names = "IRQB";
> > +            interrupt-controller;
> > +            #interrupt-cells = <1>;
> > +            regulator {
> > +                compatible = "mediatek,mt6360-regulator";
> > +                LDO_VIN3-supply = <&BUCK2>;
> > +                buck1 {
> > +                    regulator-compatible = "BUCK1";
> > +                    regulator-name = "mt6360,buck1";
> > +                    regulator-min-microvolt = <300000>;
> > +                    regulator-max-microvolt = <1300000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP
> > +                                               MT6360_OPMODE_ULP>;
> > +                };
> > +                BUCK2: buck2 {
> > +                regulator-compatible = "BUCK2";
> > +                    regulator-name = "mt6360,buck2";
> > +                    regulator-min-microvolt = <300000>;
> > +                    regulator-max-microvolt = <1300000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP
> > +                                               MT6360_OPMODE_ULP>;
> > +                };
> > +                ldo6 {
> > +                    regulator-compatible = "LDO6";
> > +                    regulator-name = "mt6360,ldo6";
> > +                    regulator-min-microvolt = <500000>;
> > +                    regulator-max-microvolt = <2100000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo7 {
> > +                    regulator-compatible = "LDO7";
> > +                    regulator-name = "mt6360,ldo7";
> > +                    regulator-min-microvolt = <500000>;
> > +                    regulator-max-microvolt = <2100000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo1 {
> > +                    regulator-compatible = "LDO1";
> > +                    regulator-name = "mt6360,ldo1";
> > +                    regulator-min-microvolt = <1200000>;
> > +                    regulator-max-microvolt = <3600000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo2 {
> > +                    regulator-compatible = "LDO2";
> > +                    regulator-name = "mt6360,ldo2";
> > +                    regulator-min-microvolt = <1200000>;
> > +                    regulator-max-microvolt = <3600000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo3 {
> > +                    regulator-compatible = "LDO3";
> > +                    regulator-name = "mt6360,ldo3";
> > +                    regulator-min-microvolt = <1200000>;
> > +                    regulator-max-microvolt = <3600000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo5 {
> > +                    regulator-compatible = "LDO5";
> > +                    regulator-name = "mt6360,ldo5";
> > +                    regulator-min-microvolt = <2700000>;
> > +                    regulator-max-microvolt = <3600000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +            };
> > +        };
> > +    };
> > --
> > 2.7.4
> >

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] dt-bindings: mfd: mediatek: Add bindings for MT6360 PMIC
@ 2020-12-21 10:51     ` Gene Chen
  0 siblings, 0 replies; 12+ messages in thread
From: Gene Chen @ 2020-12-21 10:51 UTC (permalink / raw)
  To: Matthias Brugger, Rob Herring
  Cc: Gene Chen, Wilma.Wu, Linux Kernel Mailing List, cy_huang,
	benjamin.chao, moderated list:ARM/Mediatek SoC support,
	Lee Jones, linux-arm Mailing List, shufan_lee

Dear Reviewers,

    Should I wait for all sub-devices dt-binding review done, then
send the integral binding document?

Gene Chen <gene.chen.richtek@gmail.com> 於 2020年11月13日 週五 下午1:54寫道:
>
> Dear Reviewers,
>
>    Please let me know if there is anything need to be revised.
>
> Gene Chen <gene.chen.richtek@gmail.com> 於 2020年8月20日 週四 下午4:36寫道:
> >
> > From: Gene Chen <gene_chen@richtek.com>
> >
> > Add bindings for MT6360 PMIC
> >
> > Signed-off-by: Gene Chen <gene_chen@richtek.com>
> > ---
> >  Documentation/devicetree/bindings/mfd/mt6360.yaml | 142 ++++++++++++++++++++++
> >  1 file changed, 142 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/mfd/mt6360.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/mfd/mt6360.yaml b/Documentation/devicetree/bindings/mfd/mt6360.yaml
> > new file mode 100644
> > index 0000000..5ad1afd
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/mfd/mt6360.yaml
> > @@ -0,0 +1,142 @@
> > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/mfd/mt6360.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: MT6360 PMIC from MediaTek Integrated
> > +
> > +maintainers:
> > +  - Gene Chen <gene_chen@richtek.com>
> > +
> > +description: |
> > +  MT6360 is a PMIC device with the following sub modules.
> > +  It is interfaced to host controller using I2C interface.
> > +
> > +  This document describes the binding for PMIC device and its sub module.
> > +
> > +properties:
> > +  compatible:
> > +    const: mediatek,mt6360
> > +
> > +  reg:
> > +    description:
> > +      I2C device address.
> > +    maxItems: 1
> > +
> > +  wakeup-source: true
> > +
> > +  interrupts:
> > +    maxItems: 1
> > +
> > +  interrupt-names:
> > +      enum:
> > +        - IRQB
> > +
> > +  interrupt-controller: true
> > +
> > +  "#interrupt-cells":
> > +    const: 1
> > +    description:
> > +      The first cell is the IRQ number.
> > +
> > +  regulator:
> > +    $ref: ../regulator/mt6360-regulator.yaml
> > +
> > +required:
> > +  - compatible
> > +  - reg
> > +  - interrupts
> > +  - interrupt-controller
> > +  - "#interrupt-cells"
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > +  - |
> > +    #include <dt-bindings/interrupt-controller/irq.h>
> > +    #include <dt-bindings/regulator/mediatek,mt6360-regulator.h>
> > +    i2c {
> > +        #address-cells = <1>;
> > +        #size-cells = <0>;
> > +
> > +        mt6360@34 {
> > +            compatible = "mediatek,mt6360";
> > +            reg = <0x34>;
> > +            wakeup-source;
> > +            interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
> > +            interrupt-names = "IRQB";
> > +            interrupt-controller;
> > +            #interrupt-cells = <1>;
> > +            regulator {
> > +                compatible = "mediatek,mt6360-regulator";
> > +                LDO_VIN3-supply = <&BUCK2>;
> > +                buck1 {
> > +                    regulator-compatible = "BUCK1";
> > +                    regulator-name = "mt6360,buck1";
> > +                    regulator-min-microvolt = <300000>;
> > +                    regulator-max-microvolt = <1300000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP
> > +                                               MT6360_OPMODE_ULP>;
> > +                };
> > +                BUCK2: buck2 {
> > +                regulator-compatible = "BUCK2";
> > +                    regulator-name = "mt6360,buck2";
> > +                    regulator-min-microvolt = <300000>;
> > +                    regulator-max-microvolt = <1300000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP
> > +                                               MT6360_OPMODE_ULP>;
> > +                };
> > +                ldo6 {
> > +                    regulator-compatible = "LDO6";
> > +                    regulator-name = "mt6360,ldo6";
> > +                    regulator-min-microvolt = <500000>;
> > +                    regulator-max-microvolt = <2100000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo7 {
> > +                    regulator-compatible = "LDO7";
> > +                    regulator-name = "mt6360,ldo7";
> > +                    regulator-min-microvolt = <500000>;
> > +                    regulator-max-microvolt = <2100000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo1 {
> > +                    regulator-compatible = "LDO1";
> > +                    regulator-name = "mt6360,ldo1";
> > +                    regulator-min-microvolt = <1200000>;
> > +                    regulator-max-microvolt = <3600000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo2 {
> > +                    regulator-compatible = "LDO2";
> > +                    regulator-name = "mt6360,ldo2";
> > +                    regulator-min-microvolt = <1200000>;
> > +                    regulator-max-microvolt = <3600000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo3 {
> > +                    regulator-compatible = "LDO3";
> > +                    regulator-name = "mt6360,ldo3";
> > +                    regulator-min-microvolt = <1200000>;
> > +                    regulator-max-microvolt = <3600000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +                ldo5 {
> > +                    regulator-compatible = "LDO5";
> > +                    regulator-name = "mt6360,ldo5";
> > +                    regulator-min-microvolt = <2700000>;
> > +                    regulator-max-microvolt = <3600000>;
> > +                    regulator-allowed-modes = <MT6360_OPMODE_NORMAL
> > +                                               MT6360_OPMODE_LP>;
> > +                };
> > +            };
> > +        };
> > +    };
> > --
> > 2.7.4
> >

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] dt-bindings: mfd: mediatek: Add bindings for MT6360 PMIC
  2020-12-21 10:51     ` Gene Chen
  (?)
@ 2020-12-22 10:30       ` Lee Jones
  -1 siblings, 0 replies; 12+ messages in thread
From: Lee Jones @ 2020-12-22 10:30 UTC (permalink / raw)
  To: Gene Chen
  Cc: Matthias Brugger, Rob Herring, linux-arm Mailing List,
	moderated list:ARM/Mediatek SoC support,
	Linux Kernel Mailing List, Gene Chen, Wilma.Wu, shufan_lee,
	cy_huang, benjamin.chao

On Mon, 21 Dec 2020, Gene Chen wrote:

> Dear Reviewers,
> 
>     Should I wait for all sub-devices dt-binding review done, then
> send the integral binding document?

Please re-send whatever you have.

-- 
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] dt-bindings: mfd: mediatek: Add bindings for MT6360 PMIC
@ 2020-12-22 10:30       ` Lee Jones
  0 siblings, 0 replies; 12+ messages in thread
From: Lee Jones @ 2020-12-22 10:30 UTC (permalink / raw)
  To: Gene Chen
  Cc: Gene Chen, Linux Kernel Mailing List, cy_huang, benjamin.chao,
	Rob Herring, moderated list:ARM/Mediatek SoC support,
	Matthias Brugger, Wilma.Wu, linux-arm Mailing List, shufan_lee

On Mon, 21 Dec 2020, Gene Chen wrote:

> Dear Reviewers,
> 
>     Should I wait for all sub-devices dt-binding review done, then
> send the integral binding document?

Please re-send whatever you have.

-- 
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] dt-bindings: mfd: mediatek: Add bindings for MT6360 PMIC
@ 2020-12-22 10:30       ` Lee Jones
  0 siblings, 0 replies; 12+ messages in thread
From: Lee Jones @ 2020-12-22 10:30 UTC (permalink / raw)
  To: Gene Chen
  Cc: Gene Chen, Linux Kernel Mailing List, cy_huang, benjamin.chao,
	Rob Herring, moderated list:ARM/Mediatek SoC support,
	Matthias Brugger, Wilma.Wu, linux-arm Mailing List, shufan_lee

On Mon, 21 Dec 2020, Gene Chen wrote:

> Dear Reviewers,
> 
>     Should I wait for all sub-devices dt-binding review done, then
> send the integral binding document?

Please re-send whatever you have.

-- 
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-12-22 10:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20  8:35 [PATCH] dt-bindings: mfd: mediatek: Add bindings for MT6360 PMIC Gene Chen
2020-08-20  8:35 ` Gene Chen
2020-08-20  8:35 ` Gene Chen
2020-11-13  5:54 ` Gene Chen
2020-11-13  5:54   ` Gene Chen
2020-11-13  5:54   ` Gene Chen
2020-12-21 10:51   ` Gene Chen
2020-12-21 10:51     ` Gene Chen
2020-12-21 10:51     ` Gene Chen
2020-12-22 10:30     ` Lee Jones
2020-12-22 10:30       ` Lee Jones
2020-12-22 10:30       ` Lee Jones

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.