[PATCH 0/2][SRU][J] Add ODM driver gpio-m058ssan

AceLan Kao acelan.kao at canonical.com
Thu Dec 28 03:23:43 UTC 2023


From: "Chia-Lin Kao (AceLan)" <acelan.kao at canonical.com>

BugLink: https://bugs.launchpad.net/bugs/2045386

[ Impact ]
gpio-m058ssan driver needed for ODM partner

[ Test Plan ]
Connect the loopback GPIO connector to the ReliaCOR-40-13 system and
connect the power supply of the GPIO connector.

insert the "m058ssan" module:
modprobe m058ssan

create GPIOchip:
echo "m058ssan 0x40" > /sys/bus/i2c/devices/i2c-0/new_device

get the GPIO chip base and export 16 GPIOs. The former 8 are GPOs,
the latter 8 are GPIs.

Set and reset all of the GPOs one at a time and check that the
corresponding GPI is set and reset accordingly.

[ Where problems could occur ]
Make sure that the power supply of the GPIO connector is correctly
connected, otherwise the GPI will always report 0.
Events could occur on the i2c bus communication that may cause
miss-behavior of the driver.

Chia-Lin Kao (AceLan) (1):
  UBUNTU: [Config] updateconfigs for ODM drivers CONFIG_GPIO_M058SSAN

Filippo Copetti (1):
  UBUNTU: SAUCE: ODM: gpio: add M058SSAN gpio driver

 MAINTAINERS                      |   5 +
 debian.master/config/annotations |   1 +
 drivers/gpio/Kconfig             |   6 +
 drivers/gpio/Makefile            |   1 +
 drivers/gpio/gpio-m058ssan.c     | 192 +++++++++++++++++++++++++++++++
 5 files changed, 205 insertions(+)
 create mode 100644 drivers/gpio/gpio-m058ssan.c

-- 
2.34.1




More information about the kernel-team mailing list