projects:internetofthings:orangepizero2

Orange Pi Zero 2

enable i2c3 adding device tree definition: create dts file add add to boot

sun50i-h616-i2c3.dts

/dts-v1/;
/plugin/;

/ {
        compatible = "allwinner,sun50i-h6";

        fragment@0 {
                target-path = "/aliases";
                __overlay__ {
                        i2c3 = "/soc/i2c@5002c00";
                };
        };

        fragment@1 {
                target = <&i2c3>;
                __overlay__ {
                        pinctrl-names = "default";
                        pinctrl-0 = <&i2c3_ph_pins>;
                        status = "okay";
                };
        };
};
armbian-add-overlay sun50i-h616-i2c3.dts
  • projects/internetofthings/orangepizero2.txt
  • Last modified: 2024/10/19 08:36
  • by sscipioni