Re: GPIO drivers

2024-01-17 Thread Lwazi Dube
Hi Stewart, Take this with a grain of salt. I have never used the ioexpander ... took a quick look after seeing your email. You need to populate ioexpander_ops_s within your board specific files. IOEXP_WRITEPIN is the "virtual function" that calls your board specific write_pin function (which call

Re: GPIO drivers

2024-01-17 Thread Stewart Charnell
Hello Bowen, Thank you for you help. I am not sure if this question is for you or is more architecture specific? I am looking at implementing the the relay ops (set()/get()) functions within the drivers/power/relay/relay.c file. I can see how to implement this based on the drivers/power/rela

Re: GPIO drivers

2024-01-16 Thread Stewart Charnell
Hello Bowen, Thank you for responding to my question. Yes I think the relay framework will do what I want, I will try it out. Kind regards Stewart Charnell On 17/01/2024 03:23, 汪博文 wrote: Hello, I'm Bowen Wang and nice to answer your question. Please correct me If I understand wrong. I