Message ID | 20230720080141.56329-1-krzysztof.kozlowski@linaro.org |
---|---|
State | Accepted |
Commit | fb2c3f72e819254d8c76de95917e5f9ff232586c |
Headers | show |
Series | [1/2] dt-bindings: extcon: maxim,max77843: restrict connector properties | expand |
On 23. 7. 20. 17:01, Krzysztof Kozlowski wrote: > Document recently added connector for SM5502 MUIC: > > qcom/msm8916-samsung-serranove.dtb: extcon@14: 'connector' does not match any of the regexes: 'pinctrl-[0-9] > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > .../devicetree/bindings/extcon/siliconmitus,sm5502-muic.yaml | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/extcon/siliconmitus,sm5502-muic.yaml b/Documentation/devicetree/bindings/extcon/siliconmitus,sm5502-muic.yaml > index 7a224b2f0977..7ef2d9bef72d 100644 > --- a/Documentation/devicetree/bindings/extcon/siliconmitus,sm5502-muic.yaml > +++ b/Documentation/devicetree/bindings/extcon/siliconmitus,sm5502-muic.yaml > @@ -27,6 +27,10 @@ properties: > description: I2C slave address of the device. Usually 0x25 for SM5502 > and SM5703, 0x14 for SM5504. > > + connector: > + $ref: /schemas/connector/usb-connector.yaml# > + unevaluatedProperties: false > + > interrupts: > maxItems: 1 > Applied it. Thanks.
diff --git a/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml b/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml index 128960545640..55800fb0221d 100644 --- a/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml +++ b/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml @@ -23,6 +23,7 @@ properties: connector: $ref: /schemas/connector/usb-connector.yaml# + unevaluatedProperties: false ports: $ref: /schemas/graph.yaml#/properties/ports
Do not allow any other properties in connector child, except what usb-connector.yaml evaluates. Fixes: 9729cad0278b ("dt-bindings: extcon: maxim,max77843: Add MAX77843 bindings") Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- Documentation/devicetree/bindings/extcon/maxim,max77843.yaml | 1 + 1 file changed, 1 insertion(+)