mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 06:39:05 +00:00

DTS example in the bindings should be indented with 2- or 4-spaces and aligned with opening '- |', so correct any differences like 3-spaces or mixtures 2- and 4-spaces in one binding. No functional changes here, but saves some comments during reviews of new patches built on existing code. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com> Acked-by: Andrew Jeffery <andrew@codeconstruct.com.au> # aspeed,usb-vhub.yaml Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Acked-by: Thierry Reding <treding@nvidia.com> Acked-by: Francesco Dolcini <francesco.dolcini@toradex.com> # ti,tusb73x0-pci.yaml Acked-by: Florian Fainelli <florian.fainelli@broadcom.com> # brcm,bdc.yaml Acked-by: Benjamin Bara <benjamin.bara@skidata.com> # cypress,hx3.yaml Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> # renesas Link: https://lore.kernel.org/r/20250107131015.246461-1-krzysztof.kozlowski@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
68 lines
1.4 KiB
YAML
68 lines
1.4 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/usb/maxim,max3420-udc.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: MAXIM MAX3420/1 USB Peripheral Controller
|
|
|
|
maintainers:
|
|
- Jassi Brar <jaswinder.singh@linaro.org>
|
|
|
|
description: |
|
|
The controller provices USB2.0 compliant FullSpeed peripheral
|
|
implementation over the SPI interface.
|
|
|
|
Specifications about the part can be found at:
|
|
http://datasheets.maximintegrated.com/en/ds/MAX3420E.pdf
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- maxim,max3420-udc
|
|
- maxim,max3421-udc
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
items:
|
|
- description: usb irq from max3420
|
|
- description: vbus detection irq
|
|
minItems: 1
|
|
|
|
interrupt-names:
|
|
items:
|
|
- const: udc
|
|
- const: vbus
|
|
minItems: 1
|
|
|
|
spi-max-frequency:
|
|
maximum: 26000000
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- interrupt-names
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
spi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
udc@0 {
|
|
compatible = "maxim,max3420-udc";
|
|
reg = <0>;
|
|
interrupt-parent = <&gpio>;
|
|
interrupts = <0 IRQ_TYPE_EDGE_FALLING>, <10 IRQ_TYPE_EDGE_BOTH>;
|
|
interrupt-names = "udc", "vbus";
|
|
spi-max-frequency = <12500000>;
|
|
};
|
|
};
|