From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C3DDACD6133 for ; Mon, 9 Oct 2023 20:04:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=IW8nkuycFd8z7M5gCdB8lYiC5K/pzQxVt2F6y+nC98E=; b=P29nFUZkdhaMhz fLTOkM10Y3x8RL4ztpe9r8pGk66XdJdsdgyroCaXP9anPs4HXGtrHr71KVFA7d2I59rLfnlRuwqEk N6/5onIByRI02BDkrmYVhdO1svh3hvuWsLODCWi5yHfa2hTqTYKGn6TxwDwrbVo2SqGCkmiCczva4 0DCCQrvGofaHfjxomQk+uFvT3/YVkpSCJIN80W/PHdsiwmOPM2PPsGQwTSkBhGMDVFxYSqjeBuI/K TYQJGUroWU4kBwcuJIb35+/03NTT6Zt/0TlXi2cQwXkXA4mhJYF8pgkm4Chz5L12JJbFsDte5WhZW 3V7PEcpY5KKmhdAZCR+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qpwU3-00BXMI-0f; Mon, 09 Oct 2023 20:04:07 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qpwU0-00BXLm-1s for linux-arm-kernel@lists.infradead.org; Mon, 09 Oct 2023 20:04:06 +0000 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1c9ad9473d7so40955ad.1 for ; Mon, 09 Oct 2023 13:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696881843; x=1697486643; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=792ACGhD6QjX3gm4sl6mN1ZnGztud0zoUVjrdn9K8C0=; b=Z4Ry4EoIxYqjDMEIy9VK8W7DJkbT3ro6BOAz4+yv0kDQ/To+3Q7rI392nFv8lRGmwo IwlVwVuNNL5rE4Ko9k7oBiFEns2IQWc39RvfLPrMMbT22+1FvCDDwsjTRk0Ng6Y12km5 Q60ZUHFhNAP0vH4pSZfaulFSTl9/dSsKR6onAcNn2r4ubezCMFflEYsbd0PRWb75mwId fYKbxPJ0MOx+96NC1x1jBtLAU54HJWKvREOA2VoGfgGPpyjRi+QvQhBJ2vw9kiBZYvtt WIfaE9kkympvH6GnFYS94xPpRIpdFr8++NTzQp1ocoOHi3oFzc2K5utENhlqrU8QtqeD i+mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696881843; x=1697486643; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=792ACGhD6QjX3gm4sl6mN1ZnGztud0zoUVjrdn9K8C0=; b=jPDDioFjo8Js3VfRt/lmFq8q/ZRgNYitHWPNMq3Wt2gnAUFVwhNf9vbC670UeZBVWd ZaKfp0OfXHOYhIJAH7xRlKpx65w3/xGO0MBficBCzzOQqBrqtyk+p9wAxi57kMLP1l3f E1o05Uij5GAxolMsEGSwXuXWptAk9NiQcUVgnCbyVCy9KHe8yjF9j6BcLKgON2VSG51T PwQf8u4rEMEIgGH0kaVCIHP3Vkbm8LQ9HdNdBCgmTZK1pfcMRt5otp3yURBZpqUFi4nO lfy9MXiwqE6/a0h2bnA6u2hAXsVlOXBtUjzNpYT/kmiSwZ7KB7JhX/kQh8+8c6ZJdzfS +zfQ== X-Gm-Message-State: AOJu0YwURCLTzAWgwvmXKFqIyo+qqw9EgfoAR9xEfsTFiKsX7RXH6LUE C3hhUnk72YdUxiDgMMSls3/uCw== X-Google-Smtp-Source: AGHT+IGoDE0HuNMIvb5i2H0sYSVhJ0lPtrnwVtRl9vcbmzHn2Ebn09gMy1XHI6WbiXHnD9jwHuRR6Q== X-Received: by 2002:a17:902:ec8b:b0:1c6:c41:679c with SMTP id x11-20020a170902ec8b00b001c60c41679cmr803671plg.4.1696881843213; Mon, 09 Oct 2023 13:04:03 -0700 (PDT) Received: from google.com (13.65.82.34.bc.googleusercontent.com. [34.82.65.13]) by smtp.gmail.com with ESMTPSA id k3-20020a63ab43000000b0050f85ef50d1sm8838631pgp.26.2023.10.09.13.04.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 13:04:02 -0700 (PDT) Date: Mon, 9 Oct 2023 13:03:59 -0700 From: William McVicker To: Krzysztof Kozlowski Cc: Peter Griffin , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, conor+dt@kernel.org, sboyd@kernel.org, tomasz.figa@gmail.com, s.nawrocki@samsung.com, linus.walleij@linaro.org, wim@linux-watchdog.org, linux@roeck-us.net, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, olof@lixom.net, cw00.choi@samsung.com, tudor.ambarus@linaro.org, andre.draszik@linaro.org, semen.protsenko@linaro.org, soc@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH 19/21] google/gs101: Add dt overlay for oriole board Message-ID: References: <20231005155618.700312-1-peter.griffin@linaro.org> <20231005155618.700312-20-peter.griffin@linaro.org> <7f2032c2-812a-46b5-8914-056cd53c37cb@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <7f2032c2-812a-46b5-8914-056cd53c37cb@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231009_130404_617705_14BBBFAD X-CRM114-Status: GOOD ( 34.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 10/05/2023, Krzysztof Kozlowski wrote: > On 05/10/2023 17:56, Peter Griffin wrote: > > The LK bootloader on Pixel6 searches for a dt overlay in the > > dtbo partition with a board_id and board_rev that matches > > what is baked into the device. If this overlay is not present > > then the phone will bootloop in fastboot and you can't boot > > the upstream kernel. > > > > This commit adds a dtbo for the production oriole variant. > > The other pre-production board overlays are not included > > at this time. > > > > Adding the dtbo here allows for a better experience when > > building/booting the upstream kernel on Pixel devices > > as all the DT required to boot the device will be created > > as part of the kernel build process. Rather than having to > > fetch the dtbo from some other repo. > > > > Signed-off-by: Peter Griffin > > --- > > arch/arm64/boot/dts/google/Makefile | 1 + > > arch/arm64/boot/dts/google/gs101-oriole.dtso | 21 ++++++++++++++++++++ > > 2 files changed, 22 insertions(+) > > create mode 100644 arch/arm64/boot/dts/google/gs101-oriole.dtso > > > > diff --git a/arch/arm64/boot/dts/google/Makefile b/arch/arm64/boot/dts/google/Makefile > > index 6d2026a767d4..3f1761f8daa9 100644 > > --- a/arch/arm64/boot/dts/google/Makefile > > +++ b/arch/arm64/boot/dts/google/Makefile > > @@ -2,5 +2,6 @@ > > > > dtb-$(CONFIG_ARCH_GOOGLE_TENSOR) += \ > > gs101-oriole.dtb \ > > + gs101-oriole.dtbo > > > > > > diff --git a/arch/arm64/boot/dts/google/gs101-oriole.dtso b/arch/arm64/boot/dts/google/gs101-oriole.dtso > > new file mode 100644 > > index 000000000000..50832fd94204 > > --- /dev/null > > +++ b/arch/arm64/boot/dts/google/gs101-oriole.dtso > > @@ -0,0 +1,21 @@ > > +// SPDX-License-Identifier: GPL-2.0-only > > +/* > > + * Oriole DVT Device Tree > > + * > > + * Copyright 2021-2023 Google,LLC > > + */ > > + > > +/dts-v1/; > > +/plugin/; > > + > > +/ { > > + board_id = <0x20304>; > > + board_rev = <0x10000>; > > Undocumented properties. Please propose bindings... Also, underscores > are not allowed, so in this form it is a no-go... although I understand > the pain of not being able to change the bootloader. > > For reference: > https://lore.kernel.org/all/20220605150747.GA3465286-robh@kernel.org/ > https://lore.kernel.org/all/20220610163343.GA1787330-robh@kernel.org/ These names are actually arbitrary and don't depend on the bootloader. They are passed into the mkdtimg tool [1] using --id and --rev and used to create the dt_table_entries. The bootloader traverses the table and picks the overlay based on these properties. So we can use whatever property names we want without changing the bootloader. [1] https://android.googlesource.com/platform/system/libufdt/+/refs/heads/main/utils/ Thanks, Will > > > Best regards, > Krzysztof > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel