Airoha EN7581 GPIO System Controller
Schema identifier ($id): "http://devicetree.org/schemas/mfd/airoha,en7581-gpio-sysctl.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Christian Marangi <ansuelsmth@gmail.com>", "Lorenzo Bianconi <lorenzo@kernel.org>"
Airoha EN7581 SoC GPIO system controller which provided a register map for controlling the GPIO, pins and PWM of the SoC.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"airoha,en7581-gpio-sysctl"
Item 2
Exact value (
const):"syscon"
Item 3
Exact value (
const):"simple-mfd"
reg — required here #
Maximum number of items (maxItems): 1
pinctrl — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/pinctrl/airoha,en7581-pinctrl.yaml
Child node definition for EN7581 Pin controller
pwm — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/pwm/airoha,en7581-pwm.yaml
Child node definition for EN7581 PWM controller
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
system-controller@1fbf0200 {
compatible = "airoha,en7581-gpio-sysctl", "syscon", "simple-mfd";
reg = <0x1fbf0200 0xc0>;
pinctrl {
compatible = "airoha,en7581-pinctrl";
interrupt-parent = <&gic>;
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
mmc-pins {
mux {
function = "emmc";
groups = "emmc";
};
};
mdio-pins {
mux {
function = "mdio";
groups = "mdio";
};
conf {
pins = "gpio2";
output-enable;
};
};
};
pwm {
compatible = "airoha,en7581-pwm";
#pwm-cells = <3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)