STMicroelectonics Multi-Function eXpander (STMFX)
Schema identifier ($id): "http://devicetree.org/schemas/mfd/st,stmfx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
ST Multi-Function eXpander (STMFX) is a slave controller using I2C for communication with the main MCU. Its main features are GPIO expansion, main MCU IDD measurement (IDD is the amount of current that flows through VDD) and resistive touchscreen controller.
Maintainers (maintainers): "Amelie Delaunay <amelie.delaunay@foss.st.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,stmfx-0300"
reg — required here #
interrupts — required here #
Maximum number of items (maxItems): 1
drive-open-drain — not listed as required here #
true — No constraints added by this property rule.
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
pinctrl — not listed as required here #
Value type (type): "object"
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "st,stmfx-0300-pinctrl"
#gpio-cells — required here
Exact value (const): 2
#interrupt-cells — required here
Exact value (const): 2
gpio-controller — required here
true — No constraints added by this property rule.
interrupt-controller — required here
true — No constraints added by this property rule.
gpio-ranges — required here
if all STMFX pins[24:0] are available (no other STMFX function in use), you should use gpio-ranges = <&stmfx_pinctrl 0 0 24>; if agpio[3:0] are not available (STMFX Touchscreen function in use), you should use gpio-ranges = <&stmfx_pinctrl 0 0 16>, <&stmfx_pinctrl 20 20 4>; if agpio[7:4] are not available (STMFX IDD function in use), you should use gpio-ranges = <&stmfx_pinctrl 0 0 20>;
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^[a-zA-Z]*-pins$ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
All of these rules must match (allOf)
Rule 1
Shared schema rule (
$ref):/schemas/pinctrl/pinmux-node.yaml
Properties and child nodes (properties)
pins — not listed as 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-pin-default — 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.
drive-open-drain — 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-high — 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.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "#gpio-cells", "#interrupt-cells", "gpio-controller", "interrupt-controller", "gpio-ranges"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts"
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
stmfx@42 {
compatible = "st,stmfx-0300";
reg = <0x42>;
interrupts = <8 IRQ_TYPE_EDGE_RISING>;
interrupt-parent = <&gpioi>;
vdd-supply = <&v3v3>;
stmfx_pinctrl: pinctrl {
compatible = "st,stmfx-0300-pinctrl";
#gpio-cells = <2>;
#interrupt-cells = <2>;
gpio-controller;
interrupt-controller;
gpio-ranges = <&stmfx_pinctrl 0 0 24>;
joystick_pins: joystick-pins {
pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
drive-push-pull;
bias-pull-up;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)