Trivial 2-cell GPIO controllers
Schema identifier ($id): "http://devicetree.org/schemas/gpio/trivial-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bartosz Golaszewski <brgl@bgdev.pl>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"cirrus,ep7209-gpio"
Rule 2
Allowed values (
enum):"apm,xgene-gpio","cirrus,ep7209-gpio","cznic,moxtet-gpio","dlg,slg7xl45106","fcs,fxl6408","fsl,ls1046aqds-fpga-gpio-stat-pres2","fsl,lx2160ardb-fpga-gpio-sfp","gateworks,pld-gpio","ibm,ppc4xx-gpio","loongson,ls1x-gpio","maxim,max77620","nintendo,hollywood-gpio","nxp,pca9570","nxp,pca9571","rockchip,rk3328-grf-gpio","snps,creg-gpio-hsdk","technologic,ts4800-gpio","technologic,ts4900-gpio","technologic,ts7970-gpio","ti,741g125","ti,741g174","ti,742g125","ti,7474","ti,74125","ti,74175","ti,74365","ti,74174","ti,74244","ti,74273","ti,741624","ti,7416374","ti,lp3943-gpio","ti,palmas-gpio","ti,tpic2810","ti,tps80036-gpio","ti,tps65913-gpio","ti,tps65914-gpio"
reg — not listed as required here #
Maximum number of items (maxItems): 1
#gpio-cells — required here #
Exact value (const): 2
gpio-controller — required here #
true — No constraints added by this property rule.
gpio-line-names — not listed as required here #
true — No constraints added by this property rule.
ngpios — not listed as required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
^(hog-[0-9]+|.+-hog(-[0-9]+)?)$ — name matches this regular expression #
Value type (type): "object"
Required in this object (required): "gpio-hog"
Required in this object (required): "compatible", "#gpio-cells", "gpio-controller"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"maxim,max77620","rockchip,rk3328-grf-gpio","ti,lp3943-gpio","ti,palmas-gpio","ti,tps80036-gpio","ti,tps65913-gpio","ti,tps65914-gpio"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
gpio@1701c000 {
compatible = "apm,xgene-gpio";
reg = <0x1701c000 0x40>;
gpio-controller;
#gpio-cells = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 39: for 741G125 (1-bit Input),
Line 40: for 741G74 (1-bit Output),
Line 41: for 742G125 (2-bit Input),
Line 42: for 7474 (2-bit Output),
Line 43: for 74125 (4-bit Input),
Line 44: for 74175 (4-bit Output),
Line 45: for 74365 (6-bit Input),
Line 46: for 74174 (6-bit Output),
Line 47: for 74244 (8-bit Input),
Line 48: for 74273 (8-bit Output),
Line 49: for 741624 (16-bit Input),
Line 50: for 7416374 (16-bit Output).
Line 70: Don't add more properties