• Kumar Gala's avatar
    checks: Add unit address check if node is enabled · 7cbc550f
    Kumar Gala authored
    There are various SoCs that have 2 different peripheral blocks at the
    same register offset.  However, we might have one block marked as
    status = "disabled" and the other status = "ok".  In such cases we
    shouldn't warn about duplicate unit-address.
    Here's a cut down example that we would warning about before:
    / {
    	#address-cells = <0x01>;
    	#size-cells = <0x01>;
    	soc {
    		#address-cells = <0x01>;
    		#size-cells = <0x01>;
    		compatible = "simple-bus";
    		i2c0: i2c@40003000 {
    			compatible = "nordic,nrf-i2c";
    			reg = <0x40003000 0x1000>;
    			status = "ok";
    		spi0: spi@40003000 {
    			compatible = "nordic,nrf-spi";
    			reg = <0x40003000 0x1000>;
    			status = "disabled";
    We introduce 'unique_unit_address_if_enabled' check that is disabled by
    Signed-off-by: 's avatarKumar Gala <kumar.gala@linaro.org>
    Signed-off-by: 's avatarDavid Gibson <david@gibson.dropbear.id.au>