This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:linuxdsp:docs:linux-kernel-and-drivers:rotary:rotary [03 Jul 2020 07:52] – [Configure Packages] Sunny Feng | resources:tools-software:linuxdsp:docs:linux-kernel-and-drivers:rotary:rotary [21 Jul 2020 08:02] (current) – cathy fang | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== Hardware Setup ===== | ===== Hardware Setup ===== | ||
- | * An ADSP-SC5xx EZ-Board: | + | An ADSP-SC5xx EZ-Board: |
* ADSP-SC584 Ezkit v1.0 and above, or, | * ADSP-SC584 Ezkit v1.0 and above, or, | ||
* ADSP-SC573 Ezkit v1.2 (BOM 1.8) and above | * ADSP-SC573 Ezkit v1.2 (BOM 1.8) and above | ||
Line 13: | Line 13: | ||
{{: | {{: | ||
===== Software Configuration ===== | ===== Software Configuration ===== | ||
+ | |||
+ | ==== Configure Linux kernel ==== | ||
+ | |||
+ | You need to enable the ADI rotary driver in Linux kernel. | ||
+ | < | ||
+ | Device Drivers ---> | ||
+ | Input device support ---> | ||
+ | < | ||
+ | [*] Miscellaneous devices ---> | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | ==== Configure Packages ==== | ||
+ | You should also enable the event test program to assist with testing. | ||
+ | Add the event test program in the filesystem images, it's enabled in adsp-sc5xx-full image by default. | ||
+ | < | ||
+ | vim build/ | ||
+ | IMAGE_INSTALL_append = " | ||
+ | </ | ||
==== ADSP-SC573 EZ-Board ==== | ==== ADSP-SC573 EZ-Board ==== | ||
As the Rotary hardware pin conflicts with MSI function on the ADSP-SC573 EZ-Board, thumb wheel switch is disabled by default in U-Boot for ADSP-SC573 EZ-Board out of box. To enable thumb wheel hardware switch, you should enable the thumb wheel switch in U-Boot and disable MSI function in Linux kernel. Please refer to ADSP-SC573 EZ-Board schematic and the section Mobile Storage Interface for MMC/SD for more information. | As the Rotary hardware pin conflicts with MSI function on the ADSP-SC573 EZ-Board, thumb wheel switch is disabled by default in U-Boot for ADSP-SC573 EZ-Board out of box. To enable thumb wheel hardware switch, you should enable the thumb wheel switch in U-Boot and disable MSI function in Linux kernel. Please refer to ADSP-SC573 EZ-Board schematic and the section Mobile Storage Interface for MMC/SD for more information. | ||
Line 20: | Line 39: | ||
MMC/ | MMC/ | ||
[*] Synopsys DesignWare Memory Card Interface | [*] Synopsys DesignWare Memory Card Interface | ||
- | [*] Synopsys Designware MCI Support as platform device | + | |
- | [N] ADI specific extensions for Synopsys DW Memory Card Interface | + | <N> ADI specific extensions for Synopsys DW Memory Card Interface |
</ | </ | ||
Line 43: | Line 62: | ||
-*- PHY Device support and infrastructure | -*- PHY Device support and infrastructure | ||
< | < | ||
- | </ | ||
- | |||
- | ==== Configure Linux kernel ==== | ||
- | |||
- | You need to enable the ADI rotary driver in Linux kernel. | ||
- | < | ||
- | Device Drivers ---> | ||
- | Input device support ---> | ||
- | < | ||
- | [*] Miscellaneous devices ---> | ||
- | < | ||
- | </ | ||
- | |||
- | ==== Configure Packages ==== | ||
- | You should also enable the event test program to assist with testing. | ||
- | Add the event test program in the filesystem images, it's enabled in adsp-sc5xx-full image by default. | ||
- | < | ||
- | vim build/ | ||
- | IMAGE_INSTALL_append = " | ||
</ | </ | ||
The driver provides two options. It can either send Key (KEY) or Relative (REL) events. | The driver provides two options. It can either send Key (KEY) or Relative (REL) events. | ||
+ | |||
**Option 1** – send Key events: Provide two KEY Codes for: | **Option 1** – send Key events: Provide two KEY Codes for: | ||
< | < | ||
Line 78: | Line 79: | ||
The driver supports various Counter types | The driver supports various Counter types | ||
< | < | ||
+ | |||
===== Example ===== | ===== Example ===== | ||
Line 158: | Line 160: | ||
</ | </ | ||
+ | ---- | ||
**Back to** [[resources: | **Back to** [[resources: |