Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2133021iob; Fri, 29 Apr 2022 23:49:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc1HFGNdc+vV9VRAQZChPwstWxvI9C/6iGsZ4aAAGl10AJuhPwDdNS04uDh5uCnvg/egkL X-Received: by 2002:a63:2009:0:b0:3c1:922b:3e76 with SMTP id g9-20020a632009000000b003c1922b3e76mr2219558pgg.558.1651301374525; Fri, 29 Apr 2022 23:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651301374; cv=none; d=google.com; s=arc-20160816; b=SuosXMdtywvjfdeNZD6zHJF4gVFXMylQFfwZAnGm4RSPrm1nU9mHPKq2ai71Bg/pm4 i+xKPny+eTV4WnG+Qom1p7IhbOWGYeUG1+OJXzhWsgbdgojhJNJqWljT04IdUu6goOPb Uem1OQJAP1Pec+ZOX+7m2PK9PRLHbHLvBWPWx0x4b5J3GbXLKKKe0VsqN52VJTN3MTwo W9DN17mWG8Q4n2p5KCcJuLa/yiRYkO5N2o/KEDH8wjawcOZIu3nfdnWk+/LMbiqJr4uL lk0M9cD+L5UETRaZ6u6n8t7UgZBecqP8aLS/i8nuzO7fp+aVs48aHgmX+lL9jRvC4Duv TYkw== ARC-Message-Signature: i=1; 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=KkOyQqZqj2/q+a/8mi9qC5/45Nt+jvurAFDFkn+DgdM=; b=wf2/ZRum+zNmkFTLca4wYqiby3G9tkE0FoqQ9DvFQzU1bEs1e6O+QsHQtOjGEv32KW bZuqdg45F2NNz+V6rYieByI9yxOiHtCQmmtMXzOqRGJHl5O0uZ2p6X70A0CU51T/jsId UkR4dJaKaljosRNR9m2/i6qPZYl8UBk3jf+8dvw3ho1g58qgtvFgPAkFqFIbpPQ88z0m 2QJMllvINllAU/85Ehsf30hR4PPK1i0S2r8bzbZi2M2eE+mnxpMvekDx5jXxv/DR8fup CzYE0Wtmvq1Jpx2Z/M3Gr5bSQNf29Z+n+50LGlwG4VcoOnjw1EMmjgrngc6UtgQbl0sy A7Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=dfdpa804; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw17-20020a17090b181100b001d170dc834asi10766156pjb.62.2022.04.29.23.49.13; Fri, 29 Apr 2022 23:49:34 -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=@collabora.com header.s=mail header.b=dfdpa804; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233024AbiD2VOq (ORCPT + 99 others); Fri, 29 Apr 2022 17:14:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232286AbiD2VOm (ORCPT ); Fri, 29 Apr 2022 17:14:42 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 699DED3AD2; Fri, 29 Apr 2022 14:11:23 -0700 (PDT) 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?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Bjorn Andersson Cc: AngeloGioacchino Del Regno , kernel@collabora.com, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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_PASS,SPF_PASS, UNPARSEABLE_RELAY 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 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: -- 2.36.0