Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:tools-software:linuxdsp:docs:linux-kernel-and-drivers:rotary:rotary [03 Jul 2020 07:52] – [Configure Packages] Sunny Fengresources: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:
 {{:resources:tools-software:linuxdsp:docs:linux-kernel-and-drivers:rotary:lkad-rotary_driver-hw_setup.jpg?600|}} {{:resources:tools-software:linuxdsp:docs:linux-kernel-and-drivers:rotary:lkad-rotary_driver-hw_setup.jpg?600|}}
 ===== Software Configuration ===== ===== Software Configuration =====
 +
 +==== Configure Linux kernel  ====
 +
 +You need to enable the ADI rotary driver in Linux kernel. 
 +<code>
 +Device Drivers  --->
 +    Input device support  --->
 +        <*>   Event interface    
 +        [*]   Miscellaneous devices  --->
 +            <*>   ADI Rotary support
 +</code>
 +
 +==== 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.
 +<code>
 +vim build/conf/local.conf
 +IMAGE_INSTALL_append = "evtest"
 +</code>
 ==== 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/SD/SDIO card support  --->  MMC/SD/SDIO card support  --->
   [*] Synopsys DesignWare Memory Card Interface   [*] Synopsys DesignWare Memory Card Interface
-  [*]    Synopsys Designware MCI Support as platform device +    [*]    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  
 </code> </code>
  
Line 43: Line 62:
         -*-   PHY Device support and infrastructure  --->         -*-   PHY Device support and infrastructure  --->
             <N>  National Semiconductor PHYs              <N>  National Semiconductor PHYs 
-</code> 
- 
-==== Configure Linux kernel  ==== 
- 
-You need to enable the ADI rotary driver in Linux kernel.  
-<code> 
-Device Drivers  ---> 
-    Input device support  ---> 
-        <*>   Event interface     
-        [*]   Miscellaneous devices  ---> 
-            <*>   ADI Rotary support 
-</code> 
- 
-==== 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. 
-<code> 
-vim build/conf/local.conf 
-IMAGE_INSTALL_append = "evtest" 
 </code> </code>
  
 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: 
 <code> <code>
Line 78: Line 79:
 The driver supports various Counter types The driver supports various Counter types
 <code>cnt_mode =  CNTMODE_QUADENC</code> <code>cnt_mode =  CNTMODE_QUADENC</code>
 +
 ===== Example ===== ===== Example =====
  
Line 158: Line 160:
 </code> </code>
  
 +----
 **Back to** [[resources:tools-software/linuxdsp/docs/linux-kernel-and-drivers/start|Kernel Features and Device Drivers for ADSP-SC5xx Yocto Linux]] **Back to** [[resources:tools-software/linuxdsp/docs/linux-kernel-and-drivers/start|Kernel Features and Device Drivers for ADSP-SC5xx Yocto Linux]]
resources/tools-software/linuxdsp/docs/linux-kernel-and-drivers/rotary/rotary.1593755550.txt.gz · Last modified: 03 Jul 2020 07:52 by Sunny Feng