From patchwork Wed Oct 28 10:34:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 1389220 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 4CLlLt2Y7tz9sVt for ; Wed, 28 Oct 2020 21:34:46 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A42A48247D; Wed, 28 Oct 2020 11:34:43 +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 80D3982483; Wed, 28 Oct 2020 11:34:41 +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=0.5 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 relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by phobos.denx.de (Postfix) with ESMTP id 1B634823DD for ; Wed, 28 Oct 2020 11:34:36 +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.77,426,1596466800"; d="scan'208";a="60835319" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 28 Oct 2020 19:34:33 +0900 Received: from localhost.localdomain (unknown [172.29.52.252]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 51C664000689; Wed, 28 Oct 2020 19:34:31 +0900 (JST) From: Biju Das To: Nobuhiro Iwamatsu , Marek Vasut Cc: Biju Das , Lad Prabhakar , Adam Ford , Simon Glass , Masahiro Yamada , u-boot@lists.denx.de, Geert Uytterhoeven , Chris Paterson Subject: [PATCH 0/8] Pin control support for RZ/G2[HN] Date: Wed, 28 Oct 2020 10:34:20 +0000 Message-Id: <20201028103429.3051-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 adds pin control support for RZ/G2[HN] SoC's. Also added pinctrl optimization for RZ/G2[HMN] SoC's. This patches are based on u-boot-sh/next. + Geert The last 3 patches in this series are RFC, which aims to optimize pinctrl size for RCar SoC 's( The u-boot size is reduced from 1025221 to 964365 bytes) The saving is around ~60K. Please share your comments. Note:- 1) I haven't tested the RFC changes on r-car boards due to unavailability of the boards. 2) Optimization is based on the fact that some pins are not enabled in board dts(like DRIF,MSIOF etc..) u-boot-sh\next -------------- $ size drivers/pinctrl/renesas/*.o text data bss dec hex filename 151332 288 1 151621 25045 drivers/pinctrl/renesas/built-in.o 3811 288 1 4100 1004 drivers/pinctrl/renesas/pfc.o 48123 0 0 48123 bbfb drivers/pinctrl/renesas/pfc-r8a7795.o 47939 0 0 47939 bb43 drivers/pinctrl/renesas/pfc-r8a77965.o 47751 0 0 47751 ba87 drivers/pinctrl/renesas/pfc-r8a7796.o $ ls -al u-boot.bin -rw-r--r-- 1 biju biju 1025221 Oct 28 08:48 u-boot.bin $ size u-boot text data bss dec hex filename 942336 36208 71632 1050176 100640 u-boot After Applying patch 1-5 ---------------------- $ size drivers/pinctrl/renesas/*.o text data bss dec hex filename 151868 288 1 152157 2525d drivers/pinctrl/renesas/built-in.o 3811 288 1 4100 1004 drivers/pinctrl/renesas/pfc.o 48375 0 0 48375 bcf7 drivers/pinctrl/renesas/pfc-r8a7795.o 48191 0 0 48191 bc3f drivers/pinctrl/renesas/pfc-r8a77965.o 47751 0 0 47751 ba87 drivers/pinctrl/renesas/pfc-r8a7796.o $ ls -al u-boot.bin -rw-r--r-- 1 biju biju 1026621 Oct 28 08:42 u-boot.bin $ size u-boot text data bss dec hex filename 943732 36208 71632 1051572 100bb4 u-boot After applying RFC patches -------------------------- $ size drivers/pinctrl/renesas/*.o text data bss dec hex filename 125310 288 1 125599 1ea9f drivers/pinctrl/renesas/built-in.o 3811 288 1 4100 1004 drivers/pinctrl/renesas/pfc.o 40157 0 0 40157 9cdd drivers/pinctrl/renesas/pfc-r8a7795.o 39973 0 0 39973 9c25 drivers/pinctrl/renesas/pfc-r8a77965.o 39533 0 0 39533 9a6d drivers/pinctrl/renesas/pfc-r8a7796.o $ ls -al u-boot.bin -rw-r--r-- 1 biju biju 964365 Oct 28 09:32 u-boot.bin $ size u-boot text data bss dec hex filename 881478 36208 71632 989318 f1886 u-boot Biju Das (8): pinctrl: renesas: r8a77965: Add R8A774B1 PFC support pinctrl: renesas: r8a77951: Add R8A774E1 PFC support pinctrl: renesas: r8a7796: Optimize pinctrl image size for R8A774A1 pinctrl: renesas: r8a77965: Optimize pinctrl image size for R8A774B1 pinctrl: renesas: r8a7795: Optimize pinctrl image size for R8A774E1 pinctrl: renesas: r8a7796: Optimize pinctrl image size for R8A7796 pinctrl: renesas: r8a77965: Optimize pinctrl image size for R8A77965 pinctrl: renesas: r8a7795: Optimize pinctrl image size for R8A7795 arch/arm/mach-rmobile/Kconfig.64 | 2 + drivers/pinctrl/renesas/Kconfig | 26 + drivers/pinctrl/renesas/Makefile | 2 + drivers/pinctrl/renesas/pfc-r8a7795.c | 939 ++++++++++++++----------- drivers/pinctrl/renesas/pfc-r8a7796.c | 36 + drivers/pinctrl/renesas/pfc-r8a77965.c | 931 +++++++++++++----------- drivers/pinctrl/renesas/pfc.c | 22 + drivers/pinctrl/renesas/sh_pfc.h | 2 + 8 files changed, 1146 insertions(+), 814 deletions(-)