max732x.c

I've added a MAX7320 i2c output chip. How can I get the kernel to load the driver for it?

柔情痞子 提交于 2019-12-06 10:13:25
问题 I've added a MAX7320 i2c expander chip to i2c bus 0 on my ARM Linux board. The chip works correctly from userspace with commands such as /usr/sbin/i2cset -y 0 0x5d 0x02 and /usr/sbin/i2cget -y 0 0x5d . There is a drivers/gpio/gpio-max732x.c file in the kernel source, which is compiled into the kernel that I'm running. (I've built it from source.) How do I tell the kernel that it should instantiate the gpio-max732x driver on "i2c bus 0, chip id 0x5d"? Do I need to modify the device tree .dts

I've added a MAX7320 i2c output chip. How can I get the kernel to load the driver for it?

半世苍凉 提交于 2019-12-04 15:14:02
I've added a MAX7320 i2c expander chip to i2c bus 0 on my ARM Linux board. The chip works correctly from userspace with commands such as /usr/sbin/i2cset -y 0 0x5d 0x02 and /usr/sbin/i2cget -y 0 0x5d . There is a drivers/gpio/gpio-max732x.c file in the kernel source, which is compiled into the kernel that I'm running. (I've built it from source.) How do I tell the kernel that it should instantiate the gpio-max732x driver on "i2c bus 0, chip id 0x5d"? Do I need to modify the device tree .dts file and put a new .dtb file in /boot/dtbs/ ? What would the clause for instantiating a gpio-max732x

max732x.c I2C IO Expander + GPIO Keys w/ Linux Device Tree not working

删除回忆录丶 提交于 2019-11-30 09:36:12
问题 I'm working with a Freescale MX6 and a 3.10.31 Freescale modified kernel. I have a Maxim MAX7325 used as an IO expander, which has pushbuttons attached to P0-P2. The interrupt line from the 7325 is attached to the GPIO_3 pad (which I believe is GPIO1_3...) I set up the 7325 and gpio-keys in the device tree like this: max7325_reset: max7325-reset { compatible = "gpio-reset"; reset-gpios = <&gpio5 16 GPIO_ACTIVE_LOW>; reset-delay-us = <1>; #reset-cells = <0>; }; gpio-keys { compatible = "gpio