Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp185159ybd; Tue, 25 Jun 2019 19:23:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLVoGIJYK7PlfUiWL5ZQakSGXZ+YuJkasS9gBbdvYD7DcVd3Pp1ncmytz2pHhSMo5MWByP X-Received: by 2002:a63:6a49:: with SMTP id f70mr228360pgc.55.1561515822772; Tue, 25 Jun 2019 19:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561515822; cv=none; d=google.com; s=arc-20160816; b=ZiVl7nLy9mr7WdbAge6V5wemMRQqNZSC1BTzvwufSSc3gU6ycKlc5PVOAJ+xrHCT+J W1Hkba2c2KSrxPkWLC6n9+Zh4ZQKyTCR+1i/5WhwpEz1eJwVNcUkl11EBetSn4JdXkTZ r0kR57OqLTFN+vyQ+cOdrM0nIagyR81HiEaR4Zh3ccykvfGyn3aIlLy27KJvMnCk3LJ+ n3Y5xA9Qt3SiB3tIZuQrD62aj2GnH1tEmBpjyM7+zA64T3X/I8v76gPrLAGzsBs90exk 0ov85W/9PHcT+ss06KoHYJnsQaFJ/qFomR4aJZlR78kL9qdkKLOcnfBz/tUVtFuw+J+S 01CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fFO4Ph1tTOzkrh2egUu5DSkLl5+IunKmHA0YCjASxdg=; b=t79I4IFhs2zZiw9Pmz2GZ73PxcktVddhvSmcOX9WIEIyo5Fuo5E1MbtSLEWBzq8S6m uOfHjFwf5EDlboCGfxgMAraSsCIUR3IBSqezsk4ThzVm5pnz0HIod77hRJ5iXT/QgwAT FgWBrNetMofSrqZKVSIMpv+vDzo391U+q//c+8gVl04ltHSD1EU3IonzaTlQ46b0PvfJ JdrtzdrxDextt/8bS+9fanKE85rS+cw3kWPQTNc9dQ5IznEQbk8GgJ59n9dajcsJNoCU 27Bt/pbtGKZpO7etOxYuC4l3OCHwlEDa96cqcvsZ+AlnhbEmhzNDh9kG6J3IGhlQxzpz Fkqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=Yu9N++HX; 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 v14si15620949pff.28.2019.06.25.19.23.26; Tue, 25 Jun 2019 19:23:42 -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=Yu9N++HX; 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 S1726656AbfFZCWa (ORCPT + 99 others); Tue, 25 Jun 2019 22:22:30 -0400 Received: from onstation.org ([52.200.56.107]:46118 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726423AbfFZCWG (ORCPT ); Tue, 25 Jun 2019 22:22:06 -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 49C903EE74; Wed, 26 Jun 2019 02:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1561515725; bh=OXpAhLy5srruCKMhwhvoAj0B2oecFMLNetfymmEW4Eg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yu9N++HXluSC7if/HhprtF0gPOTHMDYHeTbWS5ufkbnJ8KHq1/Dqulfxkem//oKuJ F4co2TuaAO7Hweaeq8aCrNuEduy6I3QbId2O4f0J9nlxGmhSEcZSsnkKNvqo//RCbL PW33jIlHDDqjzJRe2YbQ4ntNpgTyXGDvklvU3g/k= 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 v3 2/6] dt-bindings: display: msm: gmu: add optional ocmem property Date: Tue, 25 Jun 2019 22:21:44 -0400 Message-Id: <20190626022148.23712-3-masneyb@onstation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190626022148.23712-1-masneyb@onstation.org> References: <20190626022148.23712-1-masneyb@onstation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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..e5596994df7b 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/soc/qcom/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.20.1