From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 271A330FC1F for ; Mon, 1 Dec 2025 14:31:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764599507; cv=none; b=ko5NtEDU5d6ohvJNrKSmthMEssRRDgedu2ZUofOgqR/Ox2DsKOTIU3RgBERw7EdBP2MyUnrZHVfbI5XSK9PDp6Z7uBrinAFnOMP+UJhaI5lEFxnPGsiQcajp8M8aTmkkkwyKpz1aLTBxEYeOlWMuuypY8uaYNheGDVVjyhsamgg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764599507; c=relaxed/simple; bh=iSzXnkL6CZ7clNjmcPJzJQEgcd8lgXcvAiTHRowiIsA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CVBvNVALjAOU1oYMegYOGQl0LQ9Lq6/twZ5r680OBcUQKgqYEwo29vEn0wzJoYuQ5F536A81q2UIT0KO2g1YRT10X/0Gtkyyel3Z2e9ToSAy0evsPeILl4y0M57Lc0SiCpKNvGiR0gpswRqc2OjQh4CK2F9QhoOe14hm+4bB6lI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=pFU59lxE; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pFU59lxE" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4779cb0a33fso44183955e9.0 for ; Mon, 01 Dec 2025 06:31:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1764599504; x=1765204304; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=P3Udye7A+1mJEIOEFZOxhVuAe/sJ9GEaxJR6U/sqIe4=; b=pFU59lxErcDBwDqOjO49K8/irivP5aAkyCDo0uSmltDPIm/fC0dYk+e2T2tMJafIfB nrr87ztMVEftj1yTscjflIAGLtAXGVpI2OcMXlgWgaQz9zSqwJSlguUd3Q//9WrG8tii vnD/JGbY+qrRDdsyI0meLaGoUXl+CX3P0/vq3LgM3SWkyJAq7ZPuk60zrxnTVk1Gq7Yf Mb7M1rLnLWqRLMp34kZdy7ttohhXAlO9T8AjwocipVGhhJMD7iIT2doDOg6XWqZV6c8A sA5RQOmrEurGDTpJxrbcavugG/NRv+vccBsfapNWuo7gTPj+1tdQTMfkvlVoOMvDDPyN 2WfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764599504; x=1765204304; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P3Udye7A+1mJEIOEFZOxhVuAe/sJ9GEaxJR6U/sqIe4=; b=aEs0fOEX9h0kX+efN8V6wdREghqjh5oLGrOk/JXvqbeTmAZfRXnLpQNt4eWyPqZwMd Dry3BjoTJY2IK1xkLBcT5pXnBvdRrXEW7sqRISbhNFziWE0vYSQcg8s9C7le5w4TKTcY pj5vxvrulKUuoy0rdNXpLaHV+iEKs18IABNkAJwmEbjPxHFvOc7CHK04wgsts2NJr78+ Wdok/r9ar9vI2mYHduZAKy9gQErr2Y/GmdFVGNs5GHJhoJzfWKQL99KX15Bb18wOiMMP 7Bg7GJopKrgVilzvavKko2+nlfprQf0UQXNbxMbKdYGk2ofdRSNk3zMJJb3IBURKk1Hh f6lQ== X-Forwarded-Encrypted: i=1; AJvYcCWRCCqlUtp8ad+8DuVqcc+ssl2SDEUS8hlqL1Ja0PD5b0VKPS5SpQ+1+bDFFfPKN1qmXbGo8EWNX6qVm3o=@vger.kernel.org X-Gm-Message-State: AOJu0Yye9BS1H4LeVACEeIVqxJ2Yv9jv1ZQGj+oqOscRr3vrb+K1t1cQ qmvuarpGFtge3BJt/KeP40PsTOTTXpABhULTOnpGv1P8nBJB+OlKPoVcUDprIzsJ69s= X-Gm-Gg: ASbGncuWl54U6JVVNNmK3ket/MfYOjKRovSFU8t2Zup1JIPhCfR3ucDa9sNZjPm6xV/ qyad0PJhPHrGjxU13yzc9u0rrdpD3DmpK+bAfL5a/56h1PooC2jgf393D4KssSWxvFgd9bHqOVy 5Tmqh0RhgfmdPzSNL4Ra5Fz5RCZYFcfhJJT7eD1yXHLMEPrpfmVu+QSmG+H3eIB5KCHb+u5GdsA AoKd2sodWzoulCPwLsUYY4T9WBb7Id9h3H7B7+xM/wgX9tGdiZ+LnJ+NwdWftb4hgndRacV3Qlg kc53t6IDQrrv8rdEik0RMdklY1bgVyWHFOy+R4NpR9Aacs8JiEgVOcmHJCLXwxrrZnCMu+fEs3s MIWU3iE8vWXYPiDdqxYiEg8YD5FRDBel9kyUz51RzRByUBPI4tCX0qWROFpyqE1+D15aSRsLpGL 3EEQxl/2j8qgcJ5InR X-Google-Smtp-Source: AGHT+IH6A6FJXGfT8Zsjwa2/f7hPiOGak401pIC2WoSIqlHjuQJJxsh60eESxFQX7d8Tr6L3Wxf8Ig== X-Received: by 2002:a05:600c:1f8f:b0:46e:1fb7:a1b3 with SMTP id 5b1f17b1804b1-477c01ee3camr380965655e9.23.1764599504416; Mon, 01 Dec 2025 06:31:44 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-479052cf8d9sm154964375e9.9.2025.12.01.06.31.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Dec 2025 06:31:43 -0800 (PST) Date: Mon, 1 Dec 2025 17:31:38 +0300 From: Dan Carpenter To: Chester Lin Cc: Alexandre Torgue , Andrew Lunn , Conor Dooley , "David S. Miller" , devicetree@vger.kernel.org, Eric Dumazet , Fabio Estevam , Ghennadi Procopciuc , imx@lists.linux.dev, Jakub Kicinski , Jan Petrous , Krzysztof Kozlowski , Lee Jones , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Matthias Brugger , Maxime Coquelin , netdev@vger.kernel.org, NXP S32 Linux Team , Paolo Abeni , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , linaro-s32@linaro.org Subject: Re: [PATCH 0/4] s32g: Use a syscon for GPR Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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