2013年10月10日星期四

About 3.0 kernel device tree problem ?

Brother watching linux 3.11 source code , I found the device register now using the device tree .
So Lane on key settings to see source used when device tree, as shown below
gpio-keys {
compatible = "gpio-keys";
# address-cells = <1>;
# size-cells = <0>;
button @ 1 {
label = "Software Button";
linux, code = <116>;
gpios = <& gpio0 6 1>;
};
};
brother do not understand gpios = <& gpio0 6 1>; what it meant,
If I want to configure gpio 30 as a key interrupt , how to write device tree?
I do not know my description is clear, but also look advice .
Thank you !

------ Solution ------------------------------------ --------
gpios = <& gpio0 6 1>; & gpio0 which are referenced elsewhere already defined , followed by 61 ; should be on setting this gpio
For example: I define a file in its gpio: xxxx
add references elsewhere on the line &

------ For reference only ---------------------------------- -----
amount , no one would watch it ?

没有评论:

发表评论