Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp42916rdh; Sat, 23 Sep 2023 00:20:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFG1dF+kWCJLhQAXd8rZG3IO6RvAsio53ZJQkBzSMjgJeWmst220KzACyWdSuKU9EtQxD4N X-Received: by 2002:a05:690c:d1d:b0:59b:52d6:9a34 with SMTP id cn29-20020a05690c0d1d00b0059b52d69a34mr2195753ywb.11.1695453607486; Sat, 23 Sep 2023 00:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695453607; cv=none; d=google.com; s=arc-20160816; b=NFJDDxbyDpQgNMOzccUycAj3IhgbUEKEM282U5s13sEIlpQImoRB5G+7KgV5NgMDAS viU5znXdnp2dFcU6AanOW02biUBgL31xScyWJrD/e8V4OtL9Hkjyd3wyzloO5ZoFBXd7 DxiB79dbf/9/Jgs1mTcwaaed+N4RmGzEJsLEKYTT+Sd0W7Vuox5WknljqXua6ds4UHo0 fWfv3FL7RwU46tkfkniuGfbrtjKojawmJyyuv9xnBwsb3sUzeJZi9kxLPqWQxbASztCi y53APLyqFIh8pkG9NFArWoSLZM2hgtkqtYkZ/4pjVVEEPoQSze3YJwcp26t/AHbnw1Gj CHqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vPmLiR5IgzcGCz2TB0wzW8FJ1Dhj+kYM5aO45oGXNRQ=; fh=BRdz847yFkkBU2OANiDE/eBBn63iC61VzxNEUlilaOM=; b=e9yUO1kyajTO5VpNnvDLqBe5CC9oBEWGB9o5jb7D7Z9PAHyEnujfmYg5w0u//qW3Fh WUx7J+2TuIf3BStLm12TNtNKuZy33aXepzdWmdsw/07DOd3iiR/T+6mqQAQqBKY06gpW 7fsIYC2mjECtTm/qh7CCRfjZP0CSqXUlebCZ0/GtNig6CXopgnmN3ehxgsG0J9ZHPDlg /+ccBEyl7Efc/ayk76DISuAzUW1f4Oyh/NJiYtqrTScrdhEyIzIwxZgsPueJL96HmJPy T9yBFLF0D5SGreCBaN9sUr8zVPpgbmh3qCgw/SQRTb31juhYgclwVY3V5T8aDyiyRXAn bPHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nSB1CsWm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id a5-20020a17090abe0500b00276c22ca6a4si7725313pjs.147.2023.09.23.00.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 00:20:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nSB1CsWm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 933D583C0ECB; Fri, 22 Sep 2023 14:13:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229864AbjIVVNR (ORCPT + 99 others); Fri, 22 Sep 2023 17:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbjIVVNP (ORCPT ); Fri, 22 Sep 2023 17:13:15 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8732C6 for ; Fri, 22 Sep 2023 14:13:08 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-31f737b8b69so2429763f8f.3 for ; Fri, 22 Sep 2023 14:13:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695417187; x=1696021987; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vPmLiR5IgzcGCz2TB0wzW8FJ1Dhj+kYM5aO45oGXNRQ=; b=nSB1CsWmz1w4s1bKUvSxc0V/DySavsCqx3d92MTj09nuuHs8qInl9+oaQ6MdLWr3lA a80K2j6gco0pwbK1Hdc0aEg6LsvVf8VFed2monujUv9oANQyNtcD8SqE4//nJbCa5bF+ 626ejkyKyt+g8qstDRVmZK9r0J1WOwyMqzy2JAZx47WzWiEyLCQ+F4Fycu10PwU1kN8o ZouguGEUUtch01pljVEXHjCb7M3Z5orNWpsVzvPp0785vCBNETQZ/zlp02Xw00UQgQY6 BN3IlSn4JO+o+YkMK2s9FCFnEV7eS9ADUWZulN+Fp16Bksyu/c8rMXho0SMNyb1DmchR DhfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695417187; x=1696021987; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vPmLiR5IgzcGCz2TB0wzW8FJ1Dhj+kYM5aO45oGXNRQ=; b=NaGSgmA3QCLi1C1L7dJ3rGipFvihe8vrgHLEkyfxBm1Iem+g+UxMA2nTMYxcec8AqI p5L85pt16gwDOA6/2OFkMQP8C2UGHccIcLoK9yCFhTCZyYa7qJwAVmgF6qX04NMpl1nK t9hOlZp7kdbInBnUPtUdxglWGneNORdBJUlqbndCmXqq+J9XB6a6zbeKGpj+d+WRr0m2 e2O12IrViDbM24oqOAb+5ThlPsGSD/tjuHUZWphH7HPjPGbulJ4sHJcloAXEsYqsRb5y wA2LuIWdGjF1Owdzj9NbfYBev3CxdQMjRs2BKINT1R8mIjSEEbqkB5CwDDilSjQVq7JJ d8dw== X-Gm-Message-State: AOJu0Yyb+SCrGjTfw2JgAY9Wi1ulxVhiDZ+Md3RjrqWl7Upe+wjmIlQo 8i35q7ue6exFTpEuSPd5Xee8Ng== X-Received: by 2002:adf:cd8f:0:b0:319:5677:f832 with SMTP id q15-20020adfcd8f000000b003195677f832mr680854wrj.62.1695417186634; Fri, 22 Sep 2023 14:13:06 -0700 (PDT) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id w7-20020adff9c7000000b0031912c0ffebsm5330097wrr.23.2023.09.22.14.13.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Sep 2023 14:13:06 -0700 (PDT) Message-ID: Date: Fri, 22 Sep 2023 22:13:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/2] arm64: dts: qcom: apq8016-sbc-d3-camera: Convert to DT overlay Content-Language: en-US To: Stephan Gerhold Cc: Bjorn Andersson , Andy Gross , Konrad Dybcio , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230922-apq8016-sbc-camera-dtso-v1-0-ce9451895ca1@gerhold.net> From: Bryan O'Donoghue In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 22 Sep 2023 14:13:17 -0700 (PDT) X-Spam-Level: ** On 22/09/2023 21:58, Stephan Gerhold wrote: > On Fri, Sep 22, 2023 at 09:47:07PM +0100, Bryan O'Donoghue wrote: >> On 22/09/2023 16:11, Stephan Gerhold wrote: >>> Follow the example of the recently added apq8016-sbc-usb-host.dtso and >>> convert apq8016-sbc-d3-camera-mezzanine.dts to a DT overlay that can be >>> applied on top of the apq8016-sbc.dtb. This makes it more clear that >>> this is not a special type of DB410c but just an addon board that can >>> be added on top. >>> >>> I also prepended a patch that cleans up the node names a bit. >>> >>> Signed-off-by: Stephan Gerhold >>> --- >>> Stephan Gerhold (2): >>> arm64: dts: qcom: apq8016-sbc-d3-camera: Use more generic node names >>> arm64: dts: qcom: apq8016-sbc-d3-camera: Convert to DT overlay >>> >>> arch/arm64/boot/dts/qcom/Makefile | 5 +++-- >>> ...nine.dts => apq8016-sbc-d3-camera-mezzanine.dtso} | 20 ++++++++++++++------ >>> 2 files changed, 17 insertions(+), 8 deletions(-) >>> --- >>> base-commit: 7236e86ce5c8198b01c30933c2334d07d877cf48 >>> change-id: 20230922-apq8016-sbc-camera-dtso-f247bea40f99 >>> >>> Best regards, >> >> db410c doesn't ship with a bootloader that is capable of applying a dtbo >> though, so this conversion mandates an updated or chainloaded bootloader or >> out-of-tree kernel patch to support. >> >> __adding__ is fine but, converting implies imposes a new requirement on the >> bootchain. >> >> Perhaps a middle road solution is to >> >> - Add, not convert a standalone dtbo or >> - Add a dtbo that includes the mezzanine dts but amends it >> >> Option 2 for preference but, I'm not sure the dts syntax can be meaningfully >> made to do that. >> > > With these patches the apq8016-sbc-d3-camera-mezzanine.dtb is still > magically built, by running fdtoverlay on apq8016-sbc.dtb and applying > the dtbo. It's applied during the build process so you don't need a > bootloader that supports DTBOs. > > There is literally *no change* for you in terms of usage. :-) Ah I see +apq8016-sbc-d3-camera-mezzanine-dtbs := apq8016-sbc.dtb apq8016-sbc-d3-camera-mezzanine.dtbo I guess I like the idea of having the base board dtb a mezzanine.dtb and a dtbo that could be applied as an overlay to the base board dtb, optionally. Our model then for mezzanine enablement wouild be 1. baseboard.dtb 2. baseboard-mezzanine.dtb 3. baseboard-mezzanine.dtbo With booting #2 or #1+#3 resulting in the same image but, potentially allowing for 1. baseboard.dtb 2. baseboard-mezzanine.dtb 3. baseboard-mezzanine.dtbo 4. baseboard-some-other-mezzanine.dtb 5. baseboard-some-other-mezzanine.dtbo #1 + #3 + #5 which would represent a hypothetical stacking of mezzanine boards. As a model, I think that has merit. Reviewed-by: Bryan O'Donoghue