vi project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi
这是打开设备树的代码
/include/ "system-conf.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ {
model = "ALIENTEK Development Board";
compatible = "alientek,zynq-7020","xlnx,zynq-7000";
leds {
compatible = "gpio-leds";
gpio-led1 {
label = "pl_led0";
gpios = <&gpio0 54 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
};
gpio-led2 {
label = "ps_led0";
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
};
keys {
compatible = "gpio-keys";
autorepeat;
gpio-key1 {
label = "ps_key";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
linux,code = <105>; // Right
debounce-interval = <20>; // 20ms
};
gpio-key2 {
label = "pl_key";
gpios = <&gpio0 55 GPIO_ACTIVE_LOW>;
linux,code = <106>; // Left
debounce-interval = <20>;
};
};
usb_phy0: phy0@e0002000 {
compatible = "ulpi-phy";
#phy-cells = <0>;
reg = <0xe0002000 0x1000>;
view-port = <0x0170>;
drv-vbus;
};
};
&usb0 {
dr_mode = "otg";
usb-phy = <&usb_phy0>;
};
234

被折叠的 条评论
为什么被折叠?



