Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6371251rwr; Tue, 9 May 2023 14:19:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5UrgnU0Gs0mg9MHlaVZfm6E98tlqd5CM2yy9RRDWjRfZ1qjD6t74f1b6HK6yv2Id/ogbLi X-Received: by 2002:a17:902:b205:b0:1a9:80a0:47fc with SMTP id t5-20020a170902b20500b001a980a047fcmr13748841plr.17.1683667142058; Tue, 09 May 2023 14:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683667142; cv=none; d=google.com; s=arc-20160816; b=QBT0pR3yAXpUfe+Znh5sCYZL8HxEXHkhEUVC7K5eVPtk5WqOae/zpABgcvLGHIHica bWy6x94eZNF7SQtzCWKuYeihqi29SNblZw+6SqiLnJgwRmBO0RXMFMH/gz0TRwxk8epO XoFUykEiE4GIzeaeBBN0v/sNMTOFyCU0+Oohhr3yryO0CXkUqALVDGP7a5Y9cTTwsXdC wrN2rnv+bq86zb6INj0yu9m0tzxwEn1pL9xSo/WLWCtzJDcvD06T9X0OHDg+NSpx3o/f TxhUiChKjM9R2e7uhGU8yBDy+aNYkDKpDsI7px02pV+DeKEwsbd8U7ZW34ncarUM4FY5 W8Aw== 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=BVJhG+ztYy4j3XeGMuFmazO8Eax/eRT9dHtkH0mx7vI=; b=HoDF3hxUlMlrzkaZvv5yts7ZDS3oLssSuynN0Fjg9Muo8oJiXG3zDTe/sg+y9b5zV+ 8/Qtz5pYsNXixkUUGWyyE17BXMsC2L9cL3CoCRIsdVWkuJeEAkxQ5BhPXSp4MV1bZXkV PyryYhWHcmFiz6ukpWLirpB3zomKPWP06O+60bdR11Htfr+JAE+rcuKkPkwSGM/E4l1f eorHSRbxfPvCCJ7nyqIDPUFrvvqKwVcNEII+ASgSfFR895irz6lSA2HZwpKHke+guHEs AbstbbL0PNWMkf7/qgdnvYHccmYyg+CCx22pDR7wMEQN0NieYdSz60hR1B9XhAf3Lm6I 2kRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=ZFfUb9SB; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j7-20020a170902da8700b001ac910345d9si2459433plx.589.2023.05.09.14.18.48; Tue, 09 May 2023 14:19:02 -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=ZFfUb9SB; 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 S234635AbjEIVLK (ORCPT + 99 others); Tue, 9 May 2023 17:11:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjEIVLI (ORCPT ); Tue, 9 May 2023 17:11:08 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C47862721; Tue, 9 May 2023 14:11:06 -0700 (PDT) Received: from g550jk.localnet (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 8BBBFC7021; Tue, 9 May 2023 21:10:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1683666634; bh=G9P8GwMxO4SBZr0FJcEpePiv5xT0e9d3vve9PbLG8Cw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ZFfUb9SBKGHc5M/ZQAqEuqxT2fF58wYdUFzK8kD86b/CdmObg9QviLsIl3ZFFBo2Q ldWAbkw4sES7KBqg/u5glgbHPHy0g0ANNfamaSpgnGGtOtrQ5+9I71NX2S3tOJdy7D nXtAL+7TrG79CnNixyNHMWhxmqkC5jPxnYBbmYfM= From: Luca Weiss To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Clark , Brian Masney , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 4/6] dt-bindings: sram: qcom,ocmem: Add msm8226 support Date: Tue, 09 May 2023 23:10:33 +0200 Message-ID: <8118185.EvYhyI6sBW@z3ntu.xyz> In-Reply-To: References: <20230506-msm8226-ocmem-v1-0-3e24e2724f01@z3ntu.xyz> <2449951.tdWV9SEqCh@z3ntu.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 > >>> --- > >>> > >>> 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