2023-12-13 12:47 AM
Hi,
I want to configure the LED7 of stm32mp157f-dk2,
in arc/arm/boot/dts folder there are stm32mp157f-dk2.dts and stm32mp157f-dk2.dtb file,
I cannot edit .dts file since it appears as an audio file and not the text file.
so I edited the stm32mp15xx-dxx.dtsi file, to add PH7 pin of LED7 as below
led {
compatible = "gpio-leds";
led-blue {
label = "heartbeat";
gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
default-state = "off";
};
led-orange {
label = "None";
gpios = <&gpioh 7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "none";
default-state = "off";
};
};
How can i get the updated .dtb file.?
After getting the updated .dtb file just replacing the .dtb file in board is enough?
Kindly help me as i am new to this MPU.
Solved! Go to Solution.
2023-12-13 03:29 AM
Hello,
you should have a look to:
https://wiki.st.com/stm32mpu/wiki/How_to_control_a_GPIO_in_userspace
good luck & praise nyarlatotep!
2023-12-13 03:29 AM
Hello,
you should have a look to:
https://wiki.st.com/stm32mpu/wiki/How_to_control_a_GPIO_in_userspace
good luck & praise nyarlatotep!