From patchwork Thu Feb 21 15:44:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 158918 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp635836jaa; Thu, 21 Feb 2019 07:46:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IYMPQLGvzyA21pDyM8uidfq2v7otO8ejaSxE8QrcPOJmBWH7+IHumRT1C7AS0NexTUiFVfh X-Received: by 2002:a17:902:6b08:: with SMTP id o8mr9876876plk.105.1550763982368; Thu, 21 Feb 2019 07:46:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550763982; cv=none; d=google.com; s=arc-20160816; b=bXqEH14s/BSEnkaafbh85X7D1yAnT0AuGIsjqvgCUMa+px7iV+CazE5rhMX6agyzdC ydMj3S0Ri7mCTwj0fQiMeTk0kf1qTTd6iJkp54SD/LIMziH/HgVz2X+rU+QgsJbdrZ2l wknaR3VEH832KpXLNY/j7KJBvu/au9AlRWGWyXezPmeG5KmLLa7EEoU/vA9K6Y6WjLgO 4ZD+V5zUXn0XqrZ2lIoXJHMWZycLHHnD3CrE6puHMAy0HvuoESbxIoHZvxzhNHocxLB8 tdBY4f5BFOQDHyVAGPaZRLUPIGll9/Rfvh+nEss/Uzm5Mo0S4y9mz2TGw8aJmJsG09ie /EOA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Lg7YL4rHndwDCrRxPsXDrWFsjfxlwxbyihlkIAGrRzI=; b=ndJOuqc9ZT5j0BkuUUOuUeZbMkXKjA/UWN6dZhoEn0PJ/3FvOhT2qEm2Rlb/5IwdbO jp0RejJBRAlSSg98mHKxpeE/f3UHBbnnxTrwpqiU905RHmPHRA0/IQW2KVSz1vrfhI4r 8h8ES+I2nJ5xYkgvuP/T4g2gy0ozBbWWmMlh0oumilu19A7DWqXSTJU9+DBNWYOPnB6H J3U7OWrxYsqOouuurD+MkrPIwHpToJKGQlDE/wC/rNPiThV2U//ym8nazgpjeSMC+KZ7 o+s13UXEVsGXRUZ1kNOV3kLyhUNPbkPwZ4WJ9lB3rcxx20v+eBZC1oGw7aeBBs/unIcj UfCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sNakXodk; 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 l186si20037615pge.482.2019.02.21.07.46.22; Thu, 21 Feb 2019 07:46:22 -0800 (PST) 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=sNakXodk; 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 S1728274AbfBUPqV (ORCPT + 7 others); Thu, 21 Feb 2019 10:46:21 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:34596 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbfBUPqV (ORCPT ); Thu, 21 Feb 2019 10:46:21 -0500 Received: by mail-lj1-f195.google.com with SMTP id l5so20991305lje.1 for ; Thu, 21 Feb 2019 07:46:20 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=Lg7YL4rHndwDCrRxPsXDrWFsjfxlwxbyihlkIAGrRzI=; b=sNakXodk/ShNGnRclW/54m3+Tjj+LeFwB4THdg93gKM2eY1OePWEwX1YLdEUuIamy4 1SZY4YTo78nm2wugtfvH4IF635ZM4an5QS7JqgwBSBU2NL1o7iKuMa0nsSDCzZOxIvR7 0xCpO7dZKjf8AlAtsBU6yqb/UNilQ3rUy/FFrVkC5QH1+L1gsjA9dmiCtDJpK0lS7pyg Vkhvvh+XPr7OPm1VR5FxLM8IlLlSOws7LBlOB/e/L9N13Njdlo9Nc/+4jmGuFac31NGD 6yKI2q9zAUI4n5/kk0mSegt5qodGCl+V2pOAkrI/q5OPrg4oDrVUOXP1XPxfltDAJ2xa ELXQ== 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:mime-version:content-transfer-encoding; bh=Lg7YL4rHndwDCrRxPsXDrWFsjfxlwxbyihlkIAGrRzI=; b=RywDwBg91/45JayoSvW9ehIbvPkSriYgWmXDcKqEAWk38vyKE0g1jJg8w7jC2322vE dqfHu4APs7TQKajXa2rSQgusd90Ql6wlgtB7/wiDI2z5JGNoTOIITx2I1NIKvRtipURm +VfdkRGeYOtvSrIdxlXwf3BxW8rdAr1ZO+rzE1aAfpYbCUXGI3qnvcsHKF/KLh6YKi8+ wezOWf2sjVtIDcr7iGFQaZAFZhLxHU/DK+HlqO4jOBBOoXiqOaw5e9bYVEtCtC1he8g2 dzScEwMSC/2LOXE2lmop6yPVarYqWOgiu6Ai4xgALhHGyhoZMFmsbFsDGI/cgrEHjoPI u6/A== X-Gm-Message-State: AHQUAuayua34MKCj1XmiGmJR5b0N1tSkPjklioy9lfDzJnCbTeqbIDd0 fvEGCcD9HveKZk8TvcfFi4oS8Q== X-Received: by 2002:a2e:4784:: with SMTP id u126-v6mr24103823lja.124.1550763979328; Thu, 21 Feb 2019 07:46:19 -0800 (PST) Received: from linux-2.local (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id m73sm1316965lfa.65.2019.02.21.07.46.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Feb 2019 07:46:18 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Imre Kaloz , Krzysztof Halasa Cc: Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 28/30 v2] soc: ixp4xx: qmgr: Add DT bindings for IXP4xx qmgr Date: Thu, 21 Feb 2019 16:44:56 +0100 Message-Id: <20190221154458.23763-29-linus.walleij@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190221154458.23763-1-linus.walleij@linaro.org> References: <20190221154458.23763-1-linus.walleij@linaro.org> 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 --- .../misc/intel,ixp4xx-queue-manager.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/intel,ixp4xx-queue-manager.yaml -- 2.20.1 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..c324860bede5 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/intel,ixp4xx-queue-manager.yaml @@ -0,0 +1,57 @@ +# 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: + oneOf: + - items: + - const: intel,ixp4xx-ahb-queue-manager + + reg: + items: + - description: Queue Manager MMIO range + + interrupts: + minItems: 2 + maxItems: 2 + items: + - description: Interrupt for queues 0-31 + - description: Interrupt for queues 32-63 + + '#queue-cells': + const: 1 + +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>; + #queue-cells = <1>; + };