Quantcast
Viewing all articles
Browse latest Browse all 17527

Linux/AM3358: Try to use i2c1 as u-boot command

Part Number:AM3358

Tool/software: Linux

Hi all,

I try to use i2c1 in u-boot. First, I enabled i2c1 as dts file like below:

&am33xx_pinmux {
i2c1_pins: pinmux_i2c1_pins {
pinctrl-single,pins = <
0x158 (PIN_INPUT_PULLUP | MUX_MODE2) /* spi0_d1.i2c1_sda */
0x15c (PIN_INPUT_PULLUP | MUX_MODE2) /* spi0_cs0.i2c1_scl */
>;
};
};

&i2c1 {
clock-frequency = <100000>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;

};

When power my board, I can see i2c bus 1. But I can probe any address on this bus.

=> i2c dev 1
Setting bus to 1
=> i2c probe
Valid chip addresses: 18 68i2c_probe: pads on bus probably not configured (status=0x10)
i2c_probe: pads on bus probably not configured (status=0x10)
i2c_probe: pads on bus probably not configured (status=0x10)
i2c_probe: pads on bus probably not configured (status=0x10)

=> i2c bus
Bus 0: i2c@44e0b000
Bus 1: i2c@4802a000 (active 1)
18: generic_18, offset len 1, flags 0
68: generic_68, offset len 1, flags 0
Bus 2: i2c@4819c000

When I try to read value of register as address 0x18

=> i2c md 0x18 0.1 0x00
Timed out in wait_for_event: status=0000
Check if pads/pull-ups of bus are properly configured

In the kernel, I can use i2c bus 1. Please give me some advances for this case. My u-boot version is 2016.11-rc3

Thank you,

Hiep Nguyen

 


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>