Questions tagged [device-tree]

A data structure for describing hardware. passed in boot time to kernel

Filter by
Sorted by
Tagged with
0
votes
0answers
37 views

Unable to load device tree overlay at runtime and see the modules defined by it

I have two revisions of a board and want to boot up with a different device tree binary at runtime, based on a runtime check. I am trying to do the following - have a base device tree binary that has ...
0
votes
0answers
8 views

Create and remove devicetree nodes at runtime for debugging

I am writing a simple Linux module on an embedded platform. For testing, I can load and unload it with modprobe etc., and my module_init code gets called. However, if I want to use the modern ...
1
vote
0answers
12 views

Specify minimum backlight level with pwm-backlight

I have a device that uses PWM for backlight. It is using the pwm-backlight driver. However, you can turn the backlight down so far that the screen turns off, and then it is hard to turn it on again ...
1
vote
0answers
39 views

Memory node of device tree in /proc doesn't match dtb

I'm trying to modify the memory node in a device tree for a zynqmp zcu102 board. However, something seems to be overriding this node somehow. I'm booting using a FIT image and u-boot. I've confirmed ...
0
votes
1answer
38 views

Getting configuration from dts file on x86 system

There is a requirement in a project where we have to take certain configuration values of a device from device tree. I was able to generate device tree blob (.dtb) from .dts file. There is apparently ...
0
votes
0answers
15 views

Linux Reduced Serial Bus (RSB)

I am looking for help setting/getting registers for the SUNXI RSB (Reduced Serial Bus) which is similar to i2c but a different protocol. Ideally, I would like to get/set registers from the command ...
0
votes
0answers
27 views

Kernel boots with NULL pointer exception for a device

