Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp89776imn; Wed, 27 Jul 2022 16:15:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sAI71s0pP50AqKKLAQEGbF6CKAn52iyMYcYWwI3slB5+Hpc9qUJYyvbIkdHA9kcpRuH0j+ X-Received: by 2002:a63:4d1:0:b0:419:af9f:385e with SMTP id 200-20020a6304d1000000b00419af9f385emr21198947pge.590.1658963709390; Wed, 27 Jul 2022 16:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658963709; cv=none; d=google.com; s=arc-20160816; b=yqo+pbGJTVTtibazYW8epgek4E6JQWao2/g63rKFH3RA8k61/9O1FMMtiSkhGDJup5 l4WtL0nvQ6EvmHJQ8QnH8v4vTMCJwa8jcbPI7MfbshwgiH8V3tLtke6K2WHtJKbfdk// YkVpk4Df2qYxe71fEOQYnm3Z9NF374nEpoEup7yCuYL523i2OBKAidzlQntu9bpoMdGc L6L8a+bWE6kAchdt5I5KtwAeC4vbQy2+ZTygeI7y0HYu9BRnU8UbQ32WHwAWFM96D69+ zZrck/edKX3mT1xzeL7WTiEpnPVo418y1DWrCB8zha/Axtzd0+nbdO25p9uy5Jf42TwL gz/Q== 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=2GNpZTvzEOIdMaTG5mdwYQJAfUQRhiWdyOdea2yhnhc=; b=A8dB2DiZqvFQudGnTYXPK5sl4ob1vP/DuEWVO4OiRsrplDLh+LIIaJApwP6dpno/w3 x8UM6t8032ZUrnK0jnFofZ+RkXoA08Q50Mj0KIImIQSRbV+i1jT+P/jF4dpF/2YGq5WH XpigqQjzWgodZIqaMrmUbmXtV0UToe2piuM0btWgWRbUuUD1Q2o7ABjOtfThgKvnNx2N BxlYITMBqXceJDzKOYnJWYcJsQYVygDEfkwUATaN6p2txwg/CurLOrBdP7f69U8KWV2d Q3pyqPqZK0Mw4xWyeGU1BDL7oKMjZgaAi4J52MFg/0aiXA160hbIhwJj1Iq6O/KHjtVh xWog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=g4yEODJX; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z4-20020a6553c4000000b004129c83c31esi23479091pgr.313.2022.07.27.16.14.21; Wed, 27 Jul 2022 16:15:09 -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=@chromium.org header.s=google header.b=g4yEODJX; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233013AbiG0V7G (ORCPT + 99 others); Wed, 27 Jul 2022 17:59:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231750AbiG0V7E (ORCPT ); Wed, 27 Jul 2022 17:59:04 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF4E94D830 for ; Wed, 27 Jul 2022 14:59:03 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id a89so66031edf.5 for ; Wed, 27 Jul 2022 14:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=2GNpZTvzEOIdMaTG5mdwYQJAfUQRhiWdyOdea2yhnhc=; b=g4yEODJXnCca1ye9cHtb/uc3oEbsGeeLFdHft+OzXy+l6oZuSj0OUP/dx4uDW2TEYm bpxc748TQR7loOcWJpuxD8PHNv2frrFxtqL/Azhw3s4a+ViWrAZc9z6R3/kkwaS1vd/k oCdXgBjvwfhI1ULsqSmQKywBduaaqVn5OmQvw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=2GNpZTvzEOIdMaTG5mdwYQJAfUQRhiWdyOdea2yhnhc=; b=iVE3HZGPjZgRPFbbEEtB9Lgf0PRX8OdHNtHjIUFis8N2KPJCF7cKInAkR5UGHp0y/p uNpVJaQJoTguOtNVulT2KrIeBQD8hDwApL0UGZiKUuIJvAtstC9OPTm44aMq4ERH/B90 M3DJua+BcMKLsVF5dcNBMFR8rqBMdxZg+JnGAQ2/AvVQgRTKzA/32vNDVPh5Cx30QsPX J0s9XhzMpvrwFm0skXr0OczQYD1yQOu/3VXkebV6uBtmfQDkDEGGnytiEwSd9TirX0nc SHQcr0V226Axegm7o64Yf9Kjj3Q8YX9H56jGyR/YMDpQOS5yQHHmVTSlxu4ipwWTn1jv ZuLg== X-Gm-Message-State: AJIora/Ohr7dSXiuVrtqMufwDo9sNS0md2z7rqUVvoROfVJ3XZ/F+lll +KBXbR7nP3/nUminIUKzSSSFdYdOQRhNurLXYeU= X-Received: by 2002:a05:6402:240a:b0:437:d2b6:3dde with SMTP id t10-20020a056402240a00b00437d2b63ddemr24999961eda.62.1658959142260; Wed, 27 Jul 2022 14:59:02 -0700 (PDT) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com. [209.85.221.51]) by smtp.gmail.com with ESMTPSA id d2-20020a170906304200b0072f42ca292bsm7966502ejd.129.2022.07.27.14.58.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Jul 2022 14:58:43 -0700 (PDT) Received: by mail-wr1-f51.google.com with SMTP id h9so15753wrm.0 for ; Wed, 27 Jul 2022 14:58:39 -0700 (PDT) X-Received: by 2002:adf:ead2:0:b0:21d:8b49:6138 with SMTP id o18-20020adfead2000000b0021d8b496138mr16061950wrn.138.1658959119013; Wed, 27 Jul 2022 14:58:39 -0700 (PDT) MIME-Version: 1.0 References: <20220726212354.1.I5b9006878bdabd6493b866b46dbd6149968d545b@changeid> <20220727160320.GA2755147-robh@kernel.org> In-Reply-To: From: Doug Anderson Date: Wed, 27 Jul 2022 14:58:25 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: arm: qcom: document zoglin board To: Rob Herring 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=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -Doug