mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-11-01 09:13:37 +00:00 
			
		
		
		
	As indicated in link: https://lore.kernel.org/all/20220822204945.GA808626-robh@kernel.org/ DT schema files should not have 'Device Tree Binding' as part of there title: line. Remove this in most .yaml files, so hopefully preventing developers copying it into new .yaml files, and being asked to remove it. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Link: https://lore.kernel.org/r/20220825020427.3460650-1-andrew@lunn.ch Signed-off-by: Rob Herring <robh@kernel.org>
		
			
				
	
	
		
			109 lines
		
	
	
	
		
			2.6 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			109 lines
		
	
	
	
		
			2.6 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
# SPDX-License-Identifier: GPL-2.0
 | 
						|
%YAML 1.2
 | 
						|
---
 | 
						|
$id: http://devicetree.org/schemas/usb/smsc,usb3503.yaml#
 | 
						|
$schema: http://devicetree.org/meta-schemas/core.yaml#
 | 
						|
 | 
						|
title: SMSC USB3503 High-Speed Hub Controller
 | 
						|
 | 
						|
maintainers:
 | 
						|
  - Dongjin Kim <tobetter@gmail.com>
 | 
						|
 | 
						|
properties:
 | 
						|
  compatible:
 | 
						|
    enum:
 | 
						|
      - smsc,usb3503
 | 
						|
      - smsc,usb3503a
 | 
						|
 | 
						|
  reg:
 | 
						|
    maxItems: 1
 | 
						|
 | 
						|
  connect-gpios:
 | 
						|
    maxItems: 1
 | 
						|
    description: >
 | 
						|
      GPIO for connect
 | 
						|
 | 
						|
  intn-gpios:
 | 
						|
    maxItems: 1
 | 
						|
    description: >
 | 
						|
      GPIO for interrupt
 | 
						|
 | 
						|
  reset-gpios:
 | 
						|
    maxItems: 1
 | 
						|
    description: >
 | 
						|
      GPIO for reset
 | 
						|
 | 
						|
  disabled-ports:
 | 
						|
    $ref: /schemas/types.yaml#/definitions/uint32-array
 | 
						|
    minItems: 1
 | 
						|
    maxItems: 3
 | 
						|
    items:
 | 
						|
      minimum: 1
 | 
						|
      maximum: 3
 | 
						|
    description: >
 | 
						|
      Specifies the ports unused using their port number. Do not describe this
 | 
						|
      property if all ports have to be enabled.
 | 
						|
 | 
						|
  initial-mode:
 | 
						|
    $ref: /schemas/types.yaml#/definitions/uint32
 | 
						|
    enum: [1, 2]
 | 
						|
    description: >
 | 
						|
      Specifies initial mode. 1 for Hub mode, 2 for standby mode.
 | 
						|
 | 
						|
  clocks:
 | 
						|
    maxItems: 1
 | 
						|
    description: >
 | 
						|
      Clock used for driving REFCLK signal. If not provided the driver assumes
 | 
						|
      that clock signal is always available, its rate is specified by REF_SEL
 | 
						|
      pins and a value from the primary reference clock frequencies table is
 | 
						|
      used.
 | 
						|
 | 
						|
  clock-names:
 | 
						|
    const: refclk
 | 
						|
 | 
						|
  refclk-frequency:
 | 
						|
    $ref: /schemas/types.yaml#/definitions/uint32
 | 
						|
    description: >
 | 
						|
      Frequency of the REFCLK signal as defined by REF_SEL pins. If not
 | 
						|
      provided, driver will not set rate of the REFCLK signal and assume that a
 | 
						|
      value from the primary reference clock frequencies table is used.
 | 
						|
 | 
						|
required:
 | 
						|
  - compatible
 | 
						|
 | 
						|
additionalProperties: false
 | 
						|
 | 
						|
examples:
 | 
						|
  - |
 | 
						|
      i2c {
 | 
						|
          #address-cells = <1>;
 | 
						|
          #size-cells = <0>;
 | 
						|
 | 
						|
          usb-hub@8 {
 | 
						|
              compatible = "smsc,usb3503";
 | 
						|
              reg = <0x08>;
 | 
						|
              connect-gpios = <&gpx3 0 1>;
 | 
						|
              disabled-ports = <2 3>;
 | 
						|
              intn-gpios = <&gpx3 4 1>;
 | 
						|
              reset-gpios = <&gpx3 5 1>;
 | 
						|
              initial-mode = <1>;
 | 
						|
              clocks = <&clks 80>;
 | 
						|
              clock-names = "refclk";
 | 
						|
          };
 | 
						|
      };
 | 
						|
 | 
						|
  - |
 | 
						|
      #include <dt-bindings/gpio/gpio.h>
 | 
						|
 | 
						|
      usb-hub {
 | 
						|
          /* I2C is not connected */
 | 
						|
          compatible = "smsc,usb3503";
 | 
						|
          initial-mode = <1>; /* initialize in HUB mode */
 | 
						|
          disabled-ports = <1>;
 | 
						|
          intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
 | 
						|
          reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */
 | 
						|
          connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */
 | 
						|
          refclk-frequency = <19200000>;
 | 
						|
      };
 | 
						|
 | 
						|
...
 |