[PATCH] dt-bindings: iio: dac: mcp47feb02: Fix I2C address in example

Ariana Lazar posted 1 patch 1 month, 3 weeks ago
There is a newer version of this series
.../bindings/iio/dac/microchip,mcp47feb02.yaml     | 32 +++++++++++-----------
1 file changed, 16 insertions(+), 16 deletions(-)
[PATCH] dt-bindings: iio: dac: mcp47feb02: Fix I2C address in example
Posted by Ariana Lazar 1 month, 3 weeks ago
Change example reg value from 0 to 0x60 in order to use a valid I2C address

Fixes: 4ba12d304175 ("dt-bindings: iio: dac: adding support for Microchip MCP47FEB02")
Link: https://lore.kernel.org/all/dd0dbadb-604b-4f12-8674-268b7db096fd@baylibre.com/
Signed-off-by: Ariana Lazar <ariana.lazar@microchip.com>
---
 .../bindings/iio/dac/microchip,mcp47feb02.yaml     | 32 +++++++++++-----------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/dac/microchip,mcp47feb02.yaml b/Documentation/devicetree/bindings/iio/dac/microchip,mcp47feb02.yaml
index d2466aa6bda2106a8b695347a0edf38462294d03..95ddc8321eff34ed27dab8ce712210d2cb9ae785 100644
--- a/Documentation/devicetree/bindings/iio/dac/microchip,mcp47feb02.yaml
+++ b/Documentation/devicetree/bindings/iio/dac/microchip,mcp47feb02.yaml
@@ -280,23 +280,23 @@ examples:
 
         #address-cells = <1>;
         #size-cells = <0>;
-        dac@0 {
-          compatible = "microchip,mcp47feb02";
-          reg = <0>;
-          vdd-supply = <&vdac_vdd>;
-          vref-supply = <&vref_reg>;
+        dac@60 {
+            compatible = "microchip,mcp47feb02";
+            reg = <0x60>;
+            vdd-supply = <&vdac_vdd>;
+            vref-supply = <&vref_reg>;
 
-          #address-cells = <1>;
-          #size-cells = <0>;
-          channel@0 {
-            reg = <0>;
-            label = "Adjustable_voltage_ch0";
-          };
+            #address-cells = <1>;
+            #size-cells = <0>;
+            channel@0 {
+                reg = <0>;
+                label = "Adjustable_voltage_ch0";
+            };
 
-          channel@1 {
-            reg = <0x1>;
-            label = "Adjustable_voltage_ch1";
-          };
-      };
+            channel@1 {
+                reg = <0x1>;
+                label = "Adjustable_voltage_ch1";
+            };
+        };
     };
 ...

---
base-commit: d2a4ec19d2a2e54c23b5180e939994d3da4a6b91
change-id: 20260417-mcp47feb02-fix6-bd6694d84750

Best regards,
-- 
Ariana Lazar <ariana.lazar@microchip.com>
Re: [PATCH] dt-bindings: iio: dac: mcp47feb02: Fix I2C address in example
Posted by Krzysztof Kozlowski 1 month, 3 weeks ago
On 20/04/2026 12:36, Ariana Lazar wrote:
> Change example reg value from 0 to 0x60 in order to use a valid I2C address
> 
> Fixes: 4ba12d304175 ("dt-bindings: iio: dac: adding support for Microchip MCP47FEB02")

No bug here, that's just example DTS, so drop the fixes. Otherwise
please explain the bug in commit msg.

> Link: https://lore.kernel.org/all/dd0dbadb-604b-4f12-8674-268b7db096fd@baylibre.com/

So you got this report 2 weeks ago and what happened exactly? What are
you fixing here?

Best regards,
Krzysztof
Re: [PATCH] dt-bindings: iio: dac: mcp47feb02: Fix I2C address in example
Posted by Jonathan Cameron 1 month, 3 weeks ago
On Mon, 20 Apr 2026 13:36:02 +0300
Ariana Lazar <ariana.lazar@microchip.com> wrote:

