mirror of
https://github.com/torvalds/linux.git
synced 2026-05-02 21:42:42 -04:00
Clean-up incorrect indentation, extra spaces, long lines, and missing EOF newline in schema files. Most of the clean-ups are for list indentation which should always be 2 spaces more than the preceding keyword. Found with yamllint (which I plan to integrate into the checks). Cc: linux-arm-kernel@lists.infradead.org Cc: linux-clk@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-spi@vger.kernel.org Cc: linux-gpio@vger.kernel.org Cc: linux-remoteproc@vger.kernel.org Cc: linux-hwmon@vger.kernel.org Cc: linux-i2c@vger.kernel.org Cc: linux-fbdev@vger.kernel.org Cc: linux-iio@vger.kernel.org Cc: linux-input@vger.kernel.org Cc: linux-pm@vger.kernel.org Cc: linux-media@vger.kernel.org Cc: alsa-devel@alsa-project.org Cc: linux-mmc@vger.kernel.org Cc: linux-mtd@lists.infradead.org Cc: netdev@vger.kernel.org Cc: linux-rtc@vger.kernel.org Cc: linux-serial@vger.kernel.org Cc: linux-usb@vger.kernel.org Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Rob Herring <robh@kernel.org>
90 lines
2.8 KiB
YAML
90 lines
2.8 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/spi/spi-mux.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Generic SPI Multiplexer
|
|
|
|
description: |
|
|
This binding describes a SPI bus multiplexer to route the SPI chip select
|
|
signals. This can be used when you need more devices than the SPI controller
|
|
has chip selects available. An example setup is shown in ASCII art; the actual
|
|
setting of the multiplexer to a channel needs to be done by a specific SPI mux
|
|
driver.
|
|
|
|
MOSI /--------------------------------+--------+--------+--------\
|
|
MISO |/------------------------------+|-------+|-------+|-------\|
|
|
SCL ||/----------------------------+||------+||------+||------\||
|
|
||| ||| ||| ||| |||
|
|
+------------+ ||| ||| ||| |||
|
|
| SoC ||| | +-+++-+ +-+++-+ +-+++-+ +-+++-+
|
|
| ||| | | dev | | dev | | dev | | dev |
|
|
| +--+++-+ | CS-X +------+\ +--+--+ +--+--+ +--+--+ +--+--+
|
|
| | SPI +-|-------+ Mux |\\ CS-0 | | | |
|
|
| +------+ | +--+---+\\\-------/ CS-1 | | |
|
|
| | | \\\----------------/ CS-2 | |
|
|
| +------+ | | \\-------------------------/ CS-3 |
|
|
| | ? +-|----------/ \----------------------------------/
|
|
| +------+ |
|
|
+------------+
|
|
|
|
allOf:
|
|
- $ref: "/schemas/spi/spi-controller.yaml#"
|
|
|
|
maintainers:
|
|
- Chris Packham <chris.packham@alliedtelesis.co.nz>
|
|
|
|
properties:
|
|
compatible:
|
|
const: spi-mux
|
|
|
|
mux-controls:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- spi-max-frequency
|
|
- mux-controls
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
mux: mux-controller {
|
|
compatible = "gpio-mux";
|
|
#mux-control-cells = <0>;
|
|
|
|
mux-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
spi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
spi@0 {
|
|
compatible = "spi-mux";
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
spi-max-frequency = <100000000>;
|
|
|
|
mux-controls = <&mux>;
|
|
|
|
spi-flash@0 {
|
|
compatible = "jedec,spi-nor";
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
spi-max-frequency = <40000000>;
|
|
};
|
|
|
|
spi-device@1 {
|
|
compatible = "lineartechnology,ltc2488";
|
|
reg = <1>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
spi-max-frequency = <10000000>;
|
|
};
|
|
};
|
|
};
|