From patchwork Tue Jun 27 16:24:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 113504 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp8337113vqr; Tue, 27 Jun 2023 09:53:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6CDh0ONkCKGEgsyDQzFqP7g+ndd6iT6mNFE1K/vvffyKZaFza18RJfO1lyp3ubdFnC7vy/ X-Received: by 2002:a17:90a:31c2:b0:263:1fc2:9bdb with SMTP id j2-20020a17090a31c200b002631fc29bdbmr1492689pjf.30.1687884788350; Tue, 27 Jun 2023 09:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687884788; cv=none; d=google.com; s=arc-20160816; b=PSHnn5sTeJ8M1NZx8C2eFgL06aYC5aNktTwWoW6HxbwYJq43czdYNbFvG8kjgJgeGb zMHL3k7ZJao1cxVES2r2T/D+Um9aDwwyswTMRUyEjgFHNaRIp0xJfKBbd9RjSjL8DLEg 3BX6+BLR1S9UZ8laM8T0T0iZ8Zu7SuCElU6MSRFNquZ9VOoKTYC4NF5vrmYjWqlkkiz+ jixEMJtPwWmkXPzaI9O616OYz2P9n5J/JqgYqY49+hZbIhInKIVt729tWJ/IAZnEz4Gl 9iUfDP4MjhKWR+vo48Ak7AozyY1hZSIeVYKnIc2SDByFyjNc54dtnENcJqI4+IW2eB5j tx7g== 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=xPNg5vny77tvK7IJAfh5JkOu6WowF9wjESyOAY+a1Tg=; fh=BdXWhCLYHoLnZB3p1ID/7OfEQhg1SSFfw7f+7JR49ls=; b=ZXZ2+fXEwuLxxTYs2WUh2fLTO0fq4g4xGrhv55nUthz1UwThOzgJ29Por8p9sd1WZV u54qkkAWwf9rkoKSO1Pu4R3tljX0MqhdjbKG1OT1TrIh7yO7QBqdTso1kKpUsJXJHaix popO+ZCZkZuT88zNOe4pBVzH2yYUNOGbUiTDKUQMbLAvKiBEAOl01nRpnfwtW8cb0UjC qOfaqtDYrLBT46UdWA+ZHhPU01yxy84ZSdMqfjzsqatFZ/vnbKDGIPdgjWn9DGR24U3U SNcI9KuphcyewBcPxYvwBBkSdwYZ298XBU2OUJNyZckOgduft2xZ4E31FDYAXynXUUAm yuFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wT4UzEMp; 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 j16-20020a63e750000000b005579e1fc429si6301998pgk.669.2023.06.27.09.52.52; Tue, 27 Jun 2023 09:53:08 -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=wT4UzEMp; 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 S232427AbjF0QZ2 (ORCPT + 99 others); Tue, 27 Jun 2023 12:25:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230499AbjF0QY6 (ORCPT ); Tue, 27 Jun 2023 12:24:58 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F5D32115 for ; Tue, 27 Jun 2023 09:24:56 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4fb7589b187so3670800e87.1 for ; Tue, 27 Jun 2023 09:24:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687883095; x=1690475095; 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=xPNg5vny77tvK7IJAfh5JkOu6WowF9wjESyOAY+a1Tg=; b=wT4UzEMp3D2z+CEciSOj2hOqJZY5IsO6ESwlLi6JpPKPVleeLPbEYQowD4j6ugDDWT Xsekoq3dAMFIe2qSha7QD5qXwQK7uvTB6BiLhhzYloSKH2DUuxfYiK6ynHQf2ri1d2c1 Yia2iEKdlcVgPDQx2b9Z8S09tPtYnMMz4koijj0kOEogFOMnrkkPJthflCOJDrz34rZ5 VwnYMEmbL3YNE8ElBGdgiBCOyXavqYtRbS4Z6W3D5oGCPCTo//ykefDkMq0NfHPVL3Zs /WmtNQzYvKoXfJ6zYDHEJ1lCyAJ49i1gWKSv1N2fqbVfHVreFhWFLTVqIFYR6dTTqWOv B+hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687883095; x=1690475095; 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=xPNg5vny77tvK7IJAfh5JkOu6WowF9wjESyOAY+a1Tg=; b=iuyAVBTMIEJy0w/SzwFJhE6jVCDgqJJP1CYhP+SfTc07vTuzSVdsumUQm78SdrZRBA qRsXF6czgNoyRMopjaSS3hBd/nJxn5XXxTIdeYooofu1I+uaoYEQgUAm0/qyHymeRipe oCYxQBHbMmKMpwFUiTwqeFdR1fl1QYXrnUpUnAWK61O5qLvnahFcym/l80HVV5grSqux q5iF0bl2A9fkdOY1BA8JErAMsPmQmHXeQwP36DaLdtNHx/zNR0wBesGQVH0D//eEbp6z wo0SdnpAnx+q3cto4L42vH65WuaqAPS+VNfb/V+Rh7xslSQQiUVUKw0qoY3adiADnw/i I0IQ== X-Gm-Message-State: AC+VfDzNvVHQcEyTuGZ9GqdK4MFvc2n4/YAANxwP9yGMg4x7PSXiMCUV V0xrqcElZZ92ov32B4FN43Mz1Q== X-Received: by 2002:a05:6512:2824:b0:4fb:7888:7e6d with SMTP id cf36-20020a056512282400b004fb78887e6dmr4544050lfb.46.1687883095019; Tue, 27 Jun 2023 09:24:55 -0700 (PDT) Received: from [192.168.1.101] (abxj103.neoplus.adsl.tpnet.pl. [83.9.3.103]) by smtp.gmail.com with ESMTPSA id g7-20020a19ac07000000b004fb259a5589sm1190508lfc.104.2023.06.27.09.24.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 09:24:54 -0700 (PDT) From: Konrad Dybcio Date: Tue, 27 Jun 2023 18:24:23 +0200 Subject: [PATCH 07/11] dt-bindings: iommu: qcom_iommu: Allow 'tbu' clock MIME-Version: 1.0 Message-Id: <20230627-topic-more_bindings-v1-7-6b4b6cd081e5@linaro.org> References: <20230627-topic-more_bindings-v1-0-6b4b6cd081e5@linaro.org> In-Reply-To: <20230627-topic-more_bindings-v1-0-6b4b6cd081e5@linaro.org> To: cros-qcom-dts-watchers@chromium.org, Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Baryshkov , Benjamin Li , James Willcox , Joseph Gates , Stephan Gerhold , Zac Crosby , Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Lee Jones , Stephen Boyd , Joerg Roedel , Will Deacon , Robin Murphy , Greg Kroah-Hartman , Xu Yang , Peng Fan , Christian Marangi , Wesley Cheng , Jun Nie , Max Chen , Shawn Guo , Vivek Gautam Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Knecht , Bryan O'Donoghue , Konrad Dybcio , alsa-devel@alsa-project.org, iommu@lists.linux.dev, linux-usb@vger.kernel.org, Krzysztof Kozlowski , Leo Yan , Rob Herring , Andy Gross , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1687883074; l=1161; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=dxmGowAABZGGJvN38BvE9OivxrhsE/2mFCf47Qi+lvI=; b=wzz2xUcbFtxUiSi4ThrPFbDIaElQBro5YtXx/lBo+PD1GGVfkejB8EYDpam4TZsF1HGcnDTRP unvzC8nqkCDCKapltiz8/h5Mv3Va5gUnt0oPVF9FgChKOoZXy8L9VnG 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,T_SCC_BODY_TEXT_LINE,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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769875479929673888?= X-GMAIL-MSGID: =?utf-8?q?1769875479929673888?= Some IOMMUs on some platforms (there doesn't seem to be a good denominator for this) require the presence of a third clock, specifically for accessing the IOMMU's Translation Buffer Unit (TBU). Allow it. Signed-off-by: Konrad Dybcio Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/iommu/qcom,iommu.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/qcom,iommu.yaml b/Documentation/devicetree/bindings/iommu/qcom,iommu.yaml index d9fabdf930d9..3b7acb459f8e 100644 --- a/Documentation/devicetree/bindings/iommu/qcom,iommu.yaml +++ b/Documentation/devicetree/bindings/iommu/qcom,iommu.yaml @@ -24,14 +24,18 @@ properties: - const: qcom,msm-iommu-v1 clocks: + minItems: 2 items: - description: Clock required for IOMMU register group access - description: Clock required for underlying bus access + - description: Clock required for Translation Buffer Unit access clock-names: + minItems: 2 items: - const: iface - const: bus + - const: tbu power-domains: maxItems: 1