Skip to content

How to add i2c device node? #127

Open
@hongbii

Description

@hongbii

Hi,
I'm trying to integrate the Android-RPi arpi-11 with the NXP PN7150 NFC module, which uses I2C from onboard GPIO pins 2 and 3, an interrupt pin using onboard GPIO 23, and an enable pin using onboard GPIO 24. This is the I2C device tree definition I am trying to add to the bcm2711-rpi-4-b.dtb, but this implementation didn't work. Can anyone help? Thanks!

&i2c1 {
   pinctrl-names = "default";
   pinctrl-0 = <&i2c1_pins>;
   clock-frequency = <100000>;
   status = "okay";
   pn547: pn547@28 {
      compatible = "nxp,pn547";
      reg = <0x28>;
      clock-frequency = <400000>;
      interrupt-gpios = <&gpio 23 0>;
      enable-gpios = <&gpio 24 0>;
   };
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions