69 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
 | 
						||
%YAML 1.2
 | 
						||
---
 | 
						||
$id: http://devicetree.org/schemas/pinctrl/ralink,rt2880-pinctrl.yaml#
 | 
						||
$schema: http://devicetree.org/meta-schemas/core.yaml#
 | 
						||
 | 
						||
title: Ralink RT2880 Pin Controller
 | 
						||
 | 
						||
maintainers:
 | 
						||
  - Arınç ÜNAL <arinc.unal@arinc9.com>
 | 
						||
  - Sergio Paracuellos <sergio.paracuellos@gmail.com>
 | 
						||
 | 
						||
description:
 | 
						||
  Ralink RT2880 pin controller for RT2880 SoC.
 | 
						||
  The pin controller can only set the muxing of pin groups. Muxing individual
 | 
						||
  pins is not supported. There is no pinconf support.
 | 
						||
 | 
						||
properties:
 | 
						||
  compatible:
 | 
						||
    const: ralink,rt2880-pinctrl
 | 
						||
 | 
						||
patternProperties:
 | 
						||
  '-pins$':
 | 
						||
    type: object
 | 
						||
    patternProperties:
 | 
						||
      '^(.*-)?pinmux$':
 | 
						||
        type: object
 | 
						||
        description: node for pinctrl.
 | 
						||
        $ref: pinmux-node.yaml#
 | 
						||
 | 
						||
        properties:
 | 
						||
          groups:
 | 
						||
            description: The pin group to select.
 | 
						||
            enum: [i2c, spi, uartlite, jtag, mdio, sdram, pci]
 | 
						||
 | 
						||
          function:
 | 
						||
            description: The mux function to select.
 | 
						||
            enum: [gpio, i2c, spi, uartlite, jtag, mdio, sdram, pci]
 | 
						||
 | 
						||
        required:
 | 
						||
          - groups
 | 
						||
          - function
 | 
						||
 | 
						||
        additionalProperties: false
 | 
						||
 | 
						||
    additionalProperties: false
 | 
						||
 | 
						||
allOf:
 | 
						||
  - $ref: "pinctrl.yaml#"
 | 
						||
 | 
						||
required:
 | 
						||
  - compatible
 | 
						||
 | 
						||
additionalProperties: false
 | 
						||
 | 
						||
examples:
 | 
						||
  # Pinmux controller node
 | 
						||
  - |
 | 
						||
    pinctrl {
 | 
						||
      compatible = "ralink,rt2880-pinctrl";
 | 
						||
 | 
						||
      i2c_pins: i2c0-pins {
 | 
						||
        pinmux {
 | 
						||
          groups = "i2c";
 | 
						||
          function = "i2c";
 | 
						||
        };
 | 
						||
      };
 | 
						||
    };
 |