Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2137421pxb; Fri, 25 Mar 2022 11:45:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxs6H/a6Fv/TshQDqjN7xpNUsv8vmBmdlCI8wGFeePD97DZvg12LPfFA1E+h2TFvcEM8IvI X-Received: by 2002:aa7:943a:0:b0:4f6:adc9:d741 with SMTP id y26-20020aa7943a000000b004f6adc9d741mr11615848pfo.30.1648233929597; Fri, 25 Mar 2022 11:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648233929; cv=none; d=google.com; s=arc-20160816; b=OPaghETGv9pAvizY2YQtN9rolO5E+pK6Bmk+1rA4SbKOd5u314c2IPuEPmUqE2+di2 FJmudr12uG8a0ZzPPypbBh155yZuIJUd6ZC7zzUkzFFBA4QTN0RQM74ihXU0Hmo2gS+z Z1VDq7hJWkq7ZX0MUuY5brBnngJOCC8QMD58Iio+SXcNO1yAfXttYFp+7kTl40jaRH3N 9KrNHhQGO2gUjwSUP5c8NFh75ahs6dan7Wa3WS9qTG7b4jdpr0rRw4xDebMR2647nxiw eueTFceTCfSQ+1SWvx6qZi3BpXk+X9JOxD/RB8JlRsbTgrh9snf+NIM0ZIwJyX739nBW aGCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=A5H6BQUGCVpamk47XI6jHev3hsOpXHqFImmgKFrkMwI=; b=J1R2ULJQJfMI3cQUfDsTPhAVa6luyVsFjsSEAw/0pkxeF2kHz7ZLy5Sorr8n7DQPll RbK6juidP9q0nWMCOE5g6IDPZE7HCGs1WDRfwfdR/ECQRtwcojdLXhjq/XXXyG3WYAXr S212hNSslCkcjzruI/KyrNP8rvMiRxt2UShtYLBU4VoqSVQPR4x0lhZYKE340IEhqieT iP21zfVDl7SGo/aZWE+ZdlhHsUPi99h3bVTby3SPFSEyg5VDRNUwzl6lL59jEdfSlLBB WloyN12g37Hhq0URv5cMaJSU5b1M7VVHBiUagwGdzdzWCtpWH85Zv/5xil7dtQJnYJ4v K/Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=I0YchKv7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q7-20020a170902bd8700b00153b2d164d9si2861423pls.225.2022.03.25.11.45.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:45:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=I0YchKv7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A82C623BD0; Fri, 25 Mar 2022 11:00:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357002AbiCYJ2B (ORCPT + 99 others); Fri, 25 Mar 2022 05:28:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356988AbiCYJ1u (ORCPT ); Fri, 25 Mar 2022 05:27:50 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4488CF4B3; Fri, 25 Mar 2022 02:26:14 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 62E076F3; Fri, 25 Mar 2022 10:26:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1648200372; bh=AS/wpaAKWRsKf+WeGQuXkWvU6L94Cr8Qvu0UZw2bIQw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=I0YchKv7OTxO2sq7+JzsGV261s5wBNZNmEN5m1dXghJ/cdE76Q5iiysMyDe0dT5wm HrWr2uAD67sgEfyETWkASM+krLyAtITTvVRcJwnColft7DXOscZK+4afRijJpp41gd pe3xZzbJTnHC23swvKqD4Ur1MKG7fjCBCFo9bzq0= Date: Fri, 25 Mar 2022 11:26:10 +0200 From: Laurent Pinchart To: Marcel Ziswiler Cc: "linux-imx@nxp.com" , "aisheng.dong@nxp.com" , "reinhold.mueller@emtrion.com" , "frowand.list@gmail.com" , "alexander.stein@ew.tq-group.com" , "olof@lixom.net" , "tharvey@gateworks.com" , "shawnguo@kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kernel@pengutronix.de" , "arnd@arndb.de" , "s.hauer@pengutronix.de" , "robh+dt@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "festevam@gmail.com" , "alexandru.marginean@nxp.com" Subject: Re: [PATCH v2 3/3] arm64: dts: freescale: add initial support for verdin imx8m plus Message-ID: References: <20220323143600.170778-1-marcel@ziswiler.com> <20220323143600.170778-4-marcel@ziswiler.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Marcel, On Fri, Mar 25, 2022 at 08:17:18AM +0000, Marcel Ziswiler wrote: > On Fri, 2022-03-25 at 01:06 +0200, Laurent Pinchart wrote: > > On Wed, Mar 23, 2022 at 03:36:00PM +0100, Marcel Ziswiler wrote: > > > From: Marcel Ziswiler > > > > > > This patch adds the device tree to support Toradex Verdin iMX8M Plus [1] > > > a computer on module which can be used on different carrier boards. > > > > > > The module consists of an NXP i.MX 8M Plus family SoC (either i.MX 8M > > > Plus Quad or 8M Plus QuadLite), a PCA9450C PMIC, a Gigabit Ethernet PHY, > > > 1, 2, 4 or 8 GB of LPDDR4 RAM, an eMMC, a TLA2024 ADC, an I2C EEPROM, an > > > RX8130 RTC, an optional I2C temperature sensor plus an optional > > > Bluetooth/Wi-Fi module. > > > > > > Anything that is not self-contained on the module is disabled by > > > default. > > > > > > The device tree for the Dahlia includes the module's device tree and > > > enables the supported peripherals of the carrier board. > > > > > > The device tree for the Verdin Development Board includes the module's > > > device tree as well as the Dahlia one as it is a superset and supports > > > almost all peripherals available. > > > > > > So far there is no display functionality supported at all but basic > > > console UART, USB host, eMMC and Ethernet functionality work fine. > > > > > > [1] https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-plus > > > > > > Signed-off-by: Marcel Ziswiler > > > Reviewed-by: Laurent Pinchart > > > Tested-by: Laurent Pinchart > > > > > > --- > > > > > > Changes in v2: > > > - Fix capitatlisation of verdin in comments as reported by Laurent. > > > - Add/modify todo comments as suggested by Laurent. > > > - Add Laurent's reviewed- and tested-by tags. > > > > > >  arch/arm64/boot/dts/freescale/Makefile        |    4 + > > >  .../dts/freescale/imx8mp-verdin-dahlia.dtsi   |  129 ++ > > >  .../boot/dts/freescale/imx8mp-verdin-dev.dtsi |   44 + > > >  .../imx8mp-verdin-nonwifi-dahlia.dts          |   18 + > > >  .../freescale/imx8mp-verdin-nonwifi-dev.dts   |   18 + > > >  .../dts/freescale/imx8mp-verdin-nonwifi.dtsi  |   54 + > > >  .../freescale/imx8mp-verdin-wifi-dahlia.dts   |   18 + > > >  .../dts/freescale/imx8mp-verdin-wifi-dev.dts  |   18 + > > >  .../dts/freescale/imx8mp-verdin-wifi.dtsi     |   82 + > > >  .../boot/dts/freescale/imx8mp-verdin.dtsi     | 1373 +++++++++++++++++ > > >  10 files changed, 1758 insertions(+) > > >  create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi > > >  create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-dev.dtsi > > >  create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi-dahlia.dts > > >  create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi-dev.dts > > >  create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-nonwifi.dtsi > > >  create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi-dahlia.dts > > >  create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi-dev.dts > > >  create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin-wifi.dtsi > > >  create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi > > > > [snip] > > > > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mp- > > > verdin.dtsi > > > new file mode 100644 > > > index 000000000000..8cad1d865720 > > > --- /dev/null > > > +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi > > > @@ -0,0 +1,1373 @@ > > > > [snip] > > > > > +/* Verdin I2C_2_DSI */ > > > +&i2c2 { > > > +       clock-frequency = <10000>; > > > > Did you really mean 10kHz here, not 100kHz ? > > Yes, we really saw issues with certain displays/screens in the past. I mean, it's not like reading a few bytes > off a DDC/EDID at such low-speed makes much of a difference time-wise. So we rather avoid issues. Anyway, could > easily be overridden in a custom carrier board device tree should that I2C bus be used for something where > speed might matter. Adding a comment to explain this issue may be useful. > > > +       pinctrl-names = "default", "gpio"; > > > +       pinctrl-0 = <&pinctrl_i2c2>; > > > +       pinctrl-1 = <&pinctrl_i2c2_gpio>; > > > > Shouldn't you also specify scl-gpios and sda-gpios, like for the other > > I2C buses ? > > Yes, working on the Verdin iMX8M Mini update patch set of late and comparing stuff I also just discovered that > one yesterday. Will send a v3 shortly. Thanks! > > > > + > > > +       atmel_mxt_ts_mezzanine: touch-mezzanine@4a { > > > +               compatible = "atmel,maxtouch"; > > > +               /* Verdin GPIO_3 (SODIMM 210) */ > > > +               interrupt-parent = <&gpio1>; > > > +               interrupts = <5 IRQ_TYPE_EDGE_FALLING>; > > > +               reg = <0x4a>; > > > +               /* Verdin GPIO_2 (SODIMM 208) */ > > > +               reset-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; > > > +               status = "disabled"; > > > +       }; > > > +}; > > > > [snip] -- Regards, Laurent Pinchart