117 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/pinctrl/mscc,ocelot-pinctrl.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Microsemi Ocelot pin controller8 9maintainers:10 - Alexandre Belloni <alexandre.belloni@bootlin.com>11 - Lars Povlsen <lars.povlsen@microchip.com>12 13properties:14 compatible:15 enum:16 - microchip,lan966x-pinctrl17 - microchip,sparx5-pinctrl18 - mscc,jaguar2-pinctrl19 - mscc,luton-pinctrl20 - mscc,ocelot-pinctrl21 - mscc,serval-pinctrl22 - mscc,servalt-pinctrl23 24 reg:25 items:26 - description: Base address27 - description: Extended pin configuration registers28 minItems: 129 30 gpio-controller: true31 32 '#gpio-cells':33 const: 234 35 gpio-ranges: true36 37 interrupts:38 maxItems: 139 40 interrupt-controller: true41 42 "#interrupt-cells":43 const: 244 45 resets:46 maxItems: 147 48 reset-names:49 description: Optional shared switch reset.50 items:51 - const: switch52 53patternProperties:54 '-pins$':55 type: object56 allOf:57 - $ref: pinmux-node.yaml58 - $ref: pincfg-node.yaml59 60 properties:61 function: true62 pins: true63 output-high: true64 output-low: true65 drive-strength: true66 67 required:68 - function69 - pins70 71 additionalProperties: false72 73required:74 - compatible75 - reg76 - gpio-controller77 - '#gpio-cells'78 - gpio-ranges79 80allOf:81 - $ref: pinctrl.yaml#82 - if:83 properties:84 compatible:85 contains:86 enum:87 - microchip,lan966x-pinctrl88 - microchip,sparx5-pinctrl89 then:90 properties:91 reg:92 minItems: 293 94additionalProperties: false95 96examples:97 - |98 gpio: pinctrl@71070034 {99 compatible = "mscc,ocelot-pinctrl";100 reg = <0x71070034 0x28>;101 gpio-controller;102 #gpio-cells = <2>;103 gpio-ranges = <&gpio 0 0 22>;104 105 uart_pins: uart-pins {106 pins = "GPIO_6", "GPIO_7";107 function = "uart";108 };109 110 uart2_pins: uart2-pins {111 pins = "GPIO_12", "GPIO_13";112 function = "uart2";113 };114 };115 116...117