From patchwork Tue Aug 8 09:44:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 132909 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2417877vqr; Tue, 8 Aug 2023 14:59:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJylTxRDv10fEB+BzT/t9Yt+PcHJXy4297XrjtMGTnJYfzqKOOzZskSFeEpWm9tAL0qNAE X-Received: by 2002:a05:6a20:5483:b0:140:98b2:899b with SMTP id i3-20020a056a20548300b0014098b2899bmr1027182pzk.59.1691531996588; Tue, 08 Aug 2023 14:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691531996; cv=none; d=google.com; s=arc-20160816; b=ttVVv1IXeBsm+5UIh4C6JtbReM8MErvSh4DlPqZ0tiR3qakn3UfXZQBv9S92lhO0Lu 0t1UIAMKVAcf8m/0N9DJgg7Abkf2RzPG0sfZA91rEjlr5+rYO9BeAqITIUPfdsUeOWY3 qAl55rkydmPFn4cPzfljVY7wOmp3yZJ8Xakcv6a04ZHJ9W59DXVEwH24pdXCyila2vhg 4F/RpINwYoyPLXP5AkDRkvwnV/wwHmxwJPhDp2y3IL/vqzxh3SA8wlqBJ4OV5O/4z6BD J1YaEGD2wjS0DD82wuX1fgY0Y/EWuvD+wZh01HXvauWxgaa20eaZHkaMbQktbFiNom7G /xWw== 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=2UuNhIPZQtVYzGmtMAw0xH3Mxdy93w7NQpbLuvaKjSg=; fh=VohwHOOqzSlyJV69dvs7BsalUDFtNFz6jeRDBhhLiNI=; b=TZQ15Ffk1LD4WupPpXbEi1FNsz+cohoZnC1JAl5RB2HPnisys0A1mYYTZ80QlVWOCE v7BeZdVh0D1GA+CD0iFWGr/SCF9ZSKnp1IM7zf26+LXagz8OWDw/BvafEsJSxRMirldd 6oPVE1vh/9O+rwGN8yaPRl+QSxl1Qx5Ibg5g8+Hs3hcIOjU5aK+KrwQN7kPH0Y8HNTpd Y6fyEEvVsE7Jzq+ccp7HX5VrtKiArOPgEDYiYcbwE1ea8uIx+0p+IPRTMUNcmwjB/x4D HogvNDTQuLOwI9eFAlMhkWaBVRshgDs8+x6pk7hP/NDag/1vO5TDCXB6FJSUfR69pIQq 6yrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OSHf146I; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a63f508000000b005578c6a7672si7870725pgh.90.2023.08.08.14.59.41; Tue, 08 Aug 2023 14:59:56 -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=@linaro.org header.s=google header.b=OSHf146I; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235277AbjHHUuy (ORCPT + 99 others); Tue, 8 Aug 2023 16:50:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235021AbjHHUuh (ORCPT ); Tue, 8 Aug 2023 16:50:37 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 557E444450 for ; Tue, 8 Aug 2023 09:46:18 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-99c136ee106so858158166b.1 for ; Tue, 08 Aug 2023 09:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691513177; x=1692117977; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=2UuNhIPZQtVYzGmtMAw0xH3Mxdy93w7NQpbLuvaKjSg=; b=OSHf146I6F2wP5s2LV6VnA447Y5tDXIgBW88I33QkCDyar0uZR1Nu01fOHMyC/fU2j NliiOvz343A9rWhFQVl+a/0LaCdkjbofX0/DzZBIqPrdm8BDluKsT8qgw+39e7mTQQKD maqEKYv4tfZI1jNAqdNGHdYez6GE8MrWIC+0t16khWpcFxMiLf2bHvlcWcVyEmXuZkBJ IQACwsJJcPb5LxnGaQa4H8mteIscWTSZdFBlJwS1vkSRt4R/mZkCbPkV35+G+6tJdWrm 5MvYjpxpq+kaPozqQMsfAT9eG0BylNfHmi6x3EG9t1aDBBFj0asyYYXknHapdVIxBFLV 6Wtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691513177; x=1692117977; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2UuNhIPZQtVYzGmtMAw0xH3Mxdy93w7NQpbLuvaKjSg=; b=Jbda8ZRHhaDZJnFHmiVdVQyV9rYMa3Y4cQNKTfL1gLs9uvMCCS/btfT0Sw0shFojzk Yuu6KTDR+xnsjH6WGXA4ndQuCHHoZq+f/L2ekWSQr0E0iZ84Ti64LnNCUxz2goQTwZiL wFHRK8calxSMWY4qkXzdbKn8u77+WxDwlo5Y+en4SIZjKy+LTJK8RsPt8zqj9m+N1dSI /USkIA8oCseAfeTDdO5lAN+uxv683Vnvh8v6qqK6O3+7gnlryX6T2r+Et/70jBrV1Nme pvMaMwJ/ZJXwBLGDC2n9gGmw6oNbAQlDK/oEK8ta2abZSh1esqoOuJCZ3T3EtLCXGfZ6 asJA== X-Gm-Message-State: AOJu0Yz8iyCD+IRco5FhcLpZY/VtTmC46boti6zV1FACgo27JnUY+ZeP kuXsiEZY7OQ3ZlWnMtxoBFQE4NUtWDUgdFRjFqA= X-Received: by 2002:ac2:4ece:0:b0:4f8:5604:4b50 with SMTP id p14-20020ac24ece000000b004f856044b50mr7020474lfr.64.1691487899167; Tue, 08 Aug 2023 02:44:59 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id i6-20020a056512006600b004fdba93b92asm1818884lfo.252.2023.08.08.02.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 02:44:58 -0700 (PDT) From: Konrad Dybcio Date: Tue, 08 Aug 2023 11:44:46 +0200 Subject: [PATCH v2 6/6] dt-bindings: arm-smmu: Fix MSM8998 clocks description MIME-Version: 1.0 Message-Id: <20230531-topic-8998_mmssclk-v2-6-34273e275c51@linaro.org> References: <20230531-topic-8998_mmssclk-v2-0-34273e275c51@linaro.org> In-Reply-To: <20230531-topic-8998_mmssclk-v2-0-34273e275c51@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , Michael Turquette , Stephen Boyd , Jeffrey Hugo , Imran Khan , Rajendra Nayak , Joonwoo Park , Jeffrey Hugo , Will Deacon , Robin Murphy , Joerg Roedel , Jeffrey Hugo Cc: Marijn Suijten , Dmitry Baryshkov , Jami Kettunen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691487885; l=2406; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=GiTo3aHVWSJqXeRVvBwFrjMpXiRsIg5liCVx9M1P4EU=; b=Nxs8hOuPBNmdHqXrObFj394Ryc0kynWXqn1i40tZ53Cb01Hzw6WwtFi+3X0Jcw4BcgOd603j0 ZWoh4q6XnKVBZvu54Q3HrIhvJNMsEM/z8rSRfzNPESDS1/k+Iq2OYtg X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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,URIBL_BLOCKED autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773678502945468623 X-GMAIL-MSGID: 1773699854873996666 MSM8998 was abusingly referencing one of the internal bus clocks, that were recently dropped from Linux (because the original implementation did not make much sense), circumventing the interconnect framework. Fix it. Signed-off-by: Konrad Dybcio --- .../devicetree/bindings/iommu/arm,smmu.yaml | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml index 3a31a979709b..cf29ab10501c 100644 --- a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml +++ b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml @@ -270,6 +270,47 @@ allOf: contains: enum: - qcom,msm8998-smmu-v2 + then: + anyOf: + - properties: + clock-names: + items: + - const: bus + clocks: + items: + - description: bus clock required for downstream bus access and for + the smmu ptw + - properties: + clock-names: + items: + - const: iface + - const: mem + - const: mem_iface + clocks: + items: + - description: interface clock required to access smmu's registers + through the TCU's programming interface. + - description: bus clock required for memory access + - description: bus clock required for GPU memory access + - properties: + clock-names: + items: + - const: iface-mm + - const: iface-smmu + - const: bus-smmu + clocks: + items: + - description: interface clock required to access mnoc's registers + through the TCU's programming interface. + - description: interface clock required to access smmu's registers + through the TCU's programming interface. + - description: bus clock required for the smmu ptw + + - if: + properties: + compatible: + contains: + enum: - qcom,sdm630-smmu-v2 - qcom,sm6375-smmu-v2 then: