AnsweredAssumed Answered

imx6qdl-sabresd.dtsi syntax error issue

Question asked by veeranjaneyulu g on Mar 16, 2016
Latest reply on Mar 17, 2016 by alejandrolozano


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 .

Outcomes