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: bus: Convert cznic,moxtet to DT schema

Convert the cznic,moxtet binding to DT schema format. It's a
straight-forward conversion.

Reviewed-by: Marek Behún <kabel@kernel.org>
Link: https://patch.msgid.link/20251014153009.3783183-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

+95 -47
+94
Documentation/devicetree/bindings/bus/cznic,moxtet.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/bus/cznic,moxtet.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Turris Moxtet SPI bus 8 + 9 + maintainers: 10 + - Marek Behún <kabel@kernel.org> 11 + 12 + description: > 13 + Turris Mox module status and configuration bus (over SPI) 14 + 15 + The driver finds the devices connected to the bus by itself, but it may be 16 + needed to reference some of them from other parts of the device tree. In that 17 + case the devices can be defined as subnodes of the moxtet node. 18 + 19 + properties: 20 + compatible: 21 + const: cznic,moxtet 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + "#address-cells": 27 + const: 1 28 + 29 + "#size-cells": 30 + const: 0 31 + 32 + spi-cpol: true 33 + 34 + spi-cpha: true 35 + 36 + spi-max-frequency: true 37 + 38 + interrupt-controller: true 39 + 40 + "#interrupt-cells": 41 + const: 1 42 + 43 + interrupts: 44 + maxItems: 1 45 + 46 + reset-gpios: 47 + maxItems: 1 48 + 49 + required: 50 + - compatible 51 + - reg 52 + - "#address-cells" 53 + - "#size-cells" 54 + - spi-cpol 55 + - spi-cpha 56 + - interrupts 57 + - interrupt-controller 58 + - "#interrupt-cells" 59 + 60 + additionalProperties: 61 + type: object 62 + 63 + required: 64 + - reg 65 + 66 + examples: 67 + - | 68 + #include <dt-bindings/interrupt-controller/irq.h> 69 + 70 + spi { 71 + #address-cells = <1>; 72 + #size-cells = <0>; 73 + 74 + moxtet@1 { 75 + compatible = "cznic,moxtet"; 76 + #address-cells = <1>; 77 + #size-cells = <0>; 78 + reg = <1>; 79 + spi-max-frequency = <10000000>; 80 + spi-cpol; 81 + spi-cpha; 82 + interrupt-controller; 83 + #interrupt-cells = <1>; 84 + interrupt-parent = <&gpiosb>; 85 + interrupts = <5 IRQ_TYPE_EDGE_FALLING>; 86 + 87 + gpio@0 { 88 + compatible = "cznic,moxtet-gpio"; 89 + gpio-controller; 90 + #gpio-cells = <2>; 91 + reg = <0>; 92 + }; 93 + }; 94 + };
-46
Documentation/devicetree/bindings/bus/moxtet.txt
··· 1 - Turris Mox module status and configuration bus (over SPI) 2 - 3 - Required properties: 4 - - compatible : Should be "cznic,moxtet" 5 - - #address-cells : Has to be 1 6 - - #size-cells : Has to be 0 7 - - spi-cpol : Required inverted clock polarity 8 - - spi-cpha : Required shifted clock phase 9 - - interrupts : Must contain reference to the shared interrupt line 10 - - interrupt-controller : Required 11 - - #interrupt-cells : Has to be 1 12 - 13 - For other required and optional properties of SPI slave nodes please refer to 14 - ../spi/spi-bus.txt. 15 - 16 - Required properties of subnodes: 17 - - reg : Should be position on the Moxtet bus (how many Moxtet 18 - modules are between this module and CPU module, so 19 - either 0 or a positive integer) 20 - 21 - The driver finds the devices connected to the bus by itself, but it may be 22 - needed to reference some of them from other parts of the device tree. In that 23 - case the devices can be defined as subnodes of the moxtet node. 24 - 25 - Example: 26 - 27 - moxtet@1 { 28 - compatible = "cznic,moxtet"; 29 - #address-cells = <1>; 30 - #size-cells = <0>; 31 - reg = <1>; 32 - spi-max-frequency = <10000000>; 33 - spi-cpol; 34 - spi-cpha; 35 - interrupt-controller; 36 - #interrupt-cells = <1>; 37 - interrupt-parent = <&gpiosb>; 38 - interrupts = <5 IRQ_TYPE_EDGE_FALLING>; 39 - 40 - moxtet_sfp: gpio@0 { 41 - compatible = "cznic,moxtet-gpio"; 42 - gpio-controller; 43 - #gpio-cells = <2>; 44 - reg = <0>; 45 - } 46 - };
+1 -1
MAINTAINERS
··· 2656 2656 F: Documentation/ABI/testing/sysfs-bus-i2c-devices-turris-omnia-mcu 2657 2657 F: Documentation/ABI/testing/sysfs-bus-moxtet-devices 2658 2658 F: Documentation/ABI/testing/sysfs-firmware-turris-mox-rwtm 2659 - F: Documentation/devicetree/bindings/bus/moxtet.txt 2659 + F: Documentation/devicetree/bindings/bus/cznic,moxtet.yaml 2660 2660 F: Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.txt 2661 2661 F: Documentation/devicetree/bindings/firmware/cznic,turris-omnia-mcu.yaml 2662 2662 F: Documentation/devicetree/bindings/interrupt-controller/marvell,mpic.yaml