Other Parts Discussed in Thread: TPS65217
Tool/software: Linux
Hi
I am running on a custom board based on the beagle bone black.
I have upgraded to the latest SDK (4.1.0.6) and am trying to make use of the tps65217 power button
I have entered a device node as per the documentation:
&tps {
tps65217-pwrbutton {
compatible = "ti,tps65217-pwrbutton";
interrupts = <2>;
};
};
There appear to be a few nodes created:
/sys/devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton /sys/firmware/devicetree/base/ocp/i2c@44e0b000/tps@24/tps65217-pwrbutton /sys/bus/platform/devices/tps65217-pwrbutton
But there is nothing mentioned in /proc/interrupts
root@elle-board:~# cat /proc/interrupts CPU0 16: 115418 INTC 68 Level gp_timer 20: 563 INTC 12 Level 49000000.edma_ccint 22: 0 INTC 14 Level 49000000.edma_ccerrint 26: 0 INTC 96 Level 44e07000.gpio 59: 44 INTC 98 Level 4804c000.gpio 76: 15 4804c000.gpio 16 Edge rotary-encoder 77: 13 4804c000.gpio 17 Edge rotary-encoder 78: 16 4804c000.gpio 18 Edge button0 92: 0 INTC 32 Level 481ac000.gpio 125: 0 INTC 62 Level 481ae000.gpio 140: 0 481ae000.gpio 14 Edge 48060000.mmc cd 158: 2969 INTC 72 Level 44e09000.serial 162: 206 INTC 70 Level 44e0b000.i2c 163: 0 INTC 71 Level 4802a000.i2c 164: 1979 INTC 64 Level mmc0 165: 11 INTC 28 Level mmc1 176: 207506 INTC 36 Level tilcdc 182: 1974 INTC 18 Level musb-hdrc.0 183: 1779 INTC 17 Level 47400000.dma-controller Err: 0
nor is there an event node created in /dev/input
I have tried defining the node inside the i2c definition also as:
&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>;
};
tps65217-pwrbutton {
status = "okay";
compatible = "ti,tps65217-pwrbutton";
interrupts = <2>;
};
};
};
it makes no difference
I reckon there's something obvious I have missed; any clues would be gratefully received.
Thanks for the help.
Best regards,
Richard