mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-04 02:25:58 +00:00

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>
52 lines
1013 B
YAML
52 lines
1013 B
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/spi/nxp,sc18is.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: NXP SC18IS602/SC18IS603 I2C to SPI bridge
|
|
|
|
maintainers:
|
|
- Frank Li <Frank.Li@nxp.com>
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- nxp,sc18is602
|
|
- nxp,sc18is602b
|
|
- nxp,sc18is603
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
clock-frequency:
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
default: 7372000
|
|
description:
|
|
external oscillator clock frequency. The clock-frequency property is
|
|
relevant and needed only if the chip has an external oscillator
|
|
(SC18IS603).
|
|
|
|
allOf:
|
|
- $ref: spi-controller.yaml#
|
|
|
|
unevaluatedProperties: false
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
examples:
|
|
- |
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
spi@28 {
|
|
compatible = "nxp,sc18is603";
|
|
reg = <0x28>;
|
|
clock-frequency = <14744000>;
|
|
};
|
|
};
|
|
|