From patchwork Wed Apr 10 11:30:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre TORGUE X-Patchwork-Id: 10893761 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A3D501390 for ; Wed, 10 Apr 2019 11:32:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BC5128A2D for ; Wed, 10 Apr 2019 11:32:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7FFF728A3D; Wed, 10 Apr 2019 11:32:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0765E28A2D for ; Wed, 10 Apr 2019 11:32:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject: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=Lv3rhuYJr7IWN8QEeUphj0KBIjQBTcEqPxpgfRpiCuc=; b=qU0hve4mVSNFpN X0MOglReKdy71fKvh41h6Q8Mmy39Hj7CVn0juEKpbY+L4ALjPupc8XLK+t8b0JcBqrX+7ePdXLe9c NecvKuEeqy/XOx3YjouvGvjP1e228pcJ+JMGWeRPUiUV2Ols8UaDidOKjAr8EFdnE3TvHrHSCCr+3 RYNtcSY9whNoJQrPHEOgIO6TmKkzRmJCOOCnLhvkhi5mervruVek77gt1GoGPVnMpekakz1femtW4 PreY1bIGAZxa0GOPtOulMQ4lIV/CD/WVOw8ax81KEjYkWAWeTdj7d8lP5maEhYKIVdBCSN+HETZ73 OWz2EDN7Yhtc33bkuP8A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEBSu-0007vw-MA; Wed, 10 Apr 2019 11:32:28 +0000 Received: from mx07-00178001.pphosted.com ([62.209.51.94]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEBST-0007F0-El for linux-arm-kernel@lists.infradead.org; Wed, 10 Apr 2019 11:32:04 +0000 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3ABLkjM023359; Wed, 10 Apr 2019 13:31:43 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=fhLtlL/NlC86mS/NsbhVuU1oLUbCI8C1Mjsye0xYcb8=; b=bheU7pr5faXw9PBBSRPAYFP5OQQdRlsqYs9fXO9TPguvGQKir8aFBbNs3RJoovvyItC0 3JjkKwCPVawPsey1ZIImi1IDlT63vdjBUyfUhT/04gJlXs35Nib9w38/tcHMDLJgNUU/ wknqiCMxavpyhH/GzsjbMl3aCb6OA3aDDYYjhfkUII1AHP+9yPaPr8ZNRK8AK1unWJ/0 sn5vXolgpvdZcgkxaYVig3RYkGC9Seq+8IFWOPpkt9epSGGcjev4rQCXkk4NraLltO1p Xh85/KtzEPg16aUjVSwAcdHoxpaYLLjuewtD+wBQvP8+GBBIFqoAQ8mKXMheft6Z9wdG qw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2rprcp6j3q-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 10 Apr 2019 13:31:43 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 91A3A38; Wed, 10 Apr 2019 11:31:42 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2418715BC; Wed, 10 Apr 2019 11:31:42 +0000 (GMT) Received: from localhost (10.75.127.50) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 10 Apr 2019 13:31:42 +0200 From: Alexandre Torgue To: Maxime Coquelin , Linus Walleij , Rob Herring , Mark Rutland , Subject: [PATCH 0/5] Add pin package management on STM32P157 Date: Wed, 10 Apr 2019 13:30:19 +0200 Message-ID: <1554895824-25709-1-git-send-email-alexandre.torgue@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG7NODE2.st.com (10.75.127.20) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-10_06:, , signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190410_043202_143690_2B9DA18B X-CRM114-Status: GOOD ( 13.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Alexandre Torgue , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, The series adds support of chip packages for STM32MP157 SOC. Available packages are: STM32MP_PKG_AA: LFBGA448 (18*18), 176 IOs STM32MP_PKG_AB: LFBGA354 (16*16), 98 IOs STM32MP_PKG_AC: TFBGA361 (12*12), 148 IOs STM32MP_PKG_AD: TFBGA257 (10*10), 98 IOs As ball-out is different between each package, this series covers those differences by creating dedicated pinctrl dtsi files. Each dtsi pinctrl package file describes the package ball-out through gpio-ranges. A new dt property is also added ("st,package") to provide to stm32 pinctrl driver the package to use and so the available pins. stm32mp157a-dk1 / dk2 boards embed a STM32MP_PKG_AC (TFBGA361 (12*12)) package. stm32mp157c-ed1 / ev1 boards embed a STM32MP_PKG_AA (LFBGA448 (18*18)) package. Regards Alex Alexandre Torgue (5): dt-bindings: pinctrl: stm32: add new entry for package information pinctrl: stm32: introduce package support pinctrl: stm32: add package information for stm32mp157c pinctrl: stm32: align stm32mp157 pin names ARM: dts: stm32: use dedicated files to manage stm32mp157 packages .../bindings/pinctrl/st,stm32-pinctrl.txt | 2 + arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 12 + arch/arm/boot/dts/stm32mp157a-dk1.dts | 2 +- arch/arm/boot/dts/stm32mp157c-ed1.dts | 2 +- arch/arm/boot/dts/stm32mp157xaa-pinctrl.dtsi | 90 ++ arch/arm/boot/dts/stm32mp157xab-pinctrl.dtsi | 62 ++ arch/arm/boot/dts/stm32mp157xac-pinctrl.dtsi | 78 ++ arch/arm/boot/dts/stm32mp157xad-pinctrl.dtsi | 62 ++ drivers/pinctrl/stm32/pinctrl-stm32.c | 68 +- drivers/pinctrl/stm32/pinctrl-stm32.h | 14 + drivers/pinctrl/stm32/pinctrl-stm32mp157.c | 1089 +++++++++++--------- include/dt-bindings/pinctrl/stm32-pinfunc.h | 6 + 12 files changed, 1014 insertions(+), 473 deletions(-) create mode 100644 arch/arm/boot/dts/stm32mp157xaa-pinctrl.dtsi create mode 100644 arch/arm/boot/dts/stm32mp157xab-pinctrl.dtsi create mode 100644 arch/arm/boot/dts/stm32mp157xac-pinctrl.dtsi create mode 100644 arch/arm/boot/dts/stm32mp157xad-pinctrl.dtsi