From patchwork Fri Apr 12 10:27:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 162106 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp449461jan; Fri, 12 Apr 2019 03:28:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPDusWJfQR6V5BfzyWeTvKCuEWuXHSJtdMtSKAFmlQC1/Xa539GiTbWxcSdl2kGllLnDId X-Received: by 2002:a17:902:854c:: with SMTP id d12mr9155980plo.150.1555064882532; Fri, 12 Apr 2019 03:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555064882; cv=none; d=google.com; s=arc-20160816; b=GdxcehBw4DhGbCrYuUwFrEh6oczLQiJSzcqnPQD6anazp2NagGfPTudFqhaRVqkHKQ ljmoz/oMZkIRMV8B4Oc8fiswYM6XyOt/48TEhI7qx9wcj/RixocCIq5bXDHYYdQQL6J+ sn1w2qfL3zK4nqYrbQRoNbqdSsKkP3tb19eigtO8GWLw74ksxI2aup0iRYZ23kJ8AlGZ eZsvG8mgpuuuI7hf7NQ1HkELFfH4bRIson+7CEZRfvC4x2bqg2ecu7XCq0b4sTfDorOK 4wYbGOul75Xf++wxfTQ0WTBkw3WjKmqwr5vY+iwWsL6919hLJjySZ0iVCTYj1f7xSzTt zbmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=770Ob84vz3SOnHU9WPlMyR//VhmOeh8sknOJE3geQGQ=; b=hfCwisd1kzR4VWZGk4se+EXyinhG+gDI/mzeDsFT/r9yu45aXl14cOgPUxfaiC1Vq9 QFdCGGX7aRCW+VWKnSG/+ENpaudUZu+5CGLJhxo0qKhIhdljd/akcUmA8emLQ/BVG4Zx Mus5KszOMRwDLNIMMgznH3Ftgiit5Ihyyy1wSk4JKtOr1B7vb7S6HXpBDQf52TWxiuRu pckaO5+eazeV3kjZ53GTkFvHiRbh17Id9SS1g6b7udTYaccdu538P0md1HwR8/yb8AMp 3rWBu6BSJuwnWvT0aOKPnBbZnXhBGnYmkRwiEW3KjMKwCAlvUR/YSaLk/tHfO6UMuRRL C/tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CJAI1CrY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si36669036plr.376.2019.04.12.03.28.02; Fri, 12 Apr 2019 03:28:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CJAI1CrY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727403AbfDLK2B (ORCPT + 31 others); Fri, 12 Apr 2019 06:28:01 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:38119 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726697AbfDLK2A (ORCPT ); Fri, 12 Apr 2019 06:28:00 -0400 Received: by mail-oi1-f196.google.com with SMTP id a6so7519915oie.5 for ; Fri, 12 Apr 2019 03:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=770Ob84vz3SOnHU9WPlMyR//VhmOeh8sknOJE3geQGQ=; b=CJAI1CrYlZ0zplrx6RhXb/dBS/OxqzuAUxFPlQdQbehAsO2xhQ+bWJ4xbcGHDH8uVA +Z+Rtapew29rHN8GPaBb0Ixq8mHAd39PllyZVD+vmUGjIZWn+RxbAeZwvClFGP60QMg/ zQG9El5PIoVIn3RMfluwFVBKsC2q7Uv+lDBQOnw2E2cl45rVARhCURjtuu2DeFf+PJPS E7vdyAeRkcr/e2copB1VQxemzlz9AWmk43KpLdW/O542bWEKimF9z+NnZHOmk0l0thaB BGBCPmO3uMoulXZM3IEJneTncVlTIDGJjhq3AT8OVy6+v6NxWu0MyDKsKe5tJwmj9ADx 7d3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=770Ob84vz3SOnHU9WPlMyR//VhmOeh8sknOJE3geQGQ=; b=Go5kENqAxdnmcIiVCqpkhwEwUXHs2L6gEatz45TH8OvTc8EOJPGxLaX0T6NVhPLWXM Jao7dUxF+XqH3DMzkXDPLLR5AnfXu0T3mhj0eDJl/Y6x8PmmiY6s+gmS+IgNcwOZAn/Q +KyN1FoKr186C6IpXlZz2vFz/Xew06Eu+uQmUyI6guKY/n9n2ctpBwyDnp5Z35tXcq42 fqchwKiBDrB+UGWHM/FxFg9ZXv8DzukGPqVMXU+GIhwRg5U5xSHf6JOQDurzJw/PU1Mp 00IVBoqD36uBKJC6D7vioV2nBsS5LvGo0tWGpw3Mmkr3hlrsxIWvv4dKNcqU+20QZ3o4 0GMQ== X-Gm-Message-State: APjAAAWlExA5n5bs58mdbxxdOYI7LlA9OlyOiEFYEi/HM+a6IEnu4EHU eTpHfUviGCi+1oKhbSx6nrKJNA== X-Received: by 2002:aca:c4cc:: with SMTP id u195mr9628984oif.40.1555064879597; Fri, 12 Apr 2019 03:27:59 -0700 (PDT) Received: from localhost.localdomain (li808-42.members.linode.com. [104.237.132.42]) by smtp.gmail.com with ESMTPSA id 88sm17530692otj.3.2019.04.12.03.27.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Apr 2019 03:27:58 -0700 (PDT) From: Leo Yan To: Mathieu Poirier , Suzuki K Poulose , Rob Herring , Mark Rutland , Alexander Shishkin , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v5 1/4] dt-bindings: arm: coresight: Add new compatible for static replicator Date: Fri, 12 Apr 2019 18:27:35 +0800 Message-Id: <20190412102738.12679-2-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190412102738.12679-1-leo.yan@linaro.org> References: <20190412102738.12679-1-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CoreSight uses below bindings for replicator: Dynamic replicator, aka. configurable replicator: "arm,coresight-dynamic-replicator", "arm,primecell"; Static replicator, aka. non-configurable replicator: "arm,coresight-replicator"; The compatible string "arm,coresight-replicator" is not an explicit naming to express the replicator is 'static'. To unify the naming convention, this patch introduces a new compatible string "arm,coresight-static-replicator" for the static replicator; the compatible string "arm,coresight-replicator" is kept for backward compatibility, but tag it as obsolete and suggest to use the new compatible string. As result CoreSight replicator have below bindings: Dynamic replicator: "arm,coresight-dynamic-replicator", "arm,primecell"; Static replicator: "arm,coresight-static-replicator"; "arm,coresight-replicator"; (obsolete) Signed-off-by: Leo Yan --- Documentation/devicetree/bindings/arm/coresight.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/arm/coresight.txt b/Documentation/devicetree/bindings/arm/coresight.txt index f8aff65ab921..d02d160fa8ac 100644 --- a/Documentation/devicetree/bindings/arm/coresight.txt +++ b/Documentation/devicetree/bindings/arm/coresight.txt @@ -69,7 +69,10 @@ its hardware characteristcs. * compatible: Currently supported value is (note the absence of the AMBA markee): - - "arm,coresight-replicator" + - Coresight Non-configurable Replicator: + "arm,coresight-static-replicator"; + "arm,coresight-replicator"; (OBSOLETE. For backward + compatibility and will be removed) * port or ports: see "Graph bindings for Coresight" below. @@ -169,7 +172,7 @@ Example: /* non-configurable replicators don't show up on the * AMBA bus. As such no need to add "arm,primecell". */ - compatible = "arm,coresight-replicator"; + compatible = "arm,coresight-static-replicator"; out-ports { #address-cells = <1>; From patchwork Fri Apr 12 10:27:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 162107 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp449578jan; Fri, 12 Apr 2019 03:28:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzj7fLYXsbawiWEFCtpK3CSrC9JSsHhSJB044DZu8DlRDXcsfvxwCfvM/4tnEtSUHbWQER0 X-Received: by 2002:a17:902:585:: with SMTP id f5mr25419698plf.116.1555064888251; Fri, 12 Apr 2019 03:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555064888; cv=none; d=google.com; s=arc-20160816; b=Y/y6rnQpQoGzZIauEzQmtfTyYuobHF5QTdyeozI4ask+Ti9e91Xv+HFBTTmG43Fgpu 28GJ3DtS/hV2tbzW8UJiLYSY3412eeW3K3BghcidFBZjaWK1BXv4Qnw/tch/EKMMSEwo MHUwx6v0QGJpmf8JEC+vNXFmd44H/4m/5+cwj5vctM5MAb7Hp7Qyb1my+/e7hHTMBcgs 7J9f7hlSs2/PBIIlmizTvL2v4HlEz/Lsb8CGF41YP3ubumsfzPKM6N0DSEnGwiKnLFBN 4bxNHX6Wal5pv/QqDNSvGp9OjnG4f6HqgeAQZsYDG8MLLJplRR/Qs2SV4aSN2kv6qWpQ 4/dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=ryZOG9VWOye2KDv1BF4UI2W2F776JTHdFGOzv+qLbPo=; b=BH1hJkIEKPXBIhgVIe2Bv/9a1BG4WpdcuV5A562p9PLjK0YJTXnfyN/Gy7ktof5EKu DFZX1ElfB9tIunwNnBH/MSMIGvc3W8a7UreCMn4JQ/wRLtS4bMF35USNB5/oUf4A1WSV F72EpxRNnfw44oFi4LrWzkJ7Z4Bra42a0OqGFYsIKlUzJ66itG8wFpBFog/4PU+6W86R EP/X/6PbKkMRFK49sr24aUpXgT7hPFoM9VVtVyp9DuNr54II1IJQqG3wbxPrz1Lw6WY8 qqLEBh9YWDL1Zzi1IEjIJACTlyyHf9p/6BGtXkNnCSOEsyK5LMgkTe+9aFIiNYctBXra h6vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m+qjN7rn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u37si36506905pga.301.2019.04.12.03.28.07; Fri, 12 Apr 2019 03:28:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m+qjN7rn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727547AbfDLK2G (ORCPT + 31 others); Fri, 12 Apr 2019 06:28:06 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:38618 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726697AbfDLK2F (ORCPT ); Fri, 12 Apr 2019 06:28:05 -0400 Received: by mail-ot1-f65.google.com with SMTP id e80so7938049ote.5 for ; Fri, 12 Apr 2019 03:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ryZOG9VWOye2KDv1BF4UI2W2F776JTHdFGOzv+qLbPo=; b=m+qjN7rnHvouHXvPK72mSWvcvikt0TijoLIzMUiXOiILop/kWoWNjLWCSwNK+NyVeX 42jo1Ax8efWMTT9zuVCDmO+ERI+ul5w7QDrj4uB97ur4laQQm4mjGcIEAIzR4+BA6Pfm U3w5FYsXVsRYUKP8mlRTlh85oIJ7pOdwD3r18bNMb9ExDhCDYcpJQvpLDwEWQtHKKsi+ 3Y8StTc5jadZcsydlXhJJ3ycRdBjgHAHuWDm/RM5kvkghhNgtU7xhPZBRhHA/7/T3ZP1 CiJSCVDXl9QG04WeIvsmLkGTGgNZGCituYChFt7ugQefRRj1ft7UcUvbz3NKPqeDveFV n8cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ryZOG9VWOye2KDv1BF4UI2W2F776JTHdFGOzv+qLbPo=; b=WHvNYWu6Rc7UWWwhoTcGvlh/VBcs9D/NrZWMclA+Hss+1KlbVYW1KkSvyQjJejSk81 EgIPtPqwXFsqbRa7RwSH8dU1VxOxiKvdMRYXDwht+klwXrwPSZRO+A2DLkcwtOStiXtP SI4ekXIhg1+pRbszBxZ/fr+kIj6WS7XcukhVwVQRrIBjW1MmORgqjzXEwqrT2ISsDYub Xw/mRJxLMrOYTMP2gGclwwkBqlT9AdEHXpi0F3ivLTcqmJuUjJ13IsnIJMPyUr+WYAGG IJPGeCvJxjvYavrg6//5l08PoPoHCs3K42BJ7iX+BUjQFpi3AWMApdH/JHGZnt1+AobY jG6A== X-Gm-Message-State: APjAAAVt3aAfnP77V5sNLlWOIhLl+aQrF9M89FZ/6NLgq1ViJSl6k6sL fS93cjZI6buLBmrdS6u0EChNcQ== X-Received: by 2002:a05:6830:20cd:: with SMTP id z13mr36530493otq.168.1555064884588; Fri, 12 Apr 2019 03:28:04 -0700 (PDT) Received: from localhost.localdomain (li808-42.members.linode.com. [104.237.132.42]) by smtp.gmail.com with ESMTPSA id 88sm17530692otj.3.2019.04.12.03.27.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Apr 2019 03:28:03 -0700 (PDT) From: Leo Yan To: Mathieu Poirier , Suzuki K Poulose , Rob Herring , Mark Rutland , Alexander Shishkin , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v5 2/4] coresight: replicator: Add new device id for static replicator Date: Fri, 12 Apr 2019 18:27:36 +0800 Message-Id: <20190412102738.12679-3-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190412102738.12679-1-leo.yan@linaro.org> References: <20190412102738.12679-1-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds a device id for the new static replicator compatible string; it changes the driver name from "coresight-replicator" to "coresight-static-replicator" as well. This patch also gives warning when use the replicator obsolete DT binding. Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/coresight-replicator.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers/hwtracing/coresight/coresight-replicator.c index 4e0da85efd2d..8c9ce74498e1 100644 --- a/drivers/hwtracing/coresight/coresight-replicator.c +++ b/drivers/hwtracing/coresight/coresight-replicator.c @@ -189,6 +189,9 @@ static int replicator_probe(struct device *dev, struct resource *res) dev->platform_data = pdata; } + if (of_device_is_compatible(np, "arm,coresight-replicator")) + pr_warn_once("Uses OBSOLETE CoreSight replicator binding\n"); + drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); if (!drvdata) return -ENOMEM; @@ -285,13 +288,14 @@ static const struct dev_pm_ops replicator_dev_pm_ops = { static const struct of_device_id static_replicator_match[] = { {.compatible = "arm,coresight-replicator"}, + {.compatible = "arm,coresight-static-replicator"}, {} }; static struct platform_driver static_replicator_driver = { .probe = static_replicator_probe, .driver = { - .name = "coresight-replicator", + .name = "coresight-static-replicator", .of_match_table = static_replicator_match, .pm = &replicator_dev_pm_ops, .suppress_bind_attrs = true,