Message ID | 20230506-msm8226-ocmem-v1-4-3e24e2724f01@z3ntu.xyz |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1479594vqo; Sun, 7 May 2023 02:36:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5DQ5IAjBkpdXjKhxPQSkXVO9b6zSmKippy0QK8Kr8b+APuccU6Z5zXMDV+lTH/65x9UDDw X-Received: by 2002:a05:6a21:33a7:b0:ff:b84d:f1be with SMTP id yy39-20020a056a2133a700b000ffb84df1bemr3904909pzb.56.1683452194689; Sun, 07 May 2023 02:36:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683452194; cv=none; d=google.com; s=arc-20160816; b=R64xLtmoobp4M9VOgq7sC4Obf3e5MR+Zhxm9DUf4IuAZt7it6XM/BeIDaQPRCS9df7 Frv/RqgoePBhX2hkemVZHPzqP90YpppFGXyl7pZkl6OHCRvXs/XTJWrT0gl1bqQ/6hUE A/CyJHxAKAi6auJCnhD6y68+i5HVLFU4OdpvdQghNEdyMz4ZdVS9WirH4ZP6oYoDPGCU nmmxsvzP5bv1BM81f29gISonkRHA1XRmlo6LzAHAJgSDXdCUbFjZoawcXynxGjN+vB+A ymu62jLysPztnvc6egZ3jfYSFiKSb8DEIovLtkG+XKrenhdWpf8snnVMXMzDv+So+9Gr 8ZQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=fq5ye96r8lzQurJE7Li4KEI9LeqAKFf8ElzCxJ10Ih4=; b=WOYFTtgqgTW1se6wJ58mm6832Q4jnJZwSplw/MO+0a09Uij421VQZrxm/PYe2vVIWp +MeyNSSdPQDzO4HbPBX9smfAMFb78tkG2nd+YRrOqs6HOi0InnesC/Ik+1uacDaOO2Xo azklqHMqWO7IwXqnSrKeHwVUWWFzfFKew5RXgKVRNiWxrrVw+s8gk1rUSn/qgaRua2Ih +UaldxZoJSwSWWnPubEjx4FQU5ymjvbozvFQgmisU0Fu7BgVPJhJnewbsMNniw1oFPKk REgNTrKdPx1M55bhNxBk9ouEA1jSCGX3LDKN+NKVq3ed8XFWikFHYHF/12aRhPXF353z EV7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b="I/dZSPdD"; 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=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m185-20020a6258c2000000b0063b76333d9asi5943014pfb.217.2023.05.07.02.36.20; Sun, 07 May 2023 02:36:34 -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=@z3ntu.xyz header.s=z3ntu header.b="I/dZSPdD"; 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=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231435AbjEGJNP (ORCPT <rfc822;baris.duru.linux@gmail.com> + 99 others); Sun, 7 May 2023 05:13:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231160AbjEGJNF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 7 May 2023 05:13:05 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BE0293EF; Sun, 7 May 2023 02:13:04 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 70D90CED44; Sun, 7 May 2023 09:13:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1683450782; bh=+HLqotxx7gZMNsXvbHFzLrlC56VGgmQVw5mOG7any3k=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=I/dZSPdDA572hljFRrN7W+2ZA4mwDEMq7391pceKwdyz751WCX5XnFBoMod0rd1E7 2bikMtFQoes2CN2bykdWKZVG7E203fuAmAoznXZ581X//h6kpObsQrSTs1wGORjCug wqL3wTx0FwtY3TqGFil29xZ0mNxe9naDlnbSLshQ= From: Luca Weiss <luca@z3ntu.xyz> Date: Sun, 07 May 2023 11:12:21 +0200 Subject: [PATCH 4/6] dt-bindings: sram: qcom,ocmem: Add msm8226 support MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230506-msm8226-ocmem-v1-4-3e24e2724f01@z3ntu.xyz> References: <20230506-msm8226-ocmem-v1-0-3e24e2724f01@z3ntu.xyz> In-Reply-To: <20230506-msm8226-ocmem-v1-0-3e24e2724f01@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Clark <robdclark@gmail.com>, Brian Masney <masneyb@onstation.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Luca Weiss <luca@z3ntu.xyz> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1059; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=+HLqotxx7gZMNsXvbHFzLrlC56VGgmQVw5mOG7any3k=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkV2ua0xwuSXq/FjkXsYzhznBLwXPROZrFFglpf spNVlbngv+JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZFdrmgAKCRBy2EO4nU3X VneiEADYmn8WW8ia3MJJq/N9f/5r4Cd/U20tZ21DQ9MdG3y27pipiRNgtx9Re9Ji9zbl2xIQSg6 Jp5LgZ/ixxmCPq5AANj3Y6K+oi7Ljh5Z/OcWLnlc2ZokKHq6NvTxeK0xNCqaOStQ/bsmh+38/GT uZRLIHV3VfdISsWTSNIrm+uZ1Nz/rUew6gsagvXKNBiCo66bIDFcLjGOhR5+7HWWUj/puJA9KRP RXuVpQLbu9tG4lToOYFnSRDX9RFpR0dX0v/6ZAhCk1UE5ObL1hSHPJ5KtLbBsfBh7coGxBJy1Qq 4xkrKAAyuCb7aZdjgbgv7u87/KXBMz6rgeiPxX5/BD2wH6HGXOGip/NRpcEwv9yif2roQ/YwJH/ omemRNmuwi5dGpsHYZwl1w2WQiDaHntVdTnfWPl7KzotyWXJNvAVhMzd5NEWR6+LPdnY3Yh9Vj8 zWTBGdYWvktpsmzFn+APIGnYU7CV/4MddBtoAPHuEqdV4cr4NXucL3V0x862r2mzccdnxVIydSL bzrO4omIBHr7qm+Ba3TVOPhwqfdxwrn9Xgc1xWQpckLEXnfBObw9WYsRexWdgd4LQQp2tRF4HoA DXZlGsGZ/GR78vWq2jmFRnQTas4KWtZwz04JGdFi+MWywjr8iaL8SiFbipYr2Qt01Kr1/7aT7Fn Rcg8Azc/jc9tGuw== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD 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_PASS, T_SCC_BODY_TEXT_LINE,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?1765227568297475355?= X-GMAIL-MSGID: =?utf-8?q?1765227568297475355?= |
Series |
Add MSM8226 OCMEM support plus some extra OCMEM driver fixes
|
|
Commit Message
Luca Weiss
May 7, 2023, 9:12 a.m. UTC
Add the compatible for the OCMEM found on msm8226 which compared to
msm8974 only has a core clock and no iface clock.
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
Documentation/devicetree/bindings/sram/qcom,ocmem.yaml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Comments
On 7.05.2023 11:12, Luca Weiss wrote: > Add the compatible for the OCMEM found on msm8226 which compared to > msm8974 only has a core clock and no iface clock. > > Signed-off-by: Luca Weiss <luca@z3ntu.xyz> > --- > Documentation/devicetree/bindings/sram/qcom,ocmem.yaml | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml b/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml > index 4bbf6db0b6bd..515f0d8ec641 100644 > --- a/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml > +++ b/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml > @@ -15,7 +15,9 @@ description: | > > properties: > compatible: > - const: qcom,msm8974-ocmem > + enum: > + - qcom,msm8226-ocmem > + - qcom,msm8974-ocmem Any chance you could read the revision field on both and add comments like: - qcom,msm8974-ocmem # vX.Y > > reg: > items: > @@ -28,11 +30,13 @@ properties: > - const: mem > > clocks: > + minItems: 1 > items: > - description: Core clock > - description: Interface clock allOf: if: properties: compatible: 8974 / then: clock(s|-names): minItems: 2 Konrad > > clock-names: > + minItems: 1 > items: > - const: core > - const: iface >
On Montag, 8. Mai 2023 09:39:22 CEST Konrad Dybcio wrote: > On 7.05.2023 11:12, Luca Weiss wrote: > > Add the compatible for the OCMEM found on msm8226 which compared to > > msm8974 only has a core clock and no iface clock. > > > > Signed-off-by: Luca Weiss <luca@z3ntu.xyz> > > --- > > > > Documentation/devicetree/bindings/sram/qcom,ocmem.yaml | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml > > b/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml index > > 4bbf6db0b6bd..515f0d8ec641 100644 > > --- a/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml > > +++ b/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml > > @@ -15,7 +15,9 @@ description: | > > > > properties: > > compatible: > > - const: qcom,msm8974-ocmem > > + enum: > > + - qcom,msm8226-ocmem > > + - qcom,msm8974-ocmem > > Any chance you could read the revision field on both and add comments > like: > > - qcom,msm8974-ocmem # vX.Y Do you mean the OCMEM_REG_HW_VERSION register? It's currently not read in the driver so no idea what the value is - without adding some code. > > > reg: > > items: > > @@ -28,11 +30,13 @@ properties: > > - const: mem > > > > clocks: > > + minItems: 1 > > > > items: > > - description: Core clock > > - description: Interface clock > > allOf: if: properties: compatible: 8974 / then: clock(s|-names): minItems: 2 Sure, can update > > Konrad > > > clock-names: > > + minItems: 1 > > > > items: > > - const: core > > - const: iface
On 9.05.2023 18:44, Luca Weiss wrote: > On Montag, 8. Mai 2023 09:39:22 CEST Konrad Dybcio wrote: >> On 7.05.2023 11:12, Luca Weiss wrote: >>> Add the compatible for the OCMEM found on msm8226 which compared to >>> msm8974 only has a core clock and no iface clock. >>> >>> Signed-off-by: Luca Weiss <luca@z3ntu.xyz> >>> --- >>> >>> Documentation/devicetree/bindings/sram/qcom,ocmem.yaml | 6 +++++- >>> 1 file changed, 5 insertions(+), 1 deletion(-) >>> >>> diff --git a/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml >>> b/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml index >>> 4bbf6db0b6bd..515f0d8ec641 100644 >>> --- a/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml >>> +++ b/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml >>> @@ -15,7 +15,9 @@ description: | >>> >>> properties: >>> compatible: >>> - const: qcom,msm8974-ocmem >>> + enum: >>> + - qcom,msm8226-ocmem >>> + - qcom,msm8974-ocmem >> >> Any chance you could read the revision field on both and add comments >> like: >> >> - qcom,msm8974-ocmem # vX.Y > > Do you mean the OCMEM_REG_HW_VERSION register? Yep It's currently not read in the > driver so no idea what the value is - without adding some code. Would be appreciated! Konrad > >> >>> reg: >>> items: >>> @@ -28,11 +30,13 @@ properties: >>> - const: mem >>> >>> clocks: >>> + minItems: 1 >>> >>> items: >>> - description: Core clock >>> - description: Interface clock >> >> allOf: if: properties: compatible: 8974 / then: clock(s|-names): minItems: 2 > > Sure, can update > >> >> Konrad >> >>> clock-names: >>> + minItems: 1 >>> >>> items: >>> - const: core >>> - const: iface > > > >
On Dienstag, 9. Mai 2023 22:00:03 CEST Konrad Dybcio wrote: > On 9.05.2023 18:44, Luca Weiss wrote: > > On Montag, 8. Mai 2023 09:39:22 CEST Konrad Dybcio wrote: > >> On 7.05.2023 11:12, Luca Weiss wrote: > >>> Add the compatible for the OCMEM found on msm8226 which compared to > >>> msm8974 only has a core clock and no iface clock. > >>> > >>> Signed-off-by: Luca Weiss <luca@z3ntu.xyz> > >>> --- > >>> > >>> Documentation/devicetree/bindings/sram/qcom,ocmem.yaml | 6 +++++- > >>> 1 file changed, 5 insertions(+), 1 deletion(-) > >>> > >>> diff --git a/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml > >>> b/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml index > >>> 4bbf6db0b6bd..515f0d8ec641 100644 > >>> --- a/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml > >>> +++ b/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml > >>> @@ -15,7 +15,9 @@ description: | > >>> > >>> properties: > >>> compatible: > >>> - const: qcom,msm8974-ocmem > >>> + enum: > >>> + - qcom,msm8226-ocmem > >>> + - qcom,msm8974-ocmem > >> > >> Any chance you could read the revision field on both and add comments > >> like: > >> > >> - qcom,msm8974-ocmem # vX.Y > > > > Do you mean the OCMEM_REG_HW_VERSION register? > > Yep > > It's currently not read in the > > > driver so no idea what the value is - without adding some code. > > Would be appreciated! Appears msm8974 has v1.4.0 and msm8226 has v1.1.0. Will include this in the next revision. Regards Luca > > Konrad > > >>> reg: > >>> items: > >>> @@ -28,11 +30,13 @@ properties: > >>> - const: mem > >>> > >>> clocks: > >>> + minItems: 1 > >>> > >>> items: > >>> - description: Core clock > >>> - description: Interface clock > >> > >> allOf: if: properties: compatible: 8974 / then: clock(s|-names): > >> minItems: 2> > > Sure, can update > > > >> Konrad > >> > >>> clock-names: > >>> + minItems: 1 > >>> > >>> items: > >>> - const: core > >>> - const: iface
diff --git a/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml b/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml index 4bbf6db0b6bd..515f0d8ec641 100644 --- a/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml +++ b/Documentation/devicetree/bindings/sram/qcom,ocmem.yaml @@ -15,7 +15,9 @@ description: | properties: compatible: - const: qcom,msm8974-ocmem + enum: + - qcom,msm8226-ocmem + - qcom,msm8974-ocmem reg: items: @@ -28,11 +30,13 @@ properties: - const: mem clocks: + minItems: 1 items: - description: Core clock - description: Interface clock clock-names: + minItems: 1 items: - const: core - const: iface