1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/msc 4 $id: http://devicetree.org/schemas/pinctrl/mscc,ocelot-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Microsemi Ocelot pin controller 7 title: Microsemi Ocelot pin controller 8 8 9 maintainers: 9 maintainers: 10 - Alexandre Belloni <alexandre.belloni@bootli 10 - Alexandre Belloni <alexandre.belloni@bootlin.com> 11 - Lars Povlsen <lars.povlsen@microchip.com> 11 - Lars Povlsen <lars.povlsen@microchip.com> 12 12 13 properties: 13 properties: 14 compatible: 14 compatible: 15 enum: 15 enum: 16 - microchip,lan966x-pinctrl 16 - microchip,lan966x-pinctrl 17 - microchip,sparx5-pinctrl 17 - microchip,sparx5-pinctrl 18 - mscc,jaguar2-pinctrl 18 - mscc,jaguar2-pinctrl 19 - mscc,luton-pinctrl 19 - mscc,luton-pinctrl 20 - mscc,ocelot-pinctrl 20 - mscc,ocelot-pinctrl 21 - mscc,serval-pinctrl 21 - mscc,serval-pinctrl 22 - mscc,servalt-pinctrl 22 - mscc,servalt-pinctrl 23 23 24 reg: 24 reg: 25 items: 25 items: 26 - description: Base address 26 - description: Base address 27 - description: Extended pin configuratio 27 - description: Extended pin configuration registers 28 minItems: 1 28 minItems: 1 29 29 30 gpio-controller: true 30 gpio-controller: true 31 31 32 '#gpio-cells': 32 '#gpio-cells': 33 const: 2 33 const: 2 34 34 35 gpio-ranges: true 35 gpio-ranges: true 36 36 37 interrupts: 37 interrupts: 38 maxItems: 1 38 maxItems: 1 39 39 40 interrupt-controller: true 40 interrupt-controller: true 41 41 42 "#interrupt-cells": 42 "#interrupt-cells": 43 const: 2 43 const: 2 44 44 45 resets: 45 resets: 46 maxItems: 1 46 maxItems: 1 47 47 48 reset-names: 48 reset-names: 49 description: Optional shared switch reset. 49 description: Optional shared switch reset. 50 items: 50 items: 51 - const: switch 51 - const: switch 52 52 53 patternProperties: 53 patternProperties: 54 '-pins$': 54 '-pins$': 55 type: object 55 type: object 56 allOf: 56 allOf: 57 - $ref: pinmux-node.yaml 57 - $ref: pinmux-node.yaml 58 - $ref: pincfg-node.yaml 58 - $ref: pincfg-node.yaml 59 59 60 properties: 60 properties: 61 function: true 61 function: true 62 pins: true 62 pins: true 63 output-high: true 63 output-high: true 64 output-low: true 64 output-low: true 65 drive-strength: true 65 drive-strength: true 66 66 67 required: 67 required: 68 - function 68 - function 69 - pins 69 - pins 70 70 71 additionalProperties: false 71 additionalProperties: false 72 72 73 required: 73 required: 74 - compatible 74 - compatible 75 - reg 75 - reg 76 - gpio-controller 76 - gpio-controller 77 - '#gpio-cells' 77 - '#gpio-cells' 78 - gpio-ranges 78 - gpio-ranges 79 79 80 allOf: 80 allOf: 81 - $ref: pinctrl.yaml# 81 - $ref: pinctrl.yaml# 82 - if: 82 - if: 83 properties: 83 properties: 84 compatible: 84 compatible: 85 contains: 85 contains: 86 enum: 86 enum: 87 - microchip,lan966x-pinctrl 87 - microchip,lan966x-pinctrl 88 - microchip,sparx5-pinctrl 88 - microchip,sparx5-pinctrl 89 then: 89 then: 90 properties: 90 properties: 91 reg: 91 reg: 92 minItems: 2 92 minItems: 2 93 93 94 additionalProperties: false 94 additionalProperties: false 95 95 96 examples: 96 examples: 97 - | 97 - | 98 gpio: pinctrl@71070034 { 98 gpio: pinctrl@71070034 { 99 compatible = "mscc,ocelot-pinctrl"; 99 compatible = "mscc,ocelot-pinctrl"; 100 reg = <0x71070034 0x28>; 100 reg = <0x71070034 0x28>; 101 gpio-controller; 101 gpio-controller; 102 #gpio-cells = <2>; 102 #gpio-cells = <2>; 103 gpio-ranges = <&gpio 0 0 22>; 103 gpio-ranges = <&gpio 0 0 22>; 104 104 105 uart_pins: uart-pins { 105 uart_pins: uart-pins { 106 pins = "GPIO_6", "GPIO_7"; 106 pins = "GPIO_6", "GPIO_7"; 107 function = "uart"; 107 function = "uart"; 108 }; 108 }; 109 109 110 uart2_pins: uart2-pins { 110 uart2_pins: uart2-pins { 111 pins = "GPIO_12", "GPIO_13"; 111 pins = "GPIO_12", "GPIO_13"; 112 function = "uart2"; 112 function = "uart2"; 113 }; 113 }; 114 }; 114 }; 115 115 116 ... 116 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.