Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6812071rwl; Mon, 9 Jan 2023 13:26:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXu4ZxWe/xe012t/CiWWfMpGg3vBnJVtMPf8CrlhrE0hkmf+0xbPtDvpLmXSzAZ7fCCgY6m4 X-Received: by 2002:a62:1981:0:b0:578:8864:b25c with SMTP id 123-20020a621981000000b005788864b25cmr55110514pfz.25.1673299600825; Mon, 09 Jan 2023 13:26:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673299600; cv=none; d=google.com; s=arc-20160816; b=DzAePCMyNNieeY4t5b84IAF8W2vHROTlK3Lh3tMwH4jpR3mQTIz0GFsntkzVYXfyj9 k8im2aZ8BHks1R1MXib92rwcNwuqHKB2KKVyaXNLnPGDQWGCIUvnnDm624IKULvC3Yjc 5WaJk6LwyBuXlRHwXIP+6Z1d9y8SHcHl6ZxJwg7t8SoiFkG79jK742VgW2c+Ji4esz0H agSYaGOrejUx9qKrWgf7/YnF+zXYWmpm16AgBZJWvR6qsKnlZTvUY0QcDdnMka3WXj3M xmx5Mj2vwkkHLXRJKlAPBwabH2OBZkG05IOwZehXCcE/CL8SBlu8ht4pJip5e5UU8rp1 Hr9A== 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=1ZYMaHaqbGfit3zZPJvO9SjzoXsApTdGwsgUHl4lAQA=; b=EuQp18H9xs0x2EAaDXUmHLA1klaOZi0Vnv+PvgtMQJxD3cfh2Z+YEkeagfYk12esg3 u9DLK/7KEwb1yDs64H2x7cfCiJbI+GZ4hadh63piauwEgD7gC47yZMuDzcOAVcGJaJwr +2XIjW5Xokn4QfVXxJXjqrujrp5Kak9DN4WXdSvjG9Nnolzbl4DYlvTB5EbLltVYirAf XM/2x6w5Ygtui9ttrrvP6aUptHBvFaocAiTQT5YbXTojssrxQylQ0Z8aROaZWfnB7eNW SR5NDE2r+1gmnhnAFAPBoY1wDGWog+bXYl9TZtGRAoQfOrj0q0q70pzXLAcWR1JhGRD+ KoQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XjKVpVF2; 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 11-20020aa7924b000000b005805f1db012si9691932pfp.255.2023.01.09.13.26.34; Mon, 09 Jan 2023 13:26:40 -0800 (PST) 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=XjKVpVF2; 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 S237823AbjAIVJf (ORCPT + 55 others); Mon, 9 Jan 2023 16:09:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238130AbjAIVI5 (ORCPT ); Mon, 9 Jan 2023 16:08:57 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92E6A9B2BB for ; Mon, 9 Jan 2023 13:00:39 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id fc4so23329914ejc.12 for ; Mon, 09 Jan 2023 13:00:39 -0800 (PST) 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:subject:date:message-id:reply-to; bh=1ZYMaHaqbGfit3zZPJvO9SjzoXsApTdGwsgUHl4lAQA=; b=XjKVpVF2jUh+nbcr8BfkjUGgrOZhkdDNVv6pcebFKkz6aHrE8UALZhgTfETJjk2w4U 0xPk/UrgR4c79afxV4hEdVqMvBzZq8jDcPx+PvY2l6jiOQsTLmYqz9oG3wzAuhs1nLUk gH8Vw7+PtaZ36q0GRpsUjbFb21QMbLyWB/BM8= 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:subject:date:message-id :reply-to; bh=1ZYMaHaqbGfit3zZPJvO9SjzoXsApTdGwsgUHl4lAQA=; b=PGyvavajVdBj7ZEhNbbt6pR3OXwKeG2zxpD30eaSVPLgI+XrWyVi+JnnOjNS3/Bx7z NYefyLfEtmaeeYtRZhCRZ/MO/iUzs493M4lgEm0kJjeMvPlDgLASxD2bscSyLrh6XGHs qFnQndIKXWOr3n70k4Jj7IIKT0eHFbMv1QO3DssMGsOUJBxubjEmoFvKT778rPTa0RPA l6cB4kOQ20wYjn2ODjZ+52Q+o1CSMLOH4NepV6gBt/ZH7u/MSTXAAtzEdDnScZHjI1iL ytKgCc3v0Px8orlOHpROaUW/xCfvBpqDZ7RYk0oIAuJTZjP2EPLO8FsZ5UuG4PO2IQfq XOWA== X-Gm-Message-State: AFqh2krgfUYoFnEVd46J4t/xWQbAByUEMmPcpPDx8WYB20ovLWCfT3m1 D+RZVoupWto1eaQsmi/suvLVg12PxAH7I/Be X-Received: by 2002:a17:907:c24e:b0:7c0:1db5:ea10 with SMTP id tj14-20020a170907c24e00b007c01db5ea10mr73222532ejc.53.1673298038008; Mon, 09 Jan 2023 13:00:38 -0800 (PST) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com. [209.85.128.54]) by smtp.gmail.com with ESMTPSA id r1-20020a17090609c100b0084ce5d3afe7sm4104999eje.184.2023.01.09.13.00.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Jan 2023 13:00:36 -0800 (PST) Received: by mail-wm1-f54.google.com with SMTP id o15so7232633wmr.4 for ; Mon, 09 Jan 2023 13:00:36 -0800 (PST) X-Received: by 2002:a05:600c:4aa8:b0:3d0:69f4:d3d0 with SMTP id b40-20020a05600c4aa800b003d069f4d3d0mr2698813wmp.93.1673298035812; Mon, 09 Jan 2023 13:00:35 -0800 (PST) MIME-Version: 1.0 References: <20221216112918.1243-1-quic_rjendra@quicinc.com> In-Reply-To: From: Doug Anderson Date: Mon, 9 Jan 2023 13:00:23 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 1/2] dt-bindings: arm: qcom: Document the sc7280 CRD Pro boards To: Dmitry Baryshkov , andersson@kernel.org Cc: Rajendra Nayak , Matthias Kaehlcke , agross@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 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 Tue, Dec 20, 2022 at 9:12 AM Dmitry Baryshkov wrote: > > On 20/12/2022 18:20, Rajendra Nayak wrote: > > > > > > On 12/20/2022 8:00 PM, Matthias Kaehlcke wrote: > >> On Tue, Dec 20, 2022 at 10:30:32AM +0530, Rajendra Nayak wrote: > >>> > >>> On 12/16/2022 7:49 PM, Matthias Kaehlcke wrote: > >>>> On Fri, Dec 16, 2022 at 04:59:17PM +0530, Rajendra Nayak wrote: > >>>>> Add compatibles for the Pro SKU of the sc7280 CRD boards > >>>>> which come with a Pro variant of the qcard. > >>>>> The Pro qcard variant has smps9 from pm8350c ganged up with > >>>>> smps7 and smps8. > >>>>> > >>>>> Signed-off-by: Rajendra Nayak > >>>>> Acked-by: Krzysztof Kozlowski > >>>>> Reviewed-by: Matthias Kaehlcke > >>>>> --- > >>>>> v4 changes: > >>>>> Added the zoglin-sku1536 compatible along with hoglin-sku1536. > >>>>> Zoglin is same as the Hoglin variant, with the SPI Flash reduced > >>>>> from 64MB to 8MB > >>>>> > >>>>> Documentation/devicetree/bindings/arm/qcom.yaml | 6 ++++++ > >>>>> 1 file changed, 6 insertions(+) > >>>>> > >>>>> diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml > >>>>> b/Documentation/devicetree/bindings/arm/qcom.yaml > >>>>> index 1b5ac6b02bc5..07771d4c91bd 100644 > >>>>> --- a/Documentation/devicetree/bindings/arm/qcom.yaml > >>>>> +++ b/Documentation/devicetree/bindings/arm/qcom.yaml > >>>>> @@ -558,6 +558,12 @@ properties: > >>>>> - const: google,hoglin > >>>>> - const: qcom,sc7280 > >>>>> + - description: Qualcomm Technologies, Inc. sc7280 CRD Pro > >>>>> platform (newest rev) > >>>>> + items: > >>>>> + - const: google,zoglin-sku1536 > >>>>> + - const: google,hoglin-sku1536 > >>>> > >>>> Is there actually such a thing as a 'hoglin-sku1536', i.e. the Pro > >>>> qcard > >>>> with 64MB of SPI flash, or do they all have 8MB of flash? > >>> > >>> The SPI flash is on the CRD mother-board and not on the qcards, so if > >>> you replace > >>> the qcards on the CRDs with 64MB flash you would need the > >>> hoglin-sku1536 to > >>> boot on those. > >> > >> With such a configuration how does the bootloader know it should pass > >> the kernel > >> the device tree for 'hoglin-sku1536' (pro) and not the non-pro > >> variant? IIUC the > >> device tree is selected based on pin strappings on the mother-board, > >> not the > >> qcard. > > > > The device tree is selected based on the pin strappings _and_ additional > > logic > > to dynamically identify modem/non-modem(wifi) as well as pro/non-pro > > SKUs which > > was added in the bootloaders. > > Just to clarify things, when you mention pro SKU, is it a separate SoC > revision (like sc7280-pro vs bare sc7280), or is it a CRD revision (CRD > Pro vs bare CRD)? I guess Rajendra never responded, but since I know the answer: it's a different SoC revision. ...but the SoC in this case is on a daughter card, so you could remove the daughter card containing the SoC and put a new daughtercard on. That would have the effect of making an old CRD revision have the new Pro SKU SoC. Bjorn: I'd also note that I think this series (this patch and the next one) are ready to land. -Doug