2020-06-22 11:37:40 +00:00
|
|
|
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
|
|
%YAML 1.2
|
|
|
|
---
|
|
|
|
$id: http://devicetree.org/schemas/pinctrl/ingenic,pinctrl.yaml#
|
|
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
|
|
|
|
title: Ingenic SoCs pin controller devicetree bindings
|
|
|
|
|
|
|
|
description: >
|
|
|
|
Please refer to pinctrl-bindings.txt in this directory for details of the
|
|
|
|
common pinctrl bindings used by client devices, including the meaning of the
|
|
|
|
phrase "pin configuration node".
|
|
|
|
|
|
|
|
For the Ingenic SoCs, pin control is tightly bound with GPIO ports. All pins
|
|
|
|
may be used as GPIOs, multiplexed device functions are configured within the
|
|
|
|
GPIO port configuration registers and it is typical to refer to pins using the
|
|
|
|
naming scheme "PxN" where x is a character identifying the GPIO port with
|
|
|
|
which the pin is associated and N is an integer from 0 to 31 identifying the
|
|
|
|
pin within that GPIO port. For example PA0 is the first pin in GPIO port A,
|
2021-04-18 14:44:28 +00:00
|
|
|
and PB31 is the last pin in GPIO port B. The JZ4730, the JZ4740, the JZ4725B,
|
|
|
|
the X1000 and the X1830 contains 4 GPIO ports, PA to PD, for a total of 128
|
2021-07-24 06:36:43 +00:00
|
|
|
pins. The X2000 and the X2100 contains 5 GPIO ports, PA to PE, for a total of
|
|
|
|
160 pins. The JZ4750, the JZ4755 the JZ4760, the JZ4770 and the JZ4780 contains
|
|
|
|
6 GPIO ports, PA to PF, for a total of 192 pins. The JZ4775 contains 7 GPIO
|
|
|
|
ports, PA to PG, for a total of 224 pins.
|
2020-06-22 11:37:40 +00:00
|
|
|
|
|
|
|
maintainers:
|
|
|
|
- Paul Cercueil <paul@crapouillou.net>
|
|
|
|
|
|
|
|
properties:
|
|
|
|
nodename:
|
|
|
|
pattern: "^pinctrl@[0-9a-f]+$"
|
|
|
|
|
|
|
|
compatible:
|
|
|
|
oneOf:
|
|
|
|
- enum:
|
2021-04-18 14:44:28 +00:00
|
|
|
- ingenic,jz4730-pinctrl
|
2020-04-21 02:24:47 +00:00
|
|
|
- ingenic,jz4740-pinctrl
|
|
|
|
- ingenic,jz4725b-pinctrl
|
2021-04-18 14:44:28 +00:00
|
|
|
- ingenic,jz4750-pinctrl
|
|
|
|
- ingenic,jz4755-pinctrl
|
2020-04-21 02:24:47 +00:00
|
|
|
- ingenic,jz4760-pinctrl
|
|
|
|
- ingenic,jz4770-pinctrl
|
2021-04-18 14:44:28 +00:00
|
|
|
- ingenic,jz4775-pinctrl
|
2020-04-21 02:24:47 +00:00
|
|
|
- ingenic,jz4780-pinctrl
|
|
|
|
- ingenic,x1000-pinctrl
|
|
|
|
- ingenic,x1500-pinctrl
|
|
|
|
- ingenic,x1830-pinctrl
|
2021-04-18 14:44:28 +00:00
|
|
|
- ingenic,x2000-pinctrl
|
2021-07-24 06:36:43 +00:00
|
|
|
- ingenic,x2100-pinctrl
|
2020-06-22 11:37:40 +00:00
|
|
|
- items:
|
2020-04-21 02:24:47 +00:00
|
|
|
- const: ingenic,jz4760b-pinctrl
|
|
|
|
- const: ingenic,jz4760-pinctrl
|
2020-06-22 11:37:40 +00:00
|
|
|
- items:
|
2020-04-21 02:24:47 +00:00
|
|
|
- const: ingenic,x1000e-pinctrl
|
|
|
|
- const: ingenic,x1000-pinctrl
|
2021-04-18 14:44:28 +00:00
|
|
|
- items:
|
|
|
|
- const: ingenic,x2000e-pinctrl
|
|
|
|
- const: ingenic,x2000-pinctrl
|
2020-06-22 11:37:40 +00:00
|
|
|
|
|
|
|
reg:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
"#address-cells":
|
|
|
|
const: 1
|
|
|
|
|
|
|
|
"#size-cells":
|
|
|
|
const: 0
|
|
|
|
|
|
|
|
patternProperties:
|
|
|
|
"^gpio@[0-9]$":
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
enum:
|
2021-04-18 14:44:28 +00:00
|
|
|
- ingenic,jz4730-gpio
|
2020-06-22 11:37:40 +00:00
|
|
|
- ingenic,jz4740-gpio
|
|
|
|
- ingenic,jz4725b-gpio
|
2021-04-18 14:44:28 +00:00
|
|
|
- ingenic,jz4750-gpio
|
|
|
|
- ingenic,jz4755-gpio
|
2020-06-22 11:37:40 +00:00
|
|
|
- ingenic,jz4760-gpio
|
|
|
|
- ingenic,jz4770-gpio
|
2021-04-18 14:44:28 +00:00
|
|
|
- ingenic,jz4775-gpio
|
2020-06-22 11:37:40 +00:00
|
|
|
- ingenic,jz4780-gpio
|
|
|
|
- ingenic,x1000-gpio
|
|
|
|
- ingenic,x1500-gpio
|
|
|
|
- ingenic,x1830-gpio
|
2021-04-18 14:44:28 +00:00
|
|
|
- ingenic,x2000-gpio
|
2021-07-24 06:36:43 +00:00
|
|
|
- ingenic,x2100-gpio
|
2020-06-22 11:37:40 +00:00
|
|
|
|
|
|
|
reg:
|
|
|
|
items:
|
|
|
|
- description: The GPIO bank number
|
|
|
|
|
|
|
|
gpio-controller: true
|
|
|
|
|
|
|
|
"#gpio-cells":
|
|
|
|
const: 2
|
|
|
|
|
|
|
|
gpio-ranges:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
interrupt-controller: true
|
|
|
|
|
|
|
|
"#interrupt-cells":
|
|
|
|
const: 2
|
|
|
|
description:
|
|
|
|
Refer to ../interrupt-controller/interrupts.txt for more details.
|
|
|
|
|
|
|
|
interrupts:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- reg
|
|
|
|
- gpio-controller
|
|
|
|
- "#gpio-cells"
|
|
|
|
- interrupts
|
|
|
|
- interrupt-controller
|
|
|
|
- "#interrupt-cells"
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- reg
|
|
|
|
- "#address-cells"
|
|
|
|
- "#size-cells"
|
|
|
|
|
2020-07-20 15:45:48 +00:00
|
|
|
additionalProperties:
|
|
|
|
anyOf:
|
|
|
|
- type: object
|
|
|
|
allOf:
|
|
|
|
- $ref: pincfg-node.yaml#
|
|
|
|
- $ref: pinmux-node.yaml#
|
|
|
|
|
|
|
|
properties:
|
|
|
|
phandle: true
|
|
|
|
function: true
|
|
|
|
groups: true
|
|
|
|
pins: true
|
|
|
|
bias-disable: true
|
|
|
|
bias-pull-up: true
|
|
|
|
bias-pull-down: true
|
|
|
|
output-low: true
|
|
|
|
output-high: true
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
- type: object
|
|
|
|
properties:
|
|
|
|
phandle: true
|
|
|
|
additionalProperties:
|
|
|
|
type: object
|
|
|
|
allOf:
|
|
|
|
- $ref: pincfg-node.yaml#
|
|
|
|
- $ref: pinmux-node.yaml#
|
|
|
|
|
|
|
|
properties:
|
|
|
|
phandle: true
|
|
|
|
function: true
|
|
|
|
groups: true
|
|
|
|
pins: true
|
|
|
|
bias-disable: true
|
|
|
|
bias-pull-up: true
|
|
|
|
bias-pull-down: true
|
|
|
|
output-low: true
|
|
|
|
output-high: true
|
|
|
|
additionalProperties: false
|
|
|
|
|
2020-06-22 11:37:40 +00:00
|
|
|
examples:
|
|
|
|
- |
|
|
|
|
pin-controller@10010000 {
|
|
|
|
compatible = "ingenic,jz4770-pinctrl";
|
|
|
|
reg = <0x10010000 0x600>;
|
|
|
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
gpio@0 {
|
|
|
|
compatible = "ingenic,jz4770-gpio";
|
|
|
|
reg = <0>;
|
|
|
|
|
|
|
|
gpio-controller;
|
|
|
|
gpio-ranges = <&pinctrl 0 0 32>;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
|
|
|
|
interrupt-parent = <&intc>;
|
|
|
|
interrupts = <17>;
|
|
|
|
};
|
|
|
|
};
|