Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2202722rdb; Thu, 21 Sep 2023 11:19:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGscGSp5Cj3DKHn1VmkxpRQVlNTEuXEm1eo3GEk7ko9AHd4xQ3xFedbje7U29+Mb0n8aAfw X-Received: by 2002:a17:902:82c4:b0:1c4:20af:a01f with SMTP id u4-20020a17090282c400b001c420afa01fmr5631394plz.22.1695320377109; Thu, 21 Sep 2023 11:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695320377; cv=none; d=google.com; s=arc-20160816; b=myQUue+Sn/qj60FtLR8P8HJWrtOCXlR6k6ZEG2D47fwoWQUIO/2iSUPpJ83BGNHIu5 Y5oiKG4GV3SMei0Tw/jTWEE0kV/5JabrqAK/CV3XTlQDddwA3wSlgDe9OUn7qMm4VUsA uiJHVTSX2oAwrCyKctiMxNNXeWOfbDkmwZlqSmahVn62iAEHl0afqB3U6puTTHCDIAJJ 6KH33ftRWFQia2hvtyag4rCjf8IM75/L+WMYSgPtN05EqkHvf0Qu7AeqceaOrwkZn04i RFmSUAfG0O8K2CUna1ES2fhehfO23AhgOOivlGnDuay/KcgdYg/LMlM1DayieXhHtsJv MihQ== 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=6/GJjQtLFpd+gStgYu7A0gvvOf7zNE0w3Tqm78pGfJg=; fh=+if0QRJShryykmO3k/E7OAje1S41PzjFyB40Dhzj6Qg=; b=naRfMVVrOWDk3bVjsmU0g0BoWRfvYXiGvGrHIB84HqGOLQRgdROVu2Ela9WxAlFlIm PCOEcZGGa/AChzJ0xuqDMUBFpVfti2zIEzGfJCo0zALYlbJa5rPHAZXJGCNHHWdTXIUU I6uwWffvMEvYfP3l6u+12mOyD7lh2UfLYd7UrihBV8A+ylP5KDWRlJ2ZuyP66+Lqc1EF p3gussRgY3WSjq1Dt/Kginl1hGyHunRwOz9fTTdgxjHN1P7nZJXhhO5lxdELvyeOj354 9Len/Zl85z2pD8L55YKYryBa5ErFPEq43S6M3YKJHz0Krr20sNscvN41Isr1N0QKrDiT FAng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="hoaZm/Ix"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id a9-20020a170902ee8900b001bba879700fsi1841385pld.514.2023.09.21.11.19.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 11:19:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="hoaZm/Ix"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 25A6E82E10B2; Thu, 21 Sep 2023 11:18:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230001AbjIUSQB (ORCPT + 99 others); Thu, 21 Sep 2023 14:16:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230297AbjIUSP3 (ORCPT ); Thu, 21 Sep 2023 14:15:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E41B84F2E for ; Thu, 21 Sep 2023 10:37:44 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B630C4AF78; Thu, 21 Sep 2023 11:37:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695296254; bh=sLJ/l/n2ptddnatCSsMBpdcrW0dHjKWvBZR46GW7NXU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hoaZm/IxFhL5Qc7SzxCvw1a/BwOV0idneO6HYD8sekXuXT5sltwsCosABftZ0SOFs CzbOgBQmOlSffpzZrVjpHoBvWK120MFC4WW0o4zeWHvleGyeIgnidTnne8ch7AgWHs TJanr6xGnnVUs15YI0qHgW8HsPYvGXXnLa4tAurEmIn3Wh6WszUDPC3G/WhFnedyxp hNLD3vpddL2+QXSXaA5WMFC1FHqgwtEAqXsP5O9aMbkJEe8GMo9swz0DMV31iPWkny LySGFguK6lz00gux5IDKVdydoEe47DGjOLErKtX0r+T/WFeeJhv84zOZspK66hDdDW fjuA3Sn8PHrfg== Message-ID: <6f2b38f8-1962-46f2-a095-b1eaf99ed407@kernel.org> Date: Thu, 21 Sep 2023 14:37:29 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] arm64: dts: ti: am642-evm: Add overlay for NAND expansion card Content-Language: en-US To: Andrew Davis , Nishanth Menon Cc: vigneshr@ti.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, srk@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Siddharth Vadapalli References: <20230920133450.54226-1-rogerq@kernel.org> <20230920133450.54226-3-rogerq@kernel.org> <20230920135802.3ej2wcuaruqjidel@uncouth> <20230920164424.rrjvm6nvtv4ysyrw@unreal> From: Roger Quadros In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Thu, 21 Sep 2023 11:18:37 -0700 (PDT) On 20/09/2023 20:06, Andrew Davis wrote: > On 9/20/23 11:44 AM, Nishanth Menon wrote: >> On 18:18-20230920, Roger Quadros wrote: >>> >>> >>> On 20/09/2023 16:58, Nishanth Menon wrote: >>>> On 16:34-20230920, Roger Quadros wrote: >>>>> The NAND expansion card plugs in over the HSE (High Speed Expansion) >>>>> connector. Add support for it. >>>>> >>>>> Signed-off-by: Roger Quadros >>>>> --- >>>>>   arch/arm64/boot/dts/ti/Makefile               |   1 + >>>>>   arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso | 140 ++++++++++++++++++ >>>>>   2 files changed, 141 insertions(+) >>>>>   create mode 100644 arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso >>>>> >>>>> diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile >>>>> index 06d6f264f292..ece74085a6be 100644 >>>>> --- a/arch/arm64/boot/dts/ti/Makefile >>>>> +++ b/arch/arm64/boot/dts/ti/Makefile >>>>> @@ -29,6 +29,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb >>>>>     # Boards with AM64x SoC >>>>>   dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb >>>>> +dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-nand.dtbo >>>>>   dtb-$(CONFIG_ARCH_K3) += k3-am642-phyboard-electra-rdk.dtb >>>>>   dtb-$(CONFIG_ARCH_K3) += k3-am642-sk.dtb >>>>>   dtb-$(CONFIG_ARCH_K3) += k3-am642-tqma64xxl-mbax4xxl.dtb >>>> >>>> Also see https://lore.kernel.org/all/20230911165610.GA1362932-robh@kernel.org/ >>>> >>>> you may not get the dtbo installed when doing make dtbs_install >>>> >>>> [...] >>>> >>> >>> $ v8make dtbs_install INSTALL_DTBS_PATH=/tmp >>>    INSTALL /tmp/ti/k3-am625-beagleplay.dtb >>>    INSTALL /tmp/ti/k3-am625-phyboard-lyra-rdk.dtb >>>    INSTALL /tmp/ti/k3-am625-sk.dtb >>>    INSTALL /tmp/ti/k3-am625-verdin-nonwifi-dahlia.dtb >>>    INSTALL /tmp/ti/k3-am625-verdin-nonwifi-dev.dtb >>>    INSTALL /tmp/ti/k3-am625-verdin-nonwifi-yavia.dtb >>>    INSTALL /tmp/ti/k3-am625-verdin-wifi-dahlia.dtb >>>    INSTALL /tmp/ti/k3-am625-verdin-wifi-dev.dtb >>>    INSTALL /tmp/ti/k3-am625-verdin-wifi-yavia.dtb >>>    INSTALL /tmp/ti/k3-am62-lp-sk.dtb >>>    INSTALL /tmp/ti/k3-am62x-sk-hdmi-audio.dtbo >>>    INSTALL /tmp/ti/k3-am62a7-sk.dtb >>>    INSTALL /tmp/ti/k3-am62p5-sk.dtb >>>    INSTALL /tmp/ti/k3-am642-evm.dtb >>>    INSTALL /tmp/ti/k3-am642-evm-nand.dtbo >>> ^^^^ >>>    INSTALL /tmp/ti/k3-am642-phyboard-electra-rdk.dtb >>>    INSTALL /tmp/ti/k3-am642-sk.dtb >>> >>> >>> What did I miss? >> >> I missed it, actually. See Rob's comment: >> https://lore.kernel.org/all/CAL_Jsq+GR3hP6hFvFn2z5aXvSXnh9butD3aKZ-y_XJgx0_YPTw@mail.gmail.com/ >> >> Having orphan dtbo is apparently frowned upon >> > > And if you apply these overlays to the base DTB then it gets > symbols added automatically, no need for your patch [1/2] here. > Is this OK? k3-am642-evm-nand-dtbs := k3-am642-evm.dtb k3-am642-evm-nand.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-nand.dtb So patch 1 is not required in this case but we have an extra dtb file which is not really required. I have 2 more issues to point out 1) With existing examples e.g. J7200 EVM wouldn't k3-j7200-evm.dtb include the k3-j7200-evm-quad-port-eth-exp.dtbo? Is this what we really want? likewise for k3-j721e-evm.dtb and k3-am654-gp-evm.dtb 2) Another issue (unrelated to this change) is the below warning: arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso:65.8-140.3: Warning (avoid_default_addr_size): /fragment@3/__overlay__: Relying on default #address-cells value arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso:65.8-140.3: Warning (avoid_default_addr_size): /fragment@3/__overlay__: Relying on default #size-cells value This is because we use the 'ranges' property in the gpmc0 node and the compiler doesn't know the #address/size-cells of the parent node. Is there a trick to specify it in the dtso file? -- cheers, -roger