您好:
使用bb black板子。下载新版内核后发现原来的设备文件BB-W1-00A0.dts。变成了BB-W1-P9.12-00A0.dts。由于使用的是P9_22。需要修改这个文件。但是有些地方不太明白。源码
/dts-v1/;
/ { compatible = "ti,beaglebone", "ti,beaglebone-black", "ti,beaglebone-green"; part-number = "BB-W1-P9.12"; version = "00A0"; exclusive-use = "P9.12";
fragment@0 { target = <0xdeadbeef>;
__overlay__ {
pinmux_dallas_w1_pins { pinctrl-single,pins = <0x78 0x37>; linux,phandle = <0x1>; phandle = <0x1>; }; }; };
fragment@1 { target-path = [2f 00];
__overlay__ {
onewire { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <0x1>; compatible = "w1-gpio"; gpios = <0xdeadbeef 0x1c 0x0>; }; }; };
__symbols__ { dallas_w1_pins = "/fragment@0/__overlay__/pinmux_dallas_w1_pins"; };
__local_fixups__ {
fragment@1 {
__overlay__ {
onewire { pinctrl-0 = <0x0>; }; }; }; };
__fixups__ { am33xx_pinmux = "/fragment@0:target:0"; gpio1 = "/fragment@1/__overlay__/onewire:gpios:0"; }; };
fragment@1 { target-path = [2f 00];这句是什么意思?不是一个绝对地址。我要修改成P9_22的话要如何修改这个文件。
Jian Zhou:
请问你的源代码是从哪里下载的?是TI发布的SDK么?