From patchwork Fri Sep 13 20:09:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13804036 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A52A7FC6175 for ; Fri, 13 Sep 2024 20:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SNtAXoXRrNHY1D9nMXD/LZ56mAPT8Bw1WEjMYqzybWw=; b=2bsETC6qVNY9BLxiLy3u6KMu7g rzFz8YElZz2Sq7gmtv5KLf5Cik6vnJOM+fUUrMCvvIkvesRgdobpKDES1mMhtp5I6Wv+N6UQjT8dd 2FjbB5zSKY7L9iUNdjujq5dRnoX7sRdnXl4WQ1YrMwQWV6EmayCWfkME7nnXRFHf0zyw7aIjxeHdP o2O8JZsaiHpOiOqdD6xiP6Ulg0EIbPsPMVmsS+ZumEkNr8E1MXi8FMim5GTiQAhkgDLAI04PatRHf EE4aFGH5WOwD5V+KKJYpTVNnUnL6rOV80aMEUgLHCju+0P701XuFF9uBs7mizBWkEHxRkA5CjbnIJ FGp28rJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1spCex-0000000H15E-3Gr5; Fri, 13 Sep 2024 20:12:51 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1spCbZ-0000000H0JE-24am for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2024 20:09:22 +0000 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2d87f34a650so1807555a91.1 for ; Fri, 13 Sep 2024 13:09:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726258160; x=1726862960; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SNtAXoXRrNHY1D9nMXD/LZ56mAPT8Bw1WEjMYqzybWw=; b=fcbwhv17VTvBbxHIcmLJMUR/+NTAxIJjaqSqmBH9ya/otfDqnhpgOayGJAXu7kEYGy AKfveZhYBcQNRy7zHFvABRVyq0paRtadwfsE1eLo87TkVe4d4DSHvE1xQMRdgnbHFcBI 2cUiM1uw9DqvwrPJjrsuRRYMNfwY1AYzJpF1oxVFrMrE20ATf3EAKdwY60skvwy47oS7 QRJrRbS9zHu3drUv2aUTMMIFNqB7YowioY7VQM664rRqnEhwWp8TqlOhH6V5ptmsfrTp 29aELKeKiuBhw41W525YN4jjD+U8QTcBb3MmETfxqsOBKwKuBBwTyFSUSwp8sz11tVJk jC3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726258160; x=1726862960; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SNtAXoXRrNHY1D9nMXD/LZ56mAPT8Bw1WEjMYqzybWw=; b=vMeacGq24ntVJGqzxZwUzPkYat48VR6Zuo4zXcJ1il+szKD2GroU3iug+Q/v+2+I2c 4H0aOZWgml/gA4vKfGlMQqqvRTiQh+OMvMHC8ywVzKQ2DOWCma/BdIwA6sYExw2RLUQq W6acjTMMzIKstkZG2HV7PSDFCTgxcJL/ADo6F33vW8nXxiq6OT7eywm8FmFaloLV6YtZ O11KimEzcgfY8YbXzKfSF1/S4Wc8TuXHzsl0PDOBXQBEsx/Rbn7Nm7W8Xc8msTXlKz2Y Zq7WfJQKDZc9QvbWsdyEZ9VCvIYkZhnqBthFwnfIhPhAlerxqT1qz0MPrne9yYtpXG4h BcYA== X-Forwarded-Encrypted: i=1; AJvYcCWYKygmkIaXOPTYWfHAZIVCxgYlyslS7favuBRRyaaDxhCC0+UHDJfqBk12ESiQ44zgJLmigP6AZN0mEbYBE4GT@lists.infradead.org X-Gm-Message-State: AOJu0Yx2psSRQI8D1ysVQkWR8Oojb+FZmyM+paJG5F8zTso4epk0eSML M496/Xh1RpAV27XcWu9lIVVDs2uy/QSxZGeRUr+GyTGjM4R8R75CD3R8wg== X-Google-Smtp-Source: AGHT+IGTQn8sK1OGzEsONDA+U1Pz41yuNPnqgGfqaz1kqyQoxpkepZTYUJh2ClAj+zk3HpnCCoeLIw== X-Received: by 2002:a17:90a:7086:b0:2d8:999a:bc37 with SMTP id 98e67ed59e1d1-2db67226a2dmr22204321a91.19.1726258160554; Fri, 13 Sep 2024 13:09:20 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:f375:804a:5c89:62a]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dbcfdc06b0sm61545a91.55.2024.09.13.13.09.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 13:09:20 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Fabio Estevam Subject: [PATCH 3/3] ARM: dts: imx6q-lxr: Add board support Date: Fri, 13 Sep 2024 17:09:06 -0300 Message-Id: <20240913200906.1753458-3-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240913200906.1753458-1-festevam@gmail.com> References: <20240913200906.1753458-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240913_130921_559676_0B0F7CA1 X-CRM114-Status: GOOD ( 15.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Fabio Estevam The Comvetia LXR board is based on a i.MX6Q phyFLEX-i.MX6 Quad SoM from Phytec. Add a devicetree description for this board. Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/nxp/imx/Makefile | 1 + arch/arm/boot/dts/nxp/imx/imx6q-lxr.dts | 87 +++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-lxr.dts diff --git a/arch/arm/boot/dts/nxp/imx/Makefile b/arch/arm/boot/dts/nxp/imx/Makefile index 92e291603ea1..8acd3a6d1e12 100644 --- a/arch/arm/boot/dts/nxp/imx/Makefile +++ b/arch/arm/boot/dts/nxp/imx/Makefile @@ -211,6 +211,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6q-kontron-samx6i-ads2.dtb \ imx6q-kp-tpc.dtb \ imx6q-logicpd.dtb \ + imx6q-lxr.dtb \ imx6q-marsboard.dtb \ imx6q-mba6a.dtb \ imx6q-mba6b.dtb \ diff --git a/arch/arm/boot/dts/nxp/imx/imx6q-lxr.dts b/arch/arm/boot/dts/nxp/imx/imx6q-lxr.dts new file mode 100644 index 000000000000..a49d6f623410 --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/imx6q-lxr.dts @@ -0,0 +1,87 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// +// Copyright 2024 Comvetia AG + +/dts-v1/; +#include "imx6q-phytec-pfla02.dtsi" + +/ { + model = "COMVETIA QSoIP LXR-2"; + compatible = "comvetia,imx6q-lxr", "phytec,imx6q-pfla02", "fsl,imx6q"; + + chosen { + stdout-path = &uart4; + }; + + spi { + compatible = "spi-gpio"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi_gpio>; + sck-gpios = <&gpio5 8 GPIO_ACTIVE_HIGH>; + mosi-gpios = <&gpio5 7 GPIO_ACTIVE_HIGH>; + num-chipselects = <0>; + #address-cells = <1>; + #size-cells = <0>; + + fpga@0 { + compatible = "altr,fpga-passive-serial"; + reg = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_fpga>; + nconfig-gpios = <&gpio4 18 GPIO_ACTIVE_LOW>; + nstat-gpios = <&gpio4 19 GPIO_ACTIVE_LOW>; + confd-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&ecspi3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ecspi3>; + cs-gpios = <&gpio4 24 GPIO_ACTIVE_LOW>; + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <20000000>; + }; +}; + +&fec { + status = "okay"; +}; + +&i2c3 { + status = "okay"; +}; + +&uart3 { + status = "okay"; +}; + +&uart4 { + status = "okay"; +}; + +&usdhc3 { + no-1-8-v; + status = "okay"; +}; + +&iomuxc { + pinctrl_fpga: fpgagrp { + fsl,pins = < + MX6QDL_PAD_GPIO_6__GPIO1_IO06 0x1b0b0 + MX6QDL_PAD_DI0_PIN2__GPIO4_IO18 0x1b0b0 + MX6QDL_PAD_DI0_PIN3__GPIO4_IO19 0x1b0b0 + >; + }; + + pinctrl_spi_gpio: spigpiogrp { + fsl,pins = < + MX6QDL_PAD_DISP0_DAT14__GPIO5_IO08 0x1b0b0 + MX6QDL_PAD_DISP0_DAT13__GPIO5_IO07 0x1b0b0 + >; + }; +};