dts: arm: nxp: use DT to configure USBD on Kinetis SoC
Add DT and fixup files to configure USB device driver on Kinetis SoC K64F and KW24D512. Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
parent
9c27ae7162
commit
d8cd119562
6 changed files with 43 additions and 0 deletions
|
@ -109,4 +109,10 @@
|
|||
#define CONFIG_SPI_2_CLOCK_NAME NXP_KINETIS_DSPI_400AC000_CLOCK_CONTROLLER
|
||||
#define CONFIG_SPI_2_CLOCK_SUBSYS NXP_KINETIS_DSPI_400AC000_CLOCK_NAME
|
||||
|
||||
#define CONFIG_USBD_KINETIS_NAME NXP_KINETIS_USBD_40027000_LABEL
|
||||
#define CONFIG_USBD_KINETIS_IRQ NXP_KINETIS_USBD_40027000_IRQ_USB_OTG
|
||||
#define CONFIG_USBD_KINETIS_IRQ_PRI NXP_KINETIS_USBD_40027000_IRQ_USB_OTG_PRIORITY
|
||||
#define CONFIG_USBD_KINETIS_BASE_ADDRESS NXP_KINETIS_USBD_40027000_BASE_ADDRESS
|
||||
#define CONFIG_USBD_KINETIS_NUM_BIDIR_EP NXP_KINETIS_USBD_40027000_NUM_BIDIR_ENDPOINTS
|
||||
|
||||
/* End of SoC Level DTS fixup file */
|
||||
|
|
|
@ -90,6 +90,12 @@
|
|||
#define CONFIG_MCR20A_GPIO_IRQ_B_PIN NXP_KINETIS_DSPI_4002D000_NXP_MCR20A_0_IRQB_GPIOS_PIN
|
||||
#define CONFIG_MCR20A_GPIO_RESET_NAME NXP_KINETIS_DSPI_4002D000_NXP_MCR20A_0_RESET_GPIOS_CONTROLLER
|
||||
#define CONFIG_MCR20A_GPIO_RESET_PIN NXP_KINETIS_DSPI_4002D000_NXP_MCR20A_0_RESET_GPIOS_PIN
|
||||
|
||||
#define CONFIG_USBD_KINETIS_NAME NXP_KINETIS_USBD_40027000_LABEL
|
||||
#define CONFIG_USBD_KINETIS_IRQ NXP_KINETIS_USBD_40027000_IRQ_USB_OTG
|
||||
#define CONFIG_USBD_KINETIS_IRQ_PRI NXP_KINETIS_USBD_40027000_IRQ_USB_OTG_PRIORITY
|
||||
#define CONFIG_USBD_KINETIS_BASE_ADDRESS NXP_KINETIS_USBD_40027000_BASE_ADDRESS
|
||||
#define CONFIG_USBD_KINETIS_NUM_BIDIR_EP NXP_KINETIS_USBD_40027000_NUM_BIDIR_ENDPOINTS
|
||||
#endif /* CONFIG_SOC_MKW22D5 || CONFIG_SOC_MKW24D5 */
|
||||
|
||||
#if defined(CONFIG_SOC_MKW40Z4) || defined(CONFIG_SOC_MKW41Z4)
|
||||
|
|
|
@ -125,6 +125,12 @@
|
|||
};
|
||||
#endif
|
||||
|
||||
&usbd {
|
||||
compatible = "nxp,kinetis-usbd";
|
||||
status = "ok";
|
||||
num-bidir-endpoints = <8>;
|
||||
};
|
||||
|
||||
&flash0 {
|
||||
/*
|
||||
* For more information, see:
|
||||
|
|
|
@ -68,3 +68,9 @@
|
|||
status = "ok";
|
||||
current-speed = <115200>;
|
||||
};
|
||||
|
||||
&usbd {
|
||||
compatible = "nxp,kinetis-usbd";
|
||||
status = "ok";
|
||||
num-bidir-endpoints = <8>;
|
||||
};
|
||||
|
|
|
@ -380,6 +380,16 @@
|
|||
label = "ADC_1";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
usbd: usbd@40027000 {
|
||||
compatible = "nxp,kinetis-usbd";
|
||||
reg = <0x40072000 0x1000>;
|
||||
interrupts = <53 1>;
|
||||
interrupt-names = "usb_otg";
|
||||
num-bidir-endpoints = <16>;
|
||||
status = "disabled";
|
||||
label = "USBD";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -314,6 +314,15 @@
|
|||
status = "disabled";
|
||||
};
|
||||
|
||||
usbd: usbd@40027000 {
|
||||
compatible = "nxp,kinetis-usbd";
|
||||
reg = <0x40072000 0x1000>;
|
||||
interrupts = <53 1>;
|
||||
interrupt-names = "usb_otg";
|
||||
num-bidir-endpoints = <16>;
|
||||
status = "disabled";
|
||||
label = "USBD";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue