Device Tree on Raspberry Pi

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

Device Tree on Raspberry Pi

Postby avanc » Fri Nov 14, 2014 10:05 am

Hello,

I wan to use the rotary_encoder driver of the Linux kernel: http://lxr.free-electrons.com/source/drivers/input/misc/rotary_encoder.c?v=3.12
It can be configured using device tree. However, I couldn't find any information if the Arch Linux kernel has support for device tree or even better device tree overlays.

During my search I found that the Raspbian kernel supports device tree. But I couldn't find a corresponding /boot/dt-blob.bin in the Arch Linux image.
In future overlays are also planned for Raspbian: https://github.com/raspberrypi/hats/blo ... e-guide.md

Can someone give me hints on the device tree support in Arch Linux? Do I have to compile the rotary encoder with hard-coded configuration?

Sven
avanc
 
Posts: 2
Joined: Fri Nov 14, 2014 9:51 am

Re: Device Tree on Raspberry Pi

Postby moonman » Fri Nov 14, 2014 11:51 am

While the bootloader is the same, and supports dtb (not tested by me), we don't have a dt-enabled kernel built in repos. You will have to rebuild kernel with dt support.
https://github.com/raspberrypi/linux/wi ... CH_BCM2708
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Device Tree on Raspberry Pi

Postby avanc » Fri Nov 14, 2014 2:43 pm

Thanks for the information.
So there is no other way to configure the driver than by recompiling it and defining the configuration by hand in the code?
avanc
 
Posts: 2
Joined: Fri Nov 14, 2014 9:51 am


Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 8 guests