boards: add USB node aliases
USB devicetree nodes in Zephyr have different names, mostly derived from the designations in data sheets. We also have an USB audio sample which has a kind of experimental approach to configure audio devices, that are not real hardware, via devicetree. Sample itself is generic and can be run on any board with USB device controller and isochronous endpoints support. Add usbd0 alias to specific USB node to allow generic USB audio sample to be build on nRF and i.MX RT boards. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
0f5aab1182
commit
b4242a8dab
15 changed files with 27 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
aliases {
|
||||
led0 = &green_led;
|
||||
sw0 = &user_button;
|
||||
usbd0 = &usb1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
aliases {
|
||||
led0 = &green_led;
|
||||
sw0 = &user_button;
|
||||
usbd0 = &usb1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
aliases {
|
||||
led0 = &green_led;
|
||||
sw0 = &user_button;
|
||||
usbd0 = &usb1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
sw0 = &user_button;
|
||||
kscan0 = &touch_controller;
|
||||
watchdog0 = &wdog0;
|
||||
usbd0 = &usb1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
sw0 = &user_button;
|
||||
kscan0 = &touch_controller;
|
||||
watchdog0 = &wdog0;
|
||||
usbd0 = &usb1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
pwm-led0 = &green_pwm_led;
|
||||
sw0 = &user_button;
|
||||
kscan0 = &touch_controller;
|
||||
usbd0 = &usb1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
|
|
@ -132,6 +132,7 @@
|
|||
sw2 = &button2;
|
||||
sw3 = &button3;
|
||||
bootloader-led0 = &led0;
|
||||
usbd0 = &usbd;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -80,6 +80,7 @@
|
|||
sw2 = &button2;
|
||||
sw3 = &button3;
|
||||
bootloader-led0 = &led0;
|
||||
usbd0 = &usbd;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -110,6 +110,7 @@
|
|||
sw2 = &button2;
|
||||
sw3 = &button3;
|
||||
bootloader-led0 = &led0;
|
||||
usbd0 = &usbd;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -121,6 +121,7 @@
|
|||
sw2 = &button2;
|
||||
sw3 = &button3;
|
||||
bootloader-led0 = &led0;
|
||||
usbd0 = &usbd;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
red-pwm-led = &red_pwm_led;
|
||||
green-pwm-led = &green_pwm_led;
|
||||
blue-pwm-led = &blue_pwm_led;
|
||||
usbd0 = &usbd;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
zephyr,sram-secure-partition = &sram0_s;
|
||||
zephyr,sram-non-secure-partition = &sram0_ns;
|
||||
};
|
||||
|
||||
aliases {
|
||||
usbd0 = &usbd;
|
||||
};
|
||||
};
|
||||
|
||||
&spi2 {
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
zephyr,flash = &flash0;
|
||||
zephyr,code-partition = &slot0_ns_partition;
|
||||
};
|
||||
|
||||
aliases {
|
||||
usbd0 = &usbd;
|
||||
};
|
||||
};
|
||||
|
||||
&usbd {
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
zephyr,sram-secure-partition = &sram0_s;
|
||||
zephyr,sram-non-secure-partition = &sram0_ns;
|
||||
};
|
||||
|
||||
aliases {
|
||||
usbd0 = &usbd;
|
||||
};
|
||||
};
|
||||
|
||||
&usbd {
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
zephyr,flash = &flash0;
|
||||
zephyr,code-partition = &slot0_ns_partition;
|
||||
};
|
||||
|
||||
aliases {
|
||||
usbd0 = &usbd;
|
||||
};
|
||||
};
|
||||
|
||||
&usbd {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue