Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp100182ybb; Tue, 14 Apr 2020 20:05:58 -0700 (PDT) X-Google-Smtp-Source: APiQypLv97ovD6E/Rbf9yhH/n1np/EUQFVUltBIrolFnDdHonBRx95LR6DUcdIDOXR5s6EhvKiMp X-Received: by 2002:a05:6402:6d7:: with SMTP id n23mr22021175edy.21.1586919958080; Tue, 14 Apr 2020 20:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586919958; cv=none; d=google.com; s=arc-20160816; b=qH/rbLeuosQk/tm3Ay06URySnvKbaiDJTp5iankIZlX2/afkJ858lAy/IgLhAYwX6u fyUq269pB+DF/aZIlxdG9vrgbPtRInn/WuSWTB/cRdjGX0wx+oTNe1G4+dygh+ZJlVlk jghil2ygePSo57BUVpoJ6tWdi8NxXEHWAdS+SjnjsYSbxuTnGbKchllM4MoxuWpmiTB4 5FC/7uap/sRaR3EE5U+SEYeE8tC7wi40OzdDa3bWFJ0psCsdk0roGPgDVd/kgT2WLz1I u4zbibVYNQt/RP70w7ycZg8UiclgCZR/eZevZuPv88Br13rpDWNAeBb8He7ekeKxIUUk Mchw== 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:ironport-sdr:ironport-sdr; bh=fOdZgrQ8q9c8Cv3X3MCejYM+SQhtn7Sehb3Y2MHBav8=; b=P0z4LgW0Sa5wwCKcbi+nwSP0ycti8twnIVbdqGalb/Cqm0ggLOrlbAMSNoX7s5HNjL nsJDvxjdgG0l16CL8y3xRLjqYicV67t8LFXUHq7TAHmfD8hdaHUHRz8aWMcssnyEnC5z LqowaQ9fiB94MxEM6MSsSeOFepQfpuwIe2JiOdmImgnCE904ouDnjNZDdQPYbwWVdDCt BtOC0B6P5efAh6RNP9jVphZa+FHOv4zb5uIm0195fuzzCsAb9q3gdquQZvCjgPpqLxl1 gwh0sw8zuXs9Yp5L8Zs50Jys9JIbFb1oiIt3iPdySur8gSpTwJviqCpXrXLZW0IDZS3a KUeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 22si3324044ejw.409.2020.04.14.20.05.34; Tue, 14 Apr 2020 20:05:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389617AbgDMW3y (ORCPT + 99 others); Mon, 13 Apr 2020 18:29:54 -0400 Received: from mga01.intel.com ([192.55.52.88]:10126 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389610AbgDMW3u (ORCPT ); Mon, 13 Apr 2020 18:29:50 -0400 IronPort-SDR: faqJ4fVZxmpBn2YA712B0Z+w5vF5Ssvu0PaxU5iXf0SGh39HKug2ekrjxdT1BlJNJCG5MROmDl sQrAKiCrHJ7Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2020 15:29:50 -0700 IronPort-SDR: YM1XpIf+tPeufsW5Z8vuvIRwIZ2bq2wt/D+m3VX8orEm62Rhj99d14XJeFFsJAsXtFVapZJtBE 2UEngOt9fmnw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,380,1580803200"; d="scan'208";a="399760701" Received: from epcorona-mobl.amr.corp.intel.com (HELO epcorona-moblu.amr.corp.intel.com) ([10.254.189.204]) by orsmga004.jf.intel.com with ESMTP; 13 Apr 2020 15:29:47 -0700 From: Ernesto Corona To: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org Cc: Ernesto Corona , Oleksandr Shamray , Jiri Pirko , Jonathan Corbet , Mauro Carvalho Chehab , Alexandre Belloni , "Theodore Ts'o" , Arnd Bergmann , Eric Biggers , Mark Rutland , Joel Stanley , Andrew Jeffery , Steven Filary , Vadim Pasternak , Amithash Prasad , Patrick Williams , Rgrs Subject: [PATCH v29 2/6] dt-binding: jtag: Aspeed 2400 and 2500 series Date: Mon, 13 Apr 2020 15:29:16 -0700 Message-Id: <20200413222920.4722-3-ernesto.corona@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200413222920.4722-1-ernesto.corona@intel.com> References: <20200413222920.4722-1-ernesto.corona@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Aspeed AST2400 and AST2500 JTAG master controller driver. Signed-off-by: Oleksandr Shamray Signed-off-by: Jiri Pirko Signed-off-by: Ernesto Corona Acked-by: Rob Herring Cc: Jonathan Corbet Cc: Mauro Carvalho Chehab Cc: Alexandre Belloni Cc: "Theodore Ts'o" Cc: Arnd Bergmann Cc: Eric Biggers Cc: Mark Rutland Cc: Joel Stanley Cc: Andrew Jeffery Cc: Steven Filary Cc: Vadim Pasternak Cc: Amithash Prasad Cc: Patrick Williams Cc: Rgrs --- v28->v29 - Change documentation to the new dt-bindings yaml format. v27->v28 v26->v27 v25->v26 v24->v25 v23->v24 v22->v23 v21->v22 v20->v21 v19->v20 v18->v19 v17->v18 v16->v17 v15->v16 Comments pointed by Joel Stanley - change clocks = <&clk_apb> to proper clocks = <&syscon ASPEED_CLK_APB> - add reset descriptions in bndings file v14->v15 v13->v14 v12->v13 v11->v12 v10->v11 v9->v10 v8->v9 v7->v8 Comments pointed by pointed by Joel Stanley - Change compatible string to ast2400 and ast2000 V6->v7 Comments pointed by Tobias Klauser - Fix spell "Doccumentation" -> "Documentation" v5->v6 Comments pointed by Tobias Klauser - Small nit: s/documentation/Documentation/ v4->v5 V3->v4 Comments pointed by Rob Herring - delete unnecessary "status" and "reg-shift" descriptions in bndings file v2->v3 Comments pointed by Rob Herring - split Aspeed jtag driver and binding to sepatrate patches - delete unnecessary "status" and "reg-shift" descriptions in bindings file --- .../devicetree/bindings/jtag/aspeed-jtag.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/jtag/aspeed-jtag.yaml diff --git a/Documentation/devicetree/bindings/jtag/aspeed-jtag.yaml b/Documentation/devicetree/bindings/jtag/aspeed-jtag.yaml new file mode 100644 index 000000000000..cdcd872c38c9 --- /dev/null +++ b/Documentation/devicetree/bindings/jtag/aspeed-jtag.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/jtag/aspeed-jtag.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aspeed JTAG driver for ast2400 and ast2500 SoC + +description: + Driver adds support of Aspeed 2500/2400 series SOC JTAG master controller. + Driver implements the following jtag ops + freq_get + freq_set + status_get + status_set + xfer + mode_set + bitbang + enable + disable + + It has been tested on Mellanox system with BMC equipped with + Aspeed 2520 SoC for programming CPLD devices. + + It has also been tested on Intel system using Aspeed 25xx SoC + for JTAG communication. + +maintainers: + - Oleksandr Shamray + - Jiri Pirko + - Ernesto Corona + +properties: + compatible: + oneOf: + - items: + - enum: + - aspeed,ast2400-jtag + - aspeed,ast2500-jtag + + + reg: + items: + - description: JTAG Master controller register range + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +examples: + - | + #include + #include + + jtag: jtag@1e6e4000 { + compatible = "aspeed,ast2500-jtag"; + reg = <0x1e6e4000 0x1c>; + clocks = <&syscon ASPEED_CLK_APB>; + resets = <&syscon ASPEED_RESET_JTAG_MASTER>; + interrupts = <43>; + }; + +... -- 2.17.1