change the uboot file, edit devicetree to add a status led support

This commit is contained in:
black-pigeon 2021-08-24 11:08:14 +08:00
parent f057dd806f
commit c96d387068
3 changed files with 3 additions and 62 deletions

View File

@ -862,22 +862,8 @@
led0 {
label = "led0:green";
gpios = <0x6 0x3a 0x0>;
};
led1 {
label = "led1:green";
gpios = <0x6 0x3b 0x0>;
};
led2 {
label = "led2:green";
gpios = <0x6 0x3c 0x0>;
};
led3 {
label = "led3:green";
gpios = <0x6 0x3d 0x0>;
gpios = <0x6 0xF 0>;
linux,default-trigger = "heartbeat";
};
};
@ -887,56 +873,11 @@
#size-cells = <0x0>;
autorepeat;
pb0 {
label = "Left";
linux,code = <0x69>;
gpios = <0x6 0x36 0x0>;
};
pb1 {
label = "Right";
linux,code = <0x6a>;
gpios = <0x6 0x37 0x0>;
};
pb2 {
label = "Up";
linux,code = <0x67>;
gpios = <0x6 0x38 0x0>;
};
pb3 {
label = "Down";
linux,code = <0x6c>;
gpios = <0x6 0x39 0x0>;
};
sw0 {
label = "SW0";
linux,input-type = <0x5>;
linux,code = <0x0>;
gpios = <0x6 0x3e 0x0>;
};
sw1 {
label = "SW1";
linux,input-type = <0x5>;
linux,code = <0x1>;
gpios = <0x6 0x3f 0x0>;
};
sw2 {
label = "SW2";
linux,input-type = <0x5>;
linux,code = <0x2>;
gpios = <0x6 0x40 0x0>;
};
sw3 {
label = "SW3";
linux,input-type = <0x5>;
linux,code = <0x3>;
gpios = <0x6 0x41 0x0>;
gpios = <0x6 0xE 0x0>;
};
};
};

BIN
kernel_boot/boards/antsdr/u-boot.elf Normal file → Executable file

Binary file not shown.