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:
Johann Fischer 2021-05-19 14:46:04 +02:00 committed by Anas Nashif
commit b4242a8dab
15 changed files with 27 additions and 0 deletions

View file

@ -15,6 +15,7 @@
aliases { aliases {
led0 = &green_led; led0 = &green_led;
sw0 = &user_button; sw0 = &user_button;
usbd0 = &usb1;
}; };
chosen { chosen {

View file

@ -15,6 +15,7 @@
aliases { aliases {
led0 = &green_led; led0 = &green_led;
sw0 = &user_button; sw0 = &user_button;
usbd0 = &usb1;
}; };
chosen { chosen {

View file

@ -15,6 +15,7 @@
aliases { aliases {
led0 = &green_led; led0 = &green_led;
sw0 = &user_button; sw0 = &user_button;
usbd0 = &usb1;
}; };
chosen { chosen {

View file

@ -17,6 +17,7 @@
sw0 = &user_button; sw0 = &user_button;
kscan0 = &touch_controller; kscan0 = &touch_controller;
watchdog0 = &wdog0; watchdog0 = &wdog0;
usbd0 = &usb1;
}; };
chosen { chosen {

View file

@ -17,6 +17,7 @@
sw0 = &user_button; sw0 = &user_button;
kscan0 = &touch_controller; kscan0 = &touch_controller;
watchdog0 = &wdog0; watchdog0 = &wdog0;
usbd0 = &usb1;
}; };
chosen { chosen {

View file

@ -17,6 +17,7 @@
pwm-led0 = &green_pwm_led; pwm-led0 = &green_pwm_led;
sw0 = &user_button; sw0 = &user_button;
kscan0 = &touch_controller; kscan0 = &touch_controller;
usbd0 = &usb1;
}; };
chosen { chosen {

View file

@ -132,6 +132,7 @@
sw2 = &button2; sw2 = &button2;
sw3 = &button3; sw3 = &button3;
bootloader-led0 = &led0; bootloader-led0 = &led0;
usbd0 = &usbd;
}; };
}; };

View file

@ -80,6 +80,7 @@
sw2 = &button2; sw2 = &button2;
sw3 = &button3; sw3 = &button3;
bootloader-led0 = &led0; bootloader-led0 = &led0;
usbd0 = &usbd;
}; };
}; };

View file

@ -110,6 +110,7 @@
sw2 = &button2; sw2 = &button2;
sw3 = &button3; sw3 = &button3;
bootloader-led0 = &led0; bootloader-led0 = &led0;
usbd0 = &usbd;
}; };
}; };

View file

@ -121,6 +121,7 @@
sw2 = &button2; sw2 = &button2;
sw3 = &button3; sw3 = &button3;
bootloader-led0 = &led0; bootloader-led0 = &led0;
usbd0 = &usbd;
}; };
}; };

View file

@ -81,6 +81,7 @@
red-pwm-led = &red_pwm_led; red-pwm-led = &red_pwm_led;
green-pwm-led = &green_pwm_led; green-pwm-led = &green_pwm_led;
blue-pwm-led = &blue_pwm_led; blue-pwm-led = &blue_pwm_led;
usbd0 = &usbd;
}; };
}; };

View file

@ -19,6 +19,10 @@
zephyr,sram-secure-partition = &sram0_s; zephyr,sram-secure-partition = &sram0_s;
zephyr,sram-non-secure-partition = &sram0_ns; zephyr,sram-non-secure-partition = &sram0_ns;
}; };
aliases {
usbd0 = &usbd;
};
}; };
&spi2 { &spi2 {

View file

@ -17,6 +17,10 @@
zephyr,flash = &flash0; zephyr,flash = &flash0;
zephyr,code-partition = &slot0_ns_partition; zephyr,code-partition = &slot0_ns_partition;
}; };
aliases {
usbd0 = &usbd;
};
}; };
&usbd { &usbd {

View file

@ -19,6 +19,10 @@
zephyr,sram-secure-partition = &sram0_s; zephyr,sram-secure-partition = &sram0_s;
zephyr,sram-non-secure-partition = &sram0_ns; zephyr,sram-non-secure-partition = &sram0_ns;
}; };
aliases {
usbd0 = &usbd;
};
}; };
&usbd { &usbd {

View file

@ -17,6 +17,10 @@
zephyr,flash = &flash0; zephyr,flash = &flash0;
zephyr,code-partition = &slot0_ns_partition; zephyr,code-partition = &slot0_ns_partition;
}; };
aliases {
usbd0 = &usbd;
};
}; };
&usbd { &usbd {