Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3366087ybh; Mon, 5 Aug 2019 17:23:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwI5FFdJLyj0rK4qSgaflleUYSmlxDBcbVB812Bu9amLK5OLaaneCgmjI+NP/WV8Qi97y9C X-Received: by 2002:a17:902:3103:: with SMTP id w3mr428959plb.84.1565051027987; Mon, 05 Aug 2019 17:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565051027; cv=none; d=google.com; s=arc-20160816; b=L+tTUgUguzg5Q/t9pY+t/k5BvGYr6pitoP344wF69nTeq1z+aTYTHJYZ1ouoi3nq4R Io8RiPQ4v9Ab4ksufVpTQv3t/o8Jbn5PAI+JRWtwWQMHhY/uthxgr35BpzRZY0gBjH9Q h88uGCsIRA+cZS+fwhlsvU50eJpbuPX2Ms6W6hXwlPYmoHnUzHi0B57dkcffoICFEIdL OmCc5S57a4RZT7bdh+uxqT7CnvUVt2FA4GKYYUl17alAeSfWSEXVjIT3Kxydi8iVKh8m mV8rjVbbobsgY+gQSlgjZS4veiEhzBsfgZnbIS+w+I4aQtm990CnKWnQe28aCVwbHnrO q6kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=2x+f5fghQZ4e20YBZpZWmlGvJr8wp2sUwzeYM9kk7a0=; b=xiYC3vQUT8QoK/6w5+grXhHUOPB29sHw9vOlSwSpZoIbXORNkaZszn2vphNpRroA+9 C10ZLBiJWCb7UMdYh5cojUSItETAiQeOV4MBqLef/+EKscKz9YBR0Cpsb2yIKVV4JDlD QAarN9C6VK/YbG7hE0Tj91Z/CmdsYgn38opG7uD65wr0dq7niqUxi2tYLbM6oUW9bTn3 FhoypRbcNmdiXOEaoDJ9Ius07k49pw5jQ1yBGwzIp8h0V1u5X7J3+KbGya+wezeRIqa/ 7tUfvMBNwayNt51I1UneKLuc0c/CE23X1wwzVGObhwKMYQSN9NjZiK8yDFHf8rWb6JXQ ORCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=D9dg1C3R; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s23si41435016plq.81.2019.08.05.17.23.31; Mon, 05 Aug 2019 17:23:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=D9dg1C3R; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731145AbfHFAW7 (ORCPT + 99 others); Mon, 5 Aug 2019 20:22:59 -0400 Received: from onstation.org ([52.200.56.107]:35898 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728483AbfHFAW6 (ORCPT ); Mon, 5 Aug 2019 20:22:58 -0400 Received: from localhost.localdomain (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 0DE2E3E99E; Tue, 6 Aug 2019 00:22:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1565050977; bh=R58vdw2delPC43paJyuY5JAdscP+E7cOYbKNHb+tbk4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D9dg1C3Rp9oXUL1YQApTVk4EZvlz0nfoHgUuOCIBCeu4Rdc9Nq5BII0PR4+lnhF2V yj7M6ZLFUwxRYW66rD/1WI898BotyrMftSIMAq9LVb1eICg0dxrs4jAqX/KhXcLYfw 099y0IDRwRxL+hi+5H6cSQhZEHQplJkX+PSY3Pws= From: Brian Masney To: agross@kernel.org, robdclark@gmail.com, sean@poorly.run, robh+dt@kernel.org, bjorn.andersson@linaro.org Cc: airlied@linux.ie, daniel@ffwll.ch, mark.rutland@arm.com, jonathan@marek.ca, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, jcrouse@codeaurora.org Subject: [PATCH v5 2/7] dt-bindings: display: msm: gmu: add optional ocmem property Date: Mon, 5 Aug 2019 20:22:24 -0400 Message-Id: <20190806002229.8304-3-masneyb@onstation.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190806002229.8304-1-masneyb@onstation.org> References: <20190806002229.8304-1-masneyb@onstation.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some A3xx and A4xx Adreno GPUs do not have GMEM inside the GPU core and must use the On Chip MEMory (OCMEM) in order to be functional. Add the optional ocmem property to the Adreno Graphics Management Unit bindings. Signed-off-by: Brian Masney --- Changes since v4: - None Changes since v3: - correct link to qcom,ocmem.yaml Changes since v2: - Add a3xx example with OCMEM Changes since v1: - None .../devicetree/bindings/display/msm/gmu.txt | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/gmu.txt b/Documentation/devicetree/bindings/display/msm/gmu.txt index 90af5b0a56a9..672d557caba4 100644 --- a/Documentation/devicetree/bindings/display/msm/gmu.txt +++ b/Documentation/devicetree/bindings/display/msm/gmu.txt @@ -31,6 +31,10 @@ Required properties: - iommus: phandle to the adreno iommu - operating-points-v2: phandle to the OPP operating points +Optional properties: +- ocmem: phandle to the On Chip Memory (OCMEM) that's present on some Snapdragon + SoCs. See Documentation/devicetree/bindings/sram/qcom,ocmem.yaml. + Example: / { @@ -63,3 +67,49 @@ Example: operating-points-v2 = <&gmu_opp_table>; }; }; + +a3xx example with OCMEM support: + +/ { + ... + + gpu: adreno@fdb00000 { + compatible = "qcom,adreno-330.2", + "qcom,adreno"; + reg = <0xfdb00000 0x10000>; + reg-names = "kgsl_3d0_reg_memory"; + interrupts = ; + interrupt-names = "kgsl_3d0_irq"; + clock-names = "core", + "iface", + "mem_iface"; + clocks = <&mmcc OXILI_GFX3D_CLK>, + <&mmcc OXILICX_AHB_CLK>, + <&mmcc OXILICX_AXI_CLK>; + ocmem = <&ocmem>; + power-domains = <&mmcc OXILICX_GDSC>; + operating-points-v2 = <&gpu_opp_table>; + iommus = <&gpu_iommu 0>; + }; + + ocmem: ocmem@fdd00000 { + compatible = "qcom,msm8974-ocmem"; + + reg = <0xfdd00000 0x2000>, + <0xfec00000 0x180000>; + reg-names = "ctrl", + "mem"; + + clocks = <&rpmcc RPM_SMD_OCMEMGX_CLK>, + <&mmcc OCMEMCX_OCMEMNOC_CLK>; + clock-names = "core", + "iface"; + + #address-cells = <1>; + #size-cells = <1>; + + gmu-sram@0 { + reg = <0x0 0x100000>; + }; + }; +}; -- 2.21.0