Semtech SX150x GPIO expander
Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/semtech,sx1501q.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "semtech,sx1501q", "semtech,sx1502q", "semtech,sx1503q", "semtech,sx1504q", "semtech,sx1505q", "semtech,sx1506q", "semtech,sx1507q", "semtech,sx1508q", "semtech,sx1509q"
reg — required here #
Maximum number of items (maxItems): 1
gpio-line-names — not listed as required here #
Minimum number of items (minItems): 5
Maximum number of items (maxItems): 17
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
#interrupt-cells — not listed as required here #
Exact value (const): 2
interrupt-controller — not listed as required here #
true — No constraints added by this property rule.
#gpio-cells — required here #
Exact value (const): 2
gpio-controller — required here #
true — No constraints added by this property rule.
semtech,probe-reset — not listed as required here #
Will trigger a reset of the GPIO expander on probe
Value type (type): "boolean"
Properties matching a name pattern (patternProperties) #
-cfg$ — name matches this regular expression #
Value type (type): "object"
Properties and child nodes (properties) #
pins — required here
true — No constraints added by this property rule.
bias-disable — not listed as required here
true — No constraints added by this property rule.
bias-pull-up — not listed as required here
true — No constraints added by this property rule.
bias-pull-down — not listed as required here
true — No constraints added by this property rule.
bias-pull-pin-default — not listed as required here
true — No constraints added by this property rule.
drive-push-pull — not listed as required here
true — No constraints added by this property rule.
output-low — not listed as required here
true — No constraints added by this property rule.
output-high — not listed as required here
true — No constraints added by this property rule.
drive-open-drain — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "pins"
All of these rules must match (allOf) #
Rule 1
Shared schema rule (
$ref):pincfg-node.yaml#
Rule 2
Shared schema rule (
$ref):pinmux-node.yaml#
Rule 3
Condition (
if)Properties and child nodes (
properties)
pins— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"oscio"When the condition matches (
then)Properties and child nodes (
properties)
bias-disable— not listed as required here
false— Not permitted by this property rule.
bias-pull-up— not listed as required here
false— Not permitted by this property rule.
bias-pull-down— not listed as required here
false— Not permitted by this property rule.
bias-pull-pin-default— not listed as required here
false— Not permitted by this property rule.
drive-open-drain— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "#gpio-cells", "gpio-controller"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pinctrl.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"semtech,sx1501q","semtech,sx1504q","semtech,sx1507q"When the condition matches (
then) #Properties and child nodes (
properties)
gpio-line-names— not listed as required hereMinimum number of items (
minItems):5Maximum number of items (
maxItems):5
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"semtech,sx1502q","semtech,sx1505q","semtech,sx1508q"When the condition matches (
then) #Properties and child nodes (
properties)
gpio-line-names— not listed as required hereMinimum number of items (
minItems):9Maximum number of items (
maxItems):9
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"semtech,sx1503q","semtech,sx1506q","semtech,sx1509q"When the condition matches (
then) #Properties and child nodes (
properties)
gpio-line-names— not listed as required hereMinimum number of items (
minItems):17Maximum number of items (
maxItems):17
Rule 5 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"semtech,sx1507q","semtech,sx1508q","semtech,sx1509q"When the condition matches (
then) #Properties and child nodes (
properties)
semtech,probe-reset— not listed as required here
false— Not permitted by this property rule.
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
-cfg$— name matches this regular expressionProperties and child nodes (
properties)
pins— not listed as required hereArray item rules (
items)String pattern (
pattern):"^gpio[0-3]$"
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
-cfg$— name matches this regular expressionProperties and child nodes (
properties)
pins— not listed as required hereArray item rules (
items)String pattern (
pattern):"^gpio[0-7]$"
Rule 8 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
-cfg$— name matches this regular expressionProperties and child nodes (
properties)
pins— not listed as required hereArray item rules (
items)String pattern (
pattern):"^(gpio[0-9]|gpio1[0-5])$"
Rule 9 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"semtech,sx1507q"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
-cfg$— name matches this regular expressionProperties and child nodes (
properties)
pins— not listed as required hereArray item rules (
items)String pattern (
pattern):"^(oscio|gpio[0-3])$"
Rule 10 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"semtech,sx1508q"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
-cfg$— name matches this regular expressionProperties and child nodes (
properties)
pins— not listed as required hereArray item rules (
items)String pattern (
pattern):"^(oscio|gpio[0-7])$"
Rule 11 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"semtech,sx1509q"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
-cfg$— name matches this regular expressionProperties and child nodes (
properties)
pins— not listed as required hereArray item rules (
items)String pattern (
pattern):"^(oscio|gpio[0-9]|gpio1[0-5])$"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c@1000 {
reg = <0x1000 0x80>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl@20 {
compatible = "semtech,sx1501q";
reg = <0x20>;
#gpio-cells = <2>;
#interrupt-cells = <2>;
interrupts = <16 IRQ_TYPE_EDGE_FALLING>;
gpio-controller;
interrupt-controller;
gpio1-cfg {
pins = "gpio1";
bias-pull-up;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2022 Linaro Ltd.