Other Parts Discussed in Thread: TPS65217
Tool/software: Linux
Hi
I am working on a board based on the BeagleBoneBlack
It is using the same PMIC the TPS65217 and including the "tps65217.dtsi" used in the EVM source.
I have also made use of the backlight driver on this by declaring in my dst the following:
&i2c0 { status = "okay"; clock-frequency = <400000>; tps: tps@24 { reg = <0x24>; status= "okay"; backlight { status= "okay"; isel = <2>; /* 1 - ISET1, 2 ISET2 */ fdim = <100>; /* TPS65217_BL_FDIM_100HZ */ default-brightness = <50>; }; }; };
I now need to expose the PB_IN of this chip as the design intends to use short presses of it for user interaction
What is the recommended way to expose this line to user space?
- do I need to poll the i2c manually?
- is it possible to define a GPIO on the I2C bus? equivalent to the backlight above?
- is the state of this pin available from a node within the PMIC management already on the filesystem?
I already have a bunch of GPIO switches and a rotary encoder that I am already running a "poll and switch" on so being able to incorporate it in to that mechanism would be my preference
Thanks for any suggestions
All the best,
Richard