Message ID | 20221216112918.1243-1-quic_rjendra@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp912750wrn; Fri, 16 Dec 2022 03:38:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf5RnzRhzcgKSW8HzTlET3rs/swMo8wAGvpOF3vc0uxgL3DDgLHJJRLyRBbtjrOs2TzZmy7I X-Received: by 2002:a05:6a00:1d12:b0:578:74bc:c6da with SMTP id a18-20020a056a001d1200b0057874bcc6damr23028595pfx.17.1671190732293; Fri, 16 Dec 2022 03:38:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671190732; cv=none; d=google.com; s=arc-20160816; b=TzoRcxQvS7u7zhoKoppS1wU3XfTs+lnStZR8ZQh1/Hc/2JK0+ZD8eldT1oN/XFNwLY O0Z0D+x6OvcSvz3mOqlOKzQb0s/GuIWpt+o6oyeBYLuNjMe0fDYXn3JHcy4d4TWsa+57 IjuGQFmMXNsOkyiuwLjDqGajNS8WPVZFK/ulfDEuizgzf9163B4RWcjnqb7BPvyRoJ9f gZetRtOoJF+7CnxMl6rD1oqsD3Aqp3eZdZAN6TVMOEdp1Ml5jOOza0mHNKPTaJI6P/BN zxQEGiuesQ5jf40Mo83e4iedTPc3K+XWsOl8Mc1Fv+2Wj/oxVyyAfmAJEvch7DHGCKJs F2DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=IeZBshSzVfItkaX1QVPlQaUl2UHfGaDmAJb4HsMLpG0=; b=Zr4hKda74YlaExyFCHfJioFEFS6I69j2F3SwyXeYTGMMvFcjTUMdd9rYYuIzJvalBI d4j34cwteeuFW4wKkXxn2YDBbmFHhUxP1iQ+opgVGkT7vDSi6+Dc7QsrOoSLfs9XW5aJ SQhcxJmUfQG1Qep7IwlFWvVC//BEd3bt8dqbzgGByS828d/Xv0ehyO2LlMywWrehllbc Aq65EVb5YOHFZEsuWwAX3mkS2fLhGMFCwoXxqOmoDc1+y22A4RIU5Ie1uC/dThb1xShf 4t92GXUAaYKyK6yCqjaufhAhePeUKrD6VbnGb3gqDbwd/nTCCUYJGOOnp62GGx5uuoFB z37g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=RlqNg3fS; 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=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h190-20020a6253c7000000b0057608f2e67fsi1966711pfb.371.2022.12.16.03.38.38; Fri, 16 Dec 2022 03:38:52 -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=@quicinc.com header.s=qcppdkim1 header.b=RlqNg3fS; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230120AbiLPLaT (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Fri, 16 Dec 2022 06:30:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231194AbiLPLaL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 16 Dec 2022 06:30:11 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85DBB5D69F; Fri, 16 Dec 2022 03:30:09 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BGAtFNG020170; Fri, 16 Dec 2022 11:30:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=IeZBshSzVfItkaX1QVPlQaUl2UHfGaDmAJb4HsMLpG0=; b=RlqNg3fSRHVsNYO8+pE9xF+kdlw4BOQJBGsjjmV5Qxro598w/bk2DGdZL79rycglpBK8 w4e6CmXHJWWDFlYz2VCUEkpIa7PGompWOwmClP6G2No8g++gnfnnDUc15eFIY003k7JQ KvvoV3ZAypAeWnopPmoivQ1ktwXGMW0nesEnPMAXbKqOErc7scuhlEwCs0T8Z0GaB3pq wG6XPj3MESsn/eGzW2qXdqjMnszkPK0/QtVxgsVkVzL+DlHiFE/24ltUJYYmD1XpAoMj jRDLxivQD9wZ1kKM+jaWDE3ccnsISXDr0J6DaVf5qCTdnIwjlfQANJNZH2+GI0y8j3eg 1Q== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3mg8e6a7y0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Dec 2022 11:30:06 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2BGBU5Qq011384 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Dec 2022 11:30:05 GMT Received: from blr-ubuntu-173.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Fri, 16 Dec 2022 03:30:01 -0800 From: Rajendra Nayak <quic_rjendra@quicinc.com> To: <agross@kernel.org>, <andersson@kernel.org>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <konrad.dybcio@linaro.org> CC: <linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <dianders@chromium.org>, <mka@chromium.org>, Rajendra Nayak <quic_rjendra@quicinc.com> Subject: [PATCH v4 1/2] dt-bindings: arm: qcom: Document the sc7280 CRD Pro boards Date: Fri, 16 Dec 2022 16:59:17 +0530 Message-ID: <20221216112918.1243-1-quic_rjendra@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: cJ-YQAoSNpKN-JYlbP2fCnHae4-FdWFo X-Proofpoint-ORIG-GUID: cJ-YQAoSNpKN-JYlbP2fCnHae4-FdWFo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-16_07,2022-12-15_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=792 priorityscore=1501 lowpriorityscore=0 spamscore=0 suspectscore=0 clxscore=1011 phishscore=0 mlxscore=0 adultscore=0 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212160101 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752370493231486998?= X-GMAIL-MSGID: =?utf-8?q?1752370493231486998?= |
Series |
[v4,1/2] dt-bindings: arm: qcom: Document the sc7280 CRD Pro boards
|
|
Commit Message
Rajendra Nayak
Dec. 16, 2022, 11:29 a.m. UTC
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 <quic_rjendra@quicinc.com> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> --- 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(+)
Comments
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 <quic_rjendra@quicinc.com> > Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > Reviewed-by: Matthias Kaehlcke <mka@chromium.org> > --- > 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?
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 <quic_rjendra@quicinc.com> >> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> >> --- >> 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.
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 <quic_rjendra@quicinc.com> > > > Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > > Reviewed-by: Matthias Kaehlcke <mka@chromium.org> > > > --- > > > 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.
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 <quic_rjendra@quicinc.com> >>>> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >>>> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> >>>> --- >>>> 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.
On Tue, Dec 20, 2022 at 09:50:06PM +0530, 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 <quic_rjendra@quicinc.com> > > > > > Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > > > > Reviewed-by: Matthias Kaehlcke <mka@chromium.org> > > > > > --- > > > > > 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. Thanks for the clarification!
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 <quic_rjendra@quicinc.com> >>>>> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >>>>> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> >>>>> --- >>>>> 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)?
Hi, On Tue, Dec 20, 2022 at 9:12 AM Dmitry Baryshkov <dmitry.baryshkov@linaro.org> 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 <quic_rjendra@quicinc.com> > >>>>> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > >>>>> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> > >>>>> --- > >>>>> 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
On 09/01/2023 23:00, Doug Anderson wrote: > Hi, > > On Tue, Dec 20, 2022 at 9:12 AM Dmitry Baryshkov > <dmitry.baryshkov@linaro.org> 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 <quic_rjendra@quicinc.com> >>>>>>> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >>>>>>> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> >>>>>>> --- >>>>>>> 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. So, this is a new SoC. Is it 100% compatible with the sc7280? In other words: does it require any additional customizations (in OPP tables, in frequences, speed bins, etc)? > > Bjorn: I'd also note that I think this series (this patch and the next > one) are ready to land. > > -Doug
Hi, On Mon, Jan 9, 2023 at 1:36 PM Dmitry Baryshkov <dmitry.baryshkov@linaro.org> wrote: > > On 09/01/2023 23:00, Doug Anderson wrote: > > Hi, > > > > On Tue, Dec 20, 2022 at 9:12 AM Dmitry Baryshkov > > <dmitry.baryshkov@linaro.org> 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 <quic_rjendra@quicinc.com> > >>>>>>> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > >>>>>>> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> > >>>>>>> --- > >>>>>>> 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. > > So, this is a new SoC. Is it 100% compatible with the sc7280? In other > words: does it require any additional customizations (in OPP tables, in > frequences, speed bins, etc)? If I understand correctly, the OPP customizations have been accounted for since the beginning. I believe that the GPU operating table already has some fairly high operating points. Maybe commit 3bfef00d7671 ("arm64: dts: qcom: sc7280: Support gpu speedbin") was for pro? Similarly, the CPU operating table also has some fairly high operating points (probably for PRO?) and I think the higher points are dynamically disabled for CPUs that don't support them. That's how it was on sc7180, in any case. ...I will say it's not 100% compatible, though. Patch #2 in this series deletes "vreg_s9c_0p676" on pro SKUs. As far as I know, that's the only needed change, though. -Doug
On 1/10/2023 3:12 AM, Doug Anderson wrote: > Hi, > > On Mon, Jan 9, 2023 at 1:36 PM Dmitry Baryshkov > <dmitry.baryshkov@linaro.org> wrote: >> >> On 09/01/2023 23:00, Doug Anderson wrote: >>> Hi, >>> >>> On Tue, Dec 20, 2022 at 9:12 AM Dmitry Baryshkov >>> <dmitry.baryshkov@linaro.org> 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 <quic_rjendra@quicinc.com> >>>>>>>>> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >>>>>>>>> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> >>>>>>>>> --- >>>>>>>>> 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 Thanks Doug for the clarifications, I seem to have missed responding to this once I was back from vacation, >>> 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. >> >> So, this is a new SoC. Is it 100% compatible with the sc7280? In other >> words: does it require any additional customizations (in OPP tables, in >> frequences, speed bins, etc)? Yes, the OPP differences are taken care of with no changes needed in kernel. We describe a superset of *all* OPPs supported by a SoC family in DT and the cpufreq driver then queries the firmware for supported OPPs on a given SoC variant and ends up disabling the rest. > > If I understand correctly, the OPP customizations have been accounted > for since the beginning. I believe that the GPU operating table > already has some fairly high operating points. Maybe commit > 3bfef00d7671 ("arm64: dts: qcom: sc7280: Support gpu speedbin") was > for pro? Similarly, the CPU operating table also has some fairly high > operating points (probably for PRO?) and I think the higher points are > dynamically disabled for CPUs that don't support them. That's how it > was on sc7180, in any case. > > ...I will say it's not 100% compatible, though. Patch #2 in this > series deletes "vreg_s9c_0p676" on pro SKUs. As far as I know, that's > the only needed change, though. > > -Doug
Hi, On Mon, Jan 9, 2023 at 8:21 PM Rajendra Nayak <quic_rjendra@quicinc.com> wrote: > > > On 1/10/2023 3:12 AM, Doug Anderson wrote: > > Hi, > > > > On Mon, Jan 9, 2023 at 1:36 PM Dmitry Baryshkov > > <dmitry.baryshkov@linaro.org> wrote: > >> > >> On 09/01/2023 23:00, Doug Anderson wrote: > >>> Hi, > >>> > >>> On Tue, Dec 20, 2022 at 9:12 AM Dmitry Baryshkov > >>> <dmitry.baryshkov@linaro.org> 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 <quic_rjendra@quicinc.com> > >>>>>>>>> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > >>>>>>>>> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> > >>>>>>>>> --- > >>>>>>>>> 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 > > Thanks Doug for the clarifications, I seem to have missed responding to this > once I was back from vacation, > > >>> 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. > >> > >> So, this is a new SoC. Is it 100% compatible with the sc7280? In other > >> words: does it require any additional customizations (in OPP tables, in > >> frequences, speed bins, etc)? > > Yes, the OPP differences are taken care of with no changes needed in kernel. > We describe a superset of *all* OPPs supported by a SoC family in DT and the > cpufreq driver then queries the firmware for supported OPPs on a given > SoC variant and ends up disabling the rest. I saw that Bjorn just send out a pull request but it didn't include this patch. Bjorn: are you expecting anything from Rajendra here, or did it just get missed? I think Rajendra responded to all of Dmitry's comments, but I could be mistaken. -Doug
On 1/27/2023 5:50 AM, Doug Anderson wrote: > Hi, > > On Mon, Jan 9, 2023 at 8:21 PM Rajendra Nayak <quic_rjendra@quicinc.com> wrote: >> >> >> On 1/10/2023 3:12 AM, Doug Anderson wrote: >>> Hi, >>> >>> On Mon, Jan 9, 2023 at 1:36 PM Dmitry Baryshkov >>> <dmitry.baryshkov@linaro.org> wrote: >>>> >>>> On 09/01/2023 23:00, Doug Anderson wrote: >>>>> Hi, >>>>> >>>>> On Tue, Dec 20, 2022 at 9:12 AM Dmitry Baryshkov >>>>> <dmitry.baryshkov@linaro.org> 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 <quic_rjendra@quicinc.com> >>>>>>>>>>> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >>>>>>>>>>> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> >>>>>>>>>>> --- >>>>>>>>>>> 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 >> >> Thanks Doug for the clarifications, I seem to have missed responding to this >> once I was back from vacation, >> >>>>> 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. >>>> >>>> So, this is a new SoC. Is it 100% compatible with the sc7280? In other >>>> words: does it require any additional customizations (in OPP tables, in >>>> frequences, speed bins, etc)? >> >> Yes, the OPP differences are taken care of with no changes needed in kernel. >> We describe a superset of *all* OPPs supported by a SoC family in DT and the >> cpufreq driver then queries the firmware for supported OPPs on a given >> SoC variant and ends up disabling the rest. > > I saw that Bjorn just send out a pull request but it didn't include > this patch. Bjorn: are you expecting anything from Rajendra here, or > did it just get missed? I think Rajendra responded to all of Dmitry's > comments, but I could be mistaken. Yes, there is nothing outstanding for these patches, they should be good to go, Bjorn can they be pulled in? > > -Doug
On Fri, 16 Dec 2022 16:59:17 +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. > > Applied, thanks! [2/2] arm64: dts: qcom: sc7280: Add a herobrine CRD Pro SKU commit: f816cda0ab2b0250e225dfda41c107733a74faf7 Best regards,
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 + - const: qcom,sc7280 + - description: Qualcomm Technologies, Inc. sc7280 IDP SKU1 platform items: - const: qcom,sc7280-idp