From patchwork Tue Mar 28 19:36:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13191461 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9E0DFC6FD18 for ; Tue, 28 Mar 2023 19:37:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=T3Emeb2ErPNy006ARKSbPMxUFd1xtj/vz4A9N7mr0Pc=; b=GPuC/c/fPyM/Je moM2dr+pQ3soyLXuc9ATiL/Ynor1tP3riQIkH6NdcUOZSmZbNMMP2D9TmubK2ODnrtI9ARhLi35+P xS+0UFzOyfbOnTS2lomrO5le7S9st3aqzFc9iQqrAsSv1Idemha0VR5ch8xWil7rffUc6elwfRTaB 82O8UxMQeTl9vDz6WnfJ4oELK76IiMTQh1DKo2kZ9REK19cORF46xQPBNjVickvgNzD3SlGnkwYQD JW1+MzRcfeWH8W5aCtHhBzDCjCy/jX0v4XtY/CjzETcUekXNVrJEXmoFBA51voPqPb43bwXur/Dbc qkQPpMiffNpRrkHt+cVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phF7e-00Fe0u-00; Tue, 28 Mar 2023 19:36:46 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1phF7b-00FdzH-0b for linux-arm-kernel@lists.infradead.org; Tue, 28 Mar 2023 19:36:44 +0000 Received: by mail-wm1-x32e.google.com with SMTP id i5-20020a05600c354500b003edd24054e0so10120477wmq.4 for ; Tue, 28 Mar 2023 12:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1680032200; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YE2Vnaye8C509j8FwD0OaC9nnswGjGn4NUoIiKMJiP8=; b=qwbUcIr3/UeX50WRU3XfNCXSmhh2PU7r4m//e/13KH10OtpNf7xJTAjOquBlrGVCnm d8Y3VRBI+44Z0VpH48v0IZ778L7gcG3j4s1nOqSyIXTvam7Te4Qfi/ur2wTRxol/NBC1 h/OHZup9DTz0iUlecgLNB9x/GnSOC9B8OhVqvC0USVGIdA/3mvLmAiW5TqhXeja8YEKZ 9kZ3ZRxGr9OMjGeOk/Qp8R93pLl6EVOhrFJmzMZ8S/cQXgvRDpiB0W9nwVJd+5DYcD/j bJrTf/oaws1AYXf6rIoGY8esmPuuNL7xvcKyZLk29V97VRGejiHefV0FwKe1YF9BnsLq 6WcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680032200; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YE2Vnaye8C509j8FwD0OaC9nnswGjGn4NUoIiKMJiP8=; b=pPBkfifNIR54GyGDk6fKOe+gqmNTEs+ACtgOUSaCiQjFLCTQzsxP4apTFqTRyM7Gp8 G2D6v56DcOo+lcg5tSGtHEGOiMwblmg4cGI00RXv3LVUZHK75abPUPgZQZTMrSXaHWXA tNpSR3/abm+pLMH+qOCYxW54jl9O8HZpG9a0yipJ4mSrvHU/YG+AfWxvjIb89N5fJjpp BW9rOFm2NSKBguU2r5H1qd1kBRKcNDo4i37vOPjcJcBGUuWTqUyqxnbc/4DsE2muUiGS 6mUjLYZh1bnyxX35z5ZOEkBRKImx+yC+Lam9i4uww+KaO4hPXNfVINR49f7hJDYKzMEj Rmbg== X-Gm-Message-State: AAQBX9dhAGI5I9ULWC/1xcZRoQoorBlyNGJ1HwbaKpuZbSYDiUGsLakO pbFKruIfA2pk2AxRNFtzZdz8og== X-Google-Smtp-Source: AKy350boJJcBVCWVLp5b2Cr7dfBLOUvoCy2Pa/aTv1zwX4d02xsQudFx8XlHHpP7oPMqK6j/XByzWg== X-Received: by 2002:a1c:7215:0:b0:3ef:d8c6:4bc0 with SMTP id n21-20020a1c7215000000b003efd8c64bc0mr9977wmc.40.1680032200501; Tue, 28 Mar 2023 12:36:40 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:7b39:552d:b2f1:d7e8]) by smtp.gmail.com with ESMTPSA id g23-20020a7bc4d7000000b003eb5ce1b734sm18060544wmk.7.2023.03.28.12.36.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 12:36:40 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Dmitry Baryshkov Cc: 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, Bartosz Golaszewski Subject: [PATCH 0/7] arm64: dts: qcom: sa8775p: add more IOMMUs Date: Tue, 28 Mar 2023 21:36:25 +0200 Message-Id: <20230328193632.226095-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230328_123643_402200_ACE38510 X-CRM114-Status: GOOD ( 10.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Bartosz Golaszewski Add the GPU and PCIe IOMMUs for sa8775p platforms as well as the required GPU clock controller driver. Bartosz Golaszewski (6): dt-bindings: clock: qcom: describe the GPUCC clock for SA8775P arm64: defconfig: enable the SA8775P GPUCC driver dt-bindings: iommu: arm,smmu: enable clocks for sa8775p arm64: dts: qcom: sa8775p: add the pcie smmu node arm64: dts: qcom: sa8775p: add the GPU clock controller node arm64: dts: qcom: sa8775p: add the GPU IOMMU node Shazad Hussain (1): clk: qcom: add the GPUCC driver for sa8775p .../bindings/clock/qcom,sa8775p-gpucc.yaml | 61 ++ .../devicetree/bindings/iommu/arm,smmu.yaml | 1 - arch/arm64/boot/dts/qcom/sa8775p.dtsi | 115 ++++ arch/arm64/configs/defconfig | 1 + drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/gpucc-sa8775p.c | 633 ++++++++++++++++++ .../dt-bindings/clock/qcom,sa8775p-gpucc.h | 50 ++ 8 files changed, 869 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,sa8775p-gpucc.yaml create mode 100644 drivers/clk/qcom/gpucc-sa8775p.c create mode 100644 include/dt-bindings/clock/qcom,sa8775p-gpucc.h