devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/2] hwmon: (nct6775) Add i2c driver
@ 2022-04-28  1:27 Zev Weiss
  2022-04-28  1:27 ` [PATCH v5 1/2] dt-bindings: hwmon: Add nuvoton,nct6775 Zev Weiss
  0 siblings, 1 reply; 4+ messages in thread
From: Zev Weiss @ 2022-04-28  1:27 UTC (permalink / raw)
  To: Guenter Roeck, Jean Delvare, linux-hwmon
  Cc: Zev Weiss, Renze Nicolai, Oleksandr Natalenko, openbmc,
	linux-kernel, Rob Herring, Krzysztof Kozlowski, devicetree

Hello,

This series contains the remaining two outstanding patches adding i2c
support to the nct6775 hwmon driver.

Changes since v4 [0]:
 - Added missing type $ref to nuvoton,tsi-channel-mask property in DT
   binding [Krzysztof, Rob's bot]
 - Added 'F:' line for nuvoton,nct6775.yaml DT binding file to
   MAINTAINERS

The first patch adds a DT binding for the Nuvoton Super I/O chips
supported by the nct6775 driver; the second adds an i2c hwmon driver
wrapped around the new nct6775-core module.

(Since the preparatory work for this that comprised the bulk of the
previous iterations of the series is now in Guenter's hwmon-next tree
this is a somewhat abridged cover letter; see [0] for additional
background info if needed.)

[0] https://lore.kernel.org/linux-hwmon/20220427010154.29749-1-zev@bewilderbeest.net/

Zev Weiss (2):
  dt-bindings: hwmon: Add nuvoton,nct6775
  hwmon: (nct6775) Add i2c driver

 .../bindings/hwmon/nuvoton,nct6775.yaml       |  57 +++++
 MAINTAINERS                                   |   7 +
 drivers/hwmon/Kconfig                         |  17 ++
 drivers/hwmon/Makefile                        |   1 +
 drivers/hwmon/nct6775-i2c.c                   | 195 ++++++++++++++++++
 5 files changed, 277 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml
 create mode 100644 drivers/hwmon/nct6775-i2c.c

-- 
2.36.0


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

* [PATCH v5 1/2] dt-bindings: hwmon: Add nuvoton,nct6775
  2022-04-28  1:27 [PATCH v5 0/2] hwmon: (nct6775) Add i2c driver Zev Weiss
@ 2022-04-28  1:27 ` Zev Weiss
  2022-05-03 17:56   ` Rob Herring
  2022-05-10  0:31   ` Guenter Roeck
  0 siblings, 2 replies; 4+ messages in thread
From: Zev Weiss @ 2022-04-28  1:27 UTC (permalink / raw)
  To: Guenter Roeck, Jean Delvare, linux-hwmon, Rob Herring, devicetree
  Cc: Zev Weiss, Renze Nicolai, Oleksandr Natalenko, openbmc,
	linux-kernel, Krzysztof Kozlowski

These Super I/O chips have an i2c interface that some systems expose
to a BMC; the BMC's device tree can now describe that via this
binding.

Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
---
 .../bindings/hwmon/nuvoton,nct6775.yaml       | 57 +++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml

diff --git a/Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml b/Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml
new file mode 100644
index 000000000000..358b262431fc
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml
@@ -0,0 +1,57 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+
+$id: http://devicetree.org/schemas/hwmon/nuvoton,nct6775.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Nuvoton NCT6775 and compatible Super I/O chips
+
+maintainers:
+  - Zev Weiss <zev@bewilderbeest.net>
+
+properties:
+  compatible:
+    enum:
+      - nuvoton,nct6106
+      - nuvoton,nct6116
+      - nuvoton,nct6775
+      - nuvoton,nct6776
+      - nuvoton,nct6779
+      - nuvoton,nct6791
+      - nuvoton,nct6792
+      - nuvoton,nct6793
+      - nuvoton,nct6795
+      - nuvoton,nct6796
+      - nuvoton,nct6797
+      - nuvoton,nct6798
+
+  reg:
+    maxItems: 1
+
+  nuvoton,tsi-channel-mask:
+    description:
+      Bitmask indicating which TSI temperature sensor channels are
+      active.  LSB is TSI0, bit 1 is TSI1, etc.
+    $ref: /schemas/types.yaml#/definitions/uint32
+    maximum: 0xff
+    default: 0
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        superio@4d {
+            compatible = "nuvoton,nct6779";
+            reg = <0x4d>;
+            nuvoton,tsi-channel-mask = <0x03>;
+        };
+    };
-- 
2.36.0


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

* Re: [PATCH v5 1/2] dt-bindings: hwmon: Add nuvoton,nct6775
  2022-04-28  1:27 ` [PATCH v5 1/2] dt-bindings: hwmon: Add nuvoton,nct6775 Zev Weiss
@ 2022-05-03 17:56   ` Rob Herring
  2022-05-10  0:31   ` Guenter Roeck
  1 sibling, 0 replies; 4+ messages in thread
From: Rob Herring @ 2022-05-03 17:56 UTC (permalink / raw)
  To: Zev Weiss
  Cc: Jean Delvare, Renze Nicolai, linux-kernel, openbmc, devicetree,
	Rob Herring, Oleksandr Natalenko, Guenter Roeck, linux-hwmon,
	Krzysztof Kozlowski

On Wed, 27 Apr 2022 18:27:06 -0700, Zev Weiss wrote:
> These Super I/O chips have an i2c interface that some systems expose
> to a BMC; the BMC's device tree can now describe that via this
> binding.
> 
> Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
> ---
>  .../bindings/hwmon/nuvoton,nct6775.yaml       | 57 +++++++++++++++++++
>  1 file changed, 57 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml
> 

Reviewed-by: Rob Herring <robh@kernel.org>

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

* Re: [PATCH v5 1/2] dt-bindings: hwmon: Add nuvoton,nct6775
  2022-04-28  1:27 ` [PATCH v5 1/2] dt-bindings: hwmon: Add nuvoton,nct6775 Zev Weiss
  2022-05-03 17:56   ` Rob Herring
@ 2022-05-10  0:31   ` Guenter Roeck
  1 sibling, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2022-05-10  0:31 UTC (permalink / raw)
  To: Zev Weiss
  Cc: Jean Delvare, linux-hwmon, Rob Herring, devicetree, Renze Nicolai,
	Oleksandr Natalenko, openbmc, linux-kernel, Krzysztof Kozlowski

On Wed, Apr 27, 2022 at 06:27:06PM -0700, Zev Weiss wrote:
> These Super I/O chips have an i2c interface that some systems expose
> to a BMC; the BMC's device tree can now describe that via this
> binding.
> 
> Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
> Reviewed-by: Rob Herring <robh@kernel.org>

Applied.

Thanks,
Guenter

> ---
>  .../bindings/hwmon/nuvoton,nct6775.yaml       | 57 +++++++++++++++++++
>  1 file changed, 57 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml
> 
> diff --git a/Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml b/Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml
> new file mode 100644
> index 000000000000..358b262431fc
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml
> @@ -0,0 +1,57 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +
> +$id: http://devicetree.org/schemas/hwmon/nuvoton,nct6775.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Nuvoton NCT6775 and compatible Super I/O chips
> +
> +maintainers:
> +  - Zev Weiss <zev@bewilderbeest.net>
> +
> +properties:
> +  compatible:
> +    enum:
> +      - nuvoton,nct6106
> +      - nuvoton,nct6116
> +      - nuvoton,nct6775
> +      - nuvoton,nct6776
> +      - nuvoton,nct6779
> +      - nuvoton,nct6791
> +      - nuvoton,nct6792
> +      - nuvoton,nct6793
> +      - nuvoton,nct6795
> +      - nuvoton,nct6796
> +      - nuvoton,nct6797
> +      - nuvoton,nct6798
> +
> +  reg:
> +    maxItems: 1
> +
> +  nuvoton,tsi-channel-mask:
> +    description:
> +      Bitmask indicating which TSI temperature sensor channels are
> +      active.  LSB is TSI0, bit 1 is TSI1, etc.
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    maximum: 0xff
> +    default: 0
> +
> +required:
> +  - compatible
> +  - reg
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    i2c {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +
> +        superio@4d {
> +            compatible = "nuvoton,nct6779";
> +            reg = <0x4d>;
> +            nuvoton,tsi-channel-mask = <0x03>;
> +        };
> +    };

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

end of thread, other threads:[~2022-05-10  0:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-28  1:27 [PATCH v5 0/2] hwmon: (nct6775) Add i2c driver Zev Weiss
2022-04-28  1:27 ` [PATCH v5 1/2] dt-bindings: hwmon: Add nuvoton,nct6775 Zev Weiss
2022-05-03 17:56   ` Rob Herring
2022-05-10  0:31   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).