Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp89940imn; Wed, 27 Jul 2022 16:15:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1taNWHsBFGy6Wfer9l3SxEBLfKnhPWRoqzgR3GLW0OHGULnLVcgWvOcTwqRuHd3GiD6ZDdL X-Received: by 2002:a63:6bc1:0:b0:40d:ffa7:9dc3 with SMTP id g184-20020a636bc1000000b0040dffa79dc3mr21068885pgc.111.1658963728050; Wed, 27 Jul 2022 16:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658963728; cv=none; d=google.com; s=arc-20160816; b=jyVAImVkHWTCQEv7Q+sm8L32rJcV0wtjI0Ss1RVS1/WSwW7/hv+E2TLW9tmiypLk1B thDEnX3v+mVC4WQobukOMHUt9uhQNL00DTiGR+tW1kC57KjGH+/t0BX8ogs3xgJRZVa+ CruxRapmT0ZNNF2mW9hqrMh1ZaR3UffSbDZDhTOih6Fyagu8QDeYu1d/kVMbwzhWqalD 3TkH6V+Y0WUUhHw40xZ4OHqXwBxOWkuGoRyfQN9lzkBPHJy/KXyBa4kF3RxBrKLUdUl+ WoTqjUjr2glDHcuDDE1Vg+rfC/HLUBXR3zHdpE0Gs+v1mBDiuJ62zEwcA4bONI6j5PIS aHyw== 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=MiPNzj5kLBzyyYRXpMiZV9uUlfwl2+UHjkI5EZ3e0VM=; b=GiF+Sp5KD3iQ1quJWhzH8+Qus50wfQ0VLlzmrD3DW0EgCJZ9rf6Jb9R89hoUI0Vka0 LnvaaD78vR+vyEr6n1YrVUQk6C8R5HRKjLcMnxFwY5yGszSjqOjKxPttQygmvS/4z/ue NLRLwajhUDR3iVlmi+ZdM7Hm2nKGCfljeUOCYBmmYUCzVDx28hYbDGxecDyzSZJS6m0B q3lh6MTivz2gaNyJy6Pt6s+1vQyN4Wa6dlmSmMeWgNXo70wzRfKq+mCy4UTgz/n2RUhe gURgsblGZsy5BcLHTVT97Dfkbh7vRLeSL4t5FROEe7eRB4vfVdpasvkHcCGsrgdUwisd 5G+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tbnFOJUu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a056a000c9500b0052af1df88desi24213872pfv.365.2022.07.27.16.15.12; Wed, 27 Jul 2022 16:15:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tbnFOJUu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236798AbiG0WPR (ORCPT + 99 others); Wed, 27 Jul 2022 18:15:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237770AbiG0WO7 (ORCPT ); Wed, 27 Jul 2022 18:14:59 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F256765D7E; Wed, 27 Jul 2022 15:12:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 962E8B82286; Wed, 27 Jul 2022 22:12:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CF3DC43470; Wed, 27 Jul 2022 22:12:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658959923; bh=OdgQrrPG8BUR2b2yNmh3OFrDvpcW55FL2Q6+RLHW76M=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=tbnFOJUu/WaozZIVJCnvZPi1eEaf2p6DB34iesgMesKdeS97cbvyEKVMuXt5Mg7A4 T45PivH+b5v2OIVkzqMY10rLJKYqlFWYP1f/3D8CQKgRiL+p7gALfiU92g5vIvVhCN fJYncG0GlbctujlX0SqZWGXjut3GGaZG3HgRPyEQLkt+QsjvnW4EAWkb+RzlaPLqM3 U/0KGDDATpAoKQMpC/MV17I/kX19Za/qwufcgMiAJcAyzcYfXCs0BdbNMVrw30fqvz rHgLBfAO3GE5MKs2MTLIU6ghgIOIjZa+yy4QDpY7YPpG5rRYb1g5xyWjdaRtilXCNY AWJhvjHqLwiwA== Received: by mail-vs1-f51.google.com with SMTP id 66so19403vse.4; Wed, 27 Jul 2022 15:12:03 -0700 (PDT) X-Gm-Message-State: AJIora/treDbuxk4foMn4oXsrCwCScbSFimiBlu+1IccC0/TevkbmbD/ YTCYtk3qhlhl49wSBkRjnX0U5zbP5+EI2F9rEw== X-Received: by 2002:a05:6102:21aa:b0:35a:1419:1bc7 with SMTP id i10-20020a05610221aa00b0035a14191bc7mr2983610vsb.26.1658959922069; Wed, 27 Jul 2022 15:12:02 -0700 (PDT) MIME-Version: 1.0 References: <20220726212354.1.I5b9006878bdabd6493b866b46dbd6149968d545b@changeid> <20220727160320.GA2755147-robh@kernel.org> In-Reply-To: From: Rob Herring Date: Wed, 27 Jul 2022 16:11:50 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: arm: qcom: document zoglin board To: Doug Anderson Cc: Bob Moragues , LKML , Bob Moragues , Andy Gross , Bjorn Andersson , Stephen Boyd , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Wed, Jul 27, 2022 at 3:59 PM Doug Anderson wrote: > > Hi, > > On Wed, Jul 27, 2022 at 12:43 PM Rob Herring wrote: > > > > On Wed, Jul 27, 2022 at 11:40 AM Doug Anderson wrote: > > > > > > Hi, > > > > > > On Wed, Jul 27, 2022 at 9:03 AM Rob Herring wrote: > > > > > > > > On Tue, Jul 26, 2022 at 09:24:31PM -0700, Bob Moragues wrote: > > > > > Zoglin is a Hoglin Chromebook with SPI Flash reduced from 64MB to 8MB. > > > > > Zoglin is identical to Hoglin except for the SPI Flash. > > > > > The actual SPI Flash is dynamically probed at and not specified in DTS. > > > > > > > > > > Signed-off-by: Bob Moragues > > > > > > > > > > Signed-off-by: Bob Moragues > > > > > --- > > > > > > > > > > Documentation/devicetree/bindings/arm/qcom.yaml | 1 + > > > > > 1 file changed, 1 insertion(+) > > > > > > > > > > diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml > > > > > index 581485392404..63091df3cbb3 100644 > > > > > --- a/Documentation/devicetree/bindings/arm/qcom.yaml > > > > > +++ b/Documentation/devicetree/bindings/arm/qcom.yaml > > > > > @@ -475,6 +475,7 @@ properties: > > > > > > > > > > - description: Qualcomm Technologies, Inc. sc7280 CRD platform (newest rev) > > > > > items: > > > > > + - const: google,zoglin > > > > > - const: google,hoglin > > > > > - const: qcom,sc7280 > > > > > > > > Is just "google,hoglin", "qcom,sc7280" no longer valid? If it is valid, > > > > you need another entry. > > > > > > If it makes people happy to have another entry then it wouldn't hurt, > > > but it has no long term benefit and I would recommend against it. The > > > next patch in this series changes the existing "hoglin" device tree to > > > have all 3 compatible strings and thus when both patches land then > > > make dtbs_check will pass. I assume that is the only goal of > > > documenting these boards here. Certainly if you had a device tree that > > > had only "google,zoglin" it would boot fine on zoglin devices and if > > > you had a device tree that had only "google,hoglin" it would boot fine > > > on hoglin device. This is true of all of the entries for Chromebooks > > > that have multiple compatible entries. > > > > Why even add the entry? If it is just a different SPI flash, you can > > tell that from the SPI flash compatible or device ID. > > Yeah, it's really unfortunate. :( The issue is a limitation in the > ChromeOS bootloader infrastructure. The ChromeOS build infrastructure > cannot handle something that it considers the same "board" as having > different SPI flash sizes. This is because the infrastructure always > requires that the bootloader "image" be the exact same size as the SPI > flash and it assumes a universal firmware (single image) per board. > It's unfortunately not very flexible but normally for a given board > the SPI flash size is chosen at the start and never changed. The CRD > board was an exception here. Though it's not beautiful, this means > that the firmware considers this as a different board and looks for a > different compatible string on the kernel command line. Okay, I guess... Acked-by: Rob Herring