Jump to content

Smartyn34

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thank for reply, now i2c is working, I compared dts file from other dist (where i2c works) , and changed: i2c0-pins { pins = "PH0\0PH1"; function = "i2c0"; phandle = <0x30>; }; i2c1-pins { pins = "PH2\0PH3"; function = "i2c1"; phandle = <0x31>; }; i2c2-ph-pins { pins = "PH4\0PH5"; function = "i2c2"; phandle = <0x69>; }; i2c@1c2ac00 { compatible = "allwinner,sun8i-a83t-i2c\0allwinner,sun6i-a31-i2c"; reg = <0x1c2ac00 0x400>; interrupts = <0x00 0x06 0x04>; clocks = <0x02 0x32>; resets = <0x02 0x25>; pinctrl-names = "default"; pinctrl-0 = <0x30>; status = "okay"; #address-cells = <0x01>; #size-cells = <0x00>; phandle = <0x78>; }; i2c@1c2b000 { compatible = "allwinner,sun8i-a83t-i2c\0allwinner,sun6i-a31-i2c"; reg = <0x1c2b000 0x400>; interrupts = <0x00 0x07 0x04>; clocks = <0x02 0x33>; resets = <0x02 0x26>; pinctrl-names = "default"; pinctrl-0 = <0x31>; status = "okay"; #address-cells = <0x01>; #size-cells = <0x00>; phandle = <0x79>; }; i2c@1c2b400 { compatible = "allwinner,sun8i-a83t-i2c\0allwinner,sun6i-a31-i2c"; reg = <0x1c2b400 0x400>; interrupts = <0x00 0x08 0x04>; clocks = <0x02 0x34>; resets = <0x02 0x27>; pinctrl-names = "default"; pinctrl-0 = <0x69>; status = "okay"; #address-cells = <0x01>; #size-cells = <0x00>; phandle = <0x7a>; }; spravce@bananapim3:~$ sudo i2cdetect -y 3 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: 20 21 -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
  2. Hello, is anyone here, who knows, how enable i2c on gpio pin5 and pin3 on M3? I spend many days looking for solution, but without result. in dtb file, I now have: i2c2_ph_pins: i2c2-ph-pins { pins = "PH4","PH5"; function = "i2c2"; }; i2c@1c2b400 { compatible = "allwinner,sun8i-a83t-i2c\0allwinner,sun6i> reg = <0x1c2b400 0x400>; interrupts = <0x00 0x07 0x04>; clocks = <0x02 0x34>; resets = <0x02 0x27>; pinctrl-names = "default"; pinctrl-0 = <&i2c2_ph_pins>; status = "okay"; #address-cells = <0x01>; #size-cells = <0x00>; }; i2cdetect: (with connected i2c device) spravce@bananapim3:~$ sudo i2cdetect -l i2c-0 i2c DesignWare HDMI I2C adapter i2c-1 i2c mv64xxx_i2c adapter I2C adapter i2c-2 i2c mv64xxx_i2c adapter I2C adapter spravce@bananapim3:~$ sudo i2cdetect -y 2 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- Hardware is ok, when I tried UBUNTU image, i2c worked normaly, but I need armbian. pls help, I have 7pcs of Bpi M3, and without i2c, I can put it in the trash.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines