Skip to contentSkip to conversation

dt-bindings: hwmon: lm87: Convert to dtschema

PATCH In review Li peiyu 3 participants 14 messages Oct 25, 2023 – Oct 29, 2023

Subsystems (2)
lore
Share & tools
lore

Li peiyu

author
#0 lore raw

PATCH 1/1 dt-bindings: hwmon: lm87: Convert to dtschema

Convert the lm87 hwmon sensor bindings to DT schema

---
 .../devicetree/bindings/hwmon/lm87.txt        | 30 ----------
 .../devicetree/bindings/hwmon/lm87.yaml       | 59 +++++++++++++++++++
 2 files changed, 59 insertions(+), 30 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/hwmon/lm87.txt
 create mode 100644 Documentation/devicetree/bindings/hwmon/lm87.yaml
Documentation/devicetree/bindings/hwmon/lm87.txt deleted +0 -30
deleted file mode 100644
index 758ff398b67b..000000000000
@@ -1,30 +0,0 @@
-*LM87 hwmon sensor.
-
-Required properties:
-- compatible: Should be
-	"ti,lm87"
-
-- reg: I2C address
-
-optional properties:
-- has-temp3: This configures pins 18 and 19 to be used as a second
-             remote temperature sensing channel. By default the pins
-             are configured as voltage input pins in0 and in5.
-
-- has-in6: When set, pin 5 is configured to be used as voltage input
-           in6. Otherwise the pin is set as FAN1 input.
-
-- has-in7: When set, pin 6 is configured to be used as voltage input
-           in7. Otherwise the pin is set as FAN2 input.
-
-- vcc-supply: a Phandle for the regulator supplying power, can be
-              configured to measure 5.0V power supply. Default is 3.3V.
-
-Example:
-
-lm87@2e {
-	compatible = "ti,lm87";
-	reg = <0x2e>;
-	has-temp3;
-	vcc-supply = <&reg_5v0>;
-};
Documentation/devicetree/bindings/hwmon/lm87.yaml new file +59 -0

59 lines not on this page · raw message

Signature · 1 line
2.34.1
#1 lore raw
Quoted 3 lines · Li peiyu

Convert the lm87 hwmon sensor bindings to DT schema

Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested.

Please kindly resend and include all necessary To/Cc entries.

Also, please use filename like compatible.

Best regards,
Krzysztof

author
#2 lore raw

PATCH v2 1/1 dt-bindings: hwmon: lm87: convert to YAML

Convert the lm87 hwmon sensor bindings to DT schema

---
Changes for v2:
- replace node name lm87 with sensor
- replace character '\t' with spaces

 .../devicetree/bindings/hwmon/lm87.txt        | 30 ----------
 .../devicetree/bindings/hwmon/lm87.yaml       | 59 +++++++++++++++++++
 2 files changed, 59 insertions(+), 30 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/hwmon/lm87.txt
 create mode 100644 Documentation/devicetree/bindings/hwmon/lm87.yaml
Documentation/devicetree/bindings/hwmon/lm87.txt deleted +0 -30
deleted file mode 100644
index 758ff398b67b..000000000000
@@ -1,30 +0,0 @@
-*LM87 hwmon sensor.
-
-Required properties:
-- compatible: Should be
-	"ti,lm87"
-
-- reg: I2C address
-
-optional properties:
-- has-temp3: This configures pins 18 and 19 to be used as a second
-             remote temperature sensing channel. By default the pins
-             are configured as voltage input pins in0 and in5.
-
-- has-in6: When set, pin 5 is configured to be used as voltage input
-           in6. Otherwise the pin is set as FAN1 input.
-
-- has-in7: When set, pin 6 is configured to be used as voltage input
-           in7. Otherwise the pin is set as FAN2 input.
-
-- vcc-supply: a Phandle for the regulator supplying power, can be
-              configured to measure 5.0V power supply. Default is 3.3V.
-
-Example:
-
-lm87@2e {
-	compatible = "ti,lm87";
-	reg = <0x2e>;
-	has-temp3;
-	vcc-supply = <&reg_5v0>;
-};
Documentation/devicetree/bindings/hwmon/lm87.yaml new file +59 -0

59 lines not on this page · raw message

Signature · 1 line
2.34.1
maintainer
#3 lore raw

Re: [PATCH v2] dt-bindings: hwmon: lm87: convert to YAML

Quoted 8 lines · Li peiyu

