From patchwork Fri Apr 29 21:11:09 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: 12832820 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 42429C433EF for ; Fri, 29 Apr 2022 21:12:34 +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=uG9jKKGPcjeOfMNZIQ7fIyJ6E7cF/rgdXor9QOcB9+Y=; b=scFe6WhO6t568Q 5rKEfcykWjpjpE7KK8FRb0Ek1BQtX6U8gC6IIGCVYOqrDrrP+R4btLDS8BiyYIoWPtfT5jxGclX/t CpxEDMEd5uQnBBmqLsVGyPYi+etfm1XpUoCsPON0uxKQrZF6JCX7+h/lXZ5fpJU3KZ7Ua2IbeGJ5j hc5atIWdYBuAj+Xu5TdkdfPOk9UQ8FyR/ZoOQMVdxWBZyttkyxDsZRoMbsEKOddSRUVUPIXYKdJdj wlxzQFuAob0VkEIaWaDv7ZIKg3HkDDz3/ptRaTpt3fSM8GgqXnski2Pe6j/FdgRHNpAvHs8Hl75/B UzICUbxPUmGs0i0W0VKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkXtq-00CjqA-Va; Fri, 29 Apr 2022 21:11:39 +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 1nkXtc-00Cjj8-9x; Fri, 29 Apr 2022 21:11:25 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id C2C101F469DC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651266682; bh=zkf2OdOr4qeK3DFvoa0PuUxALZNEfVfEptYcm+0bgWY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dfdpa804qceBKZ5hxqyciz2L4G4BIRypnil5OHRrbaUrasFP7RTTZjGR3m+UWxbuT 6+L5MnQ6R7N1NRd05Ud+tTgOm+KQVOEfJZ+nwwysCdOWTHe8ihdOd3gjlFDoqfAkRd uoFjR1YeYQAjqpKR4TtUo/kUKMv30gJX61VhTvPBtK2NmU6I5xQY+pj15jWwSn7JqF /aARjrqrFgy5azn2f9uxOFnVzvGUfq0o0rssfcefSzLUW6Wp2IHpdWpB/R3xwre+PW zlW1G1EMYkW6ACwyQxL3/maz8CrTjxUWiZJQDuqmdiUBIE8hukqzYnedOSdZ7VBubO AwoQmkDC2h34A== 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 1/2] dt-bindings: remoteproc: mediatek: Fix optional reg-names for mtk, scp Date: Fri, 29 Apr 2022 17:11:09 -0400 Message-Id: <20220429211111.2214119-2-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220429211111.2214119-1-nfraprado@collabora.com> References: <20220429211111.2214119-1-nfraprado@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220429_141124_510677_25D94833 X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. 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 --- .../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: