From patchwork Mon May 2 19:24:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 12834645 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 91F00C433F5 for ; Mon, 2 May 2022 19:25:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nfy6ae5S0yUNK02aEl4NSj5gcvEJgBgPjsMc2bOvoaM=; b=cEzCRfDay0RyKb VGbMapJ+726HfGLSOPnXVwzggQUGwNZJ08J1F8J4n3G7J2HmORmjVXjTsnhU42U7IAYL0XDZoLOfJ zxbEGAEkyKRKtqP7820qLXGT4IWTFjpljiGNIc+jISpgV11pv9LdxuplS7v5R4Nxy96vSHS67KQC+ UxTq4OYAq6oDAzb6gg9+Z97QIeYoZdnqzGGMy3UBWYTdQzp7tLk84shiN31PIJfcB0yvzAid68bKi hbiIgIlsu8JqYnmu4NOxxJbhVZUEhWQidxeKefai8KQrLKndyrS8+xDrIkh5dhl+9PMSNNviOsLXE 37TshJlEQjWaorxXnL+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlbez-002NP3-LG; Mon, 02 May 2022 19:24:41 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlben-002NKq-G2; Mon, 02 May 2022 19:24:30 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id E2D341F43621 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651519466; bh=vHihAny00/plbHUVJRmkYGyvszXuKSJzxYZuye6XI3w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JpQqhjaAxa5faEQtAsKCmgXiugtsTXMLqjEWTrs1HlSSGtpuwbTN9iX+Cz0kOJaFa ZbKr4bnDb/xWp9p9PRJAUgU8IIQTNBdovEiIorjCTjd+zecDsy04ZLW1XgutGmgAC2 XJllqbTfFdIyc2n+WRIJBaip0pUk111qe3FePJ/LD0aqGP8zLdaYvZMpqL2j6Kk/y8 zLiL+kz4CbpPBDM9zBpEWdhBJey8fpSq+hWjFxxEi/aJBIHkj5xISEpA6LUy0zJ6g4 v4P1W0vsxxMgxHwfGWREJScjhQajlJlsqBJ7H1JIuMEBk9rSsIxCfQZWRymkIkSpP+ fdfY++J7xgZkw== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Bjorn Andersson Cc: AngeloGioacchino Del Regno , kernel@collabora.com, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Krzysztof Kozlowski , Mathieu Poirier , Matthias Brugger , Rob Herring , Tinghan Shen , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-remoteproc@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: remoteproc: mediatek: Fix optional reg-names for mtk, scp Date: Mon, 2 May 2022 15:24:19 -0400 Message-Id: <20220502192420.2548512-2-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220502192420.2548512-1-nfraprado@collabora.com> References: <20220502192420.2548512-1-nfraprado@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220502_122429_702567_D3B1C8AB X-CRM114-Status: GOOD ( 10.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The SCP has three memory regions: sram, l1tcm and cfg. Only sram is required, the other two are optional. Fix the dt-binding so that the optional regions can be omitted and passed in any order. Also add the missing minItems to the reg property and update the description. Signed-off-by: NĂ­colas F. R. A. Prado --- (no changes since v1) .../devicetree/bindings/remoteproc/mtk,scp.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml index 823a236242de..ec9ddeb6ca2c 100644 --- a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml @@ -24,14 +24,20 @@ properties: reg: description: Should contain the address ranges for memory regions SRAM, CFG, and - L1TCM. + L1TCM. Only SRAM is required, while CFG and L1TCM are optional. + minItems: 1 maxItems: 3 reg-names: + minItems: 1 items: - const: sram - - const: cfg - - const: l1tcm + - enum: + - l1tcm + - cfg + - enum: + - l1tcm + - cfg clocks: description: From patchwork Mon May 2 19:24:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 12834646 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 400C3C433F5 for ; Mon, 2 May 2022 19:25:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pU2hKjvIsV6LLMw1WuHRf07Jl1EReAyeRGm1zftEmWY=; b=adwB6pILmCq/4g cUfj+rn+pjSOHoAt4r30VlS5QYUP8Ys19kkTZAjcfWk+l4LfhT6ogrqRgVN2bV5k2JsNI6f/VAVqf HBZhfri/I+Cv20KmwLIIBXLIMAExIrQ5wa9vgBNbx9TWlK1qY5cCHrNudA8MHsiT4ZrreYm+M/o/a ejHUOVOu3M48CIx6mPjx0E3fZinS/Jt/HbQ9uPU5rIeOxcCwlPt7xtc3UdKiWG06RvRPBGv3ynqY6 w5p2qPKKOSeUe9uQr4uFgY7S1NIkkNdkT9ff5SGs+II/I4vYVBeRTQr9KagQ/c/hQBbQ9lnE3Yg3z 88qX6pnGx/V5nfSvnLOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlbf9-002NTK-Ok; Mon, 02 May 2022 19:24:51 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlbep-002NLt-JW; Mon, 02 May 2022 19:24:32 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id EE26B1F43619 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651519470; bh=XkLENWM+R3mXRcAnf7rx6wijc7C/RaUn71isMJVASJk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HVKO8pC3w6eYiPSquxenJQrMYI7U13/cmYQoDDE2VSCGKBJ/xAg0NBA4O+71HpmsD zuWLVrPr6/yfdIrfJIFS57Ftw6uinl16vDF9HSpDW9KN5tgHl6TZeYVQMVE6U/egZ6 vEF9YxbLcFTyv3snK6oipLxlXeOOMSsE3Bb0e2ji7ckTovc83NEXPE32GJNf5xCAOw oFDzp7U/ThHiU71zgOO7RiITYVF45QYsoc1ntahTh58PsVMN5s6oC/hOKH+tHqLtzt zDz10r44TlOwBM/YVyLpnjOfxRW8PzebHhl6QGVWmukUAjY+LFFr8mDCqSyeOwknf1 TcusRrYZWtckQ== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Bjorn Andersson Cc: AngeloGioacchino Del Regno , kernel@collabora.com, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Krzysztof Kozlowski , Mathieu Poirier , Matthias Brugger , Rob Herring , Tinghan Shen , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-remoteproc@vger.kernel.org Subject: [PATCH v2 2/2] dt-bindings: remoteproc: mediatek: Add optional memory-region to mtk, scp Date: Mon, 2 May 2022 15:24:20 -0400 Message-Id: <20220502192420.2548512-3-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220502192420.2548512-1-nfraprado@collabora.com> References: <20220502192420.2548512-1-nfraprado@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220502_122431_808867_B07F8B30 X-CRM114-Status: GOOD ( 10.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The SCP co-processor can optionally be passed a reserved memory region to use. Add this property in the dt-binding. Signed-off-by: NĂ­colas F. R. A. Prado Acked-by: Rob Herring Reviewed-by: AngeloGioacchino Del Regno --- I left out Angelo's R-b since of the 3 lines in the patch from v1, only 1 is left. Changes in v2: - Dropped type and description since it's a well-known property - Set maxItems to 1 Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml index ec9ddeb6ca2c..c6a92ac8db18 100644 --- a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml @@ -51,6 +51,9 @@ properties: interrupts: maxItems: 1 + memory-region: + maxItems: 1 + required: - compatible - reg