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

spi: dt-bindings: convert spi-sc18is602.txt to yaml format

Convert binding doc spi-sc18is602.txt (I2C to SPI bridge) to yaml.

Additional change:
- ref spi-controller.yaml

Fix below warning:
arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dtb:
/soc/i2c@2000000/i2c-mux@77/i2c@7/i2c-mux@75/i2c@0/spi@28: failed to match any schema with compatible: ['nxp,sc18is602b']

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20240813154444.3886690-1-Frank.Li@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Frank Li and committed by
Mark Brown
1c4d834e d196c714

+51 -23
+51
Documentation/devicetree/bindings/spi/nxp,sc18is.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/spi/nxp,sc18is.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP SC18IS602/SC18IS603 I2C to SPI bridge 8 + 9 + maintainers: 10 + - Frank Li <Frank.Li@nxp.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - nxp,sc18is602 16 + - nxp,sc18is602b 17 + - nxp,sc18is603 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + clock-frequency: 23 + $ref: /schemas/types.yaml#/definitions/uint32 24 + default: 7372000 25 + description: 26 + external oscillator clock frequency. The clock-frequency property is 27 + relevant and needed only if the chip has an external oscillator 28 + (SC18IS603). 29 + 30 + allOf: 31 + - $ref: spi-controller.yaml# 32 + 33 + unevaluatedProperties: false 34 + 35 + required: 36 + - compatible 37 + - reg 38 + 39 + examples: 40 + - | 41 + i2c { 42 + #address-cells = <1>; 43 + #size-cells = <0>; 44 + 45 + spi@28 { 46 + compatible = "nxp,sc18is603"; 47 + reg = <0x28>; 48 + clock-frequency = <14744000>; 49 + }; 50 + }; 51 +
-23
Documentation/devicetree/bindings/spi/spi-sc18is602.txt
··· 1 - NXP SC18IS602/SCIS603 2 - 3 - Required properties: 4 - - compatible : Should be one of 5 - "nxp,sc18is602" 6 - "nxp,sc18is602b" 7 - "nxp,sc18is603" 8 - - reg: I2C bus address 9 - 10 - Optional properties: 11 - - clock-frequency : external oscillator clock frequency. If not 12 - specified, the SC18IS602 default frequency (7372000) will be used. 13 - 14 - The clock-frequency property is relevant and needed only if the chip has an 15 - external oscillator (SC18IS603). 16 - 17 - Example: 18 - 19 - sc18is603@28 { 20 - compatible = "nxp,sc18is603"; 21 - reg = <0x28>; 22 - clock-frequency = <14744000>; 23 - }