mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00

SPI and I2C bus node names are expected to be "spi" or "i2c", respectively, with nothing else, a unit-address, or a '-N' index. A pattern of 'spi0' or 'i2c0' or similar has crept in. Fix all these cases. Mostly scripted with the following commands: git grep -l '\si2c[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/i2c[0-9] {/i2c {/' git grep -l '\sspi[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/spi[0-9] {/spi {/' With this, a few errors in examples were exposed and fixed. Acked-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> # for the microchip,mcp251xfd.yaml Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> # for power-supply Acked-by: Wolfram Sang <wsa@kernel.org> Acked-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230228215433.3944508-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
71 lines
1.5 KiB
YAML
71 lines
1.5 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: "http://devicetree.org/schemas/net/vertexcom-mse102x.yaml#"
|
|
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
|
|
|
|
title: The Vertexcom MSE102x (SPI)
|
|
|
|
maintainers:
|
|
- Stefan Wahren <stefan.wahren@chargebyte.com>
|
|
|
|
description:
|
|
Vertexcom's MSE102x are a family of HomePlug GreenPHY chips.
|
|
They can be connected either via RGMII, RMII or SPI to a host CPU.
|
|
|
|
In order to use a MSE102x chip as SPI device, it must be defined as
|
|
a child of an SPI master device in the device tree.
|
|
|
|
More information can be found at
|
|
http://www.vertexcom.com/doc/MSE1022%20Product%20Brief.pdf
|
|
|
|
allOf:
|
|
- $ref: ethernet-controller.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- vertexcom,mse1021
|
|
- vertexcom,mse1022
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
spi-cpha: true
|
|
|
|
spi-cpol: true
|
|
|
|
spi-max-frequency:
|
|
minimum: 6000000
|
|
maximum: 7142857
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- spi-cpha
|
|
- spi-cpol
|
|
- spi-max-frequency
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
spi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
ethernet@0 {
|
|
compatible = "vertexcom,mse1021";
|
|
reg = <0>;
|
|
interrupt-parent = <&gpio>;
|
|
interrupts = <23 IRQ_TYPE_EDGE_RISING>;
|
|
spi-cpha;
|
|
spi-cpol;
|
|
spi-max-frequency = <7142857>;
|
|
};
|
|
};
|