Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp637188iob; Wed, 4 May 2022 05:04:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhwsSPjIT5P5WCjp0lyuahEhYgQKpxKr7HNz7ibpAs41dnX55ASO47qoHT7MqIvfBrs460 X-Received: by 2002:a63:4723:0:b0:3c2:69ab:df80 with SMTP id u35-20020a634723000000b003c269abdf80mr7376486pga.23.1651665882989; Wed, 04 May 2022 05:04:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651665882; cv=none; d=google.com; s=arc-20160816; b=FE1wRdef6rKXbKRdmWHrrnVxxRabiRcH/nAH/tCOq3ie95Ojy0ycaOXfFhrh03i3Er 8Pq6Z3MzSIq3kL2G+OcvqOlLPtbMedHCldLeKL9DRm+qc+vNQUTkqf5Y8P0lLsHr2aDG asjU+XWWQleqYOUk1rEouzKknZG1IPAUbd0PB3BZPf+AWeFm+RAouIsDk7AvyKx48t6O +k9OYNUxyMSaQJYVWHf/0WnT2AM2m687DhdvGQ3Tdg6NXtnNrZuPHL9XreEXt/Tpx8WK e1UY7reod99kJOGYSh1byuctjksx7rQHyq/zIDHbrsX163RW7A+LHsOKSDH1UUEN9USx /OaQ== 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=3as0BxwA2jv3/5Ih50C95LgSNt2pbt6B+BnDE6noBIo=; b=hFIY+MYsF1WkLoAbjsB1vxX+3PbR4YIov7fpvsUG4acVD69UiUsvLy3kWO/7kMJq4U MqMjxTpAA6tXs1liQG6Lr03fYjygcybyxL4PoStAtC3wTkt9PdT894xOiJTBuzb7AWxB wInRZ/e1q56YfYFqmNtb+8L0lZS8pYDTiEuQ0R1IaAWMm1tV6gXzzN0sog9tT3C/wmso 0iaNmqzVRYJraQ3CAcARSXKVC2NZSJfxW28WC+4EfpEoD88b5Io+O6GYOBMa1sgN06D4 NWhuOTck/GUD4VHKKf135BFCkBoSMJ1UZRRykjl/UUwhdTCi2QzAw3Ry7wA9sPh1y05z n5eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=PzSazz1t; 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 b14-20020a170903228e00b0015ea2aa2c7dsi9038701plh.424.2022.05.04.05.04.25; Wed, 04 May 2022 05:04:42 -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=PzSazz1t; 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 S242681AbiECVPE (ORCPT + 99 others); Tue, 3 May 2022 17:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240189AbiECVPC (ORCPT ); Tue, 3 May 2022 17:15:02 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0D292F3B8; Tue, 3 May 2022 14:11:28 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 56AF01F417FD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651612287; bh=wTlOS8O93LdQ3MZ6Pc0zTUq7Pc+a0aYpZvVoWcRP7HY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PzSazz1tK90Q9PV9UW17Y7+FKQeT43UIJllNJzWKH28JQXxB3qTDrJA25wkDRYJVa 7BvGRuBU6nsidwYJ34eUmqTm4xn96Zszvt6v4qSaLn7YCrzzua8YDIlHsA08NI2fLv sPUK2hKb9ofGOHQIhH3bvXF2j4kmXdgZs6no/FLLhA+WiC0dQCN1ULHQf42UjOLfTo jk9dJ24cr4gJC8rVz1KVBHsXoE3IMidBLhmTCy3YqyQz4Lw5tRb2c4uzXwgHe+ZN1J fX5k98xqZy/XPWuUhpWRnHcHF87r67Awf6Yz9/oYiQRo/WR1gS8oFcTetYQDsNkLry rJPHKNqs4cjPg== 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 v3 1/2] dt-bindings: remoteproc: mediatek: Make l1tcm reg optional for mtk,scp Date: Tue, 3 May 2022 17:11:13 -0400 Message-Id: <20220503211114.2656099-2-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220503211114.2656099-1-nfraprado@collabora.com> References: <20220503211114.2656099-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, T_SCC_BODY_TEXT_LINE,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, cfg and l1tcm. While the first two are required, l1tcm is optional. Fix the dt-binding so that it can be omitted and update the description. This gets rid of dtbs_check warnings for devicetrees where the l1tcm reg is missing like mt8183. Signed-off-by: NĂ­colas F. R. A. Prado --- Changes in v3: - Made the cfg reg required again. After looking again into the mtk-scp driver, only l1tcm is optional. - Added mention that a dtbs_check warning gets fixed by patch in commit message. Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml index 823a236242de..eeea84379a1e 100644 --- a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml @@ -23,11 +23,13 @@ properties: reg: description: - Should contain the address ranges for memory regions SRAM, CFG, and - L1TCM. + Should contain the address ranges for memory regions SRAM, CFG, and, + optionally, L1TCM. + minItems: 2 maxItems: 3 reg-names: + minItems: 2 items: - const: sram - const: cfg -- 2.36.0