From patchwork Sat Jan 16 16:40:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 1427528 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bp.renesas.com Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DJ3hh5fn1z9sVk for ; Sun, 17 Jan 2021 03:41:08 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 51A8D82903; Sat, 16 Jan 2021 17:41:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=bp.renesas.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 73F5082908; Sat, 16 Jan 2021 17:41:00 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, KHOP_HELO_FCRDNS,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by phobos.denx.de (Postfix) with ESMTP id 15D6B828FB for ; Sat, 16 Jan 2021 17:40:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=bp.renesas.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=biju.das.jz@bp.renesas.com X-IronPort-AV: E=Sophos;i="5.79,352,1602514800"; d="scan'208";a="69203946" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 17 Jan 2021 01:40:53 +0900 Received: from localhost.localdomain (unknown [172.29.53.99]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id B7D3D4007548; Sun, 17 Jan 2021 01:40:51 +0900 (JST) From: Biju Das To: Simon Glass , Marek Vasut , Tom Rini Cc: Biju Das , Dave Gerlach , Adam Ford , Lad Prabhakar , u-boot@lists.denx.de, Nobuhiro Iwamatsu , Chris Paterson Subject: [PATCH v5 0/3] Add Renesas SoC identification driver support Date: Sat, 16 Jan 2021 16:40:45 +0000 Message-Id: <20210116164048.27496-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean This patch series aims to support Renesas SoC identification driver. Also added soc_id attribute support in UCLASS_SOC which is required for Renesas SoC identification driver similar to mainline linux. Patch 3 in this series depend on [1] [1] http://u-boot.10912.n7.nabble.com/PATCH-v5-dm-core-Add-of-match-node-helper-function-tt437600.html v4->v5 * Rebased to master and changed "priv_auto_alloc_size" to "priv_auto" * Improved the spl image size, when Renesas SoC identification driver is disabled with v5 on Koelsch board:- $ ls -al spl/u-boot-spl.bin -rwxr-xr-x 1 biju biju 13916 Jan 16 14:19 spl/u-boot-spl.bin $ size spl/u-boot-spl text data bss dec hex filename 13785 128 1100 15013 3aa5 spl/u-boot-spl with v4 on Koelsch board: $ ls -al spl/u-boot-spl.bin -rwxr-xr-x 1 biju biju 13996 Jan 16 14:16 spl/u-boot-spl.bin $ size spl/u-boot-spl text data bss dec hex filename 13789 204 1100 15093 3af5 spl/u-boot-spl v3->v4 * Added Simon's Rb tag * Updated patch description for SoC identification using soc_id * Updated probe function of Renesas SoC identification driver. Biju Das (3): soc: Fix comments from SOC to SoC dm: soc: Add SoC id for attribute matching dm: soc: SoC identification driver for Renesas SoC's drivers/soc/Kconfig | 7 ++ drivers/soc/Makefile | 7 ++ drivers/soc/soc-uclass.c | 19 ++- drivers/soc/soc_renesas.c | 244 ++++++++++++++++++++++++++++++++++++++ drivers/soc/soc_sandbox.c | 8 ++ include/soc.h | 39 +++++- test/dm/soc.c | 8 ++ 7 files changed, 325 insertions(+), 7 deletions(-) create mode 100644 drivers/soc/soc_renesas.c