• Brian Masney's avatar
    dt-bindings: backlight: lm3630a: correct schema validation · ef4db28c
    Brian Masney authored
    The '#address-cells' and '#size-cells' properties were not defined in
    the lm3630a bindings and would cause the following error when
    attempting to validate the examples against the schema:
    
    Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.example.dt.yaml:
    '#address-cells', '#size-cells' do not match any of the regexes:
    '^led@[01]$', 'pinctrl-[0-9]+'
    
    Correct this by adding those two properties.
    
    While we're here, move the ti,linear-mapping-mode property to the
    led@[01] child nodes to correct the following validation error:
    
    Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.example.dt.yaml:
    led@0: 'ti,linear-mapping-mode' does not match any of the regexes:
    'pinctrl-[0-9]+'
    
    Fixes: 32fcb75c
    
     ("dt-bindings: backlight: Add lm3630a bindings")
    Signed-off-by: default avatarBrian Masney <masneyb@onstation.org>
    Reported-by: default avatarRob Herring <robh+dt@kernel.org>
    Acked-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
    Acked-by: default avatarDan Murphy <dmurphy@ti.com>
    [robh: also drop maxItems from child reg]
    Signed-off-by: default avatarRob Herring <robh@kernel.org>
    ef4db28c
lm3630a-backlight.yaml 3.27 KB