Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 565E8C433FE for ; Thu, 16 Dec 2021 08:41:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234935AbhLPIlK (ORCPT ); Thu, 16 Dec 2021 03:41:10 -0500 Received: from mickerik.phytec.de ([195.145.39.210]:60704 "EHLO mickerik.phytec.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232371AbhLPIlJ (ORCPT ); Thu, 16 Dec 2021 03:41:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1639644067; x=1642236067; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1P2OgN1JOG+ipY60tzsV0L+uxJnCTcncOKO1Nqcyjs4=; b=IMN6HUTOB13SSF8CaQA2eJRJSitmmtkkN7cmmMfNqU1sKA5hh1eqfKjqnn9H7Gpx Um4on/tmQTEQ8eANFBRU0Sl2hD+Mn4L09Pb1MVtoa4lOM8yeKayQFxQDtzxyTEMy 27uLoAPU3z11oIWUKFWXFlzes8NH4Wr4XGswIbYMk6E=; X-AuditID: c39127d2-4f7337000000426a-69-61bafba30e76 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id F6.49.17002.3ABFAB16; Thu, 16 Dec 2021 09:41:07 +0100 (CET) Received: from augenblix2.phytec.de ([172.16.0.56]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021121609410745-2392985 ; Thu, 16 Dec 2021 09:41:07 +0100 From: Yunus Bas To: shawnguo@kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de, devicetree@vger.kernel.org Cc: festevam@gmail.com, kernel@pengutronix.de, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/3] ARM: dts: imx6qdl: phytec: Add support for optional PEB-EVAL-01 board Date: Thu, 16 Dec 2021 09:41:05 +0100 Message-Id: <20211216084107.1341968-1-y.bas@phytec.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 16.12.2021 09:41:07, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 16.12.2021 09:41:07 X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHLMWRmVeSWpSXmKPExsWyRoCBS3fx712JBv/v6lvMP3KO1eLhVX+L VVN3slhc3jWHzaJ17xF2i7/bN7FYvNgi7sDusXPWXXaPTas62Tz6/xp4fN4kF8ASxWWTkpqT WZZapG+XwJWx/M539oLvKhVT1i1kb2DcJ9/FyMkhIWAi0Tj5H3MXIxeHkMBWRon+I9fYIZwL jBKzNi9iBaliE1CUOH/7LZDNwSEiEC/x4o07SJhZwFuie+laJhBbWCBWYvbnT4wgNouAqsSv Y0uZQMp5Bcwk5n/khNglLzHz0nd2EJtXQFDi5MwnLCCrJASuMErcWNTDDFEkJHF68VlmiPna EssWvmaewMg3C0nPLCSpBYxMqxiFcjOTs1OLMrP1CjIqS1KT9VJSNzECw/DwRPVLOxj75ngc YmTiYDzEKMHBrCTC+yRiV6IQb0piZVVqUX58UWlOavEhRmkOFiVx3vs9TIlCAumJJanZqakF qUUwWSYOTqkGRr/EPfU5eQu71D+Lxbitvm563GqZ9o6Z2x/sXH75/8MrU28HnrjHwzjR13DG RWFB8wMGhxbr1vNt85uw94zX/5SW/8eWbtkepjUr6bMba/heI99liWHFr978yr3lePHTlfyj e7foxPImv2dYJR19K3HDt/5zO9wtMsRuHPvLEWNhfkGsosxUyFCJpTgj0VCLuag4EQBsqkGT MQIAAA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The PHYTEC PEV-EVAL-01 expansion board adds support for additional gpio-triggered user-leds and gpio-key support. Signed-off-by: Yunus Bas --- Changes in v3: - No changes --- .../boot/dts/imx6dl-phytec-mira-rdk-nand.dts | 1 + .../boot/dts/imx6q-phytec-mira-rdk-emmc.dts | 1 + .../boot/dts/imx6q-phytec-mira-rdk-nand.dts | 1 + .../dts/imx6qdl-phytec-mira-peb-eval-01.dtsi | 71 +++++++++++++++++++ .../boot/dts/imx6qp-phytec-mira-rdk-nand.dts | 1 + 5 files changed, 75 insertions(+) create mode 100644 arch/arm/boot/dts/imx6qdl-phytec-mira-peb-eval-01.dtsi diff --git a/arch/arm/boot/dts/imx6dl-phytec-mira-rdk-nand.dts b/arch/arm/b= oot/dts/imx6dl-phytec-mira-rdk-nand.dts index 9f7f9f98139d..b057fa664a6b 100644 --- a/arch/arm/boot/dts/imx6dl-phytec-mira-rdk-nand.dts +++ b/arch/arm/boot/dts/imx6dl-phytec-mira-rdk-nand.dts @@ -8,6 +8,7 @@ #include "imx6dl.dtsi" #include "imx6qdl-phytec-phycore-som.dtsi" #include "imx6qdl-phytec-mira.dtsi" +#include "imx6qdl-phytec-mira-peb-eval-01.dtsi" =20 / { model =3D "PHYTEC phyBOARD-Mira DualLite/Solo Carrier-Board with NAND"; diff --git a/arch/arm/boot/dts/imx6q-phytec-mira-rdk-emmc.dts b/arch/arm/bo= ot/dts/imx6q-phytec-mira-rdk-emmc.dts index 2e70ea5623c6..db6e2cc36759 100644 --- a/arch/arm/boot/dts/imx6q-phytec-mira-rdk-emmc.dts +++ b/arch/arm/boot/dts/imx6q-phytec-mira-rdk-emmc.dts @@ -8,6 +8,7 @@ #include "imx6q.dtsi" #include "imx6qdl-phytec-phycore-som.dtsi" #include "imx6qdl-phytec-mira.dtsi" +#include "imx6qdl-phytec-mira-peb-eval-01.dtsi" =20 / { model =3D "PHYTEC phyBOARD-Mira Quad Carrier-Board with eMMC"; diff --git a/arch/arm/boot/dts/imx6q-phytec-mira-rdk-nand.dts b/arch/arm/bo= ot/dts/imx6q-phytec-mira-rdk-nand.dts index 65d2e483c136..51ff601b1aec 100644 --- a/arch/arm/boot/dts/imx6q-phytec-mira-rdk-nand.dts +++ b/arch/arm/boot/dts/imx6q-phytec-mira-rdk-nand.dts @@ -8,6 +8,7 @@ #include "imx6q.dtsi" #include "imx6qdl-phytec-phycore-som.dtsi" #include "imx6qdl-phytec-mira.dtsi" +#include "imx6qdl-phytec-mira-peb-eval-01.dtsi" =20 / { model =3D "PHYTEC phyBOARD-Mira Quad Carrier-Board with NAND"; diff --git a/arch/arm/boot/dts/imx6qdl-phytec-mira-peb-eval-01.dtsi b/arch/= arm/boot/dts/imx6qdl-phytec-mira-peb-eval-01.dtsi new file mode 100644 index 000000000000..037b60197598 --- /dev/null +++ b/arch/arm/boot/dts/imx6qdl-phytec-mira-peb-eval-01.dtsi @@ -0,0 +1,71 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2018 PHYTEC Messtechnik + * Author: Christian Hemp + */ + +#include + +/ { + gpio-keys { + compatible =3D "gpio-keys"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl=5Fgpio=5Fkeys>; + status =3D "disabled"; + + power { + label =3D "Power Button"; + gpios =3D <&gpio5 28 GPIO=5FACTIVE=5FLOW>; + linux,code =3D ; + wakeup-source; + }; + + sleep { + label =3D "Sleep Button"; + gpios =3D <&gpio6 18 GPIO=5FACTIVE=5FLOW>; + linux,code =3D ; + }; + }; + + user=5Fleds: user-leds { + compatible =3D "gpio-leds"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl=5Fuser=5Fleds>; + status =3D "disabled"; + + user-led1 { + gpios =3D <&gpio7 1 GPIO=5FACTIVE=5FHIGH>; + linux,default-trigger =3D "gpio"; + default-state =3D "on"; + }; + + user-led2 { + gpios =3D <&gpio7 0 GPIO=5FACTIVE=5FHIGH>; + linux,default-trigger =3D "gpio"; + default-state =3D "on"; + }; + + user-led3 { + gpios =3D <&gpio5 29 GPIO=5FACTIVE=5FHIGH>; + linux,default-trigger =3D "gpio"; + default-state =3D "on"; + }; + }; +}; + +&iomuxc { + pinctrl=5Fgpio=5Fkeys: gpiokeysgrp { + fsl,pins =3D < + MX6QDL=5FPAD=5FSD3=5FDAT6=5F=5FGPIO6=5FIO18 0x1b0b0 + MX6QDL=5FPAD=5FCSI0=5FDAT10=5F=5FGPIO5=5FIO28 0x1b0b0 + >; + }; + + pinctrl=5Fuser=5Fleds: userledsgrp { + fsl,pins =3D < + MX6QDL=5FPAD=5FSD3=5FDAT4=5F=5FGPIO7=5FIO01 0x1b0b0 + MX6QDL=5FPAD=5FSD3=5FDAT5=5F=5FGPIO7=5FIO00 0x1b0b0 + MX6QDL=5FPAD=5FCSI0=5FDAT11=5F=5FGPIO5=5FIO29 0x1b0b0 + >; + }; +}; diff --git a/arch/arm/boot/dts/imx6qp-phytec-mira-rdk-nand.dts b/arch/arm/b= oot/dts/imx6qp-phytec-mira-rdk-nand.dts index f27d7ab42626..06fe0c5315fc 100644 --- a/arch/arm/boot/dts/imx6qp-phytec-mira-rdk-nand.dts +++ b/arch/arm/boot/dts/imx6qp-phytec-mira-rdk-nand.dts @@ -8,6 +8,7 @@ #include "imx6qp.dtsi" #include "imx6qdl-phytec-phycore-som.dtsi" #include "imx6qdl-phytec-mira.dtsi" +#include "imx6qdl-phytec-mira-peb-eval-01.dtsi" =20 / { model =3D "PHYTEC phyBOARD-Mira QuadPlus Carrier-Board with NAND"; --=20 2.25.1