I am trying to add a tlv320aic3110 codec to my project and I have been recommended adding these endpoints to the i2s and i2c attributes: The problem I’m having is that, when I build this device tree into a dtb file, I get a lot of warnings: The warnings say that the value of #address-cells is both 2 and -1,
Tag: device-tree
How to include device tree overlay into Raspberry Pi CM4
I would like to include UART3 and UART5 overlay to enable them, using Yocto. They are already delivered with the whole package (https://github.com/raspberrypi/linux/blob/rpi-5.10.y/arch/arm/boot/dts/overlays/uart3-overlay.dts) I added to my main image recipe lines: I have also added .bbappend to enable them in /boot/config.txt (file /meta-mylayer/recipes-bsp/bootfiles/rpi-config_%.bbappend): And I receive an error: I suppose that those overlays are not compiled, how can I include
DFU not transferring data in barebox
Am working on a custom board – has no removable storage (sd) and only one UART. I need to transfer files on the the QSPI storage using barebox bootloader. I am trying to use DFU to transfer various files to write to QSPI Device tree has the follow among other things On the board, the OTG mode has been set
Linux kernel does not see all components on my at91sam9g20 board
I am working with a Stamp9g20 embedded chip. It is based on the Atmel at91sam9g20 platform. For a client I need to upgrade the kernel to a newer version. After a bit of research, I landed on the Linux4SAM pages and their additional yocto layer, complete with a 4.14 kernel! However, when I compile that kernel, I don’t see all
Purpose and usage of GPIO-Hog declaration
Questions What is the purpose and use-case of the gpio-hog declaration? Can a ‘hogged’ gpio pin be interfaced with from Userspace? If a ‘hogged’ gpio pin cannot be interfaced with from Userspace, then is there any mechanism to configure GPIO pins in the dts file for Userspace interaction? Background I am trying to configure many (10+) GPIOs to speak with
tcpdump error message “That device doesn’t support monitor mode”
Running Linux on a Xilinx ZCU102 development board. When using a 1000BASE-X & Tri-Mode Ethernet Mac. I can send pings out of the Ethernet port, but when I run tcpdump to try and show that packets are coming into the system… I get a strange error from tcpdump. Curious if anyone has any insight on this error message from tcpdump.
Example device-tree-aware i2c gpio driver for Linux?
Is there a good example device-tree-aware i2c gpio driver for Linux? I’ve been looking at gpio-pcf857x but it has a header file containing struct pcf857x_platform_data which is used in board files. I am looking for a similar example, but where the i2c id is defined-in/retrieved-from the device tree. Answer Take a look at max732x.c driver (code). As for I2C ID
Linux device tree (AD5628)
I am trying to use AD5628 Digital to analog converter on my raspberry Pi 3 board . I have enabled the driver for that (http://lxr.free-electrons.com/source/drivers/iio/dac/ad5064.c) in the Yocto kernel . But when i opened the path /sys/bus/iio/devices/ Mentioned in (https://wiki.analog.com/resources/tools-software/linux-drivers/iio-dac/ad5446) i am not getting any device0. I got to know that it is a Device tree issue , So i
I’ve added a MAX7320 i2c output chip. How can I get the kernel to load the driver for it?
I’ve added a MAX7320 i2c expander chip to i2c bus 0 on my ARM Linux board. The chip works correctly from userspace with commands such as /usr/sbin/i2cset -y 0 0x5d 0x02 and /usr/sbin/i2cget -y 0 0x5d. There is a drivers/gpio/gpio-max732x.c file in the kernel source, which is compiled into the kernel that I’m running. (I’ve built it from source.) How
Difference between spi_driver.id_table and spi_driver.driver.of_match_table
I’m currently trying to understand how linux drivers work. As far as I know, A driver’s probe/init function is called when the kernel parses the corresponding .compatible string in the device tree. However, in the arizona-spi driver it looks like there are multiple compatible strings referenced in different members: This is an excerpt from here. So what is the difference