[PATCH 0/4] s32g: Use a syscon for GPR

Dan Carpenter posted 4 patches 7 hours ago
.../devicetree/bindings/mfd/syscon.yaml       |  2 ++
.../bindings/net/nxp,s32-dwmac.yaml           |  6 +++++
arch/arm64/boot/dts/freescale/s32g2.dtsi      |  8 +++++++
arch/arm64/boot/dts/freescale/s32g3.dtsi      |  8 +++++++
.../net/ethernet/stmicro/stmmac/dwmac-s32.c   | 23 +++++++++++++++----
5 files changed, 42 insertions(+), 5 deletions(-)
[PATCH 0/4] s32g: Use a syscon for GPR
Posted by Dan Carpenter 7 hours ago
*** BLURB HERE ***

Dan Carpenter (4):
  net: stmmac: s32: use the syscon interface PHY_INTF_SEL_RGMII
  dt-bindings: mfd: syscon: Document the GPR syscon for the NXP S32 SoCs
  dt-bindings: net: nxp,s32-dwmac: Use the GPR syscon
  dts: s32g: Add GPR syscon region

 .../devicetree/bindings/mfd/syscon.yaml       |  2 ++
 .../bindings/net/nxp,s32-dwmac.yaml           |  6 +++++
 arch/arm64/boot/dts/freescale/s32g2.dtsi      |  8 +++++++
 arch/arm64/boot/dts/freescale/s32g3.dtsi      |  8 +++++++
 .../net/ethernet/stmicro/stmmac/dwmac-s32.c   | 23 +++++++++++++++----
 5 files changed, 42 insertions(+), 5 deletions(-)

-- 
2.51.0
Re: [PATCH 0/4] s32g: Use a syscon for GPR
Posted by Dan Carpenter 5 hours ago
On Mon, Dec 01, 2025 at 04:08:14PM +0300, Dan Carpenter wrote:
> *** BLURB HERE ***
> 

Sorry, I obviously meant to write a message here.

The s32g devices have a GPR register region which could be accessed
via a syscon.  Currently only the stmmac/dwmac-s32.c uses anything
from there and we just add a line to the device tree to access
that GMAC_0_CTRL_STS register:

			reg = <0x4033c000 0x2000>, /* gmac IP */
			      <0x4007c004 0x4>;    /* GMAC_0_CTRL_STS */

But it would be better to have a syscon instead of adding each
register to the device tree like this.

We still have to maintain backwards compatibility to this format,
of course.

regards,
dan carpenter