imx6qdl-sabresd.dtsi syntax error issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6qdl-sabresd.dtsi syntax error issue

882 Views
veeranjaneyulug
Contributor III


HI every one,

in imx6qdl-sabresd.dtsi file i need to change some code in place of volume up and volume down.I gave pir sensor and ntc sensor .But its giving synatx error .

        pir {

                        label = "pir sensor";

                        gpios = <&gpio1 4 1>;

                        gpio-key,wakeup;

                        linux,code = <KEY_PIRSENSOR >; //synatx error showing

         };

                ntc {

                        label = "Ntc sensor";

                        gpios = <&gpio1 5 1>;

                        gpio-key,wakeup;

                        linux,code = <KEY_NTCSENSOR>; //synatx error showing

                };

        };

        pir {

                        label = "pir sensor";

                        gpios = <&gpio1 4 1>;

                        gpio-key,wakeup;

                        linux,code = <KEY_VOLUMEUP >; //pir sensor for customboard

                };

                ntc {

                        label = "Ntc sensor";

                        gpios = <&gpio1 5 1>;

                        gpio-key,wakeup;

                        linux,code = <KEY_VOLUMEDOWN>; //ntc sensor for customboard

                };

        };

If i gave pir and ntc inplace of volumeup and volumedown keys .Its building .But i gave reverse its not building showing syntax error .

Labels (3)
0 Kudos
1 Reply

441 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Have you checked that the KEY_PIRSENSOR and KEY_NTCSENSOR symbols are defined in a header file?

If not, it is expected to get a sintax error.

KEY_VOLUMEDOWN for example is defined in arch/arm/boot/dts/include/dt-bindings/input/input.h

Best Regards,

Alejandro

0 Kudos