Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4788412iob; Mon, 9 May 2022 01:26:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUk3t67wDjp9dzVywZE8BP8h4R4fDlhtY4NLx6DyjmC1PX19XA5/5LlZ+RnBs+4FNYELbS X-Received: by 2002:a63:834a:0:b0:3c6:bd46:16bc with SMTP id h71-20020a63834a000000b003c6bd4616bcmr3597699pge.262.1652084813491; Mon, 09 May 2022 01:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652084813; cv=none; d=google.com; s=arc-20160816; b=KyjbU1kZkMszH6h/Y1RbJKM7ZKT5uIQiUuFs7upYmTIrAL46JcSWdJNvCEwc2FetQZ cseP3RfQCESJ77zP9m9J4TIMZ6eiQIbFMDGWIt4LpOCTeBdnye9jVoqeDZyoKnakYf6J Fb6sAuXOb+jnLJF3ZqxbkssSEhehNAhrgbfhYmIkyPblGiS7TPbXn1yj0v2hLaXTAOWk 8YpzJxNKCdkjHrewGF63YG7R9ulm/XbifIWWZIwmoHDM17ybCFfg7kD7X7OAmfxNsKhd dlN8P7s7ujSFdSbF9sLLyu2R04G9umjoGqw/5aEz72xMS+iX3HutOLX16kBpGLx20jva YaNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=pKO2GPtNdIghjz6m7nU4lvNqHCZJe8aOfScuIu52lYI=; b=tx/BW7lmrAUBQGiGvM8UgKXgLwol8e6q1zYDUEx8ygJGFFsYXSrlUgu9wUUY4/4vbZ Usm9ZNbXJ/vkY17JOC6OyEP+AzBHwCcEdzJoY22T8SkVq0gPNKkSJFOa7pkh+FGPe8WF bQObQlGHX2fskr/wUDKne49oNyj3rniOhZlet2Jv0KrII7PTyuyk+AlFv/FeQox6DxYP bQ0mZ6ntXmpJMuihxSe8x35i38BQ/TpBux6wcbkurWebI67hU4Y9UZd2so9t13yDgnUD QcrAChsHgFkAR8oS4Qd6mGJZkd6aXk4tnAP5z8jz76mHUGEvJMs4Nx/JyoIcFFQI5TdD a0Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cmLK3WTG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r13-20020a65498d000000b003c65e014407si9684991pgs.122.2022.05.09.01.26.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 01:26:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cmLK3WTG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2066219C75D; Mon, 9 May 2022 01:11:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354878AbiEGQhZ (ORCPT + 99 others); Sat, 7 May 2022 12:37:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347958AbiEGQhW (ORCPT ); Sat, 7 May 2022 12:37:22 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CC3C18378 for ; Sat, 7 May 2022 09:33:35 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id t5so11792384edw.11 for ; Sat, 07 May 2022 09:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=pKO2GPtNdIghjz6m7nU4lvNqHCZJe8aOfScuIu52lYI=; b=cmLK3WTGMu+JUFTSMOh+sDJVERBH5LGbX9YNBtxSObQUA1nZntQ/c5pTdEdgArSC37 XT6tUpq3xiwy+X2rC4oFU4oYhpSyi2ZMdwxuF1/jc+WO3kouQHwmm6wJ1TPVWLB/hVph fdYATZMGIKm4CHf2cx2DsjD7DxSjC+iFUqi1X9vEEz+hmBQg3XbevS6UT+UOjgiL9q+2 yBZcs0eoG2RgtAGi7d54VnDIXKApqL7/8x1GGXDOH1gSU3Uy4RFm0CJnxvoCL/pnhNEF sjnStod+/FZH986KzgVqyZ3mXngZX3xkXCl89lVKWoQ3mQEmrEuYparnCmDAjUprWGF2 6HDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=pKO2GPtNdIghjz6m7nU4lvNqHCZJe8aOfScuIu52lYI=; b=XCuAO0HoKqHIrwc9h+OaYqfiN5qn4zocEYWfGKSYsCMycOA/63cPFGUmh6n+HKo72O UUzJwzM9oqHqxQ0RUMR4qJ5zSnB1ksrcZQ+3PF1d82o2OzZopqQV91/KGVFsmsIxo5Yw A4Skz59Wt7m4OfzW0dz4tUStK6q5l5BKNd9SOLKKWiSyECWz/pknwOmcutTz5cixqh5S V6nFHzV7phztGfDcjMgBDYQmwKoZ5w9KrFn2lEQpxj/rZgXmQBbSR6XRfdN7+6CNXar8 ZFYUb4dwdPNB73WR6so4yngo108UPcLeuDjdVJlmiNgvZN5me9Z/N6WuKVszzwhX+cAa cZTA== X-Gm-Message-State: AOAM532jV5OyJQ6oyssiA0FUn9zb1aBva+1vM4eN/ef62PAnd2xXeMBN cKUITKRXTas5yyY1xdppgjz9TQ== X-Received: by 2002:a05:6402:5255:b0:427:de81:6af with SMTP id t21-20020a056402525500b00427de8106afmr9324701edd.269.1651941213736; Sat, 07 May 2022 09:33:33 -0700 (PDT) Received: from [192.168.0.233] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id w26-20020a50fa9a000000b0041d893ed437sm3745988edr.2.2022.05.07.09.33.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 07 May 2022 09:33:33 -0700 (PDT) Message-ID: Date: Sat, 7 May 2022 18:33:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v4 1/2] dt-bindings: remoteproc: mediatek: Make l1tcm reg exclusive to mt819x Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Bjorn Andersson Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Krzysztof Kozlowski , Mathieu Poirier , Matthias Brugger , Rob Herring , Tinghan Shen , Tzung-Bi Shih , 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 References: <20220506213226.257859-1-nfraprado@collabora.com> <20220506213226.257859-2-nfraprado@collabora.com> From: Krzysztof Kozlowski In-Reply-To: <20220506213226.257859-2-nfraprado@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 06/05/2022 23:32, NĂ­colas F. R. A. Prado wrote: > Commit ca23ecfdbd44 ("remoteproc/mediatek: support L1TCM") added support > for the l1tcm memory region on the MT8192 SCP, adding a new da_to_va > callback that handles l1tcm while keeping the old one for > back-compatibility with MT8183. However, since the mt8192 compatible was > missing from the dt-binding, the accompanying dt-binding commit > 503c64cc42f1 ("dt-bindings: remoteproc: mediatek: add L1TCM memory region") > mistakenly added this reg as if it were for mt8183. And later > it became common to all platforms as their compatibles were added. > > Fix the dt-binding so that the l1tcm reg can, and must, be present only > on the supported platforms: mt8192 and mt8195. > > Fixes: 503c64cc42f1 ("dt-bindings: remoteproc: mediatek: add L1TCM memory region") > Signed-off-by: NĂ­colas F. R. A. Prado > > --- > The if:then: branches became rather long since it seems that it's not > possible to override the properties in them, only add new ones. That is, > I couldn't leave the items definition for all three regs in the global > reg-names and just decrease minItems and maxItems to 2 for > mt8183/mt8186. > > Also I had to add a description to the global reg-names, since it > couldn't be neither missing nor empty. It is possible: https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/example-schema.yaml#L91 Keep constraints and list of names in properties. Then in allOf:if:then raise minItems or lower maxItems, depending on the variant. Best regards, Krzysztof