Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8599456rwp; Wed, 19 Jul 2023 12:14:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlHhgpGtkqQ92HjT7PYWm5O63sJe07YHhHpnftRxuNHf5sgB7s1qzs++8oumbi/mUEq2FggD X-Received: by 2002:a17:902:da92:b0:1b8:525a:f685 with SMTP id j18-20020a170902da9200b001b8525af685mr18169501plx.37.1689794073024; Wed, 19 Jul 2023 12:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689794073; cv=none; d=google.com; s=arc-20160816; b=pRkN0ELYENKpbxLPA97ZtJZHMOi4L/cOUP6kx4GEeb8UukzCz/7EdRVNFYwtp5coHs CATJbn/3aEVl8GCoIXwVFF/RK5bBiIKXNgZA4onkoEoxTg5SEC1calrlwsRR2eYhwMWO KPpbsxgBkPEhO8nDV2ZxAFoXEeYUtMpdS/73ryl/f6RaRSCBcrF76WnRclq6iCIg5T/y ahG8+LFjLKTU1lqOTzwQi8u3KO3NdU47istqyK4x8qdymH6KgmrO/01nv5jy/t5b+Z7G w2mlQizUkpyGecvBC/yXNgVAyxvLoHD5OfseTKNBP+ATRNLg1LSjzF/jD8f7YxxWyCBd 9iXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=dO/Ro82esZ77c8U9Ji2AYs62+OJdWI2aXZlK6bvNYHg=; fh=frxnrA+DWd3HX5AI8FLdG0VfNuegKKI84r17X0zmzzs=; b=JGu03c9V44eCJ1PijpCHhPQemm1J1FMIJECEC4OCQeVqKuBkJ7kp86CzGp3ypBpGM2 UpxNgyEPSFSGhE6AJVwqmW4VLMBXFtAFePNLfhBcud3oegInFBVsKjSJ6bAmUBcu2qJz olmepNvaN/E/t2S4RYxLjPZqGjUhJ2WxzM6gsI9Bk/hPC/WeIsFfDmQe9CH65IUWT+dU b8ZYzs7FXQNCYD3dxMjM6M/fry/Fs/pxwQAQG9Hd8e6gATL6qauF6etnA8Quk8drXv2j XTz48NiRpI8QcY0YziKoAPP3Xgzu7YPYaRTrerUrj0g5qKGXHI8+jYTOcelyb4R/iH91 8KFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=U3KBhCNE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k18-20020a170902c41200b001bb377f8c8bsi4255657plk.2.2023.07.19.12.14.20; Wed, 19 Jul 2023 12:14:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=U3KBhCNE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229571AbjGSS5y (ORCPT + 99 others); Wed, 19 Jul 2023 14:57:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230478AbjGSS5w (ORCPT ); Wed, 19 Jul 2023 14:57:52 -0400 Received: from mail-oa1-x31.google.com (mail-oa1-x31.google.com [IPv6:2001:4860:4864:20::31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C7041BF6; Wed, 19 Jul 2023 11:57:50 -0700 (PDT) Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-1b06777596cso5724644fac.2; Wed, 19 Jul 2023 11:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689793069; x=1692385069; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dO/Ro82esZ77c8U9Ji2AYs62+OJdWI2aXZlK6bvNYHg=; b=U3KBhCNE+sq9QfBOgAvwnyfdnuf1HZ7C3xQesvpESjpZH9B0LlM9cnnZLbzTDg6t4W mCinuYgj1G3I0hZy9eKMIgVxY+vr+rURl/6iKQaZ/FRSr8KIX77HbkUJeWApXmwGX1RM Mh4kLMMxTcWeFHnW4SLU8gOHQ4Kq0/R5yGlI/BbcrleNr45AXtLXzAMUvwDCxf7+TnJl 6bTHOkI9OTo3JVD0xKMdZu1pQ6K6EqhX8/Hffl9Q4Ii3qg8g9W0kcQEPIXdccUr8VMl0 9NRJSbUeJyUzBMhjpJ+IsrZYp8yGtryiwEPcc94z1be/waXOMs+diSR7kJLkMU11qyjR jQOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689793069; x=1692385069; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dO/Ro82esZ77c8U9Ji2AYs62+OJdWI2aXZlK6bvNYHg=; b=SZsGyQJr6KjXHsT1ZjIrSg/ZMtl/oBRca3RCmqLuWzTGHZifpS7v/x0nesTA1e1TMN h6F1Jng2DVKNJ8/rRws6mOJLfpLpKeUHZgJDsj44KOU8hxxODH7eKnlkCQAV1HtiqftQ AwBtDC8HXAg69QvzUUXX/UKR+IBIRoUBxZFPE3DV00DYrNm9xI0y9UUCtbMXrmfuJY2e ljQAYWKdMVqca/2WUftt1p/9D7So3/abrKezS/MNu9I1u25ulNeS3v5jKYfdlxzQMlTh 0ML8nAm5+AhSukFIGzE0QF5t55ixJUGywqpBUXtxXCvl1WxRDvnOgqKEvLVHFM1gwaa6 F5NA== X-Gm-Message-State: ABy/qLYgfCkEZmk0eidixz3ZcAE43KzwQKWAntnPadoN2n819tU/YQCj /54nr1CBCIuMdtIu//7HoPIxeYDntLQxAsH9oN4= X-Received: by 2002:a05:6870:b6a5:b0:1ba:b9ae:8d2c with SMTP id cy37-20020a056870b6a500b001bab9ae8d2cmr5670110oab.41.1689793069132; Wed, 19 Jul 2023 11:57:49 -0700 (PDT) MIME-Version: 1.0 References: <20230719160048.2737423-1-james.hilliard1@gmail.com> <03748443-0459-c925-ce76-33ec134a303d@linaro.org> In-Reply-To: <03748443-0459-c925-ce76-33ec134a303d@linaro.org> From: James Hilliard Date: Wed, 19 Jul 2023 12:57:36 -0600 Message-ID: Subject: Re: [PATCH 1/2] ARM: dts: imx6qdl: Add Variscite VAR-SOM-MX6 SoM support To: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, Gregory CLEMENT , Arnd Bergmann , Olof Johansson , soc@kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 19, 2023 at 11:16=E2=80=AFAM Krzysztof Kozlowski wrote: > > On 19/07/2023 18:00, James Hilliard wrote: > > This patch adds support for the Variscite VAR_SOM-MX6 SoM with : > > - i.MX6 Quad or Dual Lite SoC > > - 256 =E2=80=93 4096 MB DDR3 > > - 4-64 GB eMMC > > - 128 =E2=80=93 1024 MB SLC NAND > > - Camera Interface > > - HDMI+CEC interface > > - LVDS / DSI / Parallel RGB interfaces > > - Ethernet RGMII interface > > - On-SoM Wi-Fi/Bluetooth with WiLink wl183x SDIO Module > > - SD/MMC/SDIO interface > > - USB Host + USB OTG interface > > - I2C interfaces > > - SPI interfaces > > - PCI-Express 2.0 interface > > - on-SoM Audio Codec with HP/Line-In interfaces + DMIC interface > > - Digital Audio interface > > - S/PDIF interface > > > > Product website : https://www.variscite.com/product/system-on-module-so= m/cortex-a9/var-som-mx6-cpu-freescale-imx6/ > > > > Support is handled with a SoM-centric dtsi exporting the default interf= aces > > along the default pinmuxing to be enabled by the board dts file. > > > > This file is based on the one provided by Variscite on their own > > kernel, but adapted for mainline. > > > > Signed-off-by: Gregory CLEMENT > > Signed-off-by: James Hilliard > > --- > > arch/arm/boot/dts/imx6qdl-var-som.dtsi | 547 +++++++++++++++++++++++++ > > 1 file changed, 547 insertions(+) > > create mode 100644 arch/arm/boot/dts/imx6qdl-var-som.dtsi > > > > diff --git a/arch/arm/boot/dts/imx6qdl-var-som.dtsi b/arch/arm/boot/dts= /imx6qdl-var-som.dtsi > > new file mode 100644 > > index 000000000000..e93dae59624e > > --- /dev/null > > +++ b/arch/arm/boot/dts/imx6qdl-var-som.dtsi > > @@ -0,0 +1,547 @@ > > +// SPDX-License-Identifier: GPL-2.0+ > > +/* > > + * Support for Variscite VAR-SOM-MX6 Module > > + * > > + * Copyright 2011 Linaro Ltd. > > + * Copyright 2012 Freescale Semiconductor, Inc. > > + * Copyright (C) 2014-2016 Variscite, Ltd. > > + * Author: Donio Ron > > + * Copyright 2022 Bootlin > > + */ > > + > > +/dts-v1/; > > + > > +#include "imx6q.dtsi" > > +#include > > +#include > > +#include > > + > > +/ { > > + model =3D "Variscite i.MX6 QUAD/DUAL VAR-SOM-MX6"; > > + compatible =3D "fsl,imx6q"; > > That's not correct compatible. It's not Imx6 soc. It's a som. I'm confused, AFAIU the VAR-SOM-MX6 uses an imx6q SoC. > > > +... > > + > > + sound: sound { > > + compatible =3D "simple-audio-card"; > > + simple-audio-card,name =3D "var-som-audio"; > > + simple-audio-card,format =3D "i2s"; > > + simple-audio-card,bitclock-master =3D <&sound_codec>; > > + simple-audio-card,frame-master =3D <&sound_codec>; > > + simple-audio-card,widgets =3D "Headphone", "Headphone Jac= k", > > + "Line", "Line In", "Microphon= e", "Mic Jack"; > > + simple-audio-card,routing =3D "Headphone Jack", "HPLOUT", > > + "Headphone Jack", "HPROUT", > > + "LINE1L", "Line In", > > + "LINE1R", "Line In"; > > + > > + sound_cpu: simple-audio-card,cpu { > > + sound-dai =3D <&ssi2>; > > + }; > > + > > + sound_codec: simple-audio-card,codec { > > + sound-dai =3D <&tlv320aic3106>; > > + clocks =3D <&clks IMX6QDL_CLK_CKO>; > > + }; > > + }; > > + > > + wlan_bt_rfkill { > > No underscores in node names. > > Just "rfkill" > > > > + compatible =3D "rfkill-gpio"; > > + name =3D "wlan_bt_rfkill"; > > + type =3D <2>; /* bluetooth */ > > + gpios =3D <&gpio6 18 GPIO_ACTIVE_HIGH>; > > + }; > > +}; > > + > > ... > > > + tlv320aic3106: codec@1b { > > + compatible =3D "ti,tlv320aic3106"; > > + reg =3D <0x1b>; > > + #sound-dai-cells =3D <0>; > > + DRVDD-supply =3D <®_3p3v>; > > + AVDD-supply =3D <®_3p3v>; > > + IOVDD-supply =3D <®_3p3v>; > > + DVDD-supply =3D <®_3p3v>; > > + ai3x-ocmv =3D <0>; > > + reset-gpios =3D <&gpio4 5 GPIO_ACTIVE_LOW>; > > + ai3x-gpio-func =3D < > > + 0 /* AIC3X_GPIO1_FUNC_DISABLED */ > > + 5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */ > > + >; > > + }; > > +}; > > + > > +&iomuxc { > > + pinctrl-names =3D "default"; > > + pinctrl-0 =3D <&pinctrl_hog>; > > + > > + imx6qdl-var-som-mx6 { > > + pinctrl_hog: hoggrp { > > + fsl,pins =3D < > > + /* CTW6120 IRQ */ > > + MX6QDL_PAD_EIM_DA7__GPIO3_IO07 0= x80000000 > > + /* SDMMC2 CD/WP */ > > + MX6QDL_PAD_KEY_COL4__GPIO4_IO14 0= x80000000 > > + MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0= x80000000 > > + >; > > + }; > > + > > + pinctrl_audmux: audmux { > > It does not look like you tested the DTS against bindings. Please run > `make dtbs_check` (see > Documentation/devicetree/bindings/writing-schema.rst or > https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sou= rces-with-the-devicetree-schema/ > for instructions). > > AFAIR, all of them end with grp Ah, that's def throwing a bunch of warnings, although quite a few look to be existing issues in dependent dtsi files. I'll clean up what I can there. > > > ... > > > + > > +&usdhc3 { > > + pinctrl-names =3D "default", "state_100mhz", "state_200mhz"; > > + pinctrl-0 =3D <&pinctrl_usdhc3>; > > + pinctrl-1 =3D <&pinctrl_usdhc3_100mhz>; > > + pinctrl-2 =3D <&pinctrl_usdhc3_200mhz>; > > + bus-width =3D <4>; > > + vmmc-supply =3D <®_wl18xx_vmmc>; > > + non-removable; > > + wakeup-source; > > + keep-power-in-suspend; > > + cap-power-off-card; > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + status =3D "okay"; > > + > > + wlcore: wlcore@0 { > > Generic node names. Is this wifi? I think it also supports bluetooth technically, although that might be under a different node. > > https://devicetree-specification.readthedocs.io/en/latest/chapter2-device= tree-basics.html#generic-names-recommendation > > > + compatible =3D "ti,wl1835"; > > + reg =3D <2>; > > > Best regards, > Krzysztof >