Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp512696lqp; Thu, 21 Mar 2024 07:52:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdTgJvYuWtzTd8VnKaGYvGmmo0deoTDdwV1xq1tmkjkHNUI8FYyfDorueiV36/fZNChHb6rPJp3rsjLS98ux+xm9A72ZaDnobMMca4pA== X-Google-Smtp-Source: AGHT+IHh963Kbt/Gwm6cA1HWL42KRgOdX+EnG+0/2K82fPWScnFtqb0K9FT1XbX9EgpEqv09sgoy X-Received: by 2002:a05:620a:20d3:b0:789:e30c:9c6c with SMTP id f19-20020a05620a20d300b00789e30c9c6cmr2036237qka.40.1711032745487; Thu, 21 Mar 2024 07:52:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711032745; cv=pass; d=google.com; s=arc-20160816; b=EE8hrX+/PRjitmRJYPyQLu+95dCTOJXCVqMluZVLc5pVb8bbwqwn/u0mApT4Bp1KRL 6IfNCgyT+cvRlFsP1pB+2jekgIS5LTEWRTtPzCrBpeUSC2s4w8JACFm0DVdid7Znc3Bl NxBsSmv8pt5wbfIZ15tExsf3wMUkNP25z/DlMzoKzfleeqmU4jlQRf36jm9zQn9D5yLD hpoPUkjxd83R34IMqrBrcr/VD2PkV3HF7JT5BmDTjoSB7SNnnOU9/lXEOTQ1QoEmqh1U 7AF8L5CBYqWQFLekyaQZwfzfihEhuV0tcJ3Cw9nids5rUxz04/ADUw5ZnuY5Z7NMs1N1 cODw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=rgqDSrNLCZW7ElF4MAIrox6yxIbPMj3HpiXtK7Kmoa4=; fh=5u0xHrVEX+t4xGURDYR8NDt7Co7m0GdA7n6WySe1+FE=; b=dWBBQyZAyRTsPpXFfBbJfmcLrKESYO2wfn50V5xXlRX/rq62M/Qm3OhAWKVJcnM+1x 3BKxyb6ZRkP1EHCILAzVheUaPXUz2A168gM6Qmz2Q9HKXOgJKAeU7ARV+u2RgLMfltTo CmruNpP80NetRZ6K3Pf3uitnaGwV3Zzq9wkwkVP/YBIi6lODOTiHayu9zF8Xp4zIUXph 0j54MNlxq5pEwY1Cr1OSG9Moijd41nnyQ77uk1/lG48aj61shI5oQJkWsxC2AKCqauj1 nMkMLP4wJeEwY0I/NciffQZns1B9bBqqK5XQ1lA3c+v3dJ7sJ5BeSv7yKSwUhLKarbA9 +tWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-110179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i6-20020a05620a0a0600b00789dc8edcb6si14914936qka.4.2024.03.21.07.52.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 07:52:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-110179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 387D61C20C85 for ; Thu, 21 Mar 2024 14:52:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6325085952; Thu, 21 Mar 2024 14:52:18 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EC9C58232; Thu, 21 Mar 2024 14:52:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711032737; cv=none; b=TZPVLZd5ng1MlsZ/HPOpClVl1M+i5ABRlHgxJEfp7hcmLVvvbA4WO1zzOt4SuNGoZpepPjcj6cEovjmfD686X18RRO381M90Paor/cq2CiN3CluOordDdd5wg3EYKDErnPkKafVg0uNYnGe8svWdowrzSPo8K8pKrug9EQqpjfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711032737; c=relaxed/simple; bh=EUh2B2yBe9JAd5dMMj00ZCYwh//VjKBq0E4ohqEGc6g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hvyinkuLhbpwnKWuSrJoK2uR7lA21w+T+9CxrOJTLzbS1GTHkP3Vby9oyKyGAu0HOmCfHkShXweETmrCLCNMQv2hcr7/MYOSQzY4RvyTJdjHoQY9Fpc6fv6Usc8RviUq17ER0O7uFEArN242nUlh18+E7wXdMjwRPBlQTT4k3hI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 08E341007; Thu, 21 Mar 2024 07:52:48 -0700 (PDT) Received: from [10.1.38.27] (FVFF763DQ05P.cambridge.arm.com [10.1.38.27]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4C2E53F67D; Thu, 21 Mar 2024 07:52:11 -0700 (PDT) Message-ID: Date: Thu, 21 Mar 2024 14:52:10 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/4] dt-bindings: arm: qcom,coresight-funnel: Add label for multi-ouput Content-Language: en-GB To: Rob Herring , Tao Zhang Cc: Mathieu Poirier , 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 References: <1711009927-17873-1-git-send-email-quic_taozha@quicinc.com> <1711009927-17873-2-git-send-email-quic_taozha@quicinc.com> <20240321144226.GA1689544-robh@kernel.org> From: Suzuki K Poulose In-Reply-To: <20240321144226.GA1689544-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 21/03/2024 14:42, Rob Herring wrote: > 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? +1 Suzuki > > >> + oneOf: >> + - required: >> + - port >> + - required: >> + - "#address-cells" >> + - "#size-cells" > > The common schema that you removed handles this. > > Rob