> Change example reg value from 0 to 0x60 in order to use a valid I2C address
> 
> Fixes: 4ba12d304175 ("dt-bindings: iio: dac: adding support for Microchip MCP47FEB02")
> Link: https://lore.kernel.org/all/dd0dbadb-604b-4f12-8674-268b7db096fd@baylibre.com/
> Signed-off-by: Ariana Lazar <ariana.lazar@microchip.com>
> ---
>  .../bindings/iio/dac/microchip,mcp47feb02.yaml     | 32 +++++++++++-----------
>  1 file changed, 16 insertions(+), 16 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/iio/dac/microchip,mcp47feb02.yaml b/Documentation/devicetree/bindings/iio/dac/microchip,mcp47feb02.yaml
> index d2466aa6bda2106a8b695347a0edf38462294d03..95ddc8321eff34ed27dab8ce712210d2cb9ae785 100644
> --- a/Documentation/devicetree/bindings/iio/dac/microchip,mcp47feb02.yaml
> +++ b/Documentation/devicetree/bindings/iio/dac/microchip,mcp47feb02.yaml
> @@ -280,23 +280,23 @@ examples:
>  
>          #address-cells = <1>;
>          #size-cells = <0>;
> -        dac@0 {
> -          compatible = "microchip,mcp47feb02";
> -          reg = <0>;
> -          vdd-supply = <&vdac_vdd>;
> -          vref-supply = <&vref_reg>;
> +        dac@60 {
> +            compatible = "microchip,mcp47feb02";
Why is this indent changing?

> +            reg = <0x60>;
> +            vdd-supply = <&vdac_vdd>;
> +            vref-supply = <&vref_reg>;
>  
> -          #address-cells = <1>;
> -          #size-cells = <0>;
> -          channel@0 {
> -            reg = <0>;
> -            label = "Adjustable_voltage_ch0";
> -          };
> +            #address-cells = <1>;
> +            #size-cells = <0>;
> +            channel@0 {
> +                reg = <0>;
> +                label = "Adjustable_voltage_ch0";
> +            };
>  
> -          channel@1 {
> -            reg = <0x1>;
> -            label = "Adjustable_voltage_ch1";
> -          };
> -      };
> +            channel@1 {
> +                reg = <0x1>;
> +                label = "Adjustable_voltage_ch1";
> +            };
> +        };
>      };
>  ...
> 
> ---
> base-commit: d2a4ec19d2a2e54c23b5180e939994d3da4a6b91
> change-id: 20260417-mcp47feb02-fix6-bd6694d84750
> 
> Best regards,
Re: [PATCH] dt-bindings: iio: dac: mcp47feb02: Fix I2C address in example
Posted by Ariana.Lazar@microchip.com 1 month, 3 weeks ago
Hello Jonathan,

> > @@ -280,23 +280,23 @@ examples:
> > 
> >          #address-cells = <1>;
> >          #size-cells = <0>;
> > -        dac@0 {
> > -          compatible = "microchip,mcp47feb02";
> > -          reg = <0>;
> > -          vdd-supply = <&vdac_vdd>;
> > -          vref-supply = <&vref_reg>;
> > +        dac@60 {
> > +            compatible = "microchip,mcp47feb02";
> Why is this indent changing?
> 
> > +            reg = <0x60>;
> > +            vdd-supply = <&vdac_vdd>;
> > +            vref-supply = <&vref_reg>;
> > 
> > -          #address-cells = <1>;
> > -          #size-cells = <0>;
> > -          channel@0 {
> > -            reg = <0>;
> > -            label = "Adjustable_voltage_ch0";
> > -          };
> > +            #address-cells = <1>;
> > +            #size-cells = <0>;
> > +            channel@0 {
> > +                reg = <0>;
> > +                label = "Adjustable_voltage_ch0";
> > +            };
> > 
> > -          channel@1 {
> > -            reg = <0x1>;
> > -            label = "Adjustable_voltage_ch1";
> > -          };
> > -      };
> > +            channel@1 {
> > +                reg = <0x1>;
> > +                label = "Adjustable_voltage_ch1";
> > +            };
> > +        };
> >      };
> >  ...
> 

Thank you for the review.

   1. I updated the example indentation in order to use consistent 4-
      space indentation, instead of mixing with 2-space as in the
      previous version.

Best regards,
Ariana

Re: [PATCH] dt-bindings: iio: dac: mcp47feb02: Fix I2C address in example
Posted by Jonathan Cameron 1 month, 3 weeks ago
On Tue, 21 Apr 2026 14:09:48 +0000
<Ariana.Lazar@microchip.com> wrote:

> Hello Jonathan,
> 
> > > @@ -280,23 +280,23 @@ examples:
> > > 
> > >          #address-cells = <1>;
> > >          #size-cells = <0>;
> > > -        dac@0 {
> > > -          compatible = "microchip,mcp47feb02";
> > > -          reg = <0>;
> > > -          vdd-supply = <&vdac_vdd>;
> > > -          vref-supply = <&vref_reg>;
> > > +        dac@60 {
> > > +            compatible = "microchip,mcp47feb02";  
> > Why is this indent changing?
> >   
> > > +            reg = <0x60>;
> > > +            vdd-supply = <&vdac_vdd>;
> > > +            vref-supply = <&vref_reg>;
> > > 
> > > -          #address-cells = <1>;
> > > -          #size-cells = <0>;
> > > -          channel@0 {
> > > -            reg = <0>;
> > > -            label = "Adjustable_voltage_ch0";
> > > -          };
> > > +            #address-cells = <1>;
> > > +            #size-cells = <0>;
> > > +            channel@0 {
> > > +                reg = <0>;
> > > +                label = "Adjustable_voltage_ch0";
> > > +            };
> > > 
> > > -          channel@1 {
> > > -            reg = <0x1>;
> > > -            label = "Adjustable_voltage_ch1";
> > > -          };
> > > -      };
> > > +            channel@1 {
> > > +                reg = <0x1>;
> > > +                label = "Adjustable_voltage_ch1";
> > > +            };
> > > +        };
> > >      };
> > >  ...  
> >   
> 
> Thank you for the review.
> 
>    1. I updated the example indentation in order to use consistent 4-
>       space indentation, instead of mixing with 2-space as in the
>       previous version.
> 
If that is needed, two patches.  One that makes the address fix, then
a follow up to fix the indentation with no functional changes.

thanks,

Jonathan

> Best regards,
> Ariana
>