Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:guide-developer:port.gpio:lirc [2018/02/20 18:51] – ↷ Links adapted because of a move operation bobafetthotmaildocs:guide-user:hardware:lirc [2019/08/26 16:31] (current) – tag optimization vgaetera
Line 5: Line 5:
 The kernel module used in this howto needs **GPIO IRQs**, otherwise it won't work. Not all devices have IRQs implemented at the GPIO lines in the kernel. The kernel module used in this howto needs **GPIO IRQs**, otherwise it won't work. Not all devices have IRQs implemented at the GPIO lines in the kernel.
 </WRAP> </WRAP>
- 
  
 You'll need at least 2 free GPIOs in your router. Also you need to locate VCC (3.3V) and GND, but this is a piece of cake. You can omit the blaster if only interested on receiving.  You'll need at least 2 free GPIOs in your router. Also you need to locate VCC (3.3V) and GND, but this is a piece of cake. You can omit the blaster if only interested on receiving. 
  
 ===== Prepare your hardware ===== ===== Prepare your hardware =====
- 
 ==== Receiver ==== ==== Receiver ====
- 
 The receiver is quite simple, it's directly connected to the GPIO, Vcc and GND The receiver is quite simple, it's directly connected to the GPIO, Vcc and GND
  
Line 27: Line 24:
 {{:media:doc:howtos:lirc-gpioblaster_reduced.png?nolink&300|}} {{:media:doc:howtos:lirc-gpioblaster_reduced.png?nolink&300|}}
  
-See [[docs:user-guide:hardware:lirc-gpioblaster]] for more details. Although this circuit can be omited, if we are only interested on receiving. Later, we can configure the lirc-gpio-generic module with an unused dummy GPIO.+See [[docs:guide-user:hardware:lirc-gpioblaster]] for more details. Although this circuit can be omited, if we are only interested on receiving. Later, we can configure the lirc-gpio-generic module with an unused dummy GPIO.
  
 ===== Prepare your software ===== ===== Prepare your software =====
Line 97: Line 94:
 └───────────────────────────────────────────────────────────────────────────────────────┘   └───────────────────────────────────────────────────────────────────────────────────────┘  
 </code> | </code> |
- 
  
 Look for ''kmod-lirc_gpio_generic'' and select it: Look for ''kmod-lirc_gpio_generic'' and select it:
Line 185: Line 181:
  
   * **Platform AR7240**: GPIO9, GPIO10 are used for the serial port (multiplexed pins). For using these pins as regular GPIOs for our LIRC transceiver, execute the command\\ ''devmem 0x18040028 32 0x48000''\\ The GPIO used for the receiver shouldn't have any pull down resistor, otherwise it won't work. The lirc-gpio-generic module package should copy a patch to the kernel patches directory for having GPIO IRQs available, check if the patch is applied.   * **Platform AR7240**: GPIO9, GPIO10 are used for the serial port (multiplexed pins). For using these pins as regular GPIOs for our LIRC transceiver, execute the command\\ ''devmem 0x18040028 32 0x48000''\\ The GPIO used for the receiver shouldn't have any pull down resistor, otherwise it won't work. The lirc-gpio-generic module package should copy a patch to the kernel patches directory for having GPIO IRQs available, check if the patch is applied.
-  * **brcm63xx**: only a few GPIOs have IRQs, check [[docs:hardware:soc:soc.broadcom.bcm63xx#external_irqs]]. Only those GPIOs can be used for the receiver. A patch is copied into the kernel patches directory for having gpio_to_irq function available in the lirc_gpio_generic module, check if the patch is applied when compiling the firmware. +  * **brcm63xx**: only a few GPIOs have IRQs, check [[docs:techref:hardware:soc:soc.broadcom.bcm63xx#external_irqs]]. Only those GPIOs can be used for the receiver. A patch is copied into the kernel patches directory for having gpio_to_irq function available in the lirc_gpio_generic module, check if the patch is applied when compiling the firmware.
  
 ===== Tested routers ===== ===== Tested routers =====
- 
 ^ Target ^ Platform ^ Router ^ Tested ^ ^ Target ^ Platform ^ Router ^ Tested ^
 | brcm63xx | BCM6348 | Livebox 1| OK | | brcm63xx | BCM6348 | Livebox 1| OK |
Line 196: Line 190:
 | lantiq | Danube | ARV7518PW | <color red>KO</color> | | lantiq | Danube | ARV7518PW | <color red>KO</color> |
 | ramips | ? | | <color red>KO</color>? | | ramips | ? | | <color red>KO</color>? |
-===== Tags ===== +
-{{tag>gpio lirc}}+
  • Last modified: 2019/08/26 16:31
  • by vgaetera