public inbox for linux-gpio@vger.kernel.org
 help / color / mirror / Atom feed
From: "Marek Behún" <kabel@kernel.org>
To: Gregory CLEMENT <gregory.clement@bootlin.com>
Cc: Arnd Bergmann <arnd@arndb.de>,
	soc@kernel.org, arm@kernel.org, Andy Shevchenko <andy@kernel.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	Bartosz Golaszewski <brgl@bgdev.pl>,
	linux-gpio@vger.kernel.org
Subject: Re: [PATCH v4 3/7] platform: cznic: turris-omnia-mcu: Add support for MCU connected GPIOs
Date: Fri, 8 Dec 2023 16:27:56 +0100	[thread overview]
Message-ID: <20231208162756.1b2fa870@dellmb> (raw)
In-Reply-To: <87il58epol.fsf@BL-laptop>

On Fri, 08 Dec 2023 15:26:02 +0100
Gregory CLEMENT <gregory.clement@bootlin.com> wrote:

> Hello Marek,
> 
> > On Thu, 26 Oct 2023 18:17:59 +0200
> > Marek Behún <kabel@kernel.org> wrote:
> >  
> >> +	mcu->gc.request = omnia_gpio_request;
> >> +	mcu->gc.get_direction = omnia_gpio_get_direction;
> >> +	mcu->gc.direction_input = omnia_gpio_direction_input;
> >> +	mcu->gc.direction_output = omnia_gpio_direction_output;
> >> +	mcu->gc.get = omnia_gpio_get;
> >> +	mcu->gc.get_multiple = omnia_gpio_get_multiple;
> >> +	mcu->gc.set = omnia_gpio_set;
> >> +	mcu->gc.set_multiple = omnia_gpio_set_multiple;
> >> +	mcu->gc.init_valid_mask = omnia_gpio_init_valid_mask;
> >> +	mcu->gc.can_sleep = true;
> >> +	mcu->gc.names = omnia_mcu_gpio_templates;
> >> +	mcu->gc.base = -1;
> >> +	mcu->gc.ngpio = ARRAY_SIZE(omnia_gpios);
> >> +	mcu->gc.label = "Turris Omnia MCU GPIOs";
> >> +	mcu->gc.parent = dev;
> >> +	mcu->gc.owner = THIS_MODULE;  
> >
> > Sigh. I will need to add a custom of_xlate here that accepts 3 cells
> > instead of 2. The reason is that Pali prepared U-Boot code last year to
> > patch reset-gpios into pcie nodes if MCU node is present in the
> > devicetree, and back then we decided that the binding should be
> > 3-celled:
> >   reset-gpios = <&mcu BANK GPIO FLAGS>;
> >
> > So now the pcie controllers do not work because OF cannot give proper
> > GPIOs.
> >
> > I will fix this in v5.  
> 
> I was reviewing the seris in order to apply it, but I didn't find your
> v5 in the mainling list. Did you send it ?

Hi Gregory, no I haven't yet. I was on a vacation and before I had to
work on some other issues. Hopefully I will be able to finish it within
the month. I will ping you then.

Thank you.

Marek

      reply	other threads:[~2023-12-08 15:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20231026161803.16750-1-kabel@kernel.org>
     [not found] ` <20231026161803.16750-4-kabel@kernel.org>
     [not found]   ` <20231101123806.4d258ddb@dellmb>
2023-12-08 14:26     ` [PATCH v4 3/7] platform: cznic: turris-omnia-mcu: Add support for MCU connected GPIOs Gregory CLEMENT
2023-12-08 15:27       ` Marek Behún [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231208162756.1b2fa870@dellmb \
    --to=kabel@kernel.org \
    --cc=andy@kernel.org \
    --cc=arm@kernel.org \
    --cc=arnd@arndb.de \
    --cc=brgl@bgdev.pl \
    --cc=gregory.clement@bootlin.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=soc@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox