diff mbox series

[2/3] dt-bindings: spi: Add DT schema for Tegra SPIDEV controller

Message ID 20241126134529.936451-3-va@nvidia.com (mailing list archive)
State New
Headers show
Series Add spidev nodes for SPI controllers | expand

Commit Message

Vishwaroop A Nov. 26, 2024, 1:45 p.m. UTC
Add DeviceTree schema for NVIDIA'S SPIDEV controller.
The schema supports both master and slave modes for data transfer
purposes. Specifies required properties: "compatible", "reg", and
"spi-max-frequency".

Signed-off-by: Vishwaroop A <va@nvidia.com>
---
 Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
 1 file changed, 2 insertions(+)

Comments

Mark Brown Nov. 26, 2024, 1:56 p.m. UTC | #1
On Tue, Nov 26, 2024 at 01:45:28PM +0000, Vishwaroop A wrote:

> +            # NVIDIA Tegra SPIDEV Controller device
> +          - nvidia,tegra-spidev

All the issues with having spidev nodes directly in the DT also apply if
you add a prefix onto it.  Whatever is attached to the SPI controller
needs to be described, not just a placeholder like this.
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 88abb5c174f3..c8b39a513fc5 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -293,6 +293,8 @@  properties:
           - national,lm85
             # I2C ±0.33°C Accurate, 12-Bit + Sign Temperature Sensor and Thermal Window Comparator
           - national,lm92
+            # NVIDIA Tegra SPIDEV Controller device
+          - nvidia,tegra-spidev
             # Nuvoton Temperature Sensor
           - nuvoton,w83773g
             # OKI ML86V7667 video decoder