From patchwork Mon Oct 24 09:46:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amelie Delaunay X-Patchwork-Id: 8290 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp355589wru; Mon, 24 Oct 2022 03:02:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM78W3f8jxH9mB8RamjijkuuMbjK/H/HjPHO8jWw3wx30PQM6DuhRQnn+1ddWgfU/Qo69oFx X-Received: by 2002:a17:902:e88b:b0:17f:93a4:e31b with SMTP id w11-20020a170902e88b00b0017f93a4e31bmr33135481plg.51.1666605738183; Mon, 24 Oct 2022 03:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666605738; cv=none; d=google.com; s=arc-20160816; b=hBYrtEqgFmI6wYebM0AlyiGphnzJBFAf6LfSnB6tltU8nvgg87y9wFnsm/XX2XcMzT AQGfnSCG684NpfFGaY4mUS7Vn7UIzwGtVL77/5bQ0WJSBydjkjYUsco8LX2EbSGm872/ sGN9qTNXSfpZ88q5bkiCIdayoe7Y3mGFgHIlss6ZIlethvbhLFw43fYSsTHVxi4K+ldq yJ5FkqJQ5A+mRBVM9ZBzTa2sbfmPPAjSvYrzPs3bLl7Gx9X1MD1DFl8sUePrv89l5Dpp VYhDvm0tz7TBuJzpEdcVq12R7pbcCL58fiAzWLzY/EXKDAP0GJTm+BKdkaFuly4xHwUj XBzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Cc+dlsXqRWR+DBkV6bGVYF5yz31PMOAUQ3bRQlb0FRQ=; b=f9Hvj+d2nGHqd/BJXH3PbnoAeoLz1xGfRP25Qs4Z0or1BjqvSouDsdEszXZZ9KKAa0 p14YHYjYvG+At9/Dttu+fnx4e+lX2x46g5tT9lMDdccDqfTVKgw7FX2sZyXdqQkJvEZI mNU1B73YN+6VwkJuR9R6fwicdFAVqZJDx4xvy04f7G6lM5hmEQP8jORpwJT8R4ByYqIv a9hmd1LJzRTYWfWIy8gvb1dmkCA2fJkJOuPoSZ39FXrYguuVFWCQ/LS+t0r9CtAkRTDk xUPKSOjzQ415y2txpOYzD6Jv45wcsTUd0pLzB7IPIyF45SuFNdsu3f2pYR/rqlvncmQ4 flWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=5SVEQ7b0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s13-20020a056a0008cd00b005383ec972b3si37873511pfu.72.2022.10.24.03.02.05; Mon, 24 Oct 2022 03:02:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=5SVEQ7b0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230227AbiJXJrX (ORCPT + 99 others); Mon, 24 Oct 2022 05:47:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbiJXJrS (ORCPT ); Mon, 24 Oct 2022 05:47:18 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED269DFA9; Mon, 24 Oct 2022 02:47:14 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29O7f2s6022974; Mon, 24 Oct 2022 11:47:01 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=Cc+dlsXqRWR+DBkV6bGVYF5yz31PMOAUQ3bRQlb0FRQ=; b=5SVEQ7b0skD2OFdK5gQdCd0+uRv62JzX3I+yp73+5xC3EQESB7+J6TJ9hJPy1O0rNKzx 109mcur33FNwVEseqW3J/iK0+ufyENRQcyZwJH1RAAnXLYTvC/FkcbPnJ3PIn4HhcKeP sIK+KLWYXLGdv0uNVouwiMo/gDHnGjkw/PQoIX4I6RNATGOsKCV0biShsoHQSNjm0Ytq X9XTftAE8gTeMmHj2G4CsTMtnBTe96IQGGQD2JEvTPOluXdowNij/UTCwIFlKI2+TcqJ DAFE7+NDxecFjtPS4K+LYsEmKq31KSyPPMrpLv1UUiGj15Y0cCW0fhpRfso7cYi1cbL8 ug== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3kc5nbanqp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Oct 2022 11:47:01 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0C4BD100038; Mon, 24 Oct 2022 11:46:58 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 07FCD2194C9; Mon, 24 Oct 2022 11:46:58 +0200 (CEST) Received: from localhost (10.201.20.208) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 24 Oct 2022 11:46:55 +0200 From: Amelie Delaunay To: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue CC: Amelie Delaunay , , , , Subject: [PATCH 1/2] ARM: dts: stm32: add mcp23017 pinctrl entry for stm32mp13 Date: Mon, 24 Oct 2022 11:46:47 +0200 Message-ID: <20221024094648.145251-2-amelie.delaunay@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.201.20.208] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-24_02,2022-10-21_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747562778437316518?= X-GMAIL-MSGID: =?utf-8?q?1747562778437316518?= MCP23017 interrupt line (routed on PG12) requires to be pulled-up. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp13-pinctrl.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi index 50daf5509193..9889f9fe99a6 100644 --- a/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi @@ -47,6 +47,13 @@ pins { }; }; + mcp23017_pins_a: mcp23017-0 { + pins { + pinmux = ; + bias-pull-up; + }; + }; + sdmmc1_b4_pins_a: sdmmc1-b4-0 { pins { pinmux = , /* SDMMC1_D0 */ From patchwork Mon Oct 24 09:46:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amelie Delaunay X-Patchwork-Id: 8289 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp355583wru; Mon, 24 Oct 2022 03:02:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4pXC8nBGDXXMVWSXA8anG9l8wkVx2/uV7GfF+pjMrqyMhI7Qk0f3ZxVesgxynE4QIhod5i X-Received: by 2002:a05:6a00:1749:b0:563:8346:12e9 with SMTP id j9-20020a056a00174900b00563834612e9mr33069610pfc.68.1666605738215; Mon, 24 Oct 2022 03:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666605738; cv=none; d=google.com; s=arc-20160816; b=lJu3RV+isHieXU3t5PSc0gnziEeQBuTpAtcleYKytYiC/qqpvY3WHPSOJh7CO8sGzD cuWoqQ8OA3FtAISF0fqPFS0tZ8d35MVKe9VIVkYeoszDkIscbS07XqLCs15BwSQfIJ2E GB2QBz+G1/TNYZH+/aU3PoG/KG/FsP9BtCFLUmmz+p6pAU8TZXoXcC0UpJiWP+/nt1nQ 5hQo2ZvjM193VV8pEYUKCl5qkE5tWoHj0SVmhOSN56dgjrMDCiwhD4lTfAGPhhJrIRWz gPL5KTYS6Izg6hTCh12stdymULA1r3mr5aln0oAmBix5h1Bdu9zner9byEtZP8LoOSy5 U7rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WAazJOXTmTrFiYKklIJdUFWRgJ9uUsRwSbws5zGLLRE=; b=LqBJIgAftETK4RrP+KRdoYdZPazIZckZyYPL31VX9FmuXXUGwzs81c6IyZcOcd0/7K PSdVIiCWvF+4FVFGkjP9lXJoeRkD7QjZfoVwgdRaIvNnH0mQBEzpeRpLTVyAPTZkg+8X jyNMbjO/ffUz5I1HcFDvej3tNe9ihevqDnGKWbjbicQJC19aUNDgjmHlYoi/da1BJIFv 6F9E5EE00LJ3qEGm8OiR9ZJoP7O+iwPmVilTOnn4i7dP/mf4cb68Eh2O/wgtLIZC/AJQ 7KGnLA+qcyX4ef5RJFEdgQIoSq9QMFC3tRshNbc8/rFEXLo/JNcDLAqt7MMk+PLUQ6kQ nvEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Rye6SzTF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020a056a00148500b0056b82fbafebsi9045830pfu.379.2022.10.24.03.02.04; Mon, 24 Oct 2022 03:02:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Rye6SzTF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230185AbiJXJrU (ORCPT + 99 others); Mon, 24 Oct 2022 05:47:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbiJXJrS (ORCPT ); Mon, 24 Oct 2022 05:47:18 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83D382DABF; Mon, 24 Oct 2022 02:47:15 -0700 (PDT) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29O8oZjT001299; Mon, 24 Oct 2022 11:47:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=WAazJOXTmTrFiYKklIJdUFWRgJ9uUsRwSbws5zGLLRE=; b=Rye6SzTFAW/ln+r0rvNLltV3ZE+SaPQDfeO9mv7oxQ05Jo9Wm4wCSdEUVSUOc+PoW5WB zOu6pCQLhFFzzyAhuCES9sKf8yTXSGqUCKjp6PIVPG4gimD00D1hKqEjcPOwNJ6AzgWa aYPBEp3BC4WEcLz5cBxjabQjBJF3Ne8IhYtUztohBYRLBmabRYQeFnfesbo4y0Fgrn+W TJXMmQJnMO8yQW2lSVjJXLCMlhdE11wPZB8OCzo/KJ2h9yPvuAjk2xeyRDyl8iblUIwg HW3bckAWkGLUXh0JOOmLFVArakP0aL4Z4DI3+zPF5kKuZhyg28ZIbGTzwsSjjSsgz7xw tQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3kc7dk2cnq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Oct 2022 11:47:02 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C72F410002A; Mon, 24 Oct 2022 11:46:57 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id C2D2C2194CD; Mon, 24 Oct 2022 11:46:57 +0200 (CEST) Received: from localhost (10.201.20.208) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 24 Oct 2022 11:46:57 +0200 From: Amelie Delaunay To: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue CC: Amelie Delaunay , , , , Subject: [PATCH 2/2] ARM: dts: stm32: add mcp23017 IO expander on I2C1 on stm32mp135f-dk Date: Mon, 24 Oct 2022 11:46:48 +0200 Message-ID: <20221024094648.145251-3-amelie.delaunay@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221024094648.145251-2-amelie.delaunay@foss.st.com> References: <20221024094648.145251-2-amelie.delaunay@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.20.208] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-24_02,2022-10-21_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747562778584746588?= X-GMAIL-MSGID: =?utf-8?q?1747562778584746588?= MCP23017 is an IO expander offering 16 input/output port expander with interrupt output. On stm32mp135f-dk, only INTA is routed (on PG12), but MCP23017 can mirror the bank B interrupts on INTA, that's why the property microchip,irq-mirror is used. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp135f-dk.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp135f-dk.dts b/arch/arm/boot/dts/stm32mp135f-dk.dts index a87ab067c955..d5fc6462ba33 100644 --- a/arch/arm/boot/dts/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/stm32mp135f-dk.dts @@ -112,6 +112,20 @@ &i2c1 { /* spare dmas for other usage */ /delete-property/dmas; /delete-property/dma-names; + + mcp23017: pinctrl@21 { + compatible = "microchip,mcp23017"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + interrupts = <12 IRQ_TYPE_LEVEL_LOW>; + interrupt-parent = <&gpiog>; + pinctrl-names = "default"; + pinctrl-0 = <&mcp23017_pins_a>; + interrupt-controller; + #interrupt-cells = <2>; + microchip,irq-mirror; + }; }; &i2c5 {