Message ID | 20230122144749.87597-3-newbyte@postmarketos.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1183420wrn; Sun, 22 Jan 2023 06:58:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXveybqd9X8m99C/Q5LTpGTGLW0Kmd7/3HZeTH3y/A00Mo6RpAa93s5ClirFJOpRjtDcytjN X-Received: by 2002:a17:90b:3695:b0:229:189c:c48e with SMTP id mj21-20020a17090b369500b00229189cc48emr23592519pjb.17.1674399494598; Sun, 22 Jan 2023 06:58:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674399494; cv=none; d=google.com; s=arc-20160816; b=DN4mSB4O2p/ngZd2cS/wsfo+dJBUWaznrTWWuHfc3Ry1mg1D5gN3XzMVJ7MahgDkqL v1g4UTf0Quaf0PctMTUXXtJ5yjKhIObbNVoa2VMVcwIgOLdsHHAb5ujvHDxZmrLP32EK tuG4Rdyv0IK6J3PmNwp8+a8kyZLMlJky0zIjTLXaphMK8Mg4ixbnMEqbCIgNA3GBjWd/ Vbu7GVoP3CWP2Ow6V2GSHbq2zrqtEjrjpoNvxja7m7Was1c1nLQqpb9s1MWqMAoFB1tA jfCPKufkK8yowJ5rD+fJDUjs3BGFVuQnOi2JGUxqRMCn0hVQWCy+8lavKmABEkqX/xK/ 2PPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Pdicd3tjV6rFnR9JTCAIXoIfHA5EEQt3WzmfJJRjUHI=; b=WSNyQI1jyekMCBPClmNtq/dfxTZICBJxAPcKdeedR/6N8ZrGEXF6THpS5akglz6DZ9 2NP0iV+l9rBT+Rsk0YcftF7/gcU4KZAvPLfFxUP1R/8G79PZ8SfFrYKMsF0v0PPxmn6H aj4XVV+q5j4rujPunDxVnYX/fGfPVl9dN5lILQTJVfnnnv6/91j8iSebOWEhQXAdrsgM +60BmAk3ZwLOtAun9lOXElsb+r7Z6HuMpyLPLPsE6BbfkznkKEFpAf4RJMpcxL4ioffh wYmucnZbnjjvzRgA8c9qA0q9qcjhtnZs7BK2lUNtMJ9oJA/XRTmR/I9YAlbvD+hYHdgZ ewDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=donut header.b=uA63+8fq; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2-20020a63e202000000b004a296463035si26309914pgh.781.2023.01.22.06.57.58; Sun, 22 Jan 2023 06:58:14 -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=@postmarketos.org header.s=donut header.b=uA63+8fq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230021AbjAVO5m (ORCPT <rfc822;forouhar.linux@gmail.com> + 99 others); Sun, 22 Jan 2023 09:57:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbjAVO5j (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 22 Jan 2023 09:57:39 -0500 X-Greylist: delayed 449 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 22 Jan 2023 06:57:37 PST Received: from proxmox1.postmarketos.org (proxmox1.postmarketos.org [213.239.216.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 150E51BAF7; Sun, 22 Jan 2023 06:57:36 -0800 (PST) Received: from shock.lan (2-248-191-197-no36.tbcn.telia.com [2.248.191.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by proxmox1.postmarketos.org (Postfix) with ESMTPSA id 771D71403FF; Sun, 22 Jan 2023 14:50:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=donut; t=1674399024; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Pdicd3tjV6rFnR9JTCAIXoIfHA5EEQt3WzmfJJRjUHI=; b=uA63+8fqo7a9Q9cQBbZsWpr1xLZEW0qJ1FKgpcrrs6CnSp82zqMS8/lhH0XsGFApBvZqlH bv2qp3sXnhzzSj0qpnxSCX68tBMGi9rWbgo0TP6vdtLK79ACOEMoncQH+Sc2Gr0bEgnYXx ne8Sj7F0dpcLiJFvoPwi5H96IbWtxM4= From: Stefan Hansson <newbyte@postmarketos.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Arnd Bergmann <arnd@arndb.de>, Olof Johansson <olof@lixom.net>, soc@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, matti.lehtimaki@gmail.com, Stefan Hansson <newbyte@postmarketos.org> Subject: [PATCH 2/3] dt-bindings: arm: qcom: Add MSM8926 and Samsung Galaxy Tab 4 10.1 LTE Date: Sun, 22 Jan 2023 15:47:49 +0100 Message-Id: <20230122144749.87597-3-newbyte@postmarketos.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230122144749.87597-1-newbyte@postmarketos.org> References: <20230122144749.87597-1-newbyte@postmarketos.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED 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?1755735124075103845?= X-GMAIL-MSGID: =?utf-8?q?1755735124075103845?= |
Series |
Add samsung-matisselte and common matisse dtsi
|
|
Commit Message
Stefan Hansson
Jan. 22, 2023, 2:47 p.m. UTC
MSM8926 (also known as Snapdragon 400) is very similar to MSM8226 and
APQ8026 with the primary difference being that it features an LTE modem
unlike the former two which feature a 3G modem and a GPS-only modem,
respectively.
This also documents Samsung Galaxy Tab 4 10.1 LTE (samsung,matisselte)
which is a tablet by Samsung based on the MSM8926 SoC.
Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
---
Documentation/devicetree/bindings/arm/qcom.yaml | 6 ++++++
1 file changed, 6 insertions(+)
Comments
On 22/01/2023 15:47, Stefan Hansson wrote: > MSM8926 (also known as Snapdragon 400) is very similar to MSM8226 and > APQ8026 with the primary difference being that it features an LTE modem > unlike the former two which feature a 3G modem and a GPS-only modem, > respectively. > > This also documents Samsung Galaxy Tab 4 10.1 LTE (samsung,matisselte) > which is a tablet by Samsung based on the MSM8926 SoC. > > Signed-off-by: Stefan Hansson <newbyte@postmarketos.org> > --- > 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 47913a8e3eea..7a0b2088ead9 100644 > --- a/Documentation/devicetree/bindings/arm/qcom.yaml > +++ b/Documentation/devicetree/bindings/arm/qcom.yaml > @@ -35,6 +35,7 @@ description: | > mdm9615 > msm8226 > msm8916 > + msm8926 > msm8953 > msm8956 > msm8974 > @@ -219,6 +220,11 @@ properties: > - const: qcom,msm8916-v1-qrd/9-v1 > - const: qcom,msm8916 > > + - items: > + - enum: > + - samsung,matisselte 1. matisse is the code name, lte is version/suffix. I don't think they should be together, because then it looks like "matisselte" is a name. It actually sounds like one word. 2. You base on other SoC but you do not include its compatibles. Why? Is it intended? None of the properties applicable to other SoC will match here, thus I actually wonder if you run dtbs_check... Best regards, Krzysztof
On 23/01/2023 18:10, Krzysztof Kozlowski wrote: > On 22/01/2023 15:47, Stefan Hansson wrote: >> MSM8926 (also known as Snapdragon 400) is very similar to MSM8226 and >> APQ8026 with the primary difference being that it features an LTE modem >> unlike the former two which feature a 3G modem and a GPS-only modem, >> respectively. >> >> This also documents Samsung Galaxy Tab 4 10.1 LTE (samsung,matisselte) >> which is a tablet by Samsung based on the MSM8926 SoC. >> >> Signed-off-by: Stefan Hansson <newbyte@postmarketos.org> >> --- >> 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 47913a8e3eea..7a0b2088ead9 100644 >> --- a/Documentation/devicetree/bindings/arm/qcom.yaml >> +++ b/Documentation/devicetree/bindings/arm/qcom.yaml >> @@ -35,6 +35,7 @@ description: | >> mdm9615 >> msm8226 >> msm8916 >> + msm8926 >> msm8953 >> msm8956 >> msm8974 >> @@ -219,6 +220,11 @@ properties: >> - const: qcom,msm8916-v1-qrd/9-v1 >> - const: qcom,msm8916 >> >> + - items: >> + - enum: >> + - samsung,matisselte > > 1. matisse is the code name, lte is version/suffix. I don't think they > should be together, because then it looks like "matisselte" is a name. > It actually sounds like one word. Update: there is already matisse-wifi, so please follow the same naming convention. Version suffix should be separated with hyphen. > > 2. You base on other SoC but you do not include its compatibles. Why? Is > it intended? None of the properties applicable to other SoC will match > here, thus I actually wonder if you run dtbs_check... Best regards, Krzysztof
On 2023-01-23 18:11, Krzysztof Kozlowski wrote: > On 23/01/2023 18:10, Krzysztof Kozlowski wrote: >> On 22/01/2023 15:47, Stefan Hansson wrote: >>> MSM8926 (also known as Snapdragon 400) is very similar to MSM8226 and >>> APQ8026 with the primary difference being that it features an LTE modem >>> unlike the former two which feature a 3G modem and a GPS-only modem, >>> respectively. >>> >>> This also documents Samsung Galaxy Tab 4 10.1 LTE (samsung,matisselte) >>> which is a tablet by Samsung based on the MSM8926 SoC. >>> >>> Signed-off-by: Stefan Hansson <newbyte@postmarketos.org> >>> --- >>> 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 47913a8e3eea..7a0b2088ead9 100644 >>> --- a/Documentation/devicetree/bindings/arm/qcom.yaml >>> +++ b/Documentation/devicetree/bindings/arm/qcom.yaml >>> @@ -35,6 +35,7 @@ description: | >>> mdm9615 >>> msm8226 >>> msm8916 >>> + msm8926 >>> msm8953 >>> msm8956 >>> msm8974 >>> @@ -219,6 +220,11 @@ properties: >>> - const: qcom,msm8916-v1-qrd/9-v1 >>> - const: qcom,msm8916 >>> >>> + - items: >>> + - enum: >>> + - samsung,matisselte >> >> 1. matisse is the code name, lte is version/suffix. I don't think they >> should be together, because then it looks like "matisselte" is a name. >> It actually sounds like one word. > > Update: there is already matisse-wifi, so please follow the same naming > convention. Version suffix should be separated with hyphen. > I'm aware, and I've been in contact with the matisse-wifi dts author who told me that he went with this name because you suggested it (he had originally sent it in as matissewifi). However I don't think diverging from how the rest of the community refers to it is a good idea. Codenames often sound nonsensical, but they have effectively become the de-facto universal identifier for devices in the community and so I think retaining that consistency is more beneficial than making it sound nice. Additionally, while matisse-wifi has the hyphen added before the suffix, many other Samsung devices do not (klte, jackpotlte, s3ve3g). As such, I think the name matisse-wifi is the outlier here rather than matisselte (but yes, I do understand that they are more related to each other than the other devices mentioned). Does that sound sensible? >> >> 2. You base on other SoC but you do not include its compatibles. Why? Is >> it intended? None of the properties applicable to other SoC will match >> here, thus I actually wonder if you run dtbs_check... Sorry, I forgot about running dtbs_check. However, I'm not sure I understand the question. What do you mean by that I don't include its compatibles? I ran `$ make dtbs_check DT_SCHEMA_FILES=qcom.yaml` locally just now, and it only gave me errors from the qcom-msm8974pro-oneplus-bacon dtb. Maybe I'm running it wrong? > > Best regards, > Krzysztof > Thanks for the review, Stefan Hansson
On 23/01/2023 18:41, Stefan Hansson wrote: >>> >>> 2. You base on other SoC but you do not include its compatibles. Why? Is >>> it intended? None of the properties applicable to other SoC will match >>> here, thus I actually wonder if you run dtbs_check... > > Sorry, I forgot about running dtbs_check. However, I'm not sure I > understand the question. What do you mean by that I don't include its > compatibles? I understood you include the msm8226.dtsi which is a different SoC. If you include it, you get all of its content. We do it only for compatible devices, but your device does not indicate compatibility with msm8226. > > I ran `$ make dtbs_check DT_SCHEMA_FILES=qcom.yaml` locally just now, > and it only gave me errors from the qcom-msm8974pro-oneplus-bacon dtb. > Maybe I'm running it wrong? No clue, I cannot test because your patches do not apply cleanly. Best regards, Krzysztof
On Montag, 23. Jänner 2023 19:08:03 CET Krzysztof Kozlowski wrote: > On 23/01/2023 18:41, Stefan Hansson wrote: > >>> 2. You base on other SoC but you do not include its compatibles. Why? Is > >>> it intended? None of the properties applicable to other SoC will match > >>> here, thus I actually wonder if you run dtbs_check... > > > > Sorry, I forgot about running dtbs_check. However, I'm not sure I > > understand the question. What do you mean by that I don't include its > > compatibles? > > I understood you include the msm8226.dtsi which is a different SoC. If > you include it, you get all of its content. We do it only for compatible > devices, but your device does not indicate compatibility with msm8226. Hi Krzysztof, the way the earlier Qualcomm SoCs work, especially regarding naming scheme is the following. There's for example the msm8x74 family which includes msm8974, msm8674, msm8274, and the a bit differently named apq8074 where the significant different are the RF capabilities, I think with those only 8974 had LTE, 8674 and 8274 only 3G but different band support, and the apq8074 has no mobile radio. The same exists for sure also for 8x16 and 8x26, probably a bunch of other SoCs as well. So from software side (apart from modem firmware of course) it can be treated in practise as the same SoC so that's why we included the dtsi in this case in msm8226 but also msm8926 and apq8026. But the compatible on board-level is in practise (to my knowledge) not really used for anything important other than having a nice string in the dts file. I know some software uses compatible from user space but there for differentiating between different devices and ignoring the SoC compatibles. But while they are software-compatible for the most part, they *are* distinct SoCs with different capabilities and I just don't see the point in trying to establish some kinds of relationships between different SoCs that are somewhat or very similar (msm8226 and msm8974 also share many components but are obviously different SoCs). And also e.g. (nearly) all apq* dts files we already have in mainline only have apq compatible and not the corresponding msm* compatible. And I think that's totally legitimate. Regards Luca > > > I ran `$ make dtbs_check DT_SCHEMA_FILES=qcom.yaml` locally just now, > > and it only gave me errors from the qcom-msm8974pro-oneplus-bacon dtb. > > Maybe I'm running it wrong? > > No clue, I cannot test because your patches do not apply cleanly. > > Best regards, > Krzysztof
On 28/01/2023 22:43, Luca Weiss wrote: > On Montag, 23. Jänner 2023 19:08:03 CET Krzysztof Kozlowski wrote: >> On 23/01/2023 18:41, Stefan Hansson wrote: >>>>> 2. You base on other SoC but you do not include its compatibles. Why? Is >>>>> it intended? None of the properties applicable to other SoC will match >>>>> here, thus I actually wonder if you run dtbs_check... >>> >>> Sorry, I forgot about running dtbs_check. However, I'm not sure I >>> understand the question. What do you mean by that I don't include its >>> compatibles? >> >> I understood you include the msm8226.dtsi which is a different SoC. If >> you include it, you get all of its content. We do it only for compatible >> devices, but your device does not indicate compatibility with msm8226. > > Hi Krzysztof, > > the way the earlier Qualcomm SoCs work, especially regarding naming scheme is > the following. > > There's for example the msm8x74 family which includes msm8974, msm8674, > msm8274, and the a bit differently named apq8074 where the significant > different are the RF capabilities, I think with those only 8974 had LTE, 8674 > and 8274 only 3G but different band support, and the apq8074 has no mobile > radio. > > The same exists for sure also for 8x16 and 8x26, probably a bunch of other > SoCs as well. > > So from software side (apart from modem firmware of course) it can be treated > in practise as the same SoC so that's why we included the dtsi in this case in > msm8226 but also msm8926 and apq8026. First, there is distinction between SoC having and not having modem. I guess small enough that we just include the DTSI. Second, there is distinction between different families, even if they share a lot. All of the SoCs here share something, because Qualcomm has versionable IP blocks which they re-use. > > But the compatible on board-level is in practise (to my knowledge) not really > used for anything important other than having a nice string in the dts file. I > know some software uses compatible from user space but there for > differentiating between different devices and ignoring the SoC compatibles. It's not only about board, but about all devices in the SoC. > > But while they are software-compatible for the most part, they *are* distinct > SoCs with different capabilities and I just don't see the point in trying to > establish some kinds of relationships between different SoCs that are somewhat > or very similar (msm8226 and msm8974 also share many components but are > obviously different SoCs). You don't have to create such relationships. You don't have to include other DTSI, either. What yo have to is - quoting Linux docs: "DO make 'compatible' properties specific. DON'T use wildcards in compatible strings. DO use fallback compatibles when devices are the same as or a subset of prior implementations. DO add new compatibles in case there are new features or bugs." > > And also e.g. (nearly) all apq* dts files we already have in mainline only > have apq compatible and not the corresponding msm* compatible. And I think > that's totally legitimate. We do not talk here about apq, actually, at all. We talk about one msm8xxx including other msm8xxx... Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 47913a8e3eea..7a0b2088ead9 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -35,6 +35,7 @@ description: | mdm9615 msm8226 msm8916 + msm8926 msm8953 msm8956 msm8974 @@ -219,6 +220,11 @@ properties: - const: qcom,msm8916-v1-qrd/9-v1 - const: qcom,msm8916 + - items: + - enum: + - samsung,matisselte + - const: qcom,msm8926 + - items: - enum: - motorola,potter