Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7148356rwr; Wed, 10 May 2023 04:43:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4gL1QP6TLHAfVXc1TDIRHXQ2mzIYUvdECdqDvMd3KnJ1712KRL8CM4mCiQ2haQlYk/kleq X-Received: by 2002:a17:90a:684e:b0:24e:27a:e91f with SMTP id e14-20020a17090a684e00b0024e027ae91fmr21017650pjm.11.1683719033006; Wed, 10 May 2023 04:43:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683719032; cv=pass; d=google.com; s=arc-20160816; b=mNweTT9sN7JmnbBHbN1CH4/Y37pwwTFGhzE2dGi9tW7IYPv4108dVD3hXql7It7AHG FszK6oj0s4DA23ucYNtQhop6/yJEbgFBAW3OBE6yWqTR4lqWpcMPOQgzuWZqywQHuGaI RmpEB3nONR8Mji6WvQUTpRZGT9wOduihP8P6JUaX+gRx7PUuvLveMSQuC7euxCgqZqxX LBKxTM/jhYb0PjxzFSClvQ21DvxX2nZqBK+tRGX3cR1NZ4ydra19exFxURArTYRdNS1G /zjHMbqJ2l8DF3HLp5Bw0Adt6bc1L53ePXmKP+Hpi3CQxH7MScVUiyYOUlus6cpearpD chGA== ARC-Message-Signature: i=2; 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=dLbpQVxDrVejfcTM/lgsnUfRWa0pYoPEX6QosRNCiXo=; b=W/tDw7p34T8wecjgp+q4V30KiOTRsvN7Ef983PewT6m241EFCppTU9+dyzyH6dwccT Ux8RN1w8LhuapMTOVE5/wy+KVx29jBveZyaVPOAWgRqI5ywp86adaufcnOPDmvCKT6Zy yVe1dl77cqlpLGKSEa+fGzZXxSoFdkXGuWx48Qsdbn3Gt2yBO4rjEjpoBU9b6cawqm2r /YWuX8+hDa9wHwvoHfeLNWv5RO4kXk+RJC1etW0cWzwMTkum04tEkp/P9yS4Nxnq/Srp BQd+PT1XthliGuEunfHsqFqFwHaWyMavaJjY96flxYJm6OyeHa4/KgNB8fN2QL/KJbp3 A8Ig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=DemyLuAX; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s2-20020a17090a760200b00247828153aasi21134694pjk.65.2023.05.10.04.43.38; Wed, 10 May 2023 04:43:52 -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=@Nvidia.com header.s=selector2 header.b=DemyLuAX; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236932AbjEJLiB (ORCPT + 99 others); Wed, 10 May 2023 07:38:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236870AbjEJLh5 (ORCPT ); Wed, 10 May 2023 07:37:57 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2066.outbound.protection.outlook.com [40.107.237.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9057A7D9E; Wed, 10 May 2023 04:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PgXlKBMqhAHltmK/nDo4Tg6Kh3RI+vDdWKkL8QOkaBjnbk0B4KiQEBf82WfvaJYP5UZSV4IEPF+l02jmI349CvIiqKoZefIaxV4BpP8zFFRrIxKgq7qRwy9u1Lf6nbDUhi62OiERkPy5acZW26V5aASC67GnV3Peh+NjhrntJcSohF+vHKBMlLoZZOD1/k30/V8XYBk4a6/moPPBWigZvZ7vq8hA067hi52kE0FH/lOXAhSdak0jP0R7x2kRHzceU0Zx+NcgHhDyJsfIBJoMsVWgZgkV+7VWDs/B8Ey7pk77vC9J8+JlzymqPg9nYTwmfuzJf9e8vKTI7ZIRaHX89w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dLbpQVxDrVejfcTM/lgsnUfRWa0pYoPEX6QosRNCiXo=; b=n76v/JW9RypYb2fmk6SNT6mmVgQk6dkre9ug+snHQfwVv4V9Hhm9nbsuFaDMZcX2dVOwLEgSyPF7d631+Bur7k5/qU6T8lD3NqNjOGJ9o36C3R+uG/GcOARqULZ8E/p5DLNJcmSq8/5RprjNiBOtlE0EIpQ2Lm9fzkcJ/X/hnrBtRrUnDI7/kDTUjKAF2TMyk925tDjQWWpn6611A6GAJ/B9D+yD2ChcVN763lVk+Ywvjop8dIYSF89KHHv4ZfZfozK5RB8/wJYLwdJvGdZYpN/Yedwqihms9zIyWhEyj0Pxw6u/1i8qTa3Ha7mJurLpOos0jiSqpV1fIgXpLWP+Sw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=gmail.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dLbpQVxDrVejfcTM/lgsnUfRWa0pYoPEX6QosRNCiXo=; b=DemyLuAXKD4TZtCbfAePxrhyaqlBfWiEZYQc/33nf5sNzbfuSEDJZpARKS3NEkmKCzwIeB02kYVhYL7PNVTLVHsmiL+W7+A6DrAuzj66staN/JRGmYazQf8UDrFWnjnHxGYt6oKqwvmzF/LvvkKBR+Bjv0gM2msXwnh5WSDPkpGTZEug6YCkCGYveFjph3klonFKsYWgjghBdjZE5WfKTcr0ASkVgm0y8I03XDwCzxexYCzX6vyjRDIiR2Hl02EGRKOUFRUBSauql2Z15EWbxygXKlBUaYtYARA3m/viCisWhelIFv8k4EB6H6xiNBZS2ZccI043IZg0tH4todIy2A== Received: from BN6PR17CA0055.namprd17.prod.outlook.com (2603:10b6:405:75::44) by MW4PR12MB7335.namprd12.prod.outlook.com (2603:10b6:303:22b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.33; Wed, 10 May 2023 11:37:50 +0000 Received: from BL02EPF0000C406.namprd05.prod.outlook.com (2603:10b6:405:75:cafe::af) by BN6PR17CA0055.outlook.office365.com (2603:10b6:405:75::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.20 via Frontend Transport; Wed, 10 May 2023 11:37:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by BL02EPF0000C406.mail.protection.outlook.com (10.167.241.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.20 via Frontend Transport; Wed, 10 May 2023 11:37:50 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Wed, 10 May 2023 04:37:41 -0700 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Wed, 10 May 2023 04:37:40 -0700 Received: from 44189d9-lcedt.nvidia.com (10.127.8.9) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.37 via Frontend Transport; Wed, 10 May 2023 04:37:38 -0700 From: Peter De Schrijver To: Peter De Schrijver , , CC: , , , , , , Subject: [PATCH v2 5/6] dt-bindings: memory-region property for tegra186-bpmp Date: Wed, 10 May 2023 14:31:34 +0300 Message-ID: <20230510113129.4167493-6-pdeschrijver@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230510113129.4167493-1-pdeschrijver@nvidia.com> References: <20230510113129.4167493-1-pdeschrijver@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0000C406:EE_|MW4PR12MB7335:EE_ X-MS-Office365-Filtering-Correlation-Id: 82e355ad-7677-4682-adc4-08db514afc55 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: l2LNeSIRkSCZ6tElmX2OlbbPJ1grY9sRkn7aZ/YsfyE75KYJFU077tka78UfKegcvxehWfiX+QaIiBQOYkg7q2bvHTBM+qAKb78HnuBzcjODKXOkdELWyBscjZU99b17SDLHY8oIpKs+GUOItYdPS2H9IgohS6fNhWNcfp8NLRGqESo5uvTZnORS0pQSimm9r1N/ksL92DRJwOWENWz51XNLpDeVdZtyrkrOFXtFE6ni6geq4SvjH4teJkUMlOZ8G1uZ/VPA+fhK6RqTvXU1IlVWJbi+4Ps8Di9xp5v/+Y9bon7RdaBJGt1x9pvRtLwggO+c5FjM9Z8Y8VKgGdq7G+4w8nntTXZYb30QkeaaRm+UBtgIaxDNaa95I5H5t7+Fa32zwjEj+BjO1bd5m9AMc97h9ku/BaUCVTwXhVmQM8kvIcO8jf25Cs18TiP035viH5B2HBlYwPny9JsY4BVnIlqMsrLXfYjuurL4yNPVhGnAQlde3PkiSmZfRYPC3G9Ov95yXDGm7eDDgXXQsu1zM2clHj9h52ckxNohh2BOVLswNVDvV9ZGCMOmYu67XQmApsSODViclpPeSy9e7b3VCgYO3jbI9ynoJApDjHVAANcu249ahLVBb+qujC/uUqa/rX4C0ecxpi6Uq7xG8wnIjiNLS25xPmRRi0dIUY1CSAF4lywIHO/eiOARW4JE8NhtVT8uHRWLqCjTF0DhYl5R7A== X-Forefront-Antispam-Report: CIP:216.228.118.233;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge2.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(396003)(39860400002)(346002)(136003)(376002)(451199021)(46966006)(40470700004)(36840700001)(110136005)(4326008)(70206006)(82740400003)(6636002)(356005)(70586007)(316002)(7636003)(40480700001)(107886003)(336012)(8936002)(426003)(82310400005)(8676002)(47076005)(54906003)(83380400001)(26005)(1076003)(86362001)(41300700001)(5660300002)(36860700001)(478600001)(36756003)(2616005)(6666004)(2906002)(40460700003)(186003)(7696005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2023 11:37:50.4085 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 82e355ad-7677-4682-adc4-08db514afc55 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.233];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF0000C406.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7335 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Add memory-region property to the tegra186-bpmp binding to support DRAM MRQ GSCs. Co-developed-by: Stefan Kristiansson Signed-off-by: Stefan Kristiansson Signed-off-by: Peter De Schrijver --- .../firmware/nvidia,tegra186-bpmp.yaml | 37 +++++++++++++++++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/firmware/nvidia,tegra186-bpmp.yaml b/Documentation/devicetree/bindings/firmware/nvidia,tegra186-bpmp.yaml index 833c07f1685c..f3e02c9d090d 100644 --- a/Documentation/devicetree/bindings/firmware/nvidia,tegra186-bpmp.yaml +++ b/Documentation/devicetree/bindings/firmware/nvidia,tegra186-bpmp.yaml @@ -57,8 +57,11 @@ description: | "#address-cells" or "#size-cells" property. The shared memory area for the IPC TX and RX between CPU and BPMP are - predefined and work on top of sysram, which is an SRAM inside the - chip. See ".../sram/sram.yaml" for the bindings. + predefined and work on top of either sysram, which is an SRAM inside the + chip, or in normal SDRAM. + See ".../sram/sram.yaml" for the bindings for the SRAM case. + See "../reserved-memory/nvidia,tegra264-bpmp-shmem.yaml" for bindings for + the SDRAM case. properties: compatible: @@ -81,6 +84,11 @@ properties: minItems: 2 maxItems: 2 + memory-region: + description: phandle to reserved memory region used for IPC between + CPU-NS and BPMP. + maxItems: 1 + "#clock-cells": const: 1 @@ -115,10 +123,15 @@ properties: additionalProperties: false +oneOf: + - required: + - memory-region + - required: + - shmem + required: - compatible - mboxes - - shmem - "#clock-cells" - "#power-domain-cells" - "#reset-cells" @@ -184,3 +197,21 @@ examples: #thermal-sensor-cells = <1>; }; }; + + - | + #include + + bpmp { + compatible = "nvidia,tegra186-bpmp"; + interconnects = <&mc TEGRA186_MEMORY_CLIENT_BPMPR &emc>, + <&mc TEGRA186_MEMORY_CLIENT_BPMPW &emc>, + <&mc TEGRA186_MEMORY_CLIENT_BPMPDMAR &emc>, + <&mc TEGRA186_MEMORY_CLIENT_BPMPDMAW &emc>; + interconnect-names = "read", "write", "dma-mem", "dma-write"; + mboxes = <&hsp_top1 TEGRA_HSP_MBOX_TYPE_DB + TEGRA_HSP_DB_MASTER_BPMP>; + memory-region = <&dram_cpu_bpmp_mail>; + #clock-cells = <1>; + #power-domain-cells = <1>; + #reset-cells = <1>; + }; -- 2.34.1