From: Gregory CLEMENT <gregory.clement@bootlin.com>
To: "Marek Behún" <kabel@kernel.org>, "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, 08 Dec 2023 15:26:02 +0100 [thread overview]
Message-ID: <87il58epol.fsf@BL-laptop> (raw)
In-Reply-To: <20231101123806.4d258ddb@dellmb>
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 ?
Regards,
Gregory
--
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com
next prev parent reply other threads:[~2023-12-08 14:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-26 16:17 [PATCH v4 0/7] Turris Omnia MCU driver Marek Behún
2023-10-26 16:17 ` [PATCH v4 1/7] dt-bindings: arm: add cznic,turris-omnia-mcu binding Marek Behún
2023-10-27 8:43 ` Marek Behún
2023-10-26 16:17 ` [PATCH v4 2/7] platform: cznic: Add preliminary support for Turris Omnia MCU Marek Behún
2023-10-26 16:17 ` [PATCH v4 3/7] platform: cznic: turris-omnia-mcu: Add support for MCU connected GPIOs Marek Behún
2023-11-01 11:38 ` Marek Behún
2023-12-08 14:26 ` Gregory CLEMENT [this message]
2023-12-08 15:27 ` Marek Behún
2023-10-26 16:18 ` [PATCH v4 4/7] platform: cznic: turris-omnia-mcu: Add support for poweroff and wakeup Marek Behún
2023-11-03 19:23 ` Alexandre Belloni
2023-12-08 15:46 ` Marek Behún
2023-10-26 16:18 ` [PATCH v4 5/7] platform: cznic: turris-omnia-mcu: Add support for MCU watchdog Marek Behún
2023-10-26 16:18 ` [PATCH v4 6/7] ARM: dts: turris-omnia: Add MCU system-controller node Marek Behún
2023-10-26 16:18 ` [PATCH v4 7/7] ARM: dts: turris-omnia: Add GPIO key node for front button Marek Behún
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=87il58epol.fsf@BL-laptop \
--to=gregory.clement@bootlin.com \
--cc=andy@kernel.org \
--cc=arm@kernel.org \
--cc=arnd@arndb.de \
--cc=brgl@bgdev.pl \
--cc=kabel@kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.