mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jens Emil Schulz Østergaard" <jensemil.schulzostergaard@microchip.com>
To: Linus Walleij <linusw@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Alexandre Belloni <alexandre.belloni@bootlin.com>,
	Lars Povlsen <lars.povlsen@microchip.com>,
	Bartosz Golaszewski <brgl@kernel.org>,
	"Steen Hegelund" <Steen.Hegelund@microchip.com>,
	Daniel Machon <daniel.machon@microchip.com>
Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"Jens Emil Schulz Østergaard"
	<jensemil.schulzostergaard@microchip.com>
Subject: [PATCH 0/3] pinctrl: ocelot: Extend pinctrl-ocelot driver for lan9645x
Date: Mon, 19 Jan 2026 16:06:08 +0100	[thread overview]
Message-ID: <20260119-pinctrl_ocelot_extend_support_for_lan9645x-v1-0-1228155ed0ee@microchip.com> (raw)

LAN9645x is a switch chip family with several on-chip peripherals, such as
a GPIO controller. The LAN9645xF subfamily has 3 SKUs with the difference 
being number of supported ports. There are 5, 7 and 9 ported SKUs.

The LAN9645xF family come in a VQFN-DR package and supports 51 GPIOs, and
up to 7 alternate modes per pin.

Due to the way this GPIO controller modifies alternate modes on a pin, this 
means the usual pin stride is 2, but the alternate mode stride is 3. This 
is the first device supported by pinctrl-ocelot where these two numbers 
are not equal. As a consequence the register address calculation in the 
REG_ALT macro is generalized to handle this.

Signed-off-by: Jens Emil Schulz Østergaard <jensemil.schulzostergaard@microchip.com>
---
Jens Emil Schulz Østergaard (3):
      dt-bindings: pinctrl: ocelot: Add LAN9645x SoC support
      pinctrl: ocelot: Update alt mode reg addr calculation
      pinctrl: ocelot: Extend support for lan9645xf family

 .../bindings/pinctrl/mscc,ocelot-pinctrl.yaml      |   6 +
 drivers/pinctrl/pinctrl-ocelot.c                   | 184 ++++++++++++++++++++-
 2 files changed, 189 insertions(+), 1 deletion(-)
---
base-commit: cbe8e6bef6a3b4b895b47ea56f5952f1936aacb6
change-id: 20260113-pinctrl_ocelot_extend_support_for_lan9645x-56a51bba592e

Best regards,
-- 
Jens Emil Schulz Østergaard <jensemil.schulzostergaard@microchip.com>


             reply	other threads:[~2026-01-19 15:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-19 15:06 Jens Emil Schulz Østergaard [this message]
2026-01-19 15:06 ` [PATCH 1/3] dt-bindings: pinctrl: ocelot: Add LAN9645x SoC support Jens Emil Schulz Østergaard
2026-01-21 16:46   ` Rob Herring (Arm)
2026-01-19 15:06 ` [PATCH 2/3] pinctrl: ocelot: Update alt mode reg addr calculation Jens Emil Schulz Østergaard
2026-01-19 15:10   ` Alexandre Belloni
2026-01-19 15:06 ` [PATCH 3/3] pinctrl: ocelot: Extend support for lan9645xf family Jens Emil Schulz Østergaard
2026-01-27  9:04 ` [PATCH 0/3] pinctrl: ocelot: Extend pinctrl-ocelot driver for lan9645x Linus Walleij

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=20260119-pinctrl_ocelot_extend_support_for_lan9645x-v1-0-1228155ed0ee@microchip.com \
    --to=jensemil.schulzostergaard@microchip.com \
    --cc=Steen.Hegelund@microchip.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=brgl@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=daniel.machon@microchip.com \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lars.povlsen@microchip.com \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@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

all inboxes | Powered by JetHome®