Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
[ADD] user led
Browse files Browse the repository at this point in the history
  • Loading branch information
yht1995 committed Apr 25, 2016
1 parent 44b4ed1 commit 25bf9e6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 31 deletions.
2 changes: 1 addition & 1 deletion tk2_linux.sdk/device_tree_bsp_0/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

dtsi:
dtc -O dtb -I dts -o temp.dtb system.dts
dtc -O dts -I dtb -o temp.dts temp.dtb
dtc -O dts -I dtb -o system-all.dts temp.dtb
rm -f temp.dtb

dtb:
Expand Down
20 changes: 14 additions & 6 deletions tk2_linux.sdk/device_tree_bsp_0/devicetree.dts
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,20 @@
default-state = "on";
linux,default-trigger = "cpu1";
};

led_lb {
label = "led_lb";
gpios = <0x5 0x3d 0x1>;
default-state = "on";
linux,default-trigger = "heartbeat";
};

led_lg {
label = "led_lg";
gpios = <0x5 0x3e 0x1>;
default-state = "on";
linux,default-trigger = "cpu1";
};

usr_led1 {
label = "usr_led1";
Expand All @@ -467,12 +481,6 @@
default-state = "off";
linux,default-trigger = "none";
};

gpio-beep {
compatible = "gpio-beeper";
lable = "pl-beep";
gpios = <0x5 0x39 0x0>;
};
};

amba_pl {
Expand Down
2 changes: 1 addition & 1 deletion tk2_linux.sdk/device_tree_bsp_0/pl.dtsi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* CAUTION: This file is automatically generated by Xilinx.
* Version:
* Today is: Sat Mar 26 00:04:02 2016
* Today is: Sat Apr 9 21:04:29 2016
*/


Expand Down
2 changes: 1 addition & 1 deletion tk2_linux.sdk/device_tree_bsp_0/system.dts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* CAUTION: This file is automatically generated by Xilinx.
* Version:
* Today is: Sat Mar 26 00:04:02 2016
* Today is: Sat Apr 9 21:04:29 2016
*/


Expand Down
22 changes: 0 additions & 22 deletions tk2_linux.xpr
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,6 @@
<Attr Name="UsedIn" Val="implementation"/>
<Attr Name="UsedIn" Val="simulation"/>
</FileInfo>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_pulse_3_0/design_1_pulse_3_0.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_pulse_2_0/design_1_pulse_2_0.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_pulse_1_0/design_1_pulse_1_0.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_pulse_0_0/design_1_pulse_0_0.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="hdl/design_1.v"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_processing_system7_0_0/design_1_processing_system7_0_0.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_xlconcat_0_1/design_1_xlconcat_0_1.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_xbar_1/design_1_xbar_1.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_processing_system7_0_axi_periph_1/design_1_processing_system7_0_axi_periph_1.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_axi_uartlite_1_0/design_1_axi_uartlite_1_0.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_axi_uartlite_0_2/design_1_axi_uartlite_0_2.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_axi_uartlite_0_1/design_1_axi_uartlite_0_1.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_pulse_4_0/design_1_pulse_4_0.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_pwm_1_0/design_1_pwm_1_0.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_pwm_0_1/design_1_pwm_0_1.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_pwm_0_0/design_1_pwm_0_0.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_rst_processing_system7_0_50M_0/design_1_rst_processing_system7_0_50M_0.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="ip/design_1_auto_pc_0/design_1_auto_pc_0.xci"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="hw_handoff/design_1.hwh"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="hw_handoff/design_1_bd.tcl"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="hdl/design_1.hwdef"/>
<CompFileExtendedInfo CompFileName="design_1.bd" FileRelPathName="design_1_ooc.xdc"/>
</File>
<File Path="$PSRCDIR/sources_1/bd/design_1/hdl/design_1_wrapper.v">
<FileInfo>
Expand Down

0 comments on commit 25bf9e6

Please sign in to comment.