]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: stm32mp13: alignment with v5.19
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Thu, 30 Jun 2022 08:20:17 +0000 (10:20 +0200)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 12 Jul 2022 09:48:09 +0000 (11:48 +0200)
Device tree alignment with Linux kernel v5.19-rc1 with:
- ARM: dts: stm32: add UserPA13 button on stm32mp135f-dk
- ARM: dts: stm32: add blue led (Linux heartbeat) on stm32mp135f-dk
- ARM: dts: stm32: add EXTI interrupt-parent to pinctrl node on stm32mp131
- ARM: dts: stm32: enable RTC support on stm32mp135f-dk
- ARM: dts: stm32: add RTC node on stm32mp131
- ARM: dts: stm32: fix pinctrl node name warnings (MPU soc)

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/dts/stm32mp131.dtsi
arch/arm/dts/stm32mp135f-dk.dts

index 8f7af65e3edca0a9ec07b3814cb05f6a8b3badf9..84e16bb2f2bf6bd2653a5cb335c3d357e152837f 100644 (file)
                        compatible = "fixed-clock";
                        clock-frequency = <99000000>;
                };
+
+               clk_rtc_k: clk-rtc-k {
+                       #clock-cells = <0>;
+                       compatible = "fixed-clock";
+                       clock-frequency = <32768>;
+               };
        };
 
        intc: interrupt-controller@a0021000 {
                        status = "disabled";
                };
 
+               rtc: rtc@5c004000 {
+                       compatible = "st,stm32mp1-rtc";
+                       reg = <0x5c004000 0x400>;
+                       interrupts-extended = <&exti 19 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clk_pclk4>, <&clk_rtc_k>;
+                       clock-names = "pclk", "rtc_ck";
+                       status = "disabled";
+               };
+
                bsec: efuse@5c005000 {
                        compatible = "st,stm32mp13-bsec";
                        reg = <0x5c005000 0x400>;
                 * Break node order to solve dependency probe issue between
                 * pinctrl and exti.
                 */
-               pinctrl: pin-controller@50002000 {
+               pinctrl: pinctrl@50002000 {
                        #address-cells = <1>;
                        #size-cells = <1>;
                        compatible = "st,stm32mp135-pinctrl";
                        ranges = <0 0x50002000 0x8400>;
+                       interrupt-parent = <&exti>;
+                       st,syscfg = <&exti 0x60 0xff>;
                        pins-are-numbered;
 
                        gpioa: gpio@50002000 {
index 31c510f976a7c564fc84355f23c6d06a257a75d7..f436ffab9983837c9923e6315845e0c452f0550e 100644 (file)
@@ -6,6 +6,9 @@
 
 /dts-v1/;
 
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include "stm32mp135.dtsi"
 #include "stm32mp13xf.dtsi"
 #include "stm32mp13-pinctrl.dtsi"
                };
        };
 
+       gpio-keys {
+               compatible = "gpio-keys";
+
+               user-pa13 {
+                       label = "User-PA13";
+                       linux,code = <BTN_1>;
+                       gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+               };
+       };
+
+       leds {
+               compatible = "gpio-leds";
+
+               led-blue {
+                       function = LED_FUNCTION_HEARTBEAT;
+                       color = <LED_COLOR_ID_BLUE>;
+                       gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "heartbeat";
+                       default-state = "off";
+               };
+       };
+
        vdd_sd: vdd-sd {
                compatible = "regulator-fixed";
                regulator-name = "vdd_sd";
        status = "okay";
 };
 
+&rtc {
+       status = "okay";
+};
+
 &sdmmc1 {
        pinctrl-names = "default", "opendrain", "sleep";
        pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_clk_pins_a>;