From patchwork Wed Apr 17 18:06:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 162418 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp5804081jan; Wed, 17 Apr 2019 11:07:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/zGEaK23Z6464shdNT0g3PhjaYdzngXRwj66eZ806U4ocgcNrrNLBA7G28HpDP8YdHKn9 X-Received: by 2002:a62:5797:: with SMTP id i23mr88603733pfj.12.1555524428357; Wed, 17 Apr 2019 11:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555524428; cv=none; d=google.com; s=arc-20160816; b=C6FXSfGj1LbiEPIzUcpnu2+o3dWmdZWt/2r8HtN3bhJ/byODJACMBLh2tqZ5RR/c77 g3AANkttlTDvxOT2eavr4koDW54wE56ZxQfvy/AFXGFpGhfYKwxEJTgyZmVmQKSFGCgv obPxbESGE+TJJk/HdN1nNKlEoML/dpzUf3h4capESR5m9suo8nfskc8uZ5o4lpCFF3IR yN+AM3wcL736xwbaFNVxjMf6RiMjVpdQjA/WvF5yxYLvR78NnGtT6KUhQzRD6m6G30No TGv+XB6YcjrNzMUmiyBZ6aZsDa7smtASwYYYcVs62+HWr2Jla1Tb9DIMuHUQeQe5yMHI XlTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ZTI2u6EPQ14HHt9VVplO55DjUaIdnXeCvdtPd6XXCGk=; b=Sei+tEFSg8+B7XYbnB4WH2PqbALxA3Qz2bPYRd75qj+mov7yQp7oA87cGDdlgKnC5p AlDAV4//2EfDDPUOW/GOy0xcl1E8Lk2T052PvqpgRS32JrUPIyxoF7kgku3+/ESu9pQ6 T1PeUo+LXrJ1Ma1ZujFkV7qor6uDdDrvbEXJ2dg06zwUnJwx4nUo6uopelprT9y+vcws aFhDZDmO2/fmt8HFtS5+Y0c4VeP4UiCZI1oT8cXHJaHe0IMJjJ//3CXjHJNWDIOyTh33 yc7opAn03JnudwhpHj2f4aYP5MwLk6P6QXXO4q//RUySAlZX4ocK+xFcDqInKDQNwIBI f3HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yGkQ0K4n; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 j64si33683755pge.398.2019.04.17.11.07.08; Wed, 17 Apr 2019 11:07:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=yGkQ0K4n; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1726751AbfDQSHH (ORCPT + 7 others); Wed, 17 Apr 2019 14:07:07 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:40251 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbfDQSHH (ORCPT ); Wed, 17 Apr 2019 14:07:07 -0400 Received: by mail-lj1-f196.google.com with SMTP id q66so1909096ljq.7 for ; Wed, 17 Apr 2019 11:07:06 -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:mime-version :content-transfer-encoding; bh=ZTI2u6EPQ14HHt9VVplO55DjUaIdnXeCvdtPd6XXCGk=; b=yGkQ0K4nCVUCPgegIVfs2J10eu520fN701Rpzx/MKR95UPxGL6tZVB0/rq0qIGFva8 N5+TSZ7yG+44m2YFmdnL8g5UBpuImi0P7ZLGckCmaN8ivPpIrztgCGA2bZd1QiNprpzc d0PiVyEy/lDE7aYE1cJpQfEu77mHbbHx9prZAA0uli4z3NWCl6Hnz1oitvFzxAqXiDcP 76clfp6kU0L4fGwjpznN4pcUwBZ8wztaD55Y4UP5NVUiy3TQ5/tg5ymKZz0TvudI0gaI K01TiVcbqnwEE2fXgMHQYII0SOFj2ZwlDC4+JBGz4CKCUjSGVek/tHxrLrl0Jo5l8XvJ g0UQ== 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:mime-version :content-transfer-encoding; bh=ZTI2u6EPQ14HHt9VVplO55DjUaIdnXeCvdtPd6XXCGk=; b=aMaugzDfLdUqsMpwjMkgj//Zpo2gwwABcj6G/IWaGo0+aWV3VWu0omUfGa6+X/yS2L iXt+82tmxnW3ejKaiskr4X+Tr7ayJ8lI4Nt7WvVJTvzARnTQyzI6qHKjaiqpnEjzzKbU zG+bOrppIpRNE0uUQ4JgitA0upIdUas2ZvbjHBrYSXuxrtj4ZC4TqYS9OJP8Fk1CmsqH h9b4lAeNRfavm4ZUqVTR4pRxhjfJ2rRliOsrcsnlXwUBgcz40cG5Tvnn5DCBvZyV+OKd AwozTQhZvNTWfxq9Q+L9tm8IC0t4h43TXaToO97cjFkPz8Y2JSiU8rPghC/EwvN77NTa 3NlA== X-Gm-Message-State: APjAAAWcfag/Ae5VfuRf7UoARnSDXc1CCiHVE61DlxO0y5dYMlD/YDV0 XibaChsNtYll+zbgecJnO2/nOA== X-Received: by 2002:a2e:978c:: with SMTP id y12mr8940170lji.70.1555524425629; Wed, 17 Apr 2019 11:07:05 -0700 (PDT) Received: from localhost.bredbandsbolaget (c-c5d3225c.014-348-6c756e10.bbcust.telenor.se. [92.34.211.197]) by smtp.gmail.com with ESMTPSA id y7sm1066675lfg.76.2019.04.17.11.07.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Apr 2019 11:07:02 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Imre Kaloz , Krzysztof Halasa Cc: Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 29/31 v4] soc: ixp4xx: qmgr: Add DT bindings for IXP4xx qmgr Date: Wed, 17 Apr 2019 20:06:21 +0200 Message-Id: <20190417180621.2818-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds device tree bindings for the Intel IXP4xx AHB Queue Manager. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- ChangeLog v3->v4: - Drop #queue-cells and just use a fixed resource size. ChangeLog v2->v3: - Rebased on v5.1-rc1 - Drop oneOf in compatible, just list items. - Drop description on reg, just use maxItems: 1 - Set '#queue-cells' as required --- .../misc/intel,ixp4xx-queue-manager.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/intel,ixp4xx-queue-manager.yaml -- 2.20.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/misc/intel,ixp4xx-queue-manager.yaml b/Documentation/devicetree/bindings/misc/intel,ixp4xx-queue-manager.yaml new file mode 100644 index 000000000000..d2313b1d9405 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/intel,ixp4xx-queue-manager.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2019 Linaro Ltd. +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/misc/intel-ixp4xx-ahb-queue-manager.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Intel IXP4xx AHB Queue Manager + +maintainers: + - Linus Walleij + +description: | + The IXP4xx AHB Queue Manager maintains queues as circular buffers in + an 8KB embedded SRAM along with hardware pointers. It is used by both + the XScale processor and the NPEs (Network Processing Units) in the + IXP4xx for accelerating queues, especially for networking. Clients pick + queues from the queue manager with foo-queue = <&qmgr N> where the + &qmgr is a phandle to the queue manager and N is the queue resource + number. The queue resources available and their specific purpose + on a certain IXP4xx system will vary. + +properties: + compatible: + items: + - const: intel,ixp4xx-ahb-queue-manager + + reg: + maxItems: 1 + + interrupts: + items: + - description: Interrupt for queues 0-31 + - description: Interrupt for queues 32-63 + +required: + - compatible + - reg + - interrupts + +examples: + - | + #include + + qmgr: queue-manager@60000000 { + compatible = "intel,ixp4xx-ahb-queue-manager"; + reg = <0x60000000 0x4000>; + interrupts = <3 IRQ_TYPE_LEVEL_HIGH>, <4 IRQ_TYPE_LEVEL_HIGH>; + };