Convert the lm87 hwmon sensor bindings to DT schema

---
Changes for v2:
- replace node name lm87 with sensor
- replace character '\t' with spaces

Quoted 6 lines
 .../devicetree/bindings/hwmon/lm87.txt        | 30 ----------
 .../devicetree/bindings/hwmon/lm87.yaml       | 59 +++++++++++++++++++
 2 files changed, 59 insertions(+), 30 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/hwmon/lm87.txt
 create mode 100644 Documentation/devicetree/bindings/hwmon/lm87.yaml

My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):

yamllint warnings/errors:

dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/hwmon/lm87.yaml: has-temp3: missing type definition /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/hwmon/lm87.yaml: has-in6: missing type definition /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/hwmon/lm87.yaml: has-in7: missing type definition

doc reference errors (make refcheckdocs):

See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]

The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.

If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:

pip3 install dtschema --upgrade

Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.

#4 lore raw

Re: [PATCH v2] dt-bindings: hwmon: lm87: convert to YAML

In reply to Li peiyu
Quoted 10 lines · Li peiyu

Convert the lm87 hwmon sensor bindings to DT schema

---
Changes for v2:
- replace node name lm87 with sensor
- replace character '\t' with spaces

 .../devicetree/bindings/hwmon/lm87.txt        | 30 ----------
 .../devicetree/bindings/hwmon/lm87.yaml       | 59 +++++++++++++++++++

...

Documentation/devicetree/bindings/hwmon/lm87.yaml

Quoted 16 lines

-- vcc-supply: a Phandle for the regulator supplying power, can be

Documentation/devicetree/bindings/hwmon/lm87.txt deleted +0 -10
-              configured to measure 5.0V power supply. Default is 3.3V.
-
-Example:
-
-lm87@2e {
-	compatible = "ti,lm87";
-	reg = <0x2e>;
-	has-temp3;
-	vcc-supply = <&reg_5v0>;
-};
Documentation/devicetree/bindings/hwmon/lm87.yaml new file +0 -0
new file mode 100644
index 000000000000..8f4f07845d95

This is a friendly reminder during the review process.

It seems my previous comments were not fully addressed. Maybe my feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them.

Thank you.

Documentation/devicetree/bindings/hwmon/lm87.yaml

Quoted 1 line
Documentation/devicetree/bindings/hwmon/lm87.yaml new file +0 -0
@@ -0,0 +1,59 @@

It does not look like you tested the bindings, at least after quick look. Please run make dt_binding_check (see Documentation/devicetree/bindings/writing-schema.rst for instructions). Maybe you need to update your dtschema and yamllint.

Best regards,
Krzysztof

author
#5 lore raw

PATCH v3 1/1 dt-bindings: hwmon: lm87: convert to YAML

Convert the lm87 hwmon sensor bindings to DT schema

---
Changes for v3:
- add type definition of has-temp3, has-in6, has-in7
- Change the description of has-temp3 Changes for v2:
- replace node name lm87 with sensor
- replace character '\t' with spaces

 .../devicetree/bindings/hwmon/lm87.txt        | 30 ---------
 .../devicetree/bindings/hwmon/lm87.yaml       | 62 +++++++++++++++++++
 2 files changed, 62 insertions(+), 30 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/hwmon/lm87.txt
 create mode 100644 Documentation/devicetree/bindings/hwmon/lm87.yaml
Documentation/devicetree/bindings/hwmon/lm87.txt deleted +0 -30
deleted file mode 100644
index 758ff398b67b..000000000000
@@ -1,30 +0,0 @@
-*LM87 hwmon sensor.
-
-Required properties:
-- compatible: Should be
-	"ti,lm87"
-
-- reg: I2C address
-
-optional properties:
-- has-temp3: This configures pins 18 and 19 to be used as a second
-             remote temperature sensing channel. By default the pins
-             are configured as voltage input pins in0 and in5.
-
-- has-in6: When set, pin 5 is configured to be used as voltage input
-           in6. Otherwise the pin is set as FAN1 input.
-
-- has-in7: When set, pin 6 is configured to be used as voltage input
-           in7. Otherwise the pin is set as FAN2 input.
-
-- vcc-supply: a Phandle for the regulator supplying power, can be
-              configured to measure 5.0V power supply. Default is 3.3V.
-
-Example:
-
-lm87@2e {
-	compatible = "ti,lm87";
-	reg = <0x2e>;
-	has-temp3;
-	vcc-supply = <&reg_5v0>;
-};
Documentation/devicetree/bindings/hwmon/lm87.yaml new file +62 -0

