From patchwork Sun Oct 16 16:15:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 3055 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1076188wrs; Sun, 16 Oct 2022 09:18:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5BSLpxQeIazLZUX6z7cUxGE+MP5wYTZcII8DTN+A7eCCU7qnuMIfDQEVmmjudid5L0Ox2/ X-Received: by 2002:a05:6a00:ad0:b0:555:ac02:433b with SMTP id c16-20020a056a000ad000b00555ac02433bmr8223690pfl.18.1665937124392; Sun, 16 Oct 2022 09:18:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665937124; cv=none; d=google.com; s=arc-20160816; b=xWucDLg/7A2wmZa1HtUa+hRLUK8pW75LtOg7F4GH5ZP+7Q3wHnC8R2P7GjsslURi8o XX97/NUjjtrPtmo2bd3hCW8p3tApdl02jescYk3SQ2VqzLE32e/LS9+0KgmoWGKLIW/q +xR+1A7wdAvtou+sSwRyerdY4QgYc9ybI+V+ELaJve/LxBtiZ/2kdMzjFw8NeM8GOJrq jZScXX8vToEBFKH/sHfk2mX92ulVG/TyQegU0auEc1EFHWiFuB55f17N1G7L5sBoA1PE Hhz6d4sIFcs7TY5Y+nzwBqpT1dSwwCCisTOViJjnJ0twxsS85lLIdwVG0XESDgajr4Q7 qCKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=I7dHg8BegauU5zvmo6gO8S7ftzk0gPaq7FNG8O5U2dU=; b=0qN9ARpTs7vLvHyzmLn+BFI+DVyKeB62leiwHnvPn2HCRFnuq88nCB0WmbXcubgscy ilsAEAy+g4yp4oZHP8Po6EPxFdbAMfcAeLlbx5GJZZtKrZw5xET4fNsCzX6MSIJWr6+M fAf3POYcM3SxkQRrtadIC43vh3Y++Bjw6U0jyc6pW7BQAcbwX6ndQTDgSoXeKiDa4yj3 0UczVOVak5HYGRHVHmQR/kenj8rpk/jrewTBZT5Jf5U3g7AQMlNfA5kM3nJlCPk9iUyw iLveyHrLMxVzb4sm0Pltjhq31GN/Sff9B9I4E60vjn5nG2x3KhIhxZAd09dTxDKKcaaT DmOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=GMkvuz6d; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a056a00084700b00548d480e340si10043935pfk.92.2022.10.16.09.18.30; Sun, 16 Oct 2022 09:18:44 -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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=GMkvuz6d; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229797AbiJPQQn (ORCPT + 99 others); Sun, 16 Oct 2022 12:16:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbiJPQQg (ORCPT ); Sun, 16 Oct 2022 12:16:36 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD56E38463; Sun, 16 Oct 2022 09:16:35 -0700 (PDT) Received: from g550jk.arnhem.chello.nl (31-151-115-246.dynamic.upc.nl [31.151.115.246]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 005BFC9CFA; Sun, 16 Oct 2022 16:16:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1665936964; bh=WWnMVLsQ16tzIdinutsamMLE27RcGg5gLBVDOG/S19g=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=GMkvuz6d/pvx0C/xQMH9xqlrXmHVDh2i7p7ZkCphjpcVLF83qTxORGPhGDzr/iR21 +NzBHn+cKAmoON3GfztzKxhSOmFNSakCOQNL3opMdRmKAwOC8Mc6l3ExsLAZJezyrC JdZE/eJE9ZTrIJj832cQ8/sBKE1jb58vZwo4eesg= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , Rob Herring , Andy Gross , Bjorn Andersson , Konrad Dybcio , Joerg Roedel , Will Deacon , Robin Murphy , Rob Herring , Krzysztof Kozlowski , iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/3] dt-bindings: qcom-iommu: Add Qualcomm MSM8953 compatible Date: Sun, 16 Oct 2022 18:15:51 +0200 Message-Id: <20221016161554.673006-2-luca@z3ntu.xyz> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221016161554.673006-1-luca@z3ntu.xyz> References: <20221016161554.673006-1-luca@z3ntu.xyz> MIME-Version: 1.0 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,SPF_HELO_NONE,SPF_PASS autolearn=no 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?1746861686547746261?= X-GMAIL-MSGID: =?utf-8?q?1746861686547746261?= Document the compatible used for IOMMU on the msm8953 SoC. Signed-off-by: Luca Weiss Acked-by: Rob Herring --- Changes since v3: - no changes Documentation/devicetree/bindings/iommu/qcom,iommu.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iommu/qcom,iommu.txt b/Documentation/devicetree/bindings/iommu/qcom,iommu.txt index 059139abce35..e6cecfd360eb 100644 --- a/Documentation/devicetree/bindings/iommu/qcom,iommu.txt +++ b/Documentation/devicetree/bindings/iommu/qcom,iommu.txt @@ -10,6 +10,7 @@ to non-secure vs secure interrupt line. - compatible : Should be one of: "qcom,msm8916-iommu" + "qcom,msm8953-iommu" Followed by "qcom,msm-iommu-v1". From patchwork Sun Oct 16 16:15:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 3056 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1076202wrs; Sun, 16 Oct 2022 09:18:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Ft5lYxucsvYsEJUYVf9dkPUljS83vZ9d0ueSkhzpd/Dr2ytapkyZegUuNk5083J3day5j X-Received: by 2002:a17:902:d483:b0:182:cb98:26e8 with SMTP id c3-20020a170902d48300b00182cb9826e8mr7727567plg.73.1665937127919; Sun, 16 Oct 2022 09:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665937127; cv=none; d=google.com; s=arc-20160816; b=VPZe0PZxmSd0tiC7OFLXJbeWuZ76jsgORRQ0lx0QfCJL0vhitcLAL7zBeI/teugHLj 1v7gHxI6O/EdD/Avz4zT97FW+tXQ1xeeiRmJX2fvwcgtqMjdYNLfElqngP4eRmvMl2h7 rtApQrtwAaD5m3sjFTLag7sYiW2HbljBMvfsLfSaloJfMuv/GbesgeZ2TPJ2l7uNKDM0 J0s/Whkd1sJ9c97dUhBbV5Fv5GgkRS4b54ektVKNJFAzSy1jJ+8qTig3czFAaZOP7uUP UvRxs5z2B+LOTbMW4Hd7NjTNhYLYBgoqKc/YepI4OxW/y/mKiGvggcPiGN491cYDRmUr MVzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Hkc11SQAqxA3oPsDju90m02b7wUVT9P3CPBE8BTiS90=; b=KJugJJDhCblIHKzYx5yo1HuruxZDEQYE8HQl5q6D8r0llODvFuGihxOu+yugQuuWaa bbpCOOFM9nfEk5swb7nO+t5qnTnd2kAVOY5jVQirKv/9KR7y3UA0hkaHMW2kZBkx66zF i3tno4YoSUhK9ldXCkXlY+KueM0dnd+2wtCXV75j4htOvzyaM/hS7PPKN1rcF8OxM7oc W+JgjHK3SfD1nEl6EYylysZKiD7bbxy9pgbXsjJZ+LkN09I9x70RQygxDcHdYKoJcGa1 0lzQWFUkZp6cF/8ToZyKciJCtUqGPhPS9S4VLXT34enRzxYY6TZAWSgMAmkeKadv5JDc V0pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b="Veq/xOWK"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a170902eb8800b0018175dd2396si8850616plg.274.2022.10.16.09.18.33; Sun, 16 Oct 2022 09:18:47 -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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b="Veq/xOWK"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229748AbiJPQQK (ORCPT + 99 others); Sun, 16 Oct 2022 12:16:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbiJPQQI (ORCPT ); Sun, 16 Oct 2022 12:16:08 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 185302A27A; Sun, 16 Oct 2022 09:16:06 -0700 (PDT) Received: from g550jk.arnhem.chello.nl (31-151-115-246.dynamic.upc.nl [31.151.115.246]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 8E3EBCAC3C; Sun, 16 Oct 2022 16:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1665936964; bh=RTEJlTDR5uGqgtZdCSkmRAbT4l82YlBd079FwUaEpuc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Veq/xOWKFQe5QtWUvPzt2BT30D1/5PB0C146c5b3hViZ71cb391KHaPrhUXEOpdDT T7BP7gS+MuVNXByDkB27nBqL6c9WWrJockdXZKMAztY9Jei1G3H/ncIdu0Y1IE8Qqf Tttc6ANUT1WbMySloJJNQdVNmtRGqHnpdmGPTNBk= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Vladimir Lypak , Luca Weiss , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/3] arm64: dts: qcom: msm8953: add APPS IOMMU Date: Sun, 16 Oct 2022 18:15:52 +0200 Message-Id: <20221016161554.673006-3-luca@z3ntu.xyz> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221016161554.673006-1-luca@z3ntu.xyz> References: <20221016161554.673006-1-luca@z3ntu.xyz> MIME-Version: 1.0 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,SPF_HELO_NONE,SPF_PASS autolearn=no 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?1746861689631193460?= X-GMAIL-MSGID: =?utf-8?q?1746861689631193460?= From: Vladimir Lypak Add the nodes describing the iommu and its context banks that are found on msm8953 SoCs. Signed-off-by: Vladimir Lypak Signed-off-by: Luca Weiss --- Changes since v3: - no changes arch/arm64/boot/dts/qcom/msm8953.dtsi | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi index 6b992a6d56c1..6d9a2a34737d 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -726,6 +726,42 @@ tcsr_phy_clk_scheme_sel: syscon@193f044 { reg = <0x193f044 0x4>; }; + apps_iommu: iommu@1e00000 { + compatible = "qcom,msm8953-iommu", "qcom,msm-iommu-v1"; + ranges = <0 0x1e20000 0x20000>; + + clocks = <&gcc GCC_SMMU_CFG_CLK>, + <&gcc GCC_APSS_TCU_ASYNC_CLK>; + clock-names = "iface", "bus"; + + qcom,iommu-secure-id = <17>; + + #address-cells = <1>; + #iommu-cells = <1>; + #size-cells = <1>; + + // vfe + iommu-ctx@14000 { + compatible = "qcom,msm-iommu-v1-ns"; + reg = <0x14000 0x1000>; + interrupts = ; + }; + + // mdp_0 + iommu-ctx@15000 { + compatible = "qcom,msm-iommu-v1-ns"; + reg = <0x15000 0x1000>; + interrupts = ; + }; + + // venus_ns + iommu-ctx@16000 { + compatible = "qcom,msm-iommu-v1-ns"; + reg = <0x16000 0x1000>; + interrupts = ; + }; + }; + spmi_bus: spmi@200f000 { compatible = "qcom,spmi-pmic-arb"; reg = <0x200f000 0x1000>, From patchwork Sun Oct 16 16:15:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 3054 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1076068wrs; Sun, 16 Oct 2022 09:18:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4+osbkv69eXFl99/jCgonb0YVbdS42+jMgiD0xHIP3n8JNRcd0wuZOWwkziqz8X+SIIZPF X-Received: by 2002:a63:2c0b:0:b0:434:ebb6:7594 with SMTP id s11-20020a632c0b000000b00434ebb67594mr6879044pgs.245.1665937106188; Sun, 16 Oct 2022 09:18:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665937106; cv=none; d=google.com; s=arc-20160816; b=Q+XS7ffpIj6Zt+v5ibisF/TpShYSwNer2cHF8O4w+OASomLvSAqqOhxv5cYRYdnG5j I58l2Nahn/urTnH6trBauBCU3zrIY+d3QjtZaEdG1SwLddnzQMWryVGuyFiA/iHNwjlN 9Ev6INO7frNZHuRu5ZhvL8YMRD7uH/H7ylTRCliVL3HRU0hvRcG/gsmcBsVcVYrGyU/y PgbWS97+24ZtZGoDHUOXDQIrz4mDHAFAGTXA+FLphu7VVD6nSEA+V4yUWd8zOKz98VJo hDLPz5hGcLwBeY8HwFb9ZAyZxbnSaBkK7Q3f96hh63PD9ZCOvtUQ8v0H2pWpRlmG6YwL lY2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2m303Q77jphuBmjBn2hchmTL88f9fnVRy34tyEvwTAw=; b=FDczedX5BDe4URKh+JUCEeGmKe9vhLBXoUW1mma6AYUhHOVtLPH2dn9MVeY2xW+Aai Hpuq1vMChM6gf0DPSizkAun9kwuVPCB62zs2C0j3PWZ7zTcXA9fv1PIzOMAgSir5I9sf XAEw6p76ZPmKPiMvvGqOaIDMTyhMY6Q744aLh1+QaGNV/8DclxetpsXW8YzMx0NwC9eg Q37FeG+LXbWYZFl3vOrNNYySs/8Tqn0rc/1At2TJmKMdcg9l6EvkzdR1+2LAC8ZVVtcL 7G6kZuItuX6LlhtxFyUL/A2moBf+rSfkbzPfr1DvidaSPGhzkBckZqtfJ0gl8iMOESrU cC8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=yXzvf4Fm; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z185-20020a6365c2000000b00452baa58e5dsi9170586pgb.275.2022.10.16.09.18.12; Sun, 16 Oct 2022 09:18:26 -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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=yXzvf4Fm; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbiJPQQQ (ORCPT + 99 others); Sun, 16 Oct 2022 12:16:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229763AbiJPQQI (ORCPT ); Sun, 16 Oct 2022 12:16:08 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1AF8624F; Sun, 16 Oct 2022 09:16:06 -0700 (PDT) Received: from g550jk.arnhem.chello.nl (31-151-115-246.dynamic.upc.nl [31.151.115.246]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 16617CE594; Sun, 16 Oct 2022 16:16:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1665936965; bh=/o6J0l5x0I1EKZzlMMKLf+DDJOoiSCtcgUSlTGCz/oE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=yXzvf4FmCslYJsLyaK+DwCcpDCzPJsdDaUdAtp7ExfRwlohzzVQ1eg78nTa+fM3oN /pnyV0gKhwgT5GSANAk6CklVClQLbzxA+IwZ+nF66j1nNKoeQnbAX/VvYasHwBZNl8 F6XEJ+2vDCZ1JlG6s9nvk7BfGMiBpSnlx/KO24hQ= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Vladimir Lypak , Luca Weiss , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 3/3] arm64: dts: qcom: msm8953: add MDSS Date: Sun, 16 Oct 2022 18:15:53 +0200 Message-Id: <20221016161554.673006-4-luca@z3ntu.xyz> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221016161554.673006-1-luca@z3ntu.xyz> References: <20221016161554.673006-1-luca@z3ntu.xyz> MIME-Version: 1.0 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,SPF_HELO_NONE,SPF_PASS autolearn=no 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?1746861667088853519?= X-GMAIL-MSGID: =?utf-8?q?1746861667088853519?= From: Vladimir Lypak Add the MDSS, MDP and DSI nodes that are found on msm8953 SoC. Signed-off-by: Vladimir Lypak Signed-off-by: Luca Weiss --- Changes since v3: - rename dsi-phy@ to phy@ - drop phy-names - use double compatible for qcom,mdp5 arch/arm64/boot/dts/qcom/msm8953.dtsi | 208 ++++++++++++++++++++++++++ 1 file changed, 208 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi index 6d9a2a34737d..707477e4254c 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -726,6 +726,214 @@ tcsr_phy_clk_scheme_sel: syscon@193f044 { reg = <0x193f044 0x4>; }; + mdss: mdss@1a00000 { + compatible = "qcom,mdss"; + + reg = <0x1a00000 0x1000>, + <0x1ab0000 0x1040>; + reg-names = "mdss_phys", + "vbif_phys"; + + power-domains = <&gcc MDSS_GDSC>; + interrupts = ; + + interrupt-controller; + #interrupt-cells = <1>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_VSYNC_CLK>, + <&gcc GCC_MDSS_MDP_CLK>; + clock-names = "iface", + "bus", + "vsync", + "core"; + + #address-cells = <1>; + #size-cells = <1>; + ranges; + + status = "disabled"; + + mdp: mdp@1a01000 { + compatible = "qcom,msm8953-mdp5", "qcom,mdp5"; + reg = <0x1a01000 0x89000>; + reg-names = "mdp_phys"; + + interrupt-parent = <&mdss>; + interrupts = <0>; + + power-domains = <&gcc MDSS_GDSC>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_MDP_CLK>, + <&gcc GCC_MDSS_VSYNC_CLK>; + clock-names = "iface", + "bus", + "core", + "vsync"; + + iommus = <&apps_iommu 0x15>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + mdp5_intf1_out: endpoint { + remote-endpoint = <&dsi0_in>; + }; + }; + + port@1 { + reg = <1>; + mdp5_intf2_out: endpoint { + remote-endpoint = <&dsi1_in>; + }; + }; + }; + }; + + dsi0: dsi@1a94000 { + compatible = "qcom,mdss-dsi-ctrl"; + reg = <0x1a94000 0x400>; + reg-names = "dsi_ctrl"; + + interrupt-parent = <&mdss>; + interrupts = <4>; + + assigned-clocks = <&gcc BYTE0_CLK_SRC>, + <&gcc PCLK0_CLK_SRC>; + assigned-clock-parents = <&dsi0_phy 0>, + <&dsi0_phy 1>; + + clocks = <&gcc GCC_MDSS_MDP_CLK>, + <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_BYTE0_CLK>, + <&gcc GCC_MDSS_PCLK0_CLK>, + <&gcc GCC_MDSS_ESC0_CLK>; + clock-names = "mdp_core", + "iface", + "bus", + "byte", + "pixel", + "core"; + + phys = <&dsi0_phy>; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dsi0_in: endpoint { + remote-endpoint = <&mdp5_intf1_out>; + }; + }; + + port@1 { + reg = <1>; + dsi0_out: endpoint { + }; + }; + }; + }; + + dsi0_phy: phy@1a94400 { + compatible = "qcom,dsi-phy-14nm-8953"; + reg = <0x1a94400 0x100>, + <0x1a94500 0x300>, + <0x1a94800 0x188>; + reg-names = "dsi_phy", + "dsi_phy_lane", + "dsi_pll"; + + #clock-cells = <1>; + #phy-cells = <0>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, <&xo_board>; + clock-names = "iface", "ref"; + + status = "disabled"; + }; + + dsi1: dsi@1a96000 { + compatible = "qcom,mdss-dsi-ctrl"; + reg = <0x1a96000 0x400>; + reg-names = "dsi_ctrl"; + + interrupt-parent = <&mdss>; + interrupts = <5>; + + assigned-clocks = <&gcc BYTE1_CLK_SRC>, + <&gcc PCLK1_CLK_SRC>; + assigned-clock-parents = <&dsi1_phy 0>, + <&dsi1_phy 1>; + + clocks = <&gcc GCC_MDSS_MDP_CLK>, + <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_BYTE1_CLK>, + <&gcc GCC_MDSS_PCLK1_CLK>, + <&gcc GCC_MDSS_ESC1_CLK>; + clock-names = "mdp_core", + "iface", + "bus", + "byte", + "pixel", + "core"; + + phys = <&dsi1_phy>; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dsi1_in: endpoint { + remote-endpoint = <&mdp5_intf2_out>; + }; + }; + + port@1 { + reg = <1>; + dsi1_out: endpoint { + }; + }; + }; + }; + + dsi1_phy: phy@1a96400 { + compatible = "qcom,dsi-phy-14nm-8953"; + reg = <0x1a96400 0x100>, + <0x1a96500 0x300>, + <0x1a96800 0x188>; + reg-names = "dsi_phy", + "dsi_phy_lane", + "dsi_pll"; + + #clock-cells = <1>; + #phy-cells = <0>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, <&xo_board>; + clock-names = "iface", "ref"; + + status = "disabled"; + }; + }; + apps_iommu: iommu@1e00000 { compatible = "qcom,msm8953-iommu", "qcom,msm-iommu-v1"; ranges = <0 0x1e20000 0x20000>;