Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2683125rdb; Mon, 4 Dec 2023 04:56:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEcCYIwCtX0PenIxqRbLk7evzkNh/ajafW4xZ4zne4kJg/daapfAswH9OhQKSzlIGcw08Tk X-Received: by 2002:a05:6358:9994:b0:168:e68f:ad59 with SMTP id j20-20020a056358999400b00168e68fad59mr5693434rwb.2.1701694568979; Mon, 04 Dec 2023 04:56:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701694568; cv=none; d=google.com; s=arc-20160816; b=brYTX3h1kUFoOzX/Iv4dZpYBYzI1gX/Sr4vZ6Rm0pVVS4tDuCIbfIKHWFEupb0HDy/ kazAcuRzpPS3a8Wn+ujMXCxdqu9GlECS2771bnulkcEiE51m3tEsICcPIehYFaXG3Tz9 haxNotKepX8slLKGSLkU9BZR/nSLFC//HBD9dUKkXAqGP/QWOESF4VbSkeQ9jO2xGRCE khltd8UI1Tc6iTGcZUNZElVMblplbPHUoTSTXww3HNjPjxSx2Cuj79dEoUTSm1bXVgdP pAyi7pOHC7E++8xRglru1Ox9CBDO6SgafPP3DN9M9RWxiAgAPvUrpSpG2GcIM0etRWXT 8RyA== 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=4VYbVKXhxANMzmAo5DevDefivd0gCsbNC7OR7kQaPmk=; fh=54meWs1vlKazqgPJJBoIxBicZhclkWiaWMsBioAGw6M=; b=oXejT0Yd3uoV/IydZcchLHst2UxKG/1aUxtBVElo/cmJSr/g7lfFtHBwUceuKOy+Fb psqlY8LkRXasqNgwWHQKgJ5MQ3V53ynrwzfUkfYEJMVar45MBtD9YCoIh5hdeB5pK1Ci eSJXr1HVqOD2WCTd4D5MgngdM2fhZOqZn+A43+KMTxRaPTL5ASd0D2PfVHplLT1Jq7Dx WEZ+vUe47HynCi/JLRJ8PE6tYA6JcUXgjNHPn5jJ605mgheSko4z6IHXLe6ZxUlV7NDz lljOGD35m7N6MbW1qa0rOiZGPGRDFfi1jAA1q4fodmre1JJBKYlz9c5mnlSwsxpoa/8r TZnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IoDNXalF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bv189-20020a632ec6000000b005c1e762bc50si3001038pgb.742.2023.12.04.04.56.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:56:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IoDNXalF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0B564805C147; Mon, 4 Dec 2023 04:56:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344110AbjLDMzf (ORCPT + 99 others); Mon, 4 Dec 2023 07:55:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233582AbjLDMzd (ORCPT ); Mon, 4 Dec 2023 07:55:33 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A7EE109 for ; Mon, 4 Dec 2023 04:55:39 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40c09d0b045so13676905e9.0 for ; Mon, 04 Dec 2023 04:55:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701694538; x=1702299338; darn=vger.kernel.org; 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=4VYbVKXhxANMzmAo5DevDefivd0gCsbNC7OR7kQaPmk=; b=IoDNXalFUmES1fSYW9ynJsO+d3+R5Fqu03qlm+not/pECMwuZQokuSD94kTAyW1Nbs LcpC2Y7GkNCkN04VOZlpfAcDUw7MpuFeJoqGqEzFzgMoRWdI7iDTVcdLL9XmWxVxvwCY Uv5GJEPNWkDkCbETRYRlyV6yYS2YtNkqe7Ys84FkWNWrYECJPBVvgm19I8DgLAv213eq lXw7qvbLMywXywjoufQditAJ1fM7lqwm7r9fohVNRSmRgrDJD79u1dY2a4jTaKQgM/j0 u+K6EjxR0jxphcaDxjb+vohxIrtK4tEQcPI6Q1SaLyXGaRUz4V/YBby7GI89YQ8hicPR ilKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701694538; x=1702299338; 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=4VYbVKXhxANMzmAo5DevDefivd0gCsbNC7OR7kQaPmk=; b=QwHT+6y4RNzI7+v8jYKbwrP8tnMd+vxwqraTX/R1LqgEHWDSmnpZn4CKBwVktPgDDe cCdIVoUKgdZ30QvQ6NtGH+7Sx4o4DkRvrj3cXrJ0NT9jIXG7LJLkmFOo/ZjW+nvlqHV7 j0bYSsVoSF9JzzOqXqXFftkiszAY513XJ335gBiaiZQJtnEfVvtwnefQhDapwY2rEKkk S2NkIeUkz6J64bKQPPkOh98uoyq/ep4U0hWF0iUDJqRqJ266JGKqZ/dy7P0wKfkh6e47 wxEhpnQLxFQUvx1DYDo2n1arpw66A+vuCvoOYE0RXfVYVdUDl3Gv18yhr6wN8tBG6ilM ueyQ== X-Gm-Message-State: AOJu0Yygw9wXkzbtbDvQfPgZHeAoKrQWX2djTomU0TC/4HKBz83sp55K w9besTujzncbTzf79JEkQkE0QYa16Yyoo/ntUeE= X-Received: by 2002:a05:600c:1385:b0:40b:3fc7:c88a with SMTP id u5-20020a05600c138500b0040b3fc7c88amr1831169wmf.39.1701694537845; Mon, 04 Dec 2023 04:55:37 -0800 (PST) Received: from [10.167.154.1] (178235179097.dynamic-4-waw-k-1-3-0.vectranet.pl. [178.235.179.97]) by smtp.gmail.com with ESMTPSA id ay22-20020a170906d29600b009efe6fdf615sm5241373ejb.150.2023.12.04.04.55.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:55:37 -0800 (PST) From: Konrad Dybcio Date: Mon, 04 Dec 2023 13:55:20 +0100 Subject: [PATCH v2 1/6] dt-bindings: arm-smmu: Document SM8[45]50 GPU SMMU MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231127-topic-a7xx_dt-v2-1-2a437588e563@linaro.org> References: <20231127-topic-a7xx_dt-v2-0-2a437588e563@linaro.org> In-Reply-To: <20231127-topic-a7xx_dt-v2-0-2a437588e563@linaro.org> To: Will Deacon , Robin Murphy , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson Cc: Marijn Suijten , Neil Armstrong , Dmitry Baryshkov , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701694533; l=2754; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=1ykSmvOZZDjJjgZpitbyB4XwAgvbWrZhIXxM64S4nPE=; b=lj3IMiwPIJxgczSTOsCkVKkVF04JuQ2p6btaSUMQQGimuIK9Sqsb4x4moWx+oYn8OzCWFpfam br91WBeade2BjmO2oLO7ObprbqxSPbY8KcKz1j29Mnt3F70tYkAnC9D X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 04 Dec 2023 04:56:05 -0800 (PST) SM8450 and SM8550 both use a Qualcomm-modified MMU500 for their GPU. In both cases, it requires a set of clocks to be enabled. Describe that. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Konrad Dybcio --- .../devicetree/bindings/iommu/arm,smmu.yaml | 48 +++++++++++++++++++++- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml index aa9e1c0895a5..19dba93a7654 100644 --- a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml +++ b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml @@ -89,6 +89,8 @@ properties: - qcom,sm8150-smmu-500 - qcom,sm8250-smmu-500 - qcom,sm8350-smmu-500 + - qcom,sm8450-smmu-500 + - qcom,sm8550-smmu-500 - const: qcom,adreno-smmu - const: qcom,smmu-500 - const: arm,mmu-500 @@ -453,6 +455,50 @@ allOf: - description: Voter clock required for HLOS SMMU access - description: Interface clock required for register access + - if: + properties: + compatible: + const: qcom,sm8450-smmu-500 + then: + properties: + clock-names: + items: + - const: gmu + - const: hub + - const: hlos + - const: bus + - const: iface + - const: ahb + + clocks: + items: + - description: GMU clock + - description: GPU HUB clock + - description: HLOS vote clock + - description: GPU memory bus clock + - description: GPU SNoC bus clock + - description: GPU AHB clock + + - if: + properties: + compatible: + const: qcom,sm8550-smmu-500 + then: + properties: + clock-names: + items: + - const: hlos + - const: bus + - const: iface + - const: ahb + + clocks: + items: + - description: HLOS vote clock + - description: GPU memory bus clock + - description: GPU SNoC bus clock + - description: GPU AHB clock + # Disallow clocks for all other platforms with specific compatibles - if: properties: @@ -473,8 +519,6 @@ allOf: - qcom,sm6350-smmu-500 - qcom,sm6375-smmu-500 - qcom,sm8350-smmu-500 - - qcom,sm8450-smmu-500 - - qcom,sm8550-smmu-500 then: properties: clock-names: false -- 2.43.0