# SPDX-License-Identifier: BSD-2-Clause # Copyright 2018 Linaro Ltd. # Copyright 2018-2019 Arm Ltd. %YAML 1.2 --- $id: http://devicetree.org/meta-schemas/vendor-props.yaml# $schema: https://json-schema.org/draft/2019-09/schema description: Metaschema for vendor specific properties properties: adi,channels: type: object patternProperties: '[\[\]*{}$\^\\]+': true # exclude regex's '^[^,]*$': true '^linux,.*$': true '-(gpio|gpios)$': true '-supply$': true '^rcar_sound,': true '-(bits|bps|kBps|percent|bp|db|mhz|hz|sec|ms|us|ns|ps|mm)$': true '-(nanoamp|microamp|microamp-hours|ohms|micro-ohms|microwatt-hours)$': true '-(microvolt|(femto|pico)farads|celsius|millicelsius|kelvin|k?pascal)$': true ",.*-names$": type: object required: - description additionalProperties: type: [boolean, object] description: Vendor specific properties must have a type and description unless they have a defined, common suffix. properties: type: description: 'A vendor boolean property can use "type: boolean"' const: boolean dependentRequired: type: [description] anyOf: - properties: $ref: description: A vendor property needs a $ref to types.yaml pattern: "types.yaml#\/definitions\/" dependentRequired: $ref: [description] - properties: $ref: description: A vendor property can have a $ref to a a $defs schema pattern: "^#\/(definitions|\\$defs)\/" ...