Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp533999iob; Wed, 18 May 2022 07:31:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE/sirfOaighWxWBJEQK/uzdVbVEeXDSyBcV337MJZtPxeIW2J+DSuYWH+gN0+5a1HOssH X-Received: by 2002:a17:903:2310:b0:15e:a944:aa52 with SMTP id d16-20020a170903231000b0015ea944aa52mr27876499plh.49.1652884277755; Wed, 18 May 2022 07:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652884277; cv=none; d=google.com; s=arc-20160816; b=KNq4PdgDJEPQ64AhdBvK5rdO7d+SThGcAXlPd30kIbCpmLCllzDp01sFfI+DRNmx+I +NA2r9mwFVP2QZvBm5N2ec6qtltTML9OHEcoZaG7LzZJSKUl21gU11vZZX/y50sO3Lfm H9DgIO7Qt0llE5iON0P5sQUv7k764hdTvaynvacXWirCo6gZv/B1ax0gcCdEjSQ1C9SC jcSxVlZ7K1mAKNoBrulsQdVOEHNXW2VnkkbCSx7YKCK0+k4bAVG7h2Uz83xXG5gUkIWA Es4nrtgr++oG9wjN4ngDRYAcDkMdg5FxWu+MPP4Gh4w5/k06p18Pz+gEyE0MSYdyxsdM iUJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=f2asfCeFU8cxuqhZ8P9yqC7YEl+u0MhBiTAzL9Svh7A=; b=W56CSAjvEkSyjO8PZpJpISvjrbIamBz2XoJir9+fQ+spfd5bbgUkEZptIhsW9n6MN0 haRnQ8ZVNYJgTmCe8zOeI+jUHtlkWyoyQ4swC5n3FDcjXrD2ONhRDBZulsxYQJc08RGW 9AokoRwEgN2clk6r4NreOVFYZmVrAe13IaOt+UkQFFRF/HwpifMIcIZ4RKr0Y+2uATRU rkto46XgqtA1+DdRMHuQnRcTc1OQ1zmsk0+M6nJm4oYQ8Dqj8iC+JMpFeBSs0JyFcZw7 arIJpGpvWNTQwzMIIYq0KEplXWuOeyhxYVqHQy+2WQ3sXkf2AX5DKmUKuP7JN0k2DGLy pIVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GmR8tJF+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e88-20020a17090a6fe100b001dc672ec8e8si6223386pjk.29.2022.05.18.07.31.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 07:31:17 -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 header.i=@gmail.com header.s=20210112 header.b=GmR8tJF+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 21078AF33F; Wed, 18 May 2022 07:28:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238575AbiERO2r (ORCPT + 99 others); Wed, 18 May 2022 10:28:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238563AbiERO2p (ORCPT ); Wed, 18 May 2022 10:28:45 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E3D4AE272; Wed, 18 May 2022 07:28:44 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id p22so3926937lfo.10; Wed, 18 May 2022 07:28:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f2asfCeFU8cxuqhZ8P9yqC7YEl+u0MhBiTAzL9Svh7A=; b=GmR8tJF+da69/ciqhoEMUlRXNwY1NUWXLCdla2Iu0ylQrvgqJoaWgHVOQj0I/BO/Yt nP4pPV2Kh56+9lbMh47i6yH9vGRnw2GTipLOgIx+vR+o1Z19nkbhutn80ixKS4ga71jK A+ydg7x70pVAreJc50GlbW+OwN4b1u438Z94tANm2MAVc58md+nH8YLzs76lB2twLY0D 0bjCE4/cf9hyv05pUsTplflbdMB6BwJCjDvEXdlQ5+2eCdzPFvSK51qLn+aQF9t0mpAp H2KU6PUOJmea42Z4FOKIZhF2ehzOT0AGgCkSpXpTU+CqqcJKgs/va/ovxPFOCXf81M73 bWlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=f2asfCeFU8cxuqhZ8P9yqC7YEl+u0MhBiTAzL9Svh7A=; b=36Ii1TxGVGh/ouMaNsYieULjVjiwS7xN7gErghLFGIgGfxNL+Ejrfwfbt9Ldv3E51x aVkEDT+uUmJoGk8PTfmtfH62E6HSRDmHVOaLHEqPEWQ9H6dOPu+DpM1NwEEIOT+YK+YP TqRjyoCl/Y6iDKEl9YgwuD5GpE2cu9wbIk8PpxyJBaouxPZncwUowezEH5qvPTWgY8RP XAD5XJ2pj1MJwtQF5zoITWQMXqwpqRRPRNjkOtND5L4IsE3eXX/Gnlnlka1adSF9z8k/ KAz1Ib3oWHUzDbXDNyxfnq4qZv+GvCQxnAJoGV1Xo16VCz2kd1TipMpdKAzb8pCkhXzX olrw== X-Gm-Message-State: AOAM532Dv1qZhEvYIH53LG0MiG2JfR2iIj2A8vpePoTTKkBl0RpmP2JO i4A2KpFKE97hHK0rgKrPhkgtGFc+Cj3YneSIkTg= X-Received: by 2002:a19:8c1a:0:b0:472:315:48db with SMTP id o26-20020a198c1a000000b00472031548dbmr20359645lfd.235.1652884122909; Wed, 18 May 2022 07:28:42 -0700 (PDT) MIME-Version: 1.0 References: <20220516115846.58328-1-max.oss.09@gmail.com> <20220516115846.58328-12-max.oss.09@gmail.com> In-Reply-To: From: Max Krummenacher Date: Wed, 18 May 2022 16:28:31 +0200 Message-ID: Subject: Re: [PATCH v1 11/17] ARM: dts: imx6q-apalis: Add ov5640 mipi csi camera To: Fabio Estevam Cc: Max Krummenacher , Oleksandr Suvorov , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 Fabio On Tue, May 17, 2022 at 8:28 PM Fabio Estevam wrote: > > Hi Max, > > On Mon, May 16, 2022 at 8:59 AM Max Krummenacher wrote: > > > + ov5640_csi_cam: ov5640_mipi@3c { > > + compatible = "ovti,ov5640"; > > Does it make sense to describe the ov5640 camera in the Apalis SoM dtsi? > > The camera is not populated in the SoM. What if the customer baseboard > uses a different camera? > > The same applies to the adv720 description. We moved to a pattern where we do describe the 'Toradex' peripherals in the SoM dtsi but keep their status disabled. Then if the peripheral is on the carrier board we only have to enable it in the carrier board dts, for peripherals attached to the carrier boards (e.g. like the cameras) we enable it in device tree overlays. This did reduce code duplication a lot. A customer who attaches a different camera would add its camera node in its device tree or overlay and keep the ov5640 or adv7280 nodes disabled. So I would rather not change anything here. Max