From patchwork Sun Feb 3 21:42:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 157371 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3199262jaa; Sun, 3 Feb 2019 13:42:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN5RhsfkA3SubYb0Xc18aBqupOFJhgI1kDHTkOoxV7Hyzk2PUWAsB6Fz8kf6Qw9b0HofKlG0 X-Received: by 2002:a17:902:28e9:: with SMTP id f96mr49191467plb.169.1549230171242; Sun, 03 Feb 2019 13:42:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549230171; cv=none; d=google.com; s=arc-20160816; b=NUt6WPeg6NXawYOys5LXbrqft9iSUUCZDQXW+rmOwMA6qVKT+fddpC2uXu/0I9KCA6 /rSRopMB8Z8a8VLYGSYutzbZXkTVNEf/c6rk0Vi3qbEEQsY03599avuma/aqCEH90WEL sAz0jOolaCp9/jnQKxK2Rjx0r0brknIK5wbgfi0s3PGwcp3HUHqbuDHY8ivHyFxSW99q SiAZgRRfOgD/jpID4Si6RGGL4DUrduhCPurxjnaZLCBm4c2fjEkU/MCweWdqaSGatXBj m89RZbPYIUGlhrMsBUxIxbmHmQmpr4WsMyUqEBIIQ3iplsJ0dLj+6DTXA+U/evozUHeR EJEQ== 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=tqkowpPvCE0gZkM+u8f2imx7BQRKOcq+GoRfFNueR54=; b=QCCZlEi5XaF2f9+3SnGlrGCyFektwDM6GFvkCxsWw5xrCXRf9kN2gQrZH+VYK7skZk 0yeNJEwvtsd5xqdksn6BQXFpG3WdWNLBHblFO7V0HS6TlZrbZbrSkYDuEeeHuePK1uV9 q6g3kiKwL+SX1JaCaYR+lJnQBsPvQBNJF04R/5H+Xiul/maHnwNicWhNJrvgH23BJixi b51/GnZuqH3zO3u/yUwL6l7kRk8HqTlu15QZLpf0boDyntgmIi93Z0eoQPA7tDt9Bc2Q LMz8QnXsgFMDfq4laUXXCZEV99rYO7cEbSzamfFZU2+ikMrcSyKOY72GwmVLxc4S79r6 Y2wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IJwvs9MO; 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 c4si13458391pfi.110.2019.02.03.13.42.51; Sun, 03 Feb 2019 13:42:51 -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=IJwvs9MO; 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 S1727763AbfBCVmu (ORCPT + 7 others); Sun, 3 Feb 2019 16:42:50 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:33215 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727502AbfBCVmu (ORCPT ); Sun, 3 Feb 2019 16:42:50 -0500 Received: by mail-lj1-f196.google.com with SMTP id v1-v6so10080215ljd.0 for ; Sun, 03 Feb 2019 13:42:49 -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=tqkowpPvCE0gZkM+u8f2imx7BQRKOcq+GoRfFNueR54=; b=IJwvs9MOeRugN+kldoyML1h6U8pW/u5JfJB+FpKNU2ADfqbW0n4jBoiSTLsuZaaiCq fzSET1TqL26gc9Nm8nB/Qg3wnSuRXW8bp0y7MR35uLlkBwpXvVVnJ1ulUlX10fnVifxm MkuCnHz/yR9EsH/sV3TqEqmUxVxhdeQT3IODk= 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=tqkowpPvCE0gZkM+u8f2imx7BQRKOcq+GoRfFNueR54=; b=r9OAYG0ryBNU1Lv+vEbHK93kyyvIiJvaZaZnR4oeUO4t2d4rzV6SeidnpqUpnqDDIU PJxI3XBurSIAtqxhQ7Pic57ROYXxWDm6LHYXy0In8yTaxe6EuWKhDsDH+PCjKBEVEmnd HCcsMHviGpn2M5MFJl2/MtuZLIYlfSsHBTMzhUCFx2zwQqTNoAwsf9B3/A9OQaqccn1y NaG7DDraYmHtdMRaELu7SxJm2MoPjCJb7XSjS6+7JhavGDrUqo2c0ik3CW6xUdBAMwaY eHb8cIBkUUkAdYF3hCaX33yLgc7omh5eac0JA3vxDAq5Skhww6shfTP2gfPCeOSzJg+K TxVw== X-Gm-Message-State: AJcUukcFFwHYlyI/NO1ev6gL7yYJe2KTDVgKW+1L5pliSuTavqsvOVbL WYuuDJ03BnC8jewRHB2MvfE80w== X-Received: by 2002:a2e:e02:: with SMTP id 2-v6mr37835659ljo.10.1549230168522; Sun, 03 Feb 2019 13:42:48 -0800 (PST) Received: from linux.local (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id 85-v6sm2456868lja.16.2019.02.03.13.42.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Feb 2019 13:42:47 -0800 (PST) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, Imre Kaloz , Krzysztof Halasa Cc: Tim Harvey , Arnd Bergmann , Olof Johansson , Linus Walleij , Bartosz Golaszewski , devicetree@vger.kernel.org Subject: [PATCH 13/17 v1] gpio: ixp4xx: Add DT bindings Date: Sun, 3 Feb 2019 22:42:01 +0100 Message-Id: <20190203214205.13594-14-linus.walleij@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190203214205.13594-1-linus.walleij@linaro.org> References: <20190203214205.13594-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 DT bindings for the IXP4xx GPIO controller. Cc: Bartosz Golaszewski Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- Bartosz: looking for your ACK on this, it'd be good if the other GPIO maintainer is aligned with my ideas here. I intend to merge this through the ARM SoC tree. --- .../bindings/gpio/intel,ixp4xx-gpio.txt | 38 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/intel,ixp4xx-gpio.txt -- 2.20.1 Reviewed-by: Bartosz Golaszewski Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/gpio/intel,ixp4xx-gpio.txt b/Documentation/devicetree/bindings/gpio/intel,ixp4xx-gpio.txt new file mode 100644 index 000000000000..8dc41ed99685 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/intel,ixp4xx-gpio.txt @@ -0,0 +1,38 @@ +Intel IXP4xx XScale Networking Processors GPIO + +This GPIO controller is found in the Intel IXP4xx processors. +It supports 16 GPIO lines. + +The interrupt portions of the GPIO controller is hierarchical: +the synchronous edge detector is part of the GPIO block, but the +actual enabling/disabling of the interrupt line is done in the +main IXP4xx interrupt controller which has a 1:1 mapping for +the first 12 GPIO lines to 12 system interrupts. + +The remaining 4 GPIO lines can not be used for receiving +interrupts. + +The interrupt parent of this GPIO controller must be the +IXP4xx interrupt controller. + +Required properties: + +- compatible : Should be + "intel,ixp4xx-gpio" +- reg : Should contain registers location and length +- gpio-controller : marks this as a GPIO controller +- #gpio-cells : Should be 2, see gpio/gpio.txt +- interrupt-controller : marks this as an interrupt controller +- #interrupt-cells : a standard two-cell interrupt, see + interrupt-controller/interrupts.txt + +Example: + +gpio0: gpio@c8004000 { + compatible = "intel,ixp4xx-gpio"; + reg = <0xc8004000 0x1000>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; +}; diff --git a/MAINTAINERS b/MAINTAINERS index 775a623dc91d..57d098b85523 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1650,6 +1650,7 @@ M: Imre Kaloz M: Krzysztof Halasa L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained +F: Documentation/devicetree/bindings/gpio/intel,ixp4xx-gpio.txt F: Documentation/devicetree/bindings/interrupt-controller/intel,ixp4xx-interrupt.txt F: Documentation/devicetree/bindings/timer/intel,ixp4xx-timer.txt F: arch/arm/mach-ixp4xx/