Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2279520pxp; Mon, 21 Mar 2022 15:44:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3QGMnpzxl3OtB8mflFvN0iPfldUUCOLzW2zx6LOMZ/ut8xChJLK5UN2ihSvpVp5Qbty5J X-Received: by 2002:a17:902:b410:b0:14b:e53:7aa0 with SMTP id x16-20020a170902b41000b0014b0e537aa0mr14858916plr.101.1647902664020; Mon, 21 Mar 2022 15:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647902664; cv=none; d=google.com; s=arc-20160816; b=hfjryXI3z4TyGk+8D0qQ+Gn13R3l6P7BIgMQp8vhTba+tTA9E/Qdo6DA7IDPcBffU9 Tj/GcKxxsCYgy/PPL4sJ5i/TDkeOJ9v1uMyDDOL4ishcqKxUdPNorMtne/IpIVtrUX/5 ldpwzuRfJF0ZXxlAkAHnZj+OHjdCFaHOjV1tDquLdC80C7sNivCZWknw9Cys0JC3A7C8 nE7dW/YCgREaZos3LvsnUVmwzkYMIbwxps7ERVb5Qmi8k70zw2kDa5ZWHAOTM/ZHHNyO uVdxvOE0/9CA2H40c8j6X7TGE+gWIH9meuzuUfsye6EeqzQwWxFclv2IMllo65Phl3hQ 9xTw== 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=wKK/3aJDesbLM5oqz8z5Re8H9WUhRynGrOLLLku81oQ=; b=CgWtPMyVWEKk+GaQfkRvuIm86XC0PEwg2V+GzEW7bsOqEwozVbPg6YcaMrs2fLBopi m8o5u8N7/L8pLDUOYUQz+We6dcqIWMxWGFHnvBd8IzVLnZMLyj6FVFBIOGS90RbA9PJR fqmWbEYsQcd2fs0P5JY2EdDpVXQvWdYsyyUhfYD1c63zscQ4suY4F9I7KmMTYw4MR0AD f1gwuuuOwv2O32fG/Mm0tnpji8JONIqlm4Aimu8UPy3xq+Pl/QsqhgTch85VUN1Xn/Pp XI4Y7fG9JuNX3e3juh7DfqpmuC/7B3/e0mZGisK5w89oDoRL8M3e46U3xglRIYFHK36S e8dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oVT82hMU; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i15-20020aa78d8f000000b004fa3a8e004dsi8373756pfr.260.2022.03.21.15.44.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:44:24 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oVT82hMU; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E82113DDCF9; Mon, 21 Mar 2022 14:53:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351931AbiCUSBs (ORCPT + 99 others); Mon, 21 Mar 2022 14:01:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351918AbiCUSBq (ORCPT ); Mon, 21 Mar 2022 14:01:46 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41D5F5B3E8 for ; Mon, 21 Mar 2022 11:00:19 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id o10so12690475ejd.1 for ; Mon, 21 Mar 2022 11:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wKK/3aJDesbLM5oqz8z5Re8H9WUhRynGrOLLLku81oQ=; b=oVT82hMUHADOkzZXY4rLYtvS4f339EjEtv5ia2gPprDg2sXJEpMAhlK9ekc9C9MUGc axdEivJ8XKqM+fN/cgPX6dZjTc5Uxs9bA1MCbZchE7C14a0in/MJ+stldWJPPH3n3G9K jbZJwxTtYINvEF3P9oFgTtIrLuvfc3TT5f084= 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=wKK/3aJDesbLM5oqz8z5Re8H9WUhRynGrOLLLku81oQ=; b=Jfe0iVxWIJhc1myMqzVHkj1r4nrbi6bjVbLWycrsbyIBgFgB6PGClT6Ixv6uxCoixo FnNc7DWnDjGj0jkhK6imyYFVDmFC8LbAEhglzuS0EIFPPYPCqU3RjRBx8wZ8f2QIZdLn v589bdnf0Sdozxgi/jyB6b+FcCt8uCdIQ+VeSJQ+v3ab/khIbeIIzfnhWqmHcdzFu/ca 0wTCRuT44lYWm3poFaYkiLHryVh6HOwkqk3bkGfbhc1aN6uaipJLnvsLbqeEvO7J7H8L CUhyxVd8OopLuLc5v6Z8/4G5zThwwVLvvOpvZ4YyQsPwTMil2eXRBlrFmnr554pT+n7C 3eEw== X-Gm-Message-State: AOAM532oqgnDAfs2CH7DuLvXDhGQ0h5BQxoked7j6tJeUfqHmKcNbpOY DK8m9uD2/KiYoUoeDvHf4Ndi16KTXlDvzg== X-Received: by 2002:a17:906:794e:b0:6df:b112:5e3f with SMTP id l14-20020a170906794e00b006dfb1125e3fmr16260614ejo.211.1647885617499; Mon, 21 Mar 2022 11:00:17 -0700 (PDT) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com. [209.85.128.53]) by smtp.gmail.com with ESMTPSA id r16-20020a056402019000b00418ed60c332sm7853156edv.65.2022.03.21.11.00.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Mar 2022 11:00:16 -0700 (PDT) Received: by mail-wm1-f53.google.com with SMTP id q20so9056278wmq.1 for ; Mon, 21 Mar 2022 11:00:16 -0700 (PDT) X-Received: by 2002:a05:600c:4f10:b0:38c:ae36:d305 with SMTP id l16-20020a05600c4f1000b0038cae36d305mr278333wmq.34.1647885615421; Mon, 21 Mar 2022 11:00:15 -0700 (PDT) MIME-Version: 1.0 References: <20220316172814.v1.1.I2deda8f2cd6adfbb525a97d8fee008a8477b7b0e@changeid> <20220316172814.v1.2.Ib0fbb7e5218201c81a2d064ff13c9bc1b0863212@changeid> In-Reply-To: From: Doug Anderson Date: Mon, 21 Mar 2022 11:00:02 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 2/4] arm64: dts: qcom: sc7280: Add 'piglin' to the crd-r3 compatible strings To: Matthias Kaehlcke Cc: Rajendra Nayak , Andy Gross , Bjorn Andersson , Rob Herring , Stephen Boyd , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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, On Mon, Mar 21, 2022 at 8:14 AM Matthias Kaehlcke wrote: > > On Mon, Mar 21, 2022 at 11:14:56AM +0530, Rajendra Nayak wrote: > > > > On 3/17/2022 5:58 AM, Matthias Kaehlcke wrote: > > > With newer bootloader versions the crd-r3 (aka CRD 1.0 and 2.0) is > > > identified as a 'piglin' board (like the IDP2 board), instead of 'hoglin' > > > Add the compatible strings 'google,piglin-rev{3,4}'. The hoglin entries > > > are kept to make sure the board keeps booting with older bootloader > > > versions. > > > > The older bootloaders really look for the google,hoglin-rev3/google,hoglin-rev4 > > compatibles or just google,hoglin? If its just google,hoglin, won;t it pick the > > crd-rev5+ dtb now? > > They look for the -revN compatible, I confirmed that on my CRD 2.0. Thanks for confirming Matthias! I'll also note that, in general, these "google,board-revX" type compatible strings are all programmatically generated. You can see at: https://chromium.googlesource.com/chromiumos/platform/depthcharge/+/refs/heads/main/src/boot/fit.c#70 ...and whenever it's using this normal logic then it has a standard fallback mechanism in place. On a random board in front of me depthcharge prints out: Compat preference: google,lazor-rev3-sku0 google,lazor-rev3 google,lazor-sku0 google,lazor So it'll first try the very specific verison with rev and sku. Then just by rev. Then just by sku. ...and if none of those match it'll pick a device tree that has neither. The "newest" device tree always has no revision number specified and that way if software doesn't change but the revision bumps then we have no problem. We only add the revision info for old boards. There are a few cases where we add special compatible strings and these don't match on board/rev. This is fairly uncommon, though. You might be aware of the special case of adding "qcom,sc7180-idp" (without rev/sku matching) for "bubs". See: https://chromium.googlesource.com/chromiumos/platform/depthcharge/+/refs/heads/main/src/board/trogdor/board.c#136 -Doug