Questions tagged [device-tree]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
11 views

Complete kernel hang after adding bluetooth to system devicetree

I am working right now at adapting yocto distro to run on custom, imx8mm-evk based hardware. I was mostly changing linux devicetree to fit new board needs and everything was fine, but when I added ...
user avatar
  • 11
1 vote
0 answers
26 views

How does /sys/class/pci_bus correlate the physical PCIe lanes?

On a Dell R7525 I see the following output: [root@r7525 ~]# ls -al /sys/class/pci_bus/ total 0 drwxr-xr-x. 2 root root 0 May 10 10:38 . drwxr-xr-x. 62 root root 0 May 10 10:38 .. lrwxrwxrwx. 1 root ...
user avatar
0 votes
0 answers
17 views

Linux suspend device/driver issue

I have an embedded device with Linux 4.14. My question/issue is a general one while resuming the system from suspend to ram and relates to the /sys FS and the device nodes which are present in device ...
user avatar
1 vote
0 answers
60 views

/aliases: Reference to non-existent node or label "mmc0"

I'm trying to upstream support for u-boot and buildroot for a SoC, I'm merging some changes into master from the vendor's BSP and am having some issues with their dts. [machinehum@whitebox u-boot]$ ...
user avatar
1 vote
0 answers
194 views

UIO instance of a device-tree subnode

I have the following device-tree node which is auto generated by Xilinx PetaLinux in a proper dtsi file (which cannot be modified): axi_dma_0: dma@a0000000 { #dma-cells = <1>; ...
user avatar
  • 617
1 vote
0 answers
31 views

About 'unit-address' in Linux devicetree

In Linux devicetree specification v0.3, p. 8, there is one sentence: The unit-address must match the first address specified in the reg property of the node. If the node has no reg property, the @...
user avatar
  • 111
0 votes
0 answers
40 views

Linux Kernel Config of Device-tree Location

I have got access to a linux kernel sources, where it has .config file in root source directory, after created it using make xxxconfig and built successfully, so can you tell me how can I find the ...
user avatar
0 votes
0 answers
111 views

Mapping gpio nodes in device tree to gpiochip in Linux

Suppose I have the following snippet in my device tree: gpio2: gpio@3xxxxxxx { compatible = "my-gpio"; reg = <0xaddr 0xoffset>; gpio-controller; #gpio-cells = <2>;...
user avatar
  • 75
1 vote
0 answers
64 views

When is the devicetree parsed to populate the device list on arm64 architecture?

This question comes from my attempts to understand how a built-in platform device driver is initialized at boot time. I am using an embedded linux distro (Yocto) on a SoC (ARM + FPGA). The device ...
user avatar
  • 149
0 votes
0 answers
22 views

How to add small changes to the Device Tree?

I made my own interface board for the Compute Module 4, but I noticed some peripherals are not enabled by default. Cameras and Displays are disabled as well as the USB. If I understand it correctly, I ...
user avatar
  • 397
0 votes
1 answer
37 views

gpio_name_to_desc in gpiolib.c in Linux kernel should be externalized?

We have an embedded project, and for our purposes, it seems handy to name all the gpios in the gpio controller device tree stanza using gpio-line-names feature in device tree, mentioned in ...
user avatar
  • 153
0 votes
0 answers
24 views

dtoverlay in x86 fedora

I'm messing around with a small x86 module (think raspberry pi, except not an ARM), running Fedora, and has the same concept of pluggable hardware "hats." I am trying to figure out if it's ...
user avatar
1 vote
0 answers
163 views

Unable to enable TLV320AIC3104 codec driver /simple sound card for iMx8M with SAI2 BCLK/MCLK provided with external clock

I am trying to access codec driver (TLV320AIC3104) connected to iMX8M over I2C3 and SAI2 lines. The codec clocks bclk is 4096000 and it is provided from an FPGA and its mclk is grounded. iMx8M SOM ...
user avatar
0 votes
1 answer
87 views

Linux 4.19: apply devicetree overlay on live system

Is it possible to apply a devictree overlay on a live system? We have an embedded system that has some optional hardware. We would like to load the devicetree information after Linux booted. Reqaon ...
user avatar
0 votes
0 answers
220 views

BeagleBone Black UART 1 config

Recently I compiled my own linux system using kernel 5.10.23, and I made modifications to the device tree in order to activate UART 1 PIN (9-24) and (9-26). I have /dev/ttyS1 available for R/W ...
user avatar
0 votes
0 answers
111 views

How to disable TX path of ethernet PHY in embedded linux?

In a yocto-based embedded device I use ethernet only to receive UDP packets. Now I want save energy as the device (as well as the UDP transmitter) is battery powered, and the ethernet PHY (a micrel ...
user avatar
  • 11.7k
1 vote
0 answers
33 views

Modified kernel module doesn't load on boot- is the old one being cached somewhere

I'm modifying the qca7000 kernel module slightly by adding some debug messages (qcaspi.ko). I compile, run depmod then reboot. However my debug messages do not show up on dmesg. If I rmmod qcaspi then ...
user avatar
  • 135
1 vote
0 answers
161 views

Platform driver's probe function isn't called

I am developing a simple platform driver for beaglebone (but currently running on my virtual machine running Ubuntu) that uses device tree, but it doesn't seem like the probe function is being called. ...
user avatar
  • 21
1 vote
1 answer
318 views

Linux, how to add "missing" i2c interface?

I'm working on an embedded project utilizing a Digi ConnectCore 6UL SBC Pro, and I know that dmesg should show me the three I2C interfaces after boot up like: i2c i2c-0: IMX I2C adapter registered i2c ...
user avatar
  • 1,937
1 vote
0 answers
366 views

Definition and usage of Kernel/Linux DTS file with more than one MIPI DSI Display panel

I actually need some help of defining the kernel/linux DTS file and use it together with the uboot videoargs. In use is the 5.4.47 uboot and kernel/linux from a NXP imx8m YOCTO project. In uboot I ...
user avatar
  • 11
2 votes
1 answer
11k views

fprintd: The driver encountered a protocol error with the device

I am trying to make work my finger print sensor thinkpad x390 yoga. I installed printfd package using yay. When I try to run fprintd-enroll, I get this error: Using device /net/reactivated/Fprint/...
user avatar
1 vote
1 answer
108 views

Raspberry Pi 4B - Is Device tree binary dependent on kernel version?

I am trying to get my own custom Linux on a Raspberry Pi 4B. My status is this: I built the Linux 5.9.1 version, and have my own version of U-Boot, RFS with which I am able to successfully load and ...
user avatar
0 votes
1 answer
49 views

nvmem device tree naming pattern

In the nvmem.yml there is properties: $nodename: pattern: "^(eeprom|efuse|nvram)(@.*|-[0-9a-f])*$" I have a hard time finding the pattern in the source code itself. Where can I find ...
user avatar
  • 101
1 vote
1 answer
749 views

Where is the device tree on the Linux machine, for e.g., Debian or Ubuntu?

These days we have device tree. I am wondering where can I see the device tree in my PC - i.e. Debian - Release: 9.11. When I look at the kernel config, I don't see the device tree. How come device ...
user avatar
0 votes
1 answer
472 views

Read MAC using Buildroot 20.20 NVMEM_IMX_OCOTP on i.MX7s

We are migrating from Buildroot 2018.02.9 (linux-4.14.85) to Buildroot 2020.02.2 (linux-5.4.40), and have found that we can no longer read the MAC address on an I.MX7s SoC. The following indicates why:...
user avatar
  • 196
0 votes
1 answer
234 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 ...
user avatar
  • 559
2 votes
0 answers
60 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 ...
user avatar
  • 559
1 vote
0 answers
458 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 ...
user avatar
  • 134
0 votes
1 answer
310 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 ...
user avatar
1 vote
0 answers
180 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 ...
user avatar
  • 325
0 votes
1 answer
232 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: ...
user avatar
1 vote
0 answers
540 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 ...
user avatar
2 votes
1 answer
1k 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 ...
user avatar
  • 149
0 votes
1 answer
544 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?
user avatar
1 vote
0 answers
172 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 ...
user avatar
  • 123
2 votes
1 answer
86 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 ...
user avatar
  • 29
0 votes
1 answer
106 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 ...
user avatar
2 votes
1 answer
1k 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 ...
user avatar
  • 596
2 votes
0 answers
714 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): /...
user avatar
  • 596
1 vote
1 answer
2k 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>; ...
user avatar
1 vote
1 answer
853 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 ...
user avatar
  • 11.7k
1 vote
0 answers
182 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 = ...
user avatar
2 votes
1 answer
962 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 ...
user avatar
  • 153
1 vote
1 answer
1k 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 ...
user avatar
0 votes
1 answer
238 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 ...
user avatar
1 vote
1 answer
977 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 ...
user avatar
  • 121
1 vote
1 answer
1k 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) ...
user avatar
1 vote
2 answers
247 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 ...
user avatar
1 vote
0 answers
107 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 ...
user avatar
  • 11
1 vote
1 answer
4k 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 ...
user avatar
  • 95