Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp518664pxf; Wed, 31 Mar 2021 09:04:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCQrRBtNlsSn88WHSTAkSVtKA6eTVA+W8izgM3xfLeTQuJqiHsd/t+fM1+rTVxU8VnEJtD X-Received: by 2002:a5d:6104:: with SMTP id v4mr4399722wrt.275.1617206645845; Wed, 31 Mar 2021 09:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617206645; cv=none; d=google.com; s=arc-20160816; b=xORY/bDqCM0cI7qx3f4PtTlThu9JvLDy5Pda8KcMxCpa5g+l9uyx+5rcxU8apFlPro 3HMInOIGZLiEnU55VsZ3Re5FchboiI1AW0LtqBtPrlU5QbEAx8fEJiMVR2S0OfARd7Oo 2VaMhH6weNGuNPa9HOafcEBgtlzKoYPpcTBKAkDCnWlMjv/rtlYZNFCWz0bsx7qRDAKw l69PxPI7rmvxYDjrFOJqio/aXG26Ttaww396o5FxpwM5IOyxB4B1J79aiL250wu2wBqZ uZ0mZLI2egrvem7WhdDwPyTS+hgyaPsAwZg1xEssRZqSLIQtxz/WTkt27qXAW87KEbg8 k2pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=5IT6WrzT6KRu41wMGKN3qJWEiJWRirHs6BGu4NGK1Q0=; b=rsHb5THO9wFedE81MbTJndWNu6jwVkUZUl9XbYzfzbPDNbxWgGBHgB4U/wZNrcC4qS m1I3VKXOv/Xr4wSJDt/9Z7GgoeKiRApHSIx8DWKiX4CIla31Wn+vyyK22eyR4IX3xHBV NGv0obqxUAdWLYYpFxZKCxoNldt8pHr0mKC5Y1mWRoD3yJ1cCNG88L6dzf4Yl306sAcm IeeH2buTeLZzV12wcj6EhBimAqTVuQajLSuVEdKsC5odMRYQeEl6R7W8VtJF7p6KMMYw GxWMij7l0NLN6W9ol//lJ7160hCYHTjz411AlC7lpw7LNrKmxh+oiB44hk/QNRbxYN90 581A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g24si1858178ejw.478.2021.03.31.09.03.39; Wed, 31 Mar 2021 09:04:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233709AbhCaQBt (ORCPT + 99 others); Wed, 31 Mar 2021 12:01:49 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:48121 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231676AbhCaQBb (ORCPT ); Wed, 31 Mar 2021 12:01:31 -0400 Received: from localhost (lfbn-lyo-1-1679-174.w90-65.abo.wanadoo.fr [90.65.110.174]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 20CE3240011; Wed, 31 Mar 2021 16:01:24 +0000 (UTC) Date: Wed, 31 Mar 2021 18:01:24 +0200 From: Alexandre Belloni To: Claudiu Beznea Cc: nicolas.ferre@microchip.com, ludovic.desroches@microchip.com, robh+dt@kernel.org, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Eugen Hristev Subject: Re: [PATCH 22/24] ARM: at91: sama7: introduce sama7 SoC family Message-ID: References: <20210331105908.23027-1-claudiu.beznea@microchip.com> <20210331105908.23027-23-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210331105908.23027-23-claudiu.beznea@microchip.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/03/2021 13:59:06+0300, Claudiu Beznea wrote: > From: Eugen Hristev > > Introduce new family of SoCs, sama7, and first SoC, sama7g5. > > Signed-off-by: Eugen Hristev > Signed-off-by: Claudiu Beznea > --- > arch/arm/mach-at91/Makefile | 1 + > arch/arm/mach-at91/sama7.c | 48 +++++++++++++++++++++++++++++++++++++ > 2 files changed, 49 insertions(+) > create mode 100644 arch/arm/mach-at91/sama7.c > > diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile > index f565490f1b70..6cc6624cddac 100644 > --- a/arch/arm/mach-at91/Makefile > +++ b/arch/arm/mach-at91/Makefile > @@ -9,6 +9,7 @@ obj-$(CONFIG_SOC_AT91SAM9) += at91sam9.o > obj-$(CONFIG_SOC_SAM9X60) += sam9x60.o > obj-$(CONFIG_SOC_SAMA5) += sama5.o > obj-$(CONFIG_SOC_SAMV7) += samv7.o > +obj-$(CONFIG_SOC_SAMA7) += sama7.o > > # Power Management > obj-$(CONFIG_ATMEL_PM) += pm.o pm_suspend.o > diff --git a/arch/arm/mach-at91/sama7.c b/arch/arm/mach-at91/sama7.c > new file mode 100644 > index 000000000000..e04cadb569ad > --- /dev/null > +++ b/arch/arm/mach-at91/sama7.c > @@ -0,0 +1,48 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +/* > + * Setup code for SAMA7 > + * > + * Copyright (C) 2021 Microchip Technology, Inc. and its subsidiaries > + * > + */ > + > +#include > +#include > + > +#include > +#include > + > +#include "generic.h" > + > +static void __init sama7_common_init(void) > +{ > + of_platform_default_populate(NULL, NULL, NULL); Is this necessary? This is left as a workaround for the old SoCs using pinctrl-at91. I guess this will be using pio4 so this has to be removed. > +} > + > +static void __init sama7_dt_device_init(void) > +{ > + sama7_common_init(); > +} > + > +static const char *const sama7_dt_board_compat[] __initconst = { > + "microchip,sama7", > + NULL > +}; > + > +DT_MACHINE_START(sama7_dt, "Microchip SAMA7") > + /* Maintainer: Microchip */ > + .init_machine = sama7_dt_device_init, > + .dt_compat = sama7_dt_board_compat, > +MACHINE_END > + > +static const char *const sama7g5_dt_board_compat[] __initconst = { > + "microchip,sama7g5", > + NULL > +}; > + > +DT_MACHINE_START(sama7g5_dt, "Microchip SAMA7G5") > + /* Maintainer: Microchip */ > + .init_machine = sama7_dt_device_init, > + .dt_compat = sama7g5_dt_board_compat, > +MACHINE_END > + > -- > 2.25.1 > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com