On Thu, Jan 23, 2020 at 09:34:31AM +0100, Olivier Moysan wrote: > Convert the STM32 DFSDM bindings to DT schema format > using json-schema. > > Signed-off-by: Olivier Moysan <olivier.moysan@xxxxxx> > --- > The DT check still returns some warnings on this bindings: > dfsdm@4400d000: filter@4: 'st,adc-channels' is a required property > dfsdm@4400d000: filter@5: 'st,adc-channels' is a required property ... > > These warnings occur because some disabled nodes do not provides the > required properties. These nodes are included from SoC DT, > and do not provides by default the properties which are board dependent. We handle disabled nodes, but not when they are child nodes. > As workaround in DFSDM yaml bindings, the properties > (like st,adc-channels) could be defined as required, > only for the nodes which are in enabled state. We should handle this in the tooling, not the schemas. I entered an issue to track this[1]. > --- > .../bindings/iio/adc/st,stm32-dfsdm-adc.txt | 135 ------- > .../bindings/iio/adc/st,stm32-dfsdm-adc.yaml | 332 ++++++++++++++++++ > 2 files changed, 332 insertions(+), 135 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.txt > create mode 100644 Documentation/devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml Applied. [1] https://github.com/devicetree-org/dt-schema/issues/32 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx https://mailman.alsa-project.org/mailman/listinfo/alsa-devel