1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 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/gpio/gpio-m 4 $id: http://devicetree.org/schemas/gpio/gpio-mvebu.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Marvell EBU GPIO controller 7 title: Marvell EBU GPIO controller 8 8 9 maintainers: 9 maintainers: 10 - Thomas Petazzoni <thomas.petazzoni@free-ele 10 - Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 11 - Andrew Lunn <andrew@lunn.ch> 11 - Andrew Lunn <andrew@lunn.ch> 12 12 13 properties: 13 properties: 14 compatible: 14 compatible: 15 oneOf: 15 oneOf: 16 - enum: 16 - enum: 17 - marvell,armada-8k-gpio 17 - marvell,armada-8k-gpio 18 - marvell,orion-gpio 18 - marvell,orion-gpio 19 19 20 - items: 20 - items: 21 - enum: 21 - enum: 22 - marvell,mv78200-gpio 22 - marvell,mv78200-gpio 23 - marvell,armada-370-gpio 23 - marvell,armada-370-gpio 24 - const: marvell,orion-gpio 24 - const: marvell,orion-gpio 25 25 26 - description: Deprecated binding 26 - description: Deprecated binding 27 items: 27 items: 28 - const: marvell,armadaxp-gpio 28 - const: marvell,armadaxp-gpio 29 - const: marvell,orion-gpio 29 - const: marvell,orion-gpio 30 deprecated: true 30 deprecated: true 31 31 32 reg: 32 reg: 33 description: | 33 description: | 34 Address and length of the register set f 34 Address and length of the register set for the device. Not used for 35 marvell,armada-8k-gpio. 35 marvell,armada-8k-gpio. 36 36 37 A second entry can be provided, for the 37 A second entry can be provided, for the PWM function using the GPIO Blink 38 Counter on/off registers. 38 Counter on/off registers. 39 minItems: 1 39 minItems: 1 40 maxItems: 2 40 maxItems: 2 41 41 42 reg-names: 42 reg-names: 43 items: 43 items: 44 - const: gpio 44 - const: gpio 45 - const: pwm 45 - const: pwm 46 minItems: 1 46 minItems: 1 47 47 48 offset: 48 offset: 49 $ref: /schemas/types.yaml#/definitions/uin 49 $ref: /schemas/types.yaml#/definitions/uint32 50 description: Offset in the register map fo 50 description: Offset in the register map for the gpio registers (in bytes) 51 51 52 interrupts: 52 interrupts: 53 description: | 53 description: | 54 The list of interrupts that are used for 54 The list of interrupts that are used for all the pins managed by this 55 GPIO bank. There can be more than one in 55 GPIO bank. There can be more than one interrupt (example: 1 interrupt 56 per 8 pins on Armada XP, which means 4 i 56 per 8 pins on Armada XP, which means 4 interrupts per bank of 32 57 GPIOs). 57 GPIOs). 58 minItems: 1 58 minItems: 1 59 maxItems: 4 59 maxItems: 4 60 60 61 interrupt-controller: true 61 interrupt-controller: true 62 62 63 "#interrupt-cells": 63 "#interrupt-cells": 64 const: 2 64 const: 2 65 65 66 gpio-controller: true 66 gpio-controller: true 67 67 68 ngpios: 68 ngpios: 69 minimum: 1 69 minimum: 1 70 maximum: 32 70 maximum: 32 71 71 72 "#gpio-cells": 72 "#gpio-cells": 73 const: 2 73 const: 2 74 74 75 marvell,pwm-offset: 75 marvell,pwm-offset: 76 $ref: /schemas/types.yaml#/definitions/uin 76 $ref: /schemas/types.yaml#/definitions/uint32 77 description: Offset in the register map fo 77 description: Offset in the register map for the pwm registers (in bytes) 78 78 79 "#pwm-cells": 79 "#pwm-cells": 80 description: 80 description: 81 The first cell is the GPIO line number. 81 The first cell is the GPIO line number. The second cell is the period 82 in nanoseconds. 82 in nanoseconds. 83 const: 2 83 const: 2 84 84 85 clocks: 85 clocks: 86 description: 86 description: 87 Clock(s) used for PWM function. 87 Clock(s) used for PWM function. 88 items: 88 items: 89 - description: Core clock 89 - description: Core clock 90 - description: AXI bus clock 90 - description: AXI bus clock 91 minItems: 1 91 minItems: 1 92 92 93 clock-names: 93 clock-names: 94 items: 94 items: 95 - const: core 95 - const: core 96 - const: axi 96 - const: axi 97 minItems: 1 97 minItems: 1 98 98 99 required: 99 required: 100 - compatible 100 - compatible 101 - gpio-controller 101 - gpio-controller 102 - ngpios 102 - ngpios 103 - "#gpio-cells" 103 - "#gpio-cells" 104 104 105 allOf: 105 allOf: 106 - if: 106 - if: 107 properties: 107 properties: 108 compatible: 108 compatible: 109 contains: 109 contains: 110 const: marvell,armada-8k-gpio 110 const: marvell,armada-8k-gpio 111 then: 111 then: 112 required: 112 required: 113 - offset 113 - offset 114 else: 114 else: 115 required: 115 required: 116 - reg 116 - reg 117 117 118 unevaluatedProperties: false 118 unevaluatedProperties: false 119 119 120 examples: 120 examples: 121 - | 121 - | 122 gpio@d0018100 { 122 gpio@d0018100 { 123 compatible = "marvell,armadaxp-gpio", "m 123 compatible = "marvell,armadaxp-gpio", "marvell,orion-gpio"; 124 reg = <0xd0018100 0x40>, <0xd0018800 0x3 124 reg = <0xd0018100 0x40>, <0xd0018800 0x30>; 125 ngpios = <32>; 125 ngpios = <32>; 126 gpio-controller; 126 gpio-controller; 127 #gpio-cells = <2>; 127 #gpio-cells = <2>; 128 interrupt-controller; 128 interrupt-controller; 129 #interrupt-cells = <2>; 129 #interrupt-cells = <2>; 130 interrupts = <16>, <17>, <18>, <19>; 130 interrupts = <16>, <17>, <18>, <19>; 131 }; 131 }; 132 132 133 - | 133 - | 134 gpio@18140 { 134 gpio@18140 { 135 compatible = "marvell,armada-370-gpio", 135 compatible = "marvell,armada-370-gpio", "marvell,orion-gpio"; 136 reg = <0x18140 0x40>, <0x181c8 0x08>; 136 reg = <0x18140 0x40>, <0x181c8 0x08>; 137 reg-names = "gpio", "pwm"; 137 reg-names = "gpio", "pwm"; 138 ngpios = <17>; 138 ngpios = <17>; 139 gpio-controller; 139 gpio-controller; 140 #gpio-cells = <2>; 140 #gpio-cells = <2>; 141 #pwm-cells = <2>; 141 #pwm-cells = <2>; 142 interrupt-controller; 142 interrupt-controller; 143 #interrupt-cells = <2>; 143 #interrupt-cells = <2>; 144 interrupts = <87>, <88>, <89>; 144 interrupts = <87>, <88>, <89>; 145 clocks = <&coreclk 0>; 145 clocks = <&coreclk 0>; 146 }; 146 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.