Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp125757lqb; Tue, 4 Jun 2024 07:03:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXyVy2ej+TOrkOO/xIqt/BnK6JWorESKZKo/AQ3qP0XX8BlOcTXgzlgzYSzsHrR/vpj/zgAFa5kLsZHct/rdJL16XIdJpIQR/1ThnINlQ== X-Google-Smtp-Source: AGHT+IG93cicwvh5by0r7P0egMqoUKtmjQGL9ZydbDP8g5AVRPSqcvw4xfV4ttM7k8U+UQHDcwQ8 X-Received: by 2002:a17:902:d2ca:b0:1f6:7f8f:65c6 with SMTP id d9443c01a7336-1f67f8f67ecmr61953395ad.24.1717509802187; Tue, 04 Jun 2024 07:03:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717509802; cv=pass; d=google.com; s=arc-20160816; b=DlJUz3XWdFf9Y2xM06YwBW1gWnhinRxPAwJvdaFBdEMQwvmnJGRKlptLXqnx2jzAEC EIzkzYMxeVzsehnSFaQnaZ8wjDy5MR6cN+/0wWKpTE2oMZk0+IsaUOsgQ9QV6tekUSms xGu/W1dgO+ra9H2XaTH5GbEQ+VWnsBmumz1pZ92MXEw81NNQCHK2Jg2Z1hZfCX0XZPI+ 0xz2/a0KFlVyMdupgmsMuErmrHCAYxsq2ae6nwgrP8I6jJZLVk/+dud4UqCjI6dgcVoR 2AC1TmnasM6BfNWeop/51Pb0J+UjCT310RPJEXHRST+rQW9wUYKvBVW9koUCKvi04Njr tLAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=rez4fx94GKuzn4wj4x8AnXSpdrrGs1Eyf8hwdos/54M=; fh=4ICNKVo7MCS2eINXXAwpfYBKsrgFJPIS5gOBUknEPts=; b=V0HSlGdsuTknXWEwsnu2/cFc6lc75nv02pjnSKNEvJ3EV14pDJcWC2WWOXRH2J7n1l HOOZYe7lox7cPt79pYj39Mu5EGkQ9Z4kND2G7U+qZ2xPs6rHe+E/tj3HI87fBjoupqjr 6TSMpRDKtDJNhYea8OAbwK5OcbGimHKZWocBWfcs6NaNvxu2PC6kJ7fkMGA5pS408/bQ GvF7qUyMJwi93rRDRZLLcaLKjIpYkg8tUCB47Fy+TVecUJy8OrOp42bTSimHqkeCfxXB 2bSV3P/+D8H/Zk0EWR+RQlHdd05CGamc+bTZzJwjcki0HZBt6U2P9R/T2BkynBy/CMmi bniQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="beELly/C"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200772-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200772-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3540fb02bsi8521809a12.17.2024.06.04.07.03.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 07:03:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200772-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="beELly/C"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200772-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200772-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 464542863CF for ; Tue, 4 Jun 2024 14:02:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C25CB146598; Tue, 4 Jun 2024 14:00:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="beELly/C" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D46ED143C6D; Tue, 4 Jun 2024 14:00:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717509623; cv=none; b=RNjHq+TLi44GjDJoS0hlC++6XUtgSrKtD+bqY31sIA5gnbptsf1JPDhMUYEna104gMIx59V8lKSrmYd83SVfE1/bP9HH9xiCd1+XXEM7+H2JLbqo/5DYuuJz0I6B/hWiNpO6dfiMcbqLWD11gcgZghhsavPGL9NFRqFUYl6zmvw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717509623; c=relaxed/simple; bh=TuTC4xMc7GZShagg8C4/PapTgXr8QVOOxVdDj2YUO5k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DqxCBjZcPo//ZrKCUG6FgUNyzX7yljUEmBkATfO7ufv3wsp1ncysl5qB6jRqixAdpd+zaTS5S5Ey95mh4HmbW3MpS29q/58iHq51S0ZFnsw8nssicmBNdSsGgV99+X+O2bJPUCjQQqDLhT45CbeKjnghCSWpmCIM++VsNmwMDg8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=beELly/C; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DFD3C4AF09; Tue, 4 Jun 2024 14:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717509623; bh=TuTC4xMc7GZShagg8C4/PapTgXr8QVOOxVdDj2YUO5k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=beELly/CphT0spKfPrIMjBbO5t3cx+jVCiTq36qfzDNQjw0il4I6dzs2iUfkBKypM F7jMyF/XKkAklCMlGdzkWifNgDZonhtqeN3tmQDnBLKs2Od3Scow1bRD9v/3nIwSXM edownA4rOB3pMgM4a4Nt0fWHMFsT8iA5swWTp88PkMtT/8Ng6XLmIIZS+rKfy5/GZJ D2gkPeVeWqQVQlN009nnVkAS69lEI0BFV2Pt/jhMpMAmcbDBzADyEDAFVZXcDtF9ev L/dzAupQ4fqSucbVpG7NSjdlq/HQxNY4Iyuo6JVYLUhskLbmd0An/rUDGT6C6/xyjK TZBqXSSZOEN1w== From: Michael Walle To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Li Yang Cc: Pengutronix Kernel Team , Fabio Estevam , Priit Laes , Michael Grzeschik , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Michael Walle Subject: [PATCH 10/10] ARM: dts: imx6qdl-kontron-samx6i: add actual device trees Date: Tue, 4 Jun 2024 15:59:34 +0200 Message-Id: <20240604135934.1951189-11-mwalle@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240604135934.1951189-1-mwalle@kernel.org> References: <20240604135934.1951189-1-mwalle@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit For now, there wasn't any in-tree users of the dtsi files for the Kontron SMARC-sAMX6i board. Let's add device trees, for this board on a Kontron SMARC Eval 2.0 Carrier. Signed-off-by: Michael Walle --- arch/arm/boot/dts/nxp/imx/Makefile | 2 + .../nxp/imx/imx6dl-kontron-samx6i-ads2.dts | 12 ++ .../dts/nxp/imx/imx6q-kontron-samx6i-ads2.dts | 12 ++ .../nxp/imx/imx6qdl-kontron-samx6i-ads2.dtsi | 121 ++++++++++++++++++ 4 files changed, 147 insertions(+) create mode 100644 arch/arm/boot/dts/nxp/imx/imx6dl-kontron-samx6i-ads2.dts create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i-ads2.dts create mode 100644 arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i-ads2.dtsi diff --git a/arch/arm/boot/dts/nxp/imx/Makefile b/arch/arm/boot/dts/nxp/imx/Makefile index 231c0d73a53e..92e291603ea1 100644 --- a/arch/arm/boot/dts/nxp/imx/Makefile +++ b/arch/arm/boot/dts/nxp/imx/Makefile @@ -99,6 +99,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6dl-icore.dtb \ imx6dl-icore-mipi.dtb \ imx6dl-icore-rqs.dtb \ + imx6dl-kontron-samx6i-ads2.dtb \ imx6dl-lanmcu.dtb \ imx6dl-mamoj.dtb \ imx6dl-mba6a.dtb \ @@ -207,6 +208,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6q-icore-ofcap10.dtb \ imx6q-icore-ofcap12.dtb \ imx6q-icore-rqs.dtb \ + imx6q-kontron-samx6i-ads2.dtb \ imx6q-kp-tpc.dtb \ imx6q-logicpd.dtb \ imx6q-marsboard.dtb \ diff --git a/arch/arm/boot/dts/nxp/imx/imx6dl-kontron-samx6i-ads2.dts b/arch/arm/boot/dts/nxp/imx/imx6dl-kontron-samx6i-ads2.dts new file mode 100644 index 000000000000..6a0c53f23a15 --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/imx6dl-kontron-samx6i-ads2.dts @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0 OR X11 + +/dts-v1/; + +#include "imx6dl.dtsi" +#include "imx6qdl-kontron-samx6i.dtsi" +#include "imx6qdl-kontron-samx6i-ads2.dtsi" + +/ { + model = "Kontron SMARC-sAMX6i Dual-Lite/Solo on SMARC Eval 2.0 carrier"; + compatible = "kontron,imx6dl-samx6i-ads2", "kontron,imx6dl-samx6i", "fsl,imx6dl"; +}; diff --git a/arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i-ads2.dts b/arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i-ads2.dts new file mode 100644 index 000000000000..94c395cc020e --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i-ads2.dts @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0 OR X11 + +/dts-v1/; + +#include "imx6q.dtsi" +#include "imx6qdl-kontron-samx6i.dtsi" +#include "imx6qdl-kontron-samx6i-ads2.dtsi" + +/ { + model = "Kontron SMARC-sAMX6i Quad/Dual on SMARC Eval 2.0 carrier"; + compatible = "kontron,imx6q-samx6i-ads2", "kontron,imx6q-samx6i", "fsl,imx6q"; +}; diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i-ads2.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i-ads2.dtsi new file mode 100644 index 000000000000..e5b3183d4ae0 --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i-ads2.dtsi @@ -0,0 +1,121 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree include for the Kontron SMARC-sAMX6i board on a SMARC Eval + * 2.0 carrier (ADS2). + * + */ + +/ { + chosen { + stdout-path = "serial0:115200n8"; + }; + + sound { + #address-cells = <1>; + #size-cells = <0>; + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&dailink_master>; + simple-audio-card,frame-master = <&dailink_master>; + simple-audio-card,widgets = + "Headphone", "Headphone Jack", + "Line", "Line Out Jack", + "Microphone", "Microphone Jack", + "Line", "Line In Jack"; + simple-audio-card,routing = + "Line Out Jack", "LINEOUTR", + "Line Out Jack", "LINEOUTL", + "Headphone Jack", "HPOUTR", + "Headphone Jack", "HPOUTL", + "IN1L", "Line In Jack", + "IN1R", "Line In Jack", + "Microphone Jack", "MICBIAS", + "IN2L", "Microphone Jack", + "IN2R", "Microphone Jack"; + + simple-audio-card,cpu { + sound-dai = <&ssi1>; + }; + + dailink_master: simple-audio-card,codec { + sound-dai = <&wm8904>; + }; + }; +}; + +&audmux { + status = "okay"; +}; + +&can1 { + status = "okay"; +}; + +&can2 { + status = "okay"; +}; + +&ecspi4 { + flash@1 { + compatible = "jedec,spi-nor"; + m25p,fast-read; + spi-max-frequency = <100000000>; + reg = <1>; + }; +}; + +&fec { + status = "okay"; +}; + +&i2c1 { + status = "okay"; + + wm8904: audio-codec@1a { + #sound-dai-cells = <0>; + compatible = "wlf,wm8904"; + reg = <0x1a>; + clocks = <&clks IMX6QDL_CLK_CKO2>; + clock-names = "mclk"; + }; +}; + +&i2c3 { + eeprom@57 { + compatible = "atmel,24c64"; + reg = <0x57>; + pagesize = <32>; + }; +}; + +&ssi1 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&uart4 { + status = "okay"; +}; + +&uart5 { + status = "okay"; +}; + +&usbh1 { + status = "okay"; +}; + +&usbotg { + status = "okay"; +}; + +&usdhc3 { + status = "okay"; +}; -- 2.39.2