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

spi: dt-bindings: add loongson spi

Add the Loongson platform spi binding with DT schema format using
json-schema.

Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230613075834.5219-2-zhuyinbo@loongson.cn
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Yinbo Zhu and committed by
Mark Brown
b350e6c6 893aa09e

+52
+46
Documentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/spi/loongson,ls2k-spi.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Loongson SPI controller 8 + 9 + maintainers: 10 + - Yinbo Zhu <zhuyinbo@loongson.cn> 11 + 12 + allOf: 13 + - $ref: /schemas/spi/spi-controller.yaml# 14 + 15 + properties: 16 + compatible: 17 + oneOf: 18 + - enum: 19 + - loongson,ls2k1000-spi 20 + - items: 21 + - enum: 22 + - loongson,ls2k0500-spi 23 + - const: loongson,ls2k1000-spi 24 + 25 + reg: 26 + maxItems: 1 27 + 28 + clocks: 29 + maxItems: 1 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - clocks 35 + 36 + unevaluatedProperties: false 37 + 38 + examples: 39 + - | 40 + spi0: spi@1fff0220{ 41 + compatible = "loongson,ls2k1000-spi"; 42 + reg = <0x1fff0220 0x10>; 43 + clocks = <&clk 17>; 44 + #address-cells = <1>; 45 + #size-cells = <0>; 46 + };
+6
MAINTAINERS
··· 12271 12271 F: drivers/clk/clk-loongson2.c 12272 12272 F: include/dt-bindings/clock/loongson,ls2k-clk.h 12273 12273 12274 + LOONGSON SPI DRIVER 12275 + M: Yinbo Zhu <zhuyinbo@loongson.cn> 12276 + L: linux-spi@vger.kernel.org 12277 + S: Maintained 12278 + F: Documentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml 12279 + 12274 12280 LOONGSON-2 SOC SERIES GUTS DRIVER 12275 12281 M: Yinbo Zhu <zhuyinbo@loongson.cn> 12276 12282 L: loongarch@lists.linux.dev