My goal is to use RTDM SPI driver with Raspberry Pi 3B. I have built Xenomai 3.0.8 on Linux 4.9.80 with Real-time SPI support enabled as a module. Afterwards I have edited device-tree file (bcm2710-...
0
votes
0answers
8 views

It is possible to use spi module written for board file in devicetree?

My custom board is using AD7376 with support in https://elixir.bootlin.com/linux/latest/source/drivers/misc/ad525x_dpot-spi.c module https://wiki.analog.com/resources/tools-software/linux-drivers/misc/...
1
vote
0answers
49 views

How to Load Device Tree From Separate File in U-Boot Image

I'd like to load the device tree from a separate dtb file. So in the end I'd like to end up with the following files on my boot partition: BOOT.BIN (first stage boot loader) image.ub (U-Boot second ...
0
votes
0answers
98 views

DSI-Panel (panel-simple-dsi) fails to get initialized

I am trying to get a DSI-Panel up and running. For this i am using armbian as a base system. I have built the distribution first with startard settings which has worked for an raspberry-pi display. ...
0
votes
0answers
67 views

DeviceTree Overlay fails

Following setup here: TinkerBoard-S with rk3288 Chip running armbian with legacy Kernel 4.4.199 Now I would like to add an overlay to the existing one. Here is how the existing one looks like: ...
1
vote
0answers
208 views

Adding a DeviceTree Overlay for DSI for a RK3288

I'm trying to add a DSI configuration to my linux kernel. Actually i am using the following setup: Tinkerboard S (RK3288 Chip) Armbian with legacy Kernel 4.4.199 I have already found existing device ...
2
votes
1answer
289 views

Override mtdparts configured in kernel device tree

I've installed Debian Buster on a "ReadyNAS 102" via u-boot / serial console. I was following this tutorial. But, replaced used different links to download current the Debian installer and Device Tree ...
0
votes
1answer
177 views

WS2812 Device Driver in Linux Kernel

I was searching for a device driver to drive ws2812b addressable LEDs in the linux kernel but could not find any. Is there a specific reason that there are no drivers for these LEDs?
1
vote
0answers
62 views

Full duplex PCM bridge

I'm working on an embedded device, that runs Linux 4.14.79, that has 2 hardware PCM, one connected to a bluetooth chip and one to a GSM phone. My goal is to bridge those streams (bt-in -> gsm-out ...
2
votes
1answer
40 views

How does kbuild compare to the device tree?

I know KConfig serves to tune the C preprocessor, at the start of the Linux kernel compilation. And that the device tree is used to give a compiled kernel a description about hardware at runtime. How ...
0
votes
1answer
29 views

how does a gpiochipNN is selected or set in gpiolib kernel?

I am looking into kernel gpiolib and gpio-xilinx.c. I see that my device has only cat /sys/kernel/debug/gpio gpiochip0: GPIOs 960-1023, I am confused on how this 960 has arrived. How does the kernel ...
0
votes
0answers
34 views

Modifying UARTCLK

Intro I am using an A20 SoC running Armbian and I try to run serial communication on a baudrate that can't be hit on standard configuration. What happens Configuring a serial interface (UART6 in my ...
2
votes
0answers
394 views

RS485 hardware RTS on SC16IS752 not working when it is enabled in device tree overlay

I'm trying to make SC16IS752 (SPI to UART converter) work in RS485 mode by using device tree overlay (without running C application at boot). I took original overlay source for SC16IS752 from ...
2
votes
0answers
350 views

Device tree and passing parameter to serial driver from specyfic device overlay

I would like to pass linux,rs485-enabled-at-boot-time; flag/parameter to serial port driver configuration for sc16is752 device defined by this device tree overlay (unmodified file from Raspbian): /...
1
vote
1answer
910 views

Jetson TX2 device tree, i2c nodes and camera driver loading

I am a bit confused with behavior of Jetson TX2 when loading drivers for camera. Here is definition of IMX274 in device tree: i2c@3180000 { reg = <0x0 0x3180000 0x0 0x100>; ...
1
vote
1answer
300 views

How to debug an SDIO configuration problem?

We are trying to get an SDIO-based 802.11 module to work on an SDIO port of the beaglebone. We adapted the device-tree overlay provided by manufacturer to our hardware, compiled the driver, the driver ...
1
vote
0answers
75 views

How to fix MPU9250 configuration issue in device tree?

I have set up an i2c protocol which detects the mpu9250 at address 0x68. Now I want to configure the mpu and I have updated my dts file with the following lines of code: mpu9250@68 { compatible = ...
0
votes
1answer
335 views

Is there a way to delete an alias from an included dtsi file in a dts file?

The file at91sam9x5.dtsi in arch/arm/boot/dts has aliases that are undefined references after deleting nodes that are unneeded using /delete-node/. Unfortunately if I try to delete the aliases that ...
1
vote
1answer
528 views

Run script after module is loaded due to device tree

Why do I want this? I use the pwm-ir-tx kernel module to blast IR signals from my embedded device. However, when the pwm kernel module is loaded during the boot process, the pin is on high. It takes ...
0
votes
1answer
91 views

How to read back a fan speed?

I am on a custom board using an i.MX6. I am using Yocto (Pyro) to build my kernel (4.14.16). I am using the generic imx6qdl.dtsi device tree entry for PWM2 to drive the fan and it appears to work ...
1
vote
1answer
459 views

PPS GPIO with Buildroot image on Raspberry Pi 3

I using Buildroot trying to build a Linux image for the Raspberry Pi 3 in which I have access to pulse-per-second (PPS) inputs on one of the GPIO pins. First off, I have tried this with the standard ...
1
vote
1answer
569 views

How do I configure the Beaglebone Black PWM correctly

I have tried to get PWM working and am not having any success. I am using the TI Processor SDK with a modified version of the am335x-boneblack.dts device tree (see below) The PWM driver (ehrpwm1) ...
1
vote
2answers
112 views

How does the same Linux version work on different hardware

My understanding is that the kernel understands how to communicate with the different hardware in a system via specific device trees. How is it that I can download one version of Ubuntu and I am ...
1
vote
0answers
62 views

Can I generate a single device tree dts file from all the files in my device kernel?

I need to fix a driver that is using a node in the device tree, the problem is that the node and it's aliases are all over the place, separated through few different files with few overrides and it is ...
1
vote
1answer
3k views

mmc0 warning on SD card bootup of linux

I get the following warning on debian linux (kernel 4.18.8) bootup of my microchip sama5d3 board: mmc0: unrecognised SCR structure version 4 mmc0: error -22 whilst initialising SD card after spewing ...
1
vote
3answers
705 views

How does Linux find/configure something like 'wlan0' when it is not a device that appears in /dev?

(On raspberry pi zero w, kernel 4.14y) It seems the wireless adapter chip isn't a device in the /dev fs, but is the name of something that 'ifconfig' knows about. I understand that this is an ...
1
vote
0answers
243 views

Device-tree blob (DTB) in a separate partition

Currently, I have the device-tree blob (DTB) appended to the Linux kernel. I would like to split the DTB from the kernel to an unique partition containing only the DTB similar to the figure 3 of the ...
1
vote
0answers
53 views

DT bindings for ADT7516 sensor

I have a BeagleBone green and ADT7516's evaluation board connected with SDA and SCL pins. When I do i2cdetect -y -r 2, I can see the i2c address as 0x4b and I am able to probe the adt7316 driver ...
2
votes
1answer
2k views

Linux Device Drivers - Probe function not called, but driver getting deferred

I've been trying to get an MCP2515 can controller working on a spi-gpio bus in my device tree, but the MCP251x driver's probe function never seems to actually be called. Oddly enough though, some ...
2
votes
0answers
292 views

Change device tree on boot

There is a hardware SPI device on my platform, but it doesn't appear in /dev. I read in internet that the hardware description is read during boor from device tree files (dtb). The problem is that I ...
1
vote
0answers
128 views

Devicetree parallel CSI OV7670

I'm currently trying to get an image with fswebcam out of my OV7670 camera, but I only get a completly green image. Could you look over my devicetree if I made some obvious mistakes? board-file.dts: ...
1
vote
0answers
209 views

How to initialize multiple I2C sound devices with one device tree overlay?

I am currently stuck in implementing a new device tree overlay to initialize two sound controller: PCM5142 and WM8804. The used board is the DACBerry ONE (https://www.osaelectronics.com/product/...
7
votes
3answers
2k views

How does kernel know which device tree to load?

Device tree is used at runtime on ARM devices to identify and load correct drivers with its configuration. But when I look into loaded DT at /proc/device-tree on my phone for example, there are many ...
2
votes
0answers
152 views

Is it possible to declare a regulator in the device tree that can power down the system

If I have, for example, a fixed-regulator declared in my device tree, how can I request Linux to call the disable function after shutting down? Note, I use a custom regulator driver (not fixed-...
1
vote
1answer
83 views

How can I tell my kernel not to place external drives before internal ones?

I have some internal drivers, which typically take the names /dev/sda ... /dev/sdc. However, if I plug in an external HDD and reboot, this gets reordered, with the external drive taking up /dev/sdb ...
2
votes
2answers
1k views

Uboot Hangs when Initrd size increased in FIT image

Im booting Linux on arm64 using FIT multi image (image + initrd + DTB). So if I increase the initrd size (from 16 MB -> 20MB) board hangs at "starting kernel"). However if I change the load address of ...
1
vote
0answers
607 views

BeagleBoneBlack device tree changes to add i2c device driver ()

I'm trying to run an i2c device driver on the BeagleBoneBlack using i2c2 pins [P9]: (19) I2C2_SCL, (20) I2C2_SDA. I can use i2c2 successfully from user space to control the same atmel touchscreen ...
1
vote
1answer
408 views

Want pulldown on gpio pin

I would like to have the default for certain input pins be a weak pulldown. I am using a sama5d36 running Debian 4.12.8. I modified the dts file as follows: ahb { abp { pinctrl@fffff200 ...
2
votes
0answers
248 views

What is the preferred way to unhog a hogged GPIO pin?

So I'm doing development on an ARM embedded system which is using the device trees. We're going to integrate a small PCB with a processor and support components onto a bigger PCB, which will be the ...
2
votes
0answers
549 views

Accessing I2C slave devices that are specified in Device Tree

I'm trying to communicate with a device over I2C from my BeagleBone Black, and I'm a bit curious as to the device tree's interpretation of I2C. I see that there are a couple of device nodes within ...
2
votes
1answer
675 views

Generate bootable ELF from bootloader, kernel, device tree, ramdisk

I'm new to Linux Kernel programming, and am pretty stuck with (what I think is) the last step in building my bootable image. For some background, we are trying to upload a complete OS image onto the ...
1
vote
0answers
53 views

Can you toggle a regulator device from the terminal?

I've been working on a custom embedded board, and set up a few pins as regulator-fixed in a custom device tree - they control power to devices on the board and some drivers need them provided as ...
3
votes
0answers
485 views

Loading a kernel module at run time using “compatible” property of device node in device-tree

If I know the "compatible" property string of a device(from the device tree), can I use it at runtime to load the corresponding kernel driver module? I do not have access to the driver source. I am ...
1
vote
0answers
335 views

Write to M25P80 Flash

I am looking for a way to move data onto a Micron M25P80 Flash Card over SPI bus on a Xilinx Zynq 7100 emulated in QEMU. I am not sure which driver to use. I would like to use the Cadence SPI driver ...