Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp507084lqp; Thu, 21 Mar 2024 07:43:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWeU/24/9r+QOUt8fwH0bkZm18SF+GJdlpbhw4mk3fR5pEK2rHbhmy7eNO1a5PO5YihilH99X+GYpofruQftZZRja0DoexwcyL66YBc+A== X-Google-Smtp-Source: AGHT+IGtQJKBKpuMN6NNVx2MiUdGgiABNWvuPSkk5Qs6yBsfaoaeFL4pIJbv8a4tH78ZcL6u53XY X-Received: by 2002:a05:6870:a492:b0:219:f2cd:98cf with SMTP id j18-20020a056870a49200b00219f2cd98cfmr2563787oal.2.1711032198501; Thu, 21 Mar 2024 07:43:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711032198; cv=pass; d=google.com; s=arc-20160816; b=SAy077ptBlb0tjws+AhbHrP9malXzUzDmtubUzf/dtjMbAsodjyxCglHJKpc1x8mQP MN+yKeaSIdW5xoINiAEiMbYZaMVnzcyrHfR8tvdAXN+gWz4bx/Rit/DGtj15kvT3MBpv KJwZHIOmYvUv0lM/ls+KASwFxuiQxEPdXcM1evPW7e9XhN7Xiba2kkPTC5hkGEyG6QEw lzj1WMdn1yGZL4+efxiEl+xCNHICX9xLypF0XhYg8eVKmJCzepy94MKrYzEgDm/jMzPj FetRVBBlW6PtuZKghbiOliS4S6UcTriGIx2tYXHQgjQLaiWroeQyYpPbfrw4jR1rV+vr Qf2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4JZrs2Kygzw1SrcZEtGepwfGFmiTbw9PR4rIeMsw0a0=; fh=p8shx5QhbwHz0+mTut/OjRxVVfmm5Qhbnf1sET6s/z8=; b=x6ppZeZqfNaFNEl+xf6bnHosINfRoDtB+OfeOpiTno1QhBZTsRRbA02K/kHgm2Rcmx fOE+nkc+N9u9WfF5+vl+fc+kO8yv9NI+yP4eMvzkdOkOCW59CFtMmG41OALseF10v7fK zt2CSN5DkbEglr563viKhQqAa/wzRfvZgSYQX/hZQSiJZ0v8SfMYS6tI+EpWFXf1MUrY J+d6AoS5cHna7lCrhw3NrVExFRWqKdYjXhCVFaXQEWrS0hyXDB5eYUfolSi8t0ACqMHy g/28ASaTVrdLmPHg0xnqTrvmMRehjOPjpmJlaPNJAEhuGRrauBd1wJsa8RdYp5TKpMyL S6Ng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X2KAZ0D3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110167-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id k2-20020ad45be2000000b00692cbeaf1f1si10975342qvc.30.2024.03.21.07.43.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 07:43:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X2KAZ0D3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110167-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110167-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2A27C1C20B60 for ; Thu, 21 Mar 2024 14:43:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2ED7C8626E; Thu, 21 Mar 2024 14:42:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X2KAZ0D3" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FB6684FBE; Thu, 21 Mar 2024 14:42:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711032149; cv=none; b=erpnzKoKp5x8H3tTNmdTDobXcG7vW8X7sINgTh78mHmtdNKZjXJRK4M+9qMCogGHaJVneN6N1+S8Jm12X1UkZphZ4j+CwAovseb8MqYJ2ZdMONS2DjquzJvMFM3u88njHi9CatKj6M9dlK3KTgYnLJpws9PIikZl1axgo2rqVFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711032149; c=relaxed/simple; bh=eCmOsrWn0vFoPh2l6bOYyx1AWFAxo0BkYpUu5K+u20o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mor0FCcO7rGhlV4ggF32008TvS6zsaNtKz3017alokPoEXzGHYNirHeSEqMnVos6ePnoKIObq2pOA/f+3JDma1FsmVNoTDNR5Nmhv4vnP9324KhHgCCZDPFAXR9BizkdBS3Bs5zWu/JsTktS98DOsLlbeE8B3Zfzw8Q7sWJIdVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X2KAZ0D3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A08D5C43330; Thu, 21 Mar 2024 14:42:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711032148; bh=eCmOsrWn0vFoPh2l6bOYyx1AWFAxo0BkYpUu5K+u20o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X2KAZ0D3Xtxnv8OsYsVu202OprZWKYS6nVtp75NTuw2qtG5JG7OdKdlb+mvYvOpYJ 2MKgxqYMC8QT1D+DnlVkvA/BnK26R6JFhtlknlsKgRtO9W3DgyGk1pUFCF1VyRPApE ugFxgtieTtv7vJFX8tmzOBTBmKO/r+PuWT3atzqg6rXtzoixTbJIzPlDPj7XSgRDuw gVHsTreKozoPmoROAQSD4Vz1XZzR1Nybo6yTLD2gT14qDB5b7MSwVUh9yA4k+pGuRQ TEoFYmySo5HXc6pzc2sfQYV74BK6XXCJ4+mlEEvoT828OKhxAYjQGF/s+p01Agagwm Kyb3v+2RKO4zg== Date: Thu, 21 Mar 2024 09:42:26 -0500 From: Rob Herring To: Tao Zhang Cc: Mathieu Poirier , Suzuki K Poulose , Alexander Shishkin , Konrad Dybcio , Mike Leach , Krzysztof Kozlowski , Jinlong Mao , Leo Yan , Greg Kroah-Hartman , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Tingwei Zhang , Yuanfang Zhang , Trilok Soni , Song Chai , linux-arm-msm@vger.kernel.org, andersson@kernel.org Subject: Re: [PATCH 1/4] dt-bindings: arm: qcom,coresight-funnel: Add label for multi-ouput Message-ID: <20240321144226.GA1689544-robh@kernel.org> References: <1711009927-17873-1-git-send-email-quic_taozha@quicinc.com> <1711009927-17873-2-git-send-email-quic_taozha@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1711009927-17873-2-git-send-email-quic_taozha@quicinc.com> On Thu, Mar 21, 2024 at 04:32:04PM +0800, Tao Zhang wrote: > Add new property "label" to label the source corresponding to the > output connection. When the funnel supports multi-output, this > property needs to be introduced to mark which source component a > certain output connection corresponds to. > > Signed-off-by: Tao Zhang > --- > .../arm/arm,coresight-dynamic-funnel.yaml | 34 ++++++++++++++++--- > 1 file changed, 30 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/arm/arm,coresight-dynamic-funnel.yaml b/Documentation/devicetree/bindings/arm/arm,coresight-dynamic-funnel.yaml > index 44a1041cb0fc..cde62c286d29 100644 > --- a/Documentation/devicetree/bindings/arm/arm,coresight-dynamic-funnel.yaml > +++ b/Documentation/devicetree/bindings/arm/arm,coresight-dynamic-funnel.yaml > @@ -66,13 +66,39 @@ properties: > $ref: /schemas/graph.yaml#/properties/port > > out-ports: > - $ref: /schemas/graph.yaml#/properties/ports > - additionalProperties: false > - > + type: object > properties: > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > port: > + type: object > + > + patternProperties: > + '^port(@[0-7])?$': > + type: object > description: Output connection to CoreSight Trace bus > - $ref: /schemas/graph.yaml#/properties/port Nope, now you have no constraints on port node properties. Please look at how other bindings are done to add properties on endpoint node. > + > + patternProperties: > + "^endpoint(@[0-9a-f]+)?$": > + type: object > + properties: > + remote-endpoint: > + description: | > + phandle to an 'endpoint' subnode of a remote device node. > + $ref: /schemas/types.yaml#/definitions/phandle Don't need this. > + label: > + description: Label the source corresponding to the output connection > + $ref: /schemas/types.yaml#/definitions/string label already has a type. As this node is an output, aren't you labeling what the destination is, not the "source"? Why can't you look at the remote connection to identify what it is? > + oneOf: > + - required: > + - port > + - required: > + - "#address-cells" > + - "#size-cells" The common schema that you removed handles this. Rob