From patchwork Mon Dec 5 07:01:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mihai Sain X-Patchwork-Id: 13064199 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D034FC4321E for ; Mon, 5 Dec 2022 07:05:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Tmf9OwVeTFgQq/jQ0x3sxQn3wkrkJ69H9jO8A6K8pYU=; b=BkbGJsDjnv9yl5 W/+OA+JWpTGbPhmJIt4d3E2AHA2ipz9re88wtmL4+TPv7QhCqaPLk/VO7FgmATmXigLEJzM4siFfb 1XKETkyVX40M7zsCfc5/CmLOGg/MeyyeOmvwga432DgEIKWJOvsSUHNPeSwQBh28u9qWDziLLqax2 Wnd3rtF7ejNoLRb/3HfzGZNWBtaxGTR/wJojvZV4q/00msWm5m5lZqqUEMFjoXmT5TrC+6voNWc1B sAY118ySEjr5e1wqMvyxgpZLPHpjQs85w7YN5ZyqXduMftj7ZmeuBM32kwrLdbo6AaEeske8qZSO2 wddKyuVUkdBICmUBdeHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p25Wa-00FHAA-9n; Mon, 05 Dec 2022 07:04:24 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p25Tk-00FFMf-9w for linux-arm-kernel@lists.infradead.org; Mon, 05 Dec 2022 07:01:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1670223689; x=1701759689; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=lukaDYMLzzU8O7+ynR8srq7QmQB19CkmS/LulZdvcl8=; b=r/GjKdNvPVzf8je3367HPFB3ActdmPIlweQHbHa0fi7moApvwC91+dFa CtVP6PhP225FnqNepDiQ6K1heScGh70yf48VWVZ0GnNPAAt34YnjHXJeM VbMtZXOVY9H9T5HtdPJVqUHJyWP6WaziRMKRZ5CWAB6gO+zWAcEbYe8by ddgNE5HXbbzZpzpBL7e2gI5xdHKevDsgV20RabA6PvTX/fE+QxOBYm+3k 7NgkqjRoAMlRKsLn3DRapxp/Z2nBfh4LUpGyuolrpdZxQS9AZKyupAxad sdFDJxZzreBDDtPg9jx2uzoiuPL8LuammK1OspgItDzyEGzq6OcoM9v6B g==; X-IronPort-AV: E=Sophos;i="5.96,218,1665471600"; d="scan'208";a="191694346" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 05 Dec 2022 00:01:25 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Mon, 5 Dec 2022 00:01:23 -0700 Received: from virtualbox.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Mon, 5 Dec 2022 00:01:21 -0700 From: Mihai Sain To: , , , , CC: Mihai Sain Subject: [PATCH] ARM: at91: add support in soc driver for new SAMA7G54 SiPs Date: Mon, 5 Dec 2022 09:01:08 +0200 Message-ID: <20221205070108.42624-1-mihai.sain@microchip.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221204_230128_390476_B7146719 X-CRM114-Status: UNSURE ( 6.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add detection of new SAMA7G54 System-In-Package (SIP) by the SoC driver: SAMA7G54D1G, SAMA7G54D2G, SAMA7G54D4G. Signed-off-by: Mihai Sain --- drivers/soc/atmel/soc.c | 9 +++++++++ drivers/soc/atmel/soc.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c index dae8a2e0f745..cc9a3e107479 100644 --- a/drivers/soc/atmel/soc.c +++ b/drivers/soc/atmel/soc.c @@ -235,6 +235,15 @@ static const struct at91_soc socs[] __initconst = { AT91_SOC(SAMA7G5_CIDR_MATCH, AT91_CIDR_MATCH_MASK, AT91_CIDR_VERSION_MASK_SAMA7G5, SAMA7G54_EXID_MATCH, "sama7g54", "sama7g5"), + AT91_SOC(SAMA7G5_CIDR_MATCH, AT91_CIDR_MATCH_MASK, + AT91_CIDR_VERSION_MASK_SAMA7G5, SAMA7G54_D1G_EXID_MATCH, + "SAMA7G54 1Gb DDR3L SiP", "sama7g5"), + AT91_SOC(SAMA7G5_CIDR_MATCH, AT91_CIDR_MATCH_MASK, + AT91_CIDR_VERSION_MASK_SAMA7G5, SAMA7G54_D2G_EXID_MATCH, + "SAMA7G54 2Gb DDR3L SiP", "sama7g5"), + AT91_SOC(SAMA7G5_CIDR_MATCH, AT91_CIDR_MATCH_MASK, + AT91_CIDR_VERSION_MASK_SAMA7G5, SAMA7G54_D4G_EXID_MATCH, + "SAMA7G54 4Gb DDR3L SiP", "sama7g5"), #endif { /* sentinel */ }, }; diff --git a/drivers/soc/atmel/soc.h b/drivers/soc/atmel/soc.h index 2ecaa75b00f0..7a9f47ce85fb 100644 --- a/drivers/soc/atmel/soc.h +++ b/drivers/soc/atmel/soc.h @@ -70,6 +70,9 @@ at91_soc_init(const struct at91_soc *socs); #define SAMA7G52_EXID_MATCH 0x2 #define SAMA7G53_EXID_MATCH 0x1 #define SAMA7G54_EXID_MATCH 0x0 +#define SAMA7G54_D1G_EXID_MATCH 0x00000018 +#define SAMA7G54_D2G_EXID_MATCH 0x00000020 +#define SAMA7G54_D4G_EXID_MATCH 0x00000028 #define AT91SAM9XE128_CIDR_MATCH 0x329973a0 #define AT91SAM9XE256_CIDR_MATCH 0x329a93a0