Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7283046ybp; Wed, 16 Oct 2019 06:35:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxabvr6fi3CJZ7uCYRkUikbaIJoT5ZmEZiCoiCiSu9/sJU4lxUKE56dlcndUolyTF/+JouW X-Received: by 2002:a17:906:5407:: with SMTP id q7mr40851271ejo.24.1571232929449; Wed, 16 Oct 2019 06:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571232929; cv=none; d=google.com; s=arc-20160816; b=yngnGgL6I01NZPr1GEY77paidN+MIjMJC/rSmvJwQ/Cy/L4XuhfvWT15LqeLLqGVGd FUz2mtI32wbbKDYcTDl5mb3apL79JLRvk9Rvo9kYWXzw1FJJIT0EkDU/CDhm9GxBlJwe S3ayUtPa+b7k1tZLwVlJiND9pNvbm32tRCloHiu7QT42xzM/JNSiI3LpPRY2NrvaqjVF sbOPHximkAurkPLal4QYfA8nX/MAVOJ0nlHVTdkCyUmQ5DzkgHqv2oSSSZYoSaIF+tz1 HhdqvHiFQ0rLP9NDdtwzUNo+hw6N5dQWjHNCb1dr0p9l+x+6xK/eEvSeU4R306rvV5aW lAFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=MRX3WdXGyuZZ8tF6lO4LaepP5j8xfmJb42B//LkKpU4=; b=tgOm/fa/qZsG/A3QRULi4N38k4U6kPFRb0LJw73QeEJt1n01NJMbLDziS+W6WzPXp5 5m3URGTBiTz2ROPPlDrxo0AL09PmOlEZMY5rEYRkQrx1rU9cw1qFYUG7QmYHc9E6bBgn F3CPI3cCn0RjLciHRWVBa6L4gBDM6n6rPlKWLlIhR5jCEoZLAeolRdF4QLQZ0Z/ZNHkL tUq/MvatMPLi3d1WvmM5tTbO3j8DQ36bR9nnfOg2+ENy1PWI3hFWEZQRRUDuEgIfSCRx mg3ZWZr5qO1oWTZStAuH6OmU8qTmUZgnL45pKhHN4E0hVec68NeGd0UmnrEI+HUtL/GC R3yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o22si14832665eju.25.2019.10.16.06.35.05; Wed, 16 Oct 2019 06:35:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391927AbfJPJXI (ORCPT + 99 others); Wed, 16 Oct 2019 05:23:08 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:55352 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbfJPJXH (ORCPT ); Wed, 16 Oct 2019 05:23:07 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id BAB1A9C02F3; Wed, 16 Oct 2019 05:23:06 -0400 (EDT) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id KxQAsgQNqEKS; Wed, 16 Oct 2019 05:23:05 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 8348F9C03A3; Wed, 16 Oct 2019 05:23:05 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0pumkyatRjoz; Wed, 16 Oct 2019 05:23:05 -0400 (EDT) Received: from gdo-sfl-laptop.home (lfbn-1-7821-217.w92-167.abo.wanadoo.fr [92.167.224.217]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id F31FA9C02F3; Wed, 16 Oct 2019 05:23:03 -0400 (EDT) From: Gilles DOFFE To: devicetree@vger.kernel.org Cc: jerome.oufella@savoirfairelinux.com, rennes@savoirfairelinux.com, Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4] ARM: dts: imx6qdl-rex: add gpio expander pca9535 Date: Wed, 16 Oct 2019 11:22:55 +0200 Message-Id: <20191016092255.19223-1-gilles.doffe@savoirfairelinux.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The pca9535 gpio expander is present on the Rex baseboard, but missing from the dtsi. The pca9535 is on i2c2 bus which is common to the three SOM variants (Basic/Pro/Ultra), thus it is activated by default. Add also the new gpio controller and the associated interrupt line MX6QDL_PAD_NANDF_CS3__GPIO6_IO16. Signed-off-by: Gilles DOFFE --- arch/arm/boot/dts/imx6qdl-rex.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-rex.dtsi b/arch/arm/boot/dts/imx6q= dl-rex.dtsi index 97f1659144ea..305b57fadc60 100644 --- a/arch/arm/boot/dts/imx6qdl-rex.dtsi +++ b/arch/arm/boot/dts/imx6qdl-rex.dtsi @@ -132,6 +132,19 @@ pinctrl-0 =3D <&pinctrl_i2c2>; status =3D "okay"; =20 + pca9535: gpio-expander@27 { + compatible =3D "nxp,pca9535"; + reg =3D <0x27>; + gpio-controller; + #gpio-cells =3D <2>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_pca9535>; + interrupt-parent =3D <&gpio6>; + interrupts =3D <16 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + #interrupt-cells =3D <2>; + }; + eeprom@57 { compatible =3D "atmel,24c02"; reg =3D <0x57>; @@ -237,6 +250,12 @@ >; }; =20 + pinctrl_pca9535: pca9535 { + fsl,pins =3D < + MX6QDL_PAD_NANDF_CS3__GPIO6_IO16 0x17059 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins =3D < MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1 --=20 2.20.1