From mboxrd@z Thu Jan 1 00:00:00 1970 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 6DA3CC27C53 for ; Mon, 17 Jun 2024 01:51:49 +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:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yjhnsYCfAeoBAabQvKZBv+okYUIYqBnLVfnV+eVmD54=; b=p0nlNC1103jHxa3PQ71FebVwaB doEZj3k5vuHWOYNRYZQ5Z0wVbTUD7ot2NWxymVC4gzZ0oO6Pn/iMrZdTLG2YZTqiVNqJ8aRDK4w9a q2+9/aoDvy/Hw0mqOucaDNJ0NacKH/3TiHkKqQEVQpOZ+2J8XqssNzz16m28f99vEnKGjiERjiBha DctJpQA4LPS9IXhN0ZqSGGQ1V+WIQ7/R5v4X8DEtowR0BjaDZXuHeRWijRIuAU6LriUo1Sknz3A/B qaeSuHEgF2eQ6dTB6PvsRWGJRov8CM9X3bQQmPwNASLLUPhB7ffTNEtmL95JLbu9xE1eRkd32JDCd 8khM9oCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ1Wv-00000008lau-31B0; Mon, 17 Jun 2024 01:51:33 +0000 Received: from mail-177131.yeah.net ([123.58.177.131]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ1Wr-00000008lZN-1RZa for linux-arm-kernel@lists.infradead.org; Mon, 17 Jun 2024 01:51:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yeah.net; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version: Content-Type; bh=yjhnsYCfAeoBAabQvKZBv+okYUIYqBnLVfnV+eVmD54=; b=ZIR0v1lICYJG3iQZmi9ehNMCButpVAOYVX2BJCxyciLhVEcCLlGUH032xYs8+u gQSL8KEfAEvhaTjKqWLppanByLvwe9JnttAJdWBFqXeFnhBNBUsYAODFwJEftq4s LKf/QXGKg0utTFt4oF2QB/4CQjrF92w+WjdhvtBPZtwTs= Received: from dragon (unknown [114.216.76.201]) by smtp1 (Coremail) with SMTP id ClUQrAD3XfqYlm9mFcsLCA--.41569S3; Mon, 17 Jun 2024 09:51:21 +0800 (CST) Date: Mon, 17 Jun 2024 09:51:20 +0800 From: Shawn Guo To: Michael Walle Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Li Yang , Pengutronix Kernel Team , Fabio Estevam , Priit Laes , Michael Grzeschik , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Marco Felsch , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 13/13] ARM: dts: imx6qdl-kontron-samx6i: add actual device trees Message-ID: References: <20240606090206.2021237-1-mwalle@kernel.org> <20240606090206.2021237-14-mwalle@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240606090206.2021237-14-mwalle@kernel.org> X-CM-TRANSID: ClUQrAD3XfqYlm9mFcsLCA--.41569S3 X-Coremail-Antispam: 1Uf129KBjvJXoW3JF15ZFy8Zw4Utr1fAF18Krg_yoWxGFy7pa s7GFsxWF4xCw1xK34DXryUKF4UAw4DCasI9rn8Ja40yFZ7u3ZrGr9akw15C3W5Jrs5Cw43 KF92vr1xtwsrXaUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jf6pPUUUUU= X-Originating-IP: [114.216.76.201] X-CM-SenderInfo: pvkd40hjxrjqh1hdxhhqhw/1tbiDhkBZVszYrt7JgAAsf X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240616_185129_796248_D057B54D X-CRM114-Status: GOOD ( 16.58 ) 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 On Thu, Jun 06, 2024 at 11:02:06AM +0200, Michael Walle wrote: > 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 | 148 ++++++++++++++++++ > 4 files changed, 174 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..15a87ee4159d > --- /dev/null > +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i-ads2.dtsi > @@ -0,0 +1,148 @@ > +// 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>; > + }; > + }; > + > + reg_codec_mic: regulator-codec-mic { > + compatible = "regulator-fixed"; > + regulator-name = "V_3V3_MIC"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-always-on; > + regulator-boot-on; > + }; > + > + reg_codec_1p8v: regulator-codec-1p8v { > + compatible = "regulator-fixed"; > + regulator-name = "V_1V8_S0_CODEC"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-always-on; > + regulator-boot-on; > + }; > +}; > + > +&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>; compatible reg spi-max-frequency (generic properties) m25p,fast-read (device or vendor specific ones) > + }; > +}; > + > +&fec { > + status = "okay"; > +}; > + > +&i2c1 { > + status = "okay"; > + > + wm8904: audio-codec@1a { > + #sound-dai-cells = <0>; > + compatible = "wlf,wm8904"; > + reg = <0x1a>; Move #sound-dai-cells here? Shawn > + clocks = <&clks IMX6QDL_CLK_CKO2>; > + clock-names = "mclk"; > + AVDD-supply = <®_codec_1p8v>; > + CPVDD-supply = <®_codec_1p8v>; > + DBVDD-supply = <®_codec_1p8v>; > + DCVDD-supply = <®_codec_1p8v>; > + MICVDD-supply = <®_codec_mic>; > + }; > +}; > + > +&i2c3 { > + eeprom@57 { > + compatible = "atmel,24c64"; > + reg = <0x57>; > + pagesize = <32>; > + }; > +}; > + > +&pcie { > + status = "okay"; > +}; > + > +&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 >