Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6577290rwi; Mon, 24 Oct 2022 03:25:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4lhdpMyw0Ep2rVCYZqIrTeNJSaot6erA4S5mDumCnqLh4uhEWJL9zAlaDe1wYupL+8j9bi X-Received: by 2002:a05:6402:3592:b0:45c:fb8a:c57d with SMTP id y18-20020a056402359200b0045cfb8ac57dmr30503940edc.290.1666607138440; Mon, 24 Oct 2022 03:25:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666607138; cv=none; d=google.com; s=arc-20160816; b=cpzXeoa2Bh0GV8JvVBoAWU5hH+xbc9MYwgzV3vmrH4cCCmXgrhMIc2xRDbYMNUG5Cn MqDw9UR99oF6Ibi6nWd+F5YgLU0a14XNYdwetzvQA0WJ4uHyZYeRtFRrdO4ZGbNSL5Bk 4RMvVVyU3xtP56PZ7Oo7ZHfBlI0BpfcoTw2s5Onacld5k3kwwS34WNq/TKtv3C9dxzCF EDY1TpH51bsFFRg0cexmrDPJGStYiM8bTvHHZzjf5KaxYS4v2FFnkAV7ozJFJgdYDz4l RFeNzQ4PZgXmxUGuAtn9I+5dJ4YVkzuLlAz1FH6A2iuCW/uj1XHjWRpAv6177UnzJDLr KIuw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a056402320600b00461cdda451dsi1816335eda.435.2022.10.24.03.25.14; Mon, 24 Oct 2022 03:25:38 -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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 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 { -- 2.25.1