Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1761421rwl; Mon, 26 Dec 2022 04:29:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXvmb79iloEONGfvfFfc3DHiOMhAKL304EDnSgFb+sP+yG22Z2YcIINqo7IWteWV/UVRSeW7 X-Received: by 2002:a17:907:a08d:b0:7c0:dac7:36d8 with SMTP id hu13-20020a170907a08d00b007c0dac736d8mr15566152ejc.10.1672057740739; Mon, 26 Dec 2022 04:29:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672057740; cv=none; d=google.com; s=arc-20160816; b=ZysrTu8s5MT3JlfStjuCNnwVkvmVh6VVKZ8mggguE/puERTbpnOD0cHARV+xyJN36u qbPiHTOHdMJLi5JhIDMhMLKGKw9K8DDuz1/3PzTkY/YDOiDXBL4fQrNtFYgAucfEpybT 91oHv/KfGuTaYgLgezYTZwhCM0mapTWtLhbnLI0Oh+mm6uv1NjUDKYDO25Y/mxrNTaGH o3MqmXMFyICE7ncIZPSaO3Rmu8iFiP8ScFeCRZ70tONJ3NZ2zQL+mFYRAUHeKMtP8A+r vx7AWxEm1MCplRpfeGkKlXoxOwbic2ML7g7fKo/Ad4RveyIUEeaQbdRIIypLhweN4Ur2 Wspg== 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=jnMgVqsL7Bxv/dXube4K70tj9aVpj3q9QmsELXQ1nlw=; b=Ryh9bNHiUWiwwXt5v91LgQ2tn3T2oDtUmCvv+T9/f/9WaSQVtgBfNXwGYu2ZbSCplW rNEUeRtuxKCVoJIUiFaHOp2MJNAbH+nH9/q6p2P4XtCS/vhZXco6059SOCiV9VNb6k7R qmY6GSkFwiHpwCaRp5pYzoSvIW6Im+a7zDohizFwf95mvHB/zRz6Eq29kWxH+2rQcDmz 56S9+FNWzVaoBhYkyir9ylfA0aGL/0W3YrkLxZWvT0L2JnsMDsWrC4R3/KTa+xTys2py 4ozwixI4ZCU0OfDB/QJoFv4gZWvUTfnzFPc2e2vjKONKFDVgqieV71+mj3bv4vNyKD0K mYVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EAQXLAUO; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa7-20020a1709076d0700b007adef1e3ba7si7125417ejc.587.2022.12.26.04.28.43; Mon, 26 Dec 2022 04:29:00 -0800 (PST) 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=@linaro.org header.s=google header.b=EAQXLAUO; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231859AbiLZMSd (ORCPT + 66 others); Mon, 26 Dec 2022 07:18:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbiLZMSb (ORCPT ); Mon, 26 Dec 2022 07:18:31 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04521CC1 for ; Mon, 26 Dec 2022 04:18:30 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id bq39so7951010lfb.0 for ; Mon, 26 Dec 2022 04:18:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jnMgVqsL7Bxv/dXube4K70tj9aVpj3q9QmsELXQ1nlw=; b=EAQXLAUOmyauGC2eRIfbMka12G+3g2mgYXxiUjTNiZ/+5HkC8EL8ETCRrqII+e+pau cR99FI0eaoy9KCh+5rqX288NSjhsxyU9/dwHypCO7gHWQR0hr6o7a3SfrBWlBAtw4GWm PVIPYTAVs0MKrsCjJv2rAJ9b0RwmEtj7rekk4gWUQk2BDVCFP9/IU+/RLA1vTtM544nF 4hNUyIA0HSRt+Ys6Z6ORxUGmvg3l/B3a52lDQjpMCYU6Q8sjD88UV7DfCe0NjPo5D1DV VpVMALQgM+cVo6Sma/0gS2RUNcInXK1XYMNLZigwAILJ2M1VWhRXVlNI9NRTnfrJr4u0 dkeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jnMgVqsL7Bxv/dXube4K70tj9aVpj3q9QmsELXQ1nlw=; b=wAkSXgeNp4zR06qvAtTq1k0ZN609XmYJ+l8TDWarduULAmVL9zXMUB/s2NriLNL7ND cV+cskRSU+Q+LxFONaf3ZYPVpFgi5YikCEkJUH95SjE8KF6Y77pxo9VpPepI+VSUpf6j EfT5CG5ro4guj2ja+Y3ftikZIIvdAHdSJ253Vqgr4u9AcitT8jq8TmQaPWbrYqCDvtDV Qn/FbuxtmR2xwrSpaEfA3G/+1E4cammvVvqS96ZVnxy1ziUsQn66Co90MWAkFAdsMN4e SPeSurCiQ9UfzW4YxE1zMnQ7IU9XdzJ2R78bIND8yKcv4m652YiEQZxb0Zhkm3ZOCwon OCIA== X-Gm-Message-State: AFqh2kq9Q+aWdl7xAWyryi9anLQmDuklfq6NyDOKk5YM5HDKK4ESbvh9 cVWiDqFUtXkJeGFQE3kMLD0qtw== X-Received: by 2002:ac2:495b:0:b0:4b5:6755:4226 with SMTP id o27-20020ac2495b000000b004b567554226mr4826333lfi.55.1672057108367; Mon, 26 Dec 2022 04:18:28 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id b11-20020a056512024b00b004b57277474esm1779684lfo.106.2022.12.26.04.18.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Dec 2022 04:18:28 -0800 (PST) Message-ID: <374d0b5c-55f4-ee30-c804-4488a3fedb48@linaro.org> Date: Mon, 26 Dec 2022 13:18:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v3 1/2] dt-bindings: remoteproc: ti: Add new compatible for AM62 SoC family Content-Language: en-US To: Devarsh Thakkar , andersson@kernel.org, devicetree@vger.kernel.org, mathieu.poirier@linaro.org, p.zabel@pengutronix.de, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, s-anna@ti.com Cc: hnagalla@ti.com, praneeth@ti.com, nm@ti.com, vigneshr@ti.com, a-bhatia1@ti.com, j-luthra@ti.com References: <20221223115638.20192-1-devarsht@ti.com> <20221223115638.20192-2-devarsht@ti.com> From: Krzysztof Kozlowski In-Reply-To: <20221223115638.20192-2-devarsht@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On 23/12/2022 12:56, Devarsh Thakkar wrote: > AM62 family of devices don't have a R5F cluster, instead > they have single core DM R5F. > Add new compatible string ti,am62-r5fss to support this scenario. > > When this new compatible is used don't allow cluster-mode > property usage in device-tree as this implies that there > is no R5F cluster available and only single R5F core > is present. > > Signed-off-by: Devarsh Thakkar > --- > V2: Avoid acronyms, use "Device Manager" instead of "DM" > V3: > - Use separate if block for each compatible for ti,cluster-mode property > - Rearrange compatibles as per alphabatical order > --- > .../bindings/remoteproc/ti,k3-r5f-rproc.yaml | 68 +++++++++++++------ > 1 file changed, 47 insertions(+), 21 deletions(-) > > diff --git a/Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml > index fb9605f0655b..e8a861179bd9 100644 > --- a/Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml > +++ b/Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml > @@ -21,6 +21,9 @@ description: | > called "Single-CPU" mode, where only Core0 is used, but with ability to use > Core1's TCMs as well. > > + AM62 SoC family support a single R5F core only which runs Device Manager > + firmware and can also be used as a remote processor with IPC communication. > + > Each Dual-Core R5F sub-system is represented as a single DTS node > representing the cluster, with a pair of child DT nodes representing > the individual R5F cores. Each node has a number of required or optional > @@ -28,16 +31,20 @@ description: | > the device management of the remote processor and to communicate with the > remote processor. > > + Since AM62 SoC family only support a single core, there is no cluster-mode > + property setting required for it. > + > properties: > $nodename: > pattern: "^r5fss(@.*)?" > > compatible: > enum: > + - ti,am62-r5fss > + - ti,am64-r5fss > - ti,am654-r5fss > - - ti,j721e-r5fss > - ti,j7200-r5fss > - - ti,am64-r5fss > + - ti,j721e-r5fss > - ti,j721s2-r5fss > > power-domains: > @@ -80,7 +87,9 @@ patternProperties: > node representing a TI instantiation of the Arm Cortex R5F core. There > are some specific integration differences for the IP like the usage of > a Region Address Translator (RAT) for translating the larger SoC bus > - addresses into a 32-bit address space for the processor. > + addresses into a 32-bit address space for the processor. For AM62x, > + the R5F Sub-System device node should only define one R5F child node > + as it has only one core available. > > Each R5F core has an associated 64 KB of Tightly-Coupled Memory (TCM) > internal memories split between two banks - TCMA and TCMB (further > @@ -100,11 +109,12 @@ patternProperties: > properties: > compatible: > enum: > - - ti,am654-r5f > - - ti,j721e-r5f > - - ti,j7200-r5f > - - ti,am64-r5f > - - ti,j721s2-r5f > + - ti,am62-r5fss > + - ti,am64-r5fss > + - ti,am654-r5fss > + - ti,j7200-r5fss > + - ti,j721e-r5fss > + - ti,j721s2-r5fss > > reg: > items: > @@ -208,19 +218,35 @@ patternProperties: > > unevaluatedProperties: false > > -if: > - properties: > - compatible: > - enum: > - - ti,am64-r5fss > -then: > - properties: > - ti,cluster-mode: > - enum: [0, 2] > -else: > - properties: > - ti,cluster-mode: > - enum: [0, 1] > +allOf: > + - if: > + properties: > + compatible: > + enum: > + - ti,am64-r5fss > + then: > + properties: > + ti,cluster-mode: > + enum: [0, 2] > + > + - if: > + properties: > + compatible: > + enum: ["ti,am654-r5fss", "ti,j7200-r5fss", "ti,j721e-r5fss", "ti,j721s2-r5fss"] That's not how enums are spelled for such cases. Git grep for examples - this should be a enum with each item in new entry, no quotes. Best regards, Krzysztof