From patchwork Sun May 7 09:12:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 90831 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1480309vqo; Sun, 7 May 2023 02:39:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4s20/b/y89N8PJEIUFxLwf5tJdfNZhULbcGGfI/btXWNJM+cm2Huf3/zYbQ4djRDY61RSp X-Received: by 2002:a05:6a20:e18e:b0:da:8917:bdc5 with SMTP id ks14-20020a056a20e18e00b000da8917bdc5mr7813146pzb.45.1683452347146; Sun, 07 May 2023 02:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683452347; cv=none; d=google.com; s=arc-20160816; b=XimWBakflYIDuY0f6ipq3lM/ungT/3dqgF0EHWWJQKiLmi49+QljmshoUC1siek3d6 L0XsgDKuJvdVzdABjTuOh8371P2BSiyuyQXyt9BjZYIe8MZeNz9MT5ikVmmOCsEGHCZK N70cfgsF2Bl0SWCLDhq+EpHs238eZEsQQvicUlvr5mYvW+/3fpWKVfUjnc7BtmpjGr7x bR/F8jw0tvUs5krW3JO2ERzuudM91/ydVEoO8iFn+fHJqfOGdvTZ61ZzXryryvoyfM7o rNGOIdBTHK9pPF3pPIZgAtGZA/TydPtQpfwaISUZsToWaoU7u62Yf6ns5f+Jb7hTFaAK AE2A== 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=8IjXUtKLm9d+0K7+AN/q5z5dikstBcy5+zAKUj/0s8o=; b=LtSinsKNGvjmwt7O3X/rpdw4KmeDYUdEk4qS0gVN3rHPO3Unaot92kcbXBd5ebG9lO Z9TW8hJ53MBGDpejX41YesJ0kHXuMsvkW8uKEWi0NpMeDOC4N9xMHU1bFZsqQwC1EZ1V SNduFBRoOfhcH/MsXQYJ/XtsEkg9jYMjLTPC8ZgN46s0jzDRM/C4ZLpFBG2nLLhPE3M2 22PqxoFrvXzc/CYGxUQJjR7vX5TIhLLkfvcIHqTftaO4nKEh4fGtvRPwgr6PTpfLAju1 ARsvoXMRaa1AjTuSWc/83fnfAYj+gZnALjFQRXPfzyo5l3EndWv5a48JILLzGJsgAkv6 NRww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=GHogfyBM; 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=pass (p=QUARANTINE 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 k1-20020a636f01000000b0052c4296d8casi5734877pgc.325.2023.05.07.02.38.52; Sun, 07 May 2023 02:39:07 -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=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=GHogfyBM; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231468AbjEGJNS (ORCPT + 99 others); Sun, 7 May 2023 05:13:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231335AbjEGJNH (ORCPT ); Sun, 7 May 2023 05:13:07 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53E13192; Sun, 7 May 2023 02:13:06 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id E953CCED46; Sun, 7 May 2023 09:13:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1683450783; bh=N+w7jq7XeEONyTDg1iFjOZ+41A3wQL7SjMniFaAAMjs=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=GHogfyBMCuCtPytpym6kxvbfXYmQXgXanqBqynOJVkWth/f4zfqNZbdwzsCG0vjow YrAPawq8dO4j58PRmrEOZ+UiNIwSj8DHMU32w5dnCpsuBzh4wBltuw1eQlWrfjH5hB r8HStf/Y9IB8WR8WerI3QEgxzWAcfHYb5dvbtS/Y= From: Luca Weiss Date: Sun, 07 May 2023 11:12:23 +0200 Subject: [PATCH 6/6] ARM: dts: qcom: msm8226: Add ocmem MIME-Version: 1.0 Message-Id: <20230506-msm8226-ocmem-v1-6-3e24e2724f01@z3ntu.xyz> References: <20230506-msm8226-ocmem-v1-0-3e24e2724f01@z3ntu.xyz> In-Reply-To: <20230506-msm8226-ocmem-v1-0-3e24e2724f01@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Brian Masney , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=952; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=N+w7jq7XeEONyTDg1iFjOZ+41A3wQL7SjMniFaAAMjs=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkV2ucx1260XKj8iQgsWYL36Tvoz+ZL22ms9O5o rVY2Mfy/hKJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZFdrnAAKCRBy2EO4nU3X Vn5FD/0fq/DQTw7hQB267BiTXJXPrsDu27z82VephJ8RV7XK0yP8uaNrk81MYLqxVa+pZD3cjY6 /GdYfgwJ4+rRROyDQZGuEie11ZXeBePhmSosg3yFPwouuHuUJ9HKXjWRXGf1mbU86Ha2zydygMZ 4dcRd+Qzf+saRnIWFJYL8/SlQ7sdsp+ce5LcT53wN/3UwAzvuNl2zf+hyAvKKkhaB7pPw3uxsVr HC3fSWoFpQax3xLuHLDnMfEDfzwn76NPBHLhVCAI3zbT2CW77jB62Yc49SXt7EuoHeGYWvROaPj m+J0haDtJ/tE955gAEpnJ4OlauK4fCcBLf8OR9XP0N2z7JXordyg0zS2QKgnJG6YRs4HbRzPcD6 SPNxUXS6m7IkdcNd1HEHs5/xDI+F+tPrZdyYlh+aEm+e3pJN5BWbkbIKJGxM7+DyJpYjRdMCERX B/C0pVErf0tNi8Lx7U3Q6GXFtpyXDXFRYco7ZbNphr0zwh8/pHDArX5Uo28RzPtZKzJ2/rD6Kbd csMDRV6p+gENv0qs22YWy0y3xnhUK/h6qefY+zmkV67KrWMzzcMrtu1EN5R/mzRKbAIny/QpP3W rXp9bCZZya4WDcAG0I1HMMMpJbufUIhSGLXjMOVN/IWsZdNLxC7vfefwkq8zrQHzDDCQcmhzw/O IEjF8MF8I9YufMg== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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?1765227728104956601?= X-GMAIL-MSGID: =?utf-8?q?1765227728104956601?= Add a node for the ocmem found on msm8226. It contains one region, used as gmu_ram. Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom-msm8226.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index 42acb9ddb8cc..7ad073eb85c8 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -636,6 +636,23 @@ smd-edge { label = "lpass"; }; }; + + sram@fdd00000 { + compatible = "qcom,msm8226-ocmem"; + reg = <0xfdd00000 0x2000>, + <0xfec00000 0x20000>; + reg-names = "ctrl", "mem"; + ranges = <0 0xfec00000 0x20000>; + clocks = <&rpmcc RPM_SMD_OCMEMGX_CLK>; + clock-names = "core"; + + #address-cells = <1>; + #size-cells = <1>; + + gmu_sram: gmu-sram@0 { + reg = <0x0 0x20000>; + }; + }; }; timer {