cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help to configure LED7 pin PH7 in stm32mp157f-dk2

nitgbhat
Associate II

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.

1 ACCEPTED SOLUTION
1 REPLY 1