Skip to content

Commit

Permalink
snippets: tests: all drivers: fixes for upstream sensors
Browse files Browse the repository at this point in the history
Warning was:

  /test/w1@66660000: unnecessary #address-cells/#size-cells
  without "ranges" or child "reg" property

  /test/w1@66660000:ranges: empty "ranges" property
  but its #size-cells (0) differs from /test (1)

  /test/i2c@11112222/lis2dux12@8a: duplicate unit-address
  (also used in node /test/i2c@11112222/iis328dq@8a)

Signed-off-by: Stephan Linz <linz@li-pro.net>
  • Loading branch information
rexut committed Jul 27, 2024
1 parent 9660464 commit add2b4b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions snippets/tstdrv-bldall-sensor-adj/tstdrv-bldall-sensor-adj.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,29 @@
reg = <0xffffeeee 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
ranges = <0 0>;
};
};

/* FIX: /test/w1@66660000: unnecessary #address-cells/#size-cells
* without "ranges" or child "reg" property
* OR: /test/w1@66660000:ranges: empty "ranges" property
* but its #size-cells (0) differs from /test (1)
*/
&test_w1 {
ranges = <0 0>;
};

/* FIX: /test/i2c@11112222/lis2dux12@8a: duplicate unit-address
* (also used in node /test/i2c@11112222/iis328dq@8a)
*/
/delete-node/ &test_i2c_iis328dq;
&test_i2c_adj {
test_i2c_iis328dq: iis328dq@8a {
compatible = "st,iis328dq";
status = "okay";
reg = <0x8a>;
int2-gpios = <&test_gpio 0 0>;
threshold-int-pad = <2>;
};
};

0 comments on commit add2b4b

Please sign in to comment.