Other Parts Discussed in Thread: TPS659038-Q1, TPS659039-Q1
Tool/software: Linux
hi Ti ,
I want to access the TPS659038-Q1 over I2c1 and want to read the DESIGNREV Register (Address = 357h) [reset = X]. My Linux version 4.4.14 .
In current base , i can see :
i2cdetect -y -r 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – – – – – – –
10: – – – – – – – – – – – – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – – – – – – – – – – – – – –
50: – 51 52 53 54 – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – – –
Let me know what will the slave address .
Even tried to read from drivers/regulator/palmas-regulator.c.
+static int palmas_rev_read(struct palmas *palmas, unsigned int reg,
+ unsigned int *dest)
+{
+ return regmap_read(palmas->regmap[REGULATOR_SLAVE], 0x357, dest);
+}
called from palmas_regulators_probe and print by below
Printk ("reg%d",reg );
The valus is showing as zero.
Let me know how to read the same.
Regards
Chinmoy