From 07e77f09938514825a5c7b22c152b5ce18052fc0 Mon Sep 17 00:00:00 2001 From: Jon Lin Date: Fri, 20 Sep 2024 09:34:03 +0800 Subject: [PATCH] dt-bindings: spi: Bindings for Rockchip Flexbus controller under SPI transmission protocol Add bindings for the Rockchip Flexbus controller under SPI mode. Change-Id: I894bc3f6bcfe62cbe593be2e932bf982aad758fd Signed-off-by: Jon Lin --- .../bindings/spi/rockchip-flexbus-spi.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/rockchip-flexbus-spi.yaml diff --git a/Documentation/devicetree/bindings/spi/rockchip-flexbus-spi.yaml b/Documentation/devicetree/bindings/spi/rockchip-flexbus-spi.yaml new file mode 100644 index 000000000000..f3964e0dc5dc --- /dev/null +++ b/Documentation/devicetree/bindings/spi/rockchip-flexbus-spi.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/rockchip-flexbus-spi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip Flexbus controller under SPI transmission protocol + +maintainers: + - Jon Lin + +allOf: + - $ref: spi-controller.yaml# + +properties: + compatible: + const: rockchip,flexbus-spi + description: + The rockchip flexbus controller is a standalone IP with version register, + and the driver can handle all the feature difference inside the IP + depending on the version register. + + rockchip,dll-cells: + description: + Setting dll cells. + + rockchip,dfs: + description: + Setting data width. + + rockchip,poll-only: + description: Add this property to set the wait idle method as CPU polling. + type: boolean + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + flexbus_spi: spi@ff3a0000 { + compatible = "rockchip,flexbus-spi"; + rockchip,dfs = <16>; + #address-cells = <1>; + #size-cells = <0>; + + spidev@0 { + compatible = "rockchip,spidev"; + reg = <0>; + spi-max-frequency = <50000000>; + }; + }; + +...