]> git.baikalelectronics.ru Git - uboot.git/commitdiff
ARM: dts: Add STMFX gpio expander support for stm32mp157c-ev1
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 12 Apr 2019 12:38:28 +0000 (14:38 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Fri, 12 Apr 2019 14:09:13 +0000 (16:09 +0200)
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>
arch/arm/dts/stm32mp157-u-boot.dtsi
arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi
arch/arm/dts/stm32mp157c-ev1.dts

index 2594702c926f3ae47287adb125a494c09e3f28f3..ab6f673ea24c78885550618e9e9f1a32102e8cd1 100644 (file)
@@ -17,6 +17,8 @@
                gpio9 = &gpioj;
                gpio10 = &gpiok;
                gpio25 = &gpioz;
+               pinctrl0 = &pinctrl;
+               pinctrl1 = &pinctrl_z;
        };
 
        config {
index be3b1526288ffc668fafe0b72328bae41a0e9ecd..6a18d032ae5400c6a37c68232368a53e556254f6 100644 (file)
@@ -7,8 +7,10 @@
 
 / {
        aliases {
+               gpio26 = &stmfx_pinctrl;
                i2c1 = &i2c2;
                i2c4 = &i2c5;
+               pinctrl2 = &stmfx_pinctrl;
                spi0 = &qspi;
        };
 };
index e114c9b628b8bb6cd06ede612c79224062156fe5..a6ee37924fe18fe574add7271b21358dfd678376 100644 (file)
        i2c-scl-rising-time-ns = <185>;
        i2c-scl-falling-time-ns = <20>;
        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 {