Quantcast
Viewing all articles
Browse latest Browse all 4871

Device Tree • How to access I2C-20/21 (4/6 on Pi5)

I want to use the at24 EEPROM driver for gaining access to the EDID EEPROM of a display connected to HDMI-x.

How to change below fragment in order to make that happen? Of particular interest is the <target> ans the <pinctrl-o> which needs to be changed.

Code:

fragment@1 {target = <&i2c1>;__overlay__ {  pinctrl-names = "default";  pinctrl-0 = <&i2c1_pins>;  clock-frequency = <100000>;  status = "okay";    at24@50 {compatible = "atmel,24c32","at24";#address-cells = <1>;#size-cells = <0>;label = "dummye2prom";address-width = <16>;num-addresses = <1>;reg = <0x50>;pagesize = <32>;size = <4096>;wp-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;  };};};

Statistics: Posted by aBUGSworstnightmare — Sun Mar 24, 2024 12:08 pm



Viewing all articles
Browse latest Browse all 4871

Trending Articles