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: 1087103 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="yGkQ0K4n"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44kqvJ5jhYz9s4Y for ; Thu, 18 Apr 2019 04:07:08 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726751AbfDQSHH (ORCPT ); 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-Google-Smtp-Source: APXvYqyDzQPwZdhWCLYJc7kEzKdNWQ49tx7C0qO/4SNhxk+rTvIw9zpn1ZOR2a7Re6Du42UPXdef0g== 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 Reviewed-by: Rob Herring --- 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 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>; + };