Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2914186rwb; Fri, 9 Dec 2022 07:48:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf4zVpJddWNtY9ypbPJK+d/5I01L3numAvAjEhuoyiZLZ0+rcv2tCuVVLU1HyYd2aCIGkMlc X-Received: by 2002:a17:906:5ca:b0:78d:f455:3112 with SMTP id t10-20020a17090605ca00b0078df4553112mr5117787ejt.58.1670600890904; Fri, 09 Dec 2022 07:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670600890; cv=none; d=google.com; s=arc-20160816; b=eqBz6enFKAhSaKoCbFbT/dYBc67C3nSowhc1v/WYULfx1iSBBLorhCS1Y7PWHIrO7E TqbIp+SiCtrxGp6pGrST1BZd0sTYKRW4p9kEN6jXUJ4oFnLYbSdN0z7+B6P/LAXnXKRF X7kU8chZUCevapHxDcCI6HUDYd0S3GEhqb+s+1tqJBmCdZWHT1jiBqo3PWBPTLR4Pq+5 AoX7j6tYstpRNJNFIOQWIp2Hf1DQJ6cqhTNcl8QztYK59QpmouHiWUsLGWX2voKW5Z7i cT+Rpz7s5yPhQrXsd6RcmH+d/0tZbzL22uvUDGqBo75QOcxJBhjiGlbXG1Y0n6GU/xOV mWeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=JMRUIEtDFVbh5l53hZeff63KpfZmDW51Pm8OPZ9FBT8=; b=WhySVeGHg8iLZfk8hA6+ASzgZ+kBoQisreeY8YpROEa6xhGFoTT5h5Q/vCoc+1179t wi1LaJNrpc/ilp0kzznVuyziZzpK6eIdfz4HBhj5mwmWaiUq3pRTQ2iqNtD7IGlAJIy8 gQ6HNyENBQ+h+YRM2My0f5Ygum5WnQE69ymUhMeE9O+fjN/0qZMl8YfaSIHYPRg2e/us YlxqV7GB5hIWN+LviYMUqMmQLP/YESnotqxXPRJyuxP07pJIDlSq5jZyoxSJriX1Nm2A 0rKBOtx6fFtwAQF+aAvbuKT0/pzHphnPVuWjbMzQHM0P6y0Y4tunvJbMgOw/ymL/uqFV YrKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=byM8H3VP; 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=fairphone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm22-20020a170907949600b007a31138203asi67347ejc.669.2022.12.09.07.47.52; Fri, 09 Dec 2022 07:48:10 -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=@fairphone.com header.s=fair header.b=byM8H3VP; 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=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230189AbiLIPMU (ORCPT + 76 others); Fri, 9 Dec 2022 10:12:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230286AbiLIPMD (ORCPT ); Fri, 9 Dec 2022 10:12:03 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 870A217421 for ; Fri, 9 Dec 2022 07:12:01 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id c17so3434503edj.13 for ; Fri, 09 Dec 2022 07:12:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JMRUIEtDFVbh5l53hZeff63KpfZmDW51Pm8OPZ9FBT8=; b=byM8H3VPuoJUuOgVb2ndN5rvOI+J/fj4UVR/F9j0gPvlcE+4ieTrdLaiAjmdSJjCWq jCwo3zjPh3miq7zWXsdp4brR4rl1V/KtXgIah5R4y40jKGwg+XRjFJKcqBcK+x/pBKQr uTKKjCBGQy+H8le08kRza4b6Ee58MgMaDVaIoSxsidW5jUatWVREYN/QSTbvS423lUY5 FGNhN4vtEKivFnqhDG7tKgEzA7EMYrVyA3hn2nAOXnu/56xiN7jdWU/DfhiD6AozQE8D vcmwu+yIWptcvgkdFAeowc+6Z3wXCYUPSsz+C+ZewIZhbo8vTjSpvQyNv1NRjI2VuYSL bArg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=JMRUIEtDFVbh5l53hZeff63KpfZmDW51Pm8OPZ9FBT8=; b=DCtfxQLuzXhb6Lju5T8ZFOYu5VVnAmoP+bk51vpmcRYA2IGp9rtNVbmxtqlFAS196+ NVS1/yoaFKgxrmWmmtAIoS1ikaAFl9GXub1kqkS63bbtMZgXyEToFNjIzp9wASLLMVjN 2FXKQ/57XipSP0ZI3ivk4Ag/3KEXQZJzdHLOQcUdMxqASkplS47pAmVlvbIuOgvBFGxY Ss/vMhYKMTUlHlbRd+SoEBYZVBLV/mR6jojJJg6S14N1/7s8UM/11MKfvsojLK6fCwYk S2+H0jutwQ9dNACORyYNbM23yvjvtB44RLeoL8o9YEf+UvTyxJkWsl0Gr9Eygn1MFV8/ jDow== X-Gm-Message-State: ANoB5pkDfyAh6ah0EiEguGqiA7Q7Yx+klL73Bm8I+SnxQoyg/MR9YW77 8qpZPxMyDiXiOW4MqnwO9A8o4w== X-Received: by 2002:a05:6402:2484:b0:45c:835b:8fa3 with SMTP id q4-20020a056402248400b0045c835b8fa3mr6041581eda.14.1670598720098; Fri, 09 Dec 2022 07:12:00 -0800 (PST) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id z4-20020aa7c644000000b0046b471596e6sm732404edr.57.2022.12.09.07.11.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Dec 2022 07:11:59 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 09 Dec 2022 16:11:59 +0100 Message-Id: Cc: , , , Subject: Re: [PATCH] dt-bindings: ufs: qcom: Add reg-names property for ICE From: "Luca Weiss" To: "Krzysztof Kozlowski" , <~postmarketos/upstreaming@lists.sr.ht>, , "Andy Gross" , "Bjorn Andersson" , "Konrad Dybcio" , "Alim Akhtar" , "Avri Altman" , "Bart Van Assche" , "Rob Herring" , "Krzysztof Kozlowski" X-Mailer: aerc 0.13.0 References: <20221209-dt-binding-ufs-v1-0-8d502f0e18d5@fairphone.com> <24fa41d2-87d1-be19-af44-337784b0f0a4@linaro.org> In-Reply-To: <24fa41d2-87d1-be19-af44-337784b0f0a4@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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: X-Mailing-List: linux-kernel@vger.kernel.org On Fri Dec 9, 2022 at 4:05 PM CET, Krzysztof Kozlowski wrote: > On 09/12/2022 15:29, Luca Weiss wrote: > > The code in ufs-qcom-ice.c needs the ICE reg to be named "ice". Add thi= s > > in the bindings so the existing dts can validate successfully. > >=20 > > Also sm8450 is using ICE since commit 276ee34a40c1 ("arm64: dts: qcom: > > sm8450: add Inline Crypto Engine registers and clock") so move the > > compatible to the correct if. > >=20 > > Signed-off-by: Luca Weiss > > --- > > (no cover subject) > >=20 > > The only remaining validation issues I see is the following on sc8280xp= -crd.dtb > > and sa8540p-ride.dtb: > >=20 > > Unevaluated properties are not allowed ('required-opps', 'dma-coheren= t' were unexpected) > >=20 > > Maybe someone who knows something about this can handle this? > >=20 > > And the patch adding qcom,sm6115-ufshc hasn't been applied yet. > > --- > > Documentation/devicetree/bindings/ufs/qcom,ufs.yaml | 8 +++++++- > > 1 file changed, 7 insertions(+), 1 deletion(-) > >=20 > > diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Docu= mentation/devicetree/bindings/ufs/qcom,ufs.yaml > > index f2d6298d926c..58a2fb2c83c3 100644 > > --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml > > +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml > > @@ -102,7 +102,6 @@ allOf: > > - qcom,sc8280xp-ufshc > > - qcom,sm8250-ufshc > > - qcom,sm8350-ufshc > > - - qcom,sm8450-ufshc > > then: > > properties: > > clocks: > > @@ -130,6 +129,7 @@ allOf: > > - qcom,sdm845-ufshc > > - qcom,sm6350-ufshc > > - qcom,sm8150-ufshc > > + - qcom,sm8450-ufshc > > then: > > properties: > > clocks: > > @@ -149,6 +149,12 @@ allOf: > > reg: > > minItems: 2 > > maxItems: 2 > > + reg-names: > > There are no reg-names in top-level, so it's surprising to see its > customized here. It seems no one ever documented that usage... From what I can tell, from driver side all devices not using ICE don't need reg-names, only the "ice" reg is referenced by name in the driver. I didn't add it top-level because with only one reg I think we're not supposed to use reg-names, right? Regards Luca > > > + items: > > + - const: std > > + - const: ice > > + required: > > + - reg-names > > =20 > > - if: > > properties: > >=20 > > --- > > base-commit: f925116b24c0c42dc6d5ab5111c55fd7f74e8dc7 > > change-id: 20221209-dt-binding-ufs-2d7f64797ff2 > >=20 > > Best regards, > > Best regards, > Krzysztof