Thread (26 messages) 26 messages, 7 authors, 2021-05-21

Re: [PATCH 3/6] gpio: Add Delta TN48M CPLD GPIO driver

From: Robert Marko <robert.marko@sartura.hr>
Date: 2021-05-21 13:21:45
Also in: linux-gpio, linux-hwmon, lkml

On Thu, May 6, 2021 at 6:38 PM Michael Walle [off-list ref] wrote:
Am 2021-04-30 14:35, schrieb Robert Marko:
quoted
Delta TN48M CPLD is used as a GPIO expander for the SFP GPIOs.

It is a mix of input only and output only pins.

Since there is no logical GPIO numbering arbitrary one is used
along dt-bindings to make it humanly readable.
Can gpio/gpio-regmap.c be used here? See gpio/gpio-sl28cpld.c
for an example.
I suppose it can be used, I need to look into it more to see how could
translation to register and mask be done with it.

I have adapted the driver to work with simple I2C MFD so far.

It still leaves me with a finding the logical way to number the GPIO-s.

Robert
-michael


--
Robert Marko
Staff Embedded Linux Engineer
Sartura Ltd.
Lendavska ulica 16a
10000 Zagreb, Croatia
Email: robert.marko@sartura.hr
Web: www.sartura.hr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help