Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3486895rwb; Mon, 5 Sep 2022 12:35:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR5S+ENTWH2oIajvmCm9T6dHeGiSq1BiyspN4CwXbCaFOgu24IjPJVZDYDrQrThjv8sBacah X-Received: by 2002:a17:902:9007:b0:176:9f9d:463 with SMTP id a7-20020a170902900700b001769f9d0463mr8965697plp.32.1662406508665; Mon, 05 Sep 2022 12:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662406508; cv=none; d=google.com; s=arc-20160816; b=d199h7DvHPmZ0ro0OlT3HuMhKd0vBl7wA/2MiFJRGTLrDoST6rVEjPSzOiqScrTnSl 39Hu+VqostnijDg1IOKP8mpZdqbRTTR+BB9GeF2X4tK3o7nypq43AH6jDaS58p2ljYMs wfkQD3Bk6dm/BA89wKtSoFO1U4QQ1aM13lwMNeXBl6mLEE1yPT8+sfSzNtQf+kFeiz5f Cc5nfSQ+9ldKnWBlJv+WBQmxXf5g3PhMWrIhxU5rnRWiGnZKERk0FPggRlkAkhBPgLXF AdZVjkJCaa9JN6KOwIivlzZvRNafZH+3D5mMnwW9W45/rsQW0gUGdZNEla0OiNG4f5wf JpPw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=K3i5t7QzjL46/Pv8OD9L8CQlOClcFcnW49nPEaaNwDU=; b=qKaeamV88a/yeBgasGvLSDx21yo8eZscNb5GRX5e51r6Nfm/vNWs1eNapgp6puaDxg fgxRyB5yWyUXti/FcheParvz+1naLBQSB6EhLvuL51DvMtKNgf4GVb1IDOO/X53tah2T NwJcleVnMy30BKY5t1Rrdm3rLefWzGu09c89wzkOybXkE5hCjTaGu9w6Y0Va6VG1IKWK u+dcKryK+DLvzN0WwLonPgZFwP7p5PzPsQHes6wxxh2ZlHTRIIFQHPc0EEi0A1LE0ynF C6xeSk5nuxF/+iazDDogwFPNH5XX6K9dZLOPX95OiQ6KVAjpDpbcN1qwxT6ZzKDgI6vr 9dyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=o+X+vJW8; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b2-20020a170902d50200b00174af35b07bsi509431plg.557.2022.09.05.12.34.57; Mon, 05 Sep 2022 12:35:08 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=o+X+vJW8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231583AbiIET10 (ORCPT + 99 others); Mon, 5 Sep 2022 15:27:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232042AbiIET1I (ORCPT ); Mon, 5 Sep 2022 15:27:08 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BF5A2A40A; Mon, 5 Sep 2022 12:26:32 -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 75CB26BC; Mon, 5 Sep 2022 21:26:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1662405989; bh=izZvMBjhr/bvNoYQGDtF2V3g+eGXqt7u558BOi7zzh4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o+X+vJW8hZaFFG6GuYfb8yA+ApbPr801obKPxgfofa5BhL0dumnOH/8rkgB+JFRdf a6RcVNtIShr2rQ9ifr+3TfCt0/OmkubtPNHf0OOshh950odmH/j0RY8m13X6Cb3MWl 4R7H4YRilHsKo+VuFBdldnshTX/Y7iB1TziRSBJ8= Date: Mon, 5 Sep 2022 22:26:14 +0300 From: Laurent Pinchart To: Francesco Dolcini Cc: Francesco Dolcini , Max Krummenacher , Max Krummenacher , Fabio Estevam , Krzysztof Kozlowski , Marcel Ziswiler , NXP Linux Team , Pengutronix Kernel Team , Philippe Schenker , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] arm64: dts: imx8mp-verdin: add dsi to hdmi functionality Message-ID: References: <20220901154051.1885509-1-max.oss.09@gmail.com> <20220902155720.GB5699@francesco-nb.int.toradex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Hi Francesco, On Sat, Sep 03, 2022 at 02:47:43PM +0200, Francesco Dolcini wrote: > On Sat, Sep 03, 2022 at 03:24:51AM +0300, Laurent Pinchart wrote: > > On Fri, Sep 02, 2022 at 05:57:20PM +0200, Francesco Dolcini wrote: > > > Hello Laurent, > > > answering here for both patches (1/2 and 2/2). > > > > > > On Thu, Sep 01, 2022 at 09:07:49PM +0300, Laurent Pinchart wrote: > > > > On Thu, Sep 01, 2022 at 05:40:50PM +0200, Max Krummenacher wrote: > > > > > From: Max Krummenacher > > > > > > > > > > Add the hdmi connector present on the dsi to hdmi adapter now > > > > > required by the upstream lontium bridge driver. > > > > > The dsi to hdmi adapter is enabled in an device tree overlay. > > > > > > > > Shouldn't the connector also be in the overlay ? There's certainly no > > > > physical HDMI connector on the i.MX8MP Verdin SoM :-) > > > > > > Toradex DTS include and overlay files structure so far has been a little > > > bit different and not following the expectation you just stated here, > > > you can just check the current *toradex*dts* files and you'll see that there > > > is other stuff that is not strictly part of the module. > > > > > > Copying from a previous email thread on a very similar discussion [0] > > > some of the reasons: > > > > > > - The SoM dtsi representing not only the functionality implemented into > > > the SoM, but the whole connector pinout to the carrier makes very easy > > > to just include a different som.dtsi in the carrier board dts and just > > > switch SoM, for example from a colibri-imx6 to a colibri-imx7. > > > > That's fine, but I don't see how that's related to the issue at hand. > > The DSI to HDMI bridge wouldn't be present on either SoM, would it ? > > > > > - We avoid code duplication > > > > > > This is working for us pretty well so far and the majority of the users > > > of ours modules rely on this structure, we would prefer not to change that. > > > > It may work for your current use cases, but it doesn't make it right :-) > > Most of engineering is about compromise, being consistent with what we > did so far and the end-user experience need to be taken into account. Sure, and so do mainline requirements :-) > > Someone can integrate a Verdin SoM with a carrier board that has no DSI > > to HDMI (or LVDS) bridge, there should thus be no such device in the > > device tree. The SoM has DSI signals present on its connector, that's > > what the SoM .dtsi should expose. > > Just for the record Verdin i.MX8M Plus do have both HDMI and LVDS on the > connector (in addition to DSI) [1], of course we do have also the option to > have LVDS or HDMI using an external add-on DSI bridge as this patches are > about. > > Said that it's true that sometime we describe peripherals that are part of the > SOM family into the SOM dtsi, this avoid quite a lot of duplications given the > amount of carrier board that are available on the market that use just the same > building blocks (and this was one of the 2 points I mentioned as a reasoning > for our current DTS files structure). If those "SoM family" peripherals are on the carrier board, what's the issue with describing them in the carrier board .dtsi ? And if they're on an add-on board (such as, if I understand correctly, the DSI to HDMI encoder for the Dahlia carrier board), what's the issue with describing them in an overlay ? > Of course, we keep these stuff disabled by default, so apart for some small size > increase I do not see a real issue. It's the same issue as adding any DT node for peripherals that do not exist, I fail to see a compelling reason to do so here, given that this seems to be easy to handle in the carrier board .dtsi or in overlays. Maybe I'm missing something ? > [1] https://docs.toradex.com/110977-verdin_imx8m_plus_v1.1_datasheet.pdf -- Regards, Laurent Pinchart