Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: net: convert maxim,ds26522.txt to yaml format

Convert binding doc maxim,ds26522.txt to yaml format.
Additional changes
- Remove spi-max-frequency because ref to
/schemas/spi/spi-peripheral-props.yaml
- Add address-cells and size-cells in example

Fix below warning:
arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dtb: /soc/spi@2100000/slic@2: failed to match any schema with compatible: ['maxim,ds26522']

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240809143208.3447888-1-Frank.Li@nxp.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Frank Li and committed by
Rob Herring (Arm)
14fcaf50 7c43f89b

+40 -13
-13
Documentation/devicetree/bindings/net/maxim,ds26522.txt
··· 1 - * Maxim (Dallas) DS26522 Dual T1/E1/J1 Transceiver 2 - 3 - Required properties: 4 - - compatible: Should contain "maxim,ds26522". 5 - - reg: SPI CS. 6 - - spi-max-frequency: SPI clock. 7 - 8 - Example: 9 - slic@1 { 10 - compatible = "maxim,ds26522"; 11 - reg = <1>; 12 - spi-max-frequency = <2000000>; /* input clock */ 13 - };
+40
Documentation/devicetree/bindings/net/maxim,ds26522.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/net/maxim,ds26522.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Maxim (Dallas) DS26522 Dual T1/E1/J1 Transceiver 8 + 9 + maintainers: 10 + - Frank Li <Frank.Li@nxp.com> 11 + 12 + properties: 13 + compatible: 14 + items: 15 + - const: maxim,ds26522 16 + 17 + reg: 18 + maxItems: 1 19 + 20 + required: 21 + - compatible 22 + - reg 23 + 24 + allOf: 25 + - $ref: /schemas/spi/spi-peripheral-props.yaml 26 + 27 + unevaluatedProperties: false 28 + 29 + examples: 30 + - | 31 + spi { 32 + #address-cells = <1>; 33 + #size-cells = <0>; 34 + 35 + transceiver@1 { 36 + compatible = "maxim,ds26522"; 37 + reg = <1>; 38 + spi-max-frequency = <2000000>; /* input clock */ 39 + }; 40 + };