| 1 |
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/pinctrl/marvell,armada-7k-pinctrl.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Marvell Armada 7K/8K pin controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Gregory Clement <[email protected]> |
| 11 |
- Miquel Raynal <[email protected]> |
| 12 |
|
| 13 |
properties: |
| 14 |
compatible: |
| 15 |
enum: |
| 16 |
- marvell,armada-7k-pinctrl |
| 17 |
- marvell,armada-8k-cpm-pinctrl |
| 18 |
- marvell,armada-8k-cps-pinctrl |
| 19 |
- marvell,cp115-standalone-pinctrl |
| 20 |
|
| 21 |
reg: |
| 22 |
maxItems: 1 |
| 23 |
|
| 24 |
patternProperties: |
| 25 |
'-pins(-.+)?$': |
| 26 |
type: object |
| 27 |
additionalProperties: false |
| 28 |
|
| 29 |
properties: |
| 30 |
marvell,function: |
| 31 |
$ref: /schemas/types.yaml#/definitions/string |
| 32 |
description: |
| 33 |
Indicates the function to select. |
| 34 |
enum: [ |
| 35 |
au, dev, ge, ge0, ge1, gpio, i2c0, i2c1, led, link, mii, mss_gpio0, |
| 36 |
mss_gpio1, mss_gpio2, mss_gpio3, mss_gpio4, mss_gpio5, mss_gpio6, |
| 37 |
mss_gpio7, mss_i2c, mss_spi, mss_uart, nf, pcie, pcie0, pcie1, pcie2, |
| 38 |
ptp, rei, sata0, sata1, sdio, sdio_cd, sdio_wp, sei, spi0, spi1, |
| 39 |
synce1, synce2, tdm, uart0, uart1, uart2, uart3, wakeup, xg |
| 40 |
] |
| 41 |
|
| 42 |
marvell,pins: |
| 43 |
$ref: /schemas/types.yaml#/definitions/string-array |
| 44 |
description: |
| 45 |
Array of MPP pins to be used for the given function. |
| 46 |
minItems: 1 |
| 47 |
maxItems: 63 |
| 48 |
items: |
| 49 |
pattern: '^mpp([1-5]?[0-9]|6[0-2])$' |
| 50 |
|
| 51 |
allOf: |
| 52 |
- $ref: pinctrl.yaml# |
| 53 |
|
| 54 |
required: |
| 55 |
- compatible |
| 56 |
|
| 57 |
additionalProperties: false |
| 58 |
|
| 59 |
examples: |
| 60 |
- | |
| 61 |
pinctrl { |
| 62 |
compatible = "marvell,armada-7k-pinctrl"; |
| 63 |
|
| 64 |
nand_pins: nand-pins { |
| 65 |
marvell,pins = |
| 66 |
"mpp15", "mpp16", "mpp17", "mpp18", |
| 67 |
"mpp19", "mpp20", "mpp21", "mpp22", |
| 68 |
"mpp23", "mpp24", "mpp25", "mpp26", |
| 69 |
"mpp27"; |
| 70 |
marvell,function = "dev"; |
| 71 |
}; |
| 72 |
}; |