62 lines not on this page · raw message

Signature · 1 line
2.34.1
#6 lore raw

Re: [PATCH v3] dt-bindings: hwmon: lm87: convert to YAML

Quoted 11 lines · Li peiyu

Convert the lm87 hwmon sensor bindings to DT schema

---
Changes for v3:
- add type definition of has-temp3, has-in6, has-in7
- Change the description of has-temp3 Changes for v2:
- replace node name lm87 with sensor
- replace character '\t' with spaces

Quoted 2 lines
 .../devicetree/bindings/hwmon/lm87.txt        | 30 ---------
 .../devicetree/bindings/hwmon/lm87.yaml       | 62 +++++++++++++++++++

Nothing improved.

Stop ignoring feedback. You must respond to it or implement it.

Best regards,
Krzysztof

author
#7 lore raw

Re: [PATCH v3] dt-bindings: hwmon: lm87: convert to YAML

Quoted 16 lines · Li peiyu
Quoted 11 lines

Convert the lm87 hwmon sensor bindings to DT schema

---
Changes for v3:
- add type definition of has-temp3, has-in6, has-in7
- Change the description of has-temp3 Changes for v2:
- replace node name lm87 with sensor
- replace character '\t' with spaces

Quoted 2 lines
 .../devicetree/bindings/hwmon/lm87.txt        | 30 ---------
 .../devicetree/bindings/hwmon/lm87.yaml       | 62 +++++++++++++++++++
Quoted 7 lines

Nothing improved.

Stop ignoring feedback. You must respond to it or implement it.

Best regards,
Krzysztof

I'm so sorry for that.For v3 I just run make dt_binding_check and forget to run checkpatch.pl,resulting in not finding an extra space.Now running the dt_binding_check on my computer will cause an error regarding the ti,ds90ub960.yaml
file when I specify the file to be checked as lm87.yaml. This error will occur even if I specify other files, I am not sure if it will have an impact.I'll submit
v4.If there are still issues,please tell me the reason again.Sorry again.

Thanks,
Li peiyu

#8 lore raw

Re: [PATCH v3] dt-bindings: hwmon: lm87: convert to YAML

Quoted 16 lines · peiyu li
Quoted 16 lines · Li peiyu
Quoted 13 lines

Convert the lm87 hwmon sensor bindings to DT schema

---
Changes for v3:
- add type definition of has-temp3, has-in6, has-in7
- Change the description of has-temp3 Changes for v2:
- replace node name lm87 with sensor
- replace character '\t' with spaces

 .../devicetree/bindings/hwmon/lm87.txt        | 30 ---------
 .../devicetree/bindings/hwmon/lm87.yaml       | 62 +++++++++++++++++++
Quoted 8 lines
Quoted 7 lines

Nothing improved.

Stop ignoring feedback. You must respond to it or implement it.

Best regards,
Krzysztof

I'm so sorry for that.For v3 I just run make dt_binding_check and forget to

You even removed my address when replying this!

Quoted 7 lines

run checkpatch.pl,resulting in not finding an extra space.Now running the dt_binding_check on my computer will cause an error regarding the ti,ds90ub960.yaml
file when I specify the file to be checked as lm87.yaml. This error will occur even if I specify other files, I am not sure if it will have an impact.I'll submit
v4.If there are still issues,please tell me the reason again.Sorry again.

v4 did not improve. Please explain me carefully how did you implement these two feedbacks from first version, so 25th of Oct:

Quoted 1 line

Please use scripts/get_maintainers.pl to get a list of necessary

people and lists to CC.

Quoted 1 line

Also, please use filename like compatible.

Best regards,
Krzysztof

author
#9 lore raw

Re: [PATCH v3] dt-bindings: hwmon: lm87: convert to YAML

Quoted 11 lines · Krzysztof Kozlowski

You even removed my address when replying this!

Quoted 7 lines

run checkpatch.pl,resulting in not finding an extra space.Now running the dt_binding_check on my computer will cause an error regarding the ti,ds90ub960.yaml
file when I specify the file to be checked as lm87.yaml. This error will occur even if I specify other files, I am not sure if it will have an impact.I'll submit
v4.If there are still issues,please tell me the reason again.Sorry again.

Quoted 6 lines

v4 did not improve. Please explain me carefully how did you implement these two feedbacks from first version, so 25th of Oct:

Quoted 1 line

Please use scripts/get_maintainers.pl to get a list of necessary

people and lists to CC.

I will send the next patch to all necessary people and cc all necessary lists.

Quoted 2 lines
Quoted 1 line

Also, please use filename like compatible.

In the next version I will change the file name to "ti,lm87.yaml", which is the same as "compatible".

Quoted 3 lines

Best regards,
Krzysztof

Thanks,
Li peiyu

author
#10 lore raw

PATCH v4 1/1 dt-bindings: hwmon: lm87: convert to YAML

In reply to Krzysztof Kozlowski

Convert the lm87 hwmon sensor bindings to DT schema

---
Changes for v4:
- remove excess spaces
Changes for v3:
- add type definition of has-temp3, has-in6, has-in7
- Change the description of has-temp3 Changes for v2:
- replace node name lm87 with sensor
- replace character '\t' with spaces

 .../devicetree/bindings/hwmon/lm87.txt        | 30 ---------
 .../devicetree/bindings/hwmon/lm87.yaml       | 62 +++++++++++++++++++
 2 files changed, 62 insertions(+), 30 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/hwmon/lm87.txt
 create mode 100644 Documentation/devicetree/bindings/hwmon/lm87.yaml
Documentation/devicetree/bindings/hwmon/lm87.txt deleted +0 -30
deleted file mode 100644
index 758ff398b67b..000000000000
@@ -1,30 +0,0 @@
-*LM87 hwmon sensor.
-
-Required properties:
-- compatible: Should be
-	"ti,lm87"
-
-- reg: I2C address
-
-optional properties:
-- has-temp3: This configures pins 18 and 19 to be used as a second
-             remote temperature sensing channel. By default the pins
-             are configured as voltage input pins in0 and in5.
-
-- has-in6: When set, pin 5 is configured to be used as voltage input
-           in6. Otherwise the pin is set as FAN1 input.
-
-- has-in7: When set, pin 6 is configured to be used as voltage input
-           in7. Otherwise the pin is set as FAN2 input.
-
-- vcc-supply: a Phandle for the regulator supplying power, can be
-              configured to measure 5.0V power supply. Default is 3.3V.
-
-Example:
-
-lm87@2e {
-	compatible = "ti,lm87";
-	reg = <0x2e>;
-	has-temp3;
-	vcc-supply = <&reg_5v0>;
-};
Documentation/devicetree/bindings/hwmon/lm87.yaml new file +62 -0

62 lines not on this page · raw message

Signature · 1 line
2.34.1
#11 lore raw

Re: [PATCH v4] dt-bindings: hwmon: lm87: convert to YAML

Quoted 13 lines · Li peiyu

Convert the lm87 hwmon sensor bindings to DT schema

---
Changes for v4:
- remove excess spaces
Changes for v3:
- add type definition of has-temp3, has-in6, has-in7
- Change the description of has-temp3 Changes for v2:
- replace node name lm87 with sensor
- replace character '\t' with spaces

Quoted 2 lines
 .../devicetree/bindings/hwmon/lm87.txt        | 30 ---------
 .../devicetree/bindings/hwmon/lm87.yaml       | 62 +++++++++++++++++++

Nothing improved from my original feedback from 25th of October.

Instead of ignoring it, please open the email, read and respond inline that you understand each part of the feedback and you are going to implement it.

Best regards,
Krzysztof

#12 lore raw

Re: [PATCH v4] dt-bindings: hwmon: lm87: convert to YAML

In reply to Li peiyu
Quoted 6 lines · Li peiyu

Convert the lm87 hwmon sensor bindings to DT schema

---
Changes for v4:
- remove excess spaces

One more comment (all previous are still valid):

Do not attach (thread) your patchsets to some other threads (unrelated or older versions). This buries them deep in the mailbox and might interfere with applying entire sets.

Best regards,
Krzysztof

#13 lore raw

Re: [PATCH v2] dt-bindings: hwmon: lm87: convert to YAML

In reply to Li peiyu
Quoted 10 lines · Li peiyu

Convert the lm87 hwmon sensor bindings to DT schema

---
Changes for v2:
- replace node name lm87 with sensor
- replace character '\t' with spaces

 .../devicetree/bindings/hwmon/lm87.txt        | 30 ----------
 .../devicetree/bindings/hwmon/lm87.yaml       | 59 +++++++++++++++++++

Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Best regards,
Krzysztof