mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
ARM: dts: Add STMFX gpio expander support for stm32mp157c-ev1
Adds alias to set the pincontrol seq id. For STMFX gpio expander, force sequence number after the last bank (GPIOZ) to avoid conflict between STM32MP and STMFX gpio bank sequence number. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
@@ -17,6 +17,8 @@
|
|||||||
gpio9 = &gpioj;
|
gpio9 = &gpioj;
|
||||||
gpio10 = &gpiok;
|
gpio10 = &gpiok;
|
||||||
gpio25 = &gpioz;
|
gpio25 = &gpioz;
|
||||||
|
pinctrl0 = &pinctrl;
|
||||||
|
pinctrl1 = &pinctrl_z;
|
||||||
};
|
};
|
||||||
|
|
||||||
config {
|
config {
|
||||||
|
@@ -7,8 +7,10 @@
|
|||||||
|
|
||||||
/ {
|
/ {
|
||||||
aliases {
|
aliases {
|
||||||
|
gpio26 = &stmfx_pinctrl;
|
||||||
i2c1 = &i2c2;
|
i2c1 = &i2c2;
|
||||||
i2c4 = &i2c5;
|
i2c4 = &i2c5;
|
||||||
|
pinctrl2 = &stmfx_pinctrl;
|
||||||
spi0 = &qspi;
|
spi0 = &qspi;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@@ -98,6 +98,24 @@
|
|||||||
i2c-scl-rising-time-ns = <185>;
|
i2c-scl-rising-time-ns = <185>;
|
||||||
i2c-scl-falling-time-ns = <20>;
|
i2c-scl-falling-time-ns = <20>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
stmfx: stmfx@42 {
|
||||||
|
compatible = "st,stmfx-0300";
|
||||||
|
reg = <0x42>;
|
||||||
|
interrupts = <8 IRQ_TYPE_EDGE_RISING>;
|
||||||
|
interrupt-parent = <&gpioi>;
|
||||||
|
vdd-supply = <&v3v3>;
|
||||||
|
|
||||||
|
stmfx_pinctrl: stmfx-pin-controller {
|
||||||
|
compatible = "st,stmfx-0300-pinctrl";
|
||||||
|
gpio-controller;
|
||||||
|
#gpio-cells = <2>;
|
||||||
|
interrupt-controller;
|
||||||
|
#interrupt-cells = <2>;
|
||||||
|
gpio-ranges = <&stmfx_pinctrl 0 0 24>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c5 {
|
&i2c5 {
|
||||||
|
Reference in New Issue
Block a user