Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp633478imu; Sat, 17 Nov 2018 06:36:02 -0800 (PST) X-Google-Smtp-Source: AJdET5cd0brrd1MBZiu+x4PyaNBVhsYhohKu3N0n8ITiPB5D04Q906UnavwA9YoCF6bNORMacuWv X-Received: by 2002:a17:902:6b0c:: with SMTP id o12mr15485716plk.291.1542465362907; Sat, 17 Nov 2018 06:36:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542465362; cv=none; d=google.com; s=arc-20160816; b=MrhgJm2MNXlc4I1va1GzkWS+12NnS5VIpSf6CHT+6r3VTLbHMa2Bc4OiG837T273IL aR/1jTu6vsCshKI6TIhUUsaoVJHGcICwWTi3gNga1Bnusb7zmmFdPobRJ1byIFJorOig hTntiteRJCyJVkFOp+JToYP8Eb3YhPphJNyanuy9ILx1SEG/JbxwdRQc0Es/R6f3AgEE 9Io+05f4hcRSZm7Gv8nxiJ8tKdMsxcKx5HM0L0PM55MQAI1JOOpYHvYh/xsyNXvm+eWg Km+7uR8raansPFFCzDCF9abz8UykdV96b06F+SCIZk0KWdlDxmdM1gtxxYoSeQu6zxe/ pKlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=yilNz8PeP2cJ8bb6MXz1gT5hqALytK0Or/Y/TPXv+OA=; b=ROuLVaIBPd9syPMGvu3qKDPSsHnDUoUQ6yi9E40iCiw/Gp3mjD2GZreu1uCerX3yFC Op4ucYErlWWHXDDdyYzSFJBH2I26uvM313t3N1idi/iOvjIQ6PY+gscA0wYgBvWlulj7 oJ8ypUpjjSxc/AKvw2xMbATNDFyJy9Hd5e/oMQbpzToPsxpCxh9l9jQVN5IbMnMHuc1O H4BfQOqGGlwYn+Ifczix6IevPii1lPqRyroEzhWxtD3wLcAqUX4yyC0e0XlwS5y5Umhd 94QJulhj+k0uoOK7IJBn5kvjqVLk1TYPn4xGIBs42/Mfq4L8PbcHFD9Ltq69t9+YxXyg JG2g== 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 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s27si4407026pgm.501.2018.11.17.06.35.32; Sat, 17 Nov 2018 06:36:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726391AbeKRAtt (ORCPT + 99 others); Sat, 17 Nov 2018 19:49:49 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:42893 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726020AbeKRAts (ORCPT ); Sat, 17 Nov 2018 19:49:48 -0500 Received: by mail-oi1-f196.google.com with SMTP id w13so9371319oiw.9; Sat, 17 Nov 2018 06:32:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=yilNz8PeP2cJ8bb6MXz1gT5hqALytK0Or/Y/TPXv+OA=; b=lyhYFgIQGjfKQLj9pQzodCnywBqJnfJIihjcuA8PNk2WKZ82t9kh+qO9fKeNmB84lL V0xcnwq1Cunt8+5+efKgMWxfzQsesGSoy2WxjEUsv9bGOvO8Q5oWBudHVF8Lw0YuRRbj CczQoeNjO30PzZPAI0e68uRxDZIIcycY3ty7Z0d5hNfwIHrGsU+0alIZHRSXYKLYMDQS 9AfjpP0BZMgK3lR5iS2wiUv6/4+rwDXJiVMMJ/IZB3nhm9PpnWTxf8D5rqKyniOt3LWi Fj57I4bpQpMXwo7snxE/UztYiB5mONRs5aX3r+Fb4v+9R5NNhFptTCdX0KxczvGdQQk+ TPJQ== X-Gm-Message-State: AGRZ1gJXGHMSK/+N6GKK5fq33LjxaDtQaR+NwtFQhFhyGyLupGpWYhhv IIBlC9/bt74pBZLM8aEjdJmOOeY= X-Received: by 2002:aca:4a56:: with SMTP id x83mr2802954oia.11.1542465176571; Sat, 17 Nov 2018 06:32:56 -0800 (PST) Received: from localhost ([166.137.105.180]) by smtp.gmail.com with ESMTPSA id i34sm1613804otd.44.2018.11.17.06.32.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Nov 2018 06:32:55 -0800 (PST) Date: Sat, 17 Nov 2018 08:32:53 -0600 From: Rob Herring To: Phil Edworthy Cc: Marc Zyngier , Thomas Gleixner , Jason Cooper , Mark Rutland , Geert Uytterhoeven , linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v3 1/2] dt-bindings/interrupt-controller: rzn1: Add RZ/N1 gpio irq mux binding Message-ID: <20181117143253.GA27381@bogus> References: <20181113130910.22130-1-phil.edworthy@renesas.com> <20181113130910.22130-2-phil.edworthy@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181113130910.22130-2-phil.edworthy@renesas.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 13, 2018 at 01:09:09PM +0000, Phil Edworthy wrote: > Add device binding documentation for the Renesas RZ/N1 GPIO interrupt > multiplexer. > > Signed-off-by: Phil Edworthy > --- > v3: > - Use 'interrupt-map' DT property correctly. > v2: > - Use interrupt-map to allow the GPIO controller info to be specified > as part of the irq. > - Don't show status in binding examples. > - Don't show the soc/board split in binding doc. > --- > .../interrupt-controller/renesas,rzn1-mux.txt | 73 +++++++++++++++++++ > 1 file changed, 73 insertions(+) > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,rzn1-mux.txt A few nits, otherwise: Reviewed-by: Rob Herring > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/renesas,rzn1-mux.txt b/Documentation/devicetree/bindings/interrupt-controller/renesas,rzn1-mux.txt > new file mode 100644 > index 000000000000..6515880e25cc > --- /dev/null > +++ b/Documentation/devicetree/bindings/interrupt-controller/renesas,rzn1-mux.txt > @@ -0,0 +1,73 @@ > +* Renesas RZ/N1 GPIO Interrupt Multiplexer > + > +On Renesas RZ/N1 devices, there are several GPIO Controllers each with a number > +of interrupt outputs. All of the interrupts from the GPIO Controllers are passed > +to the GPIO Interrupt Multiplexer, which selects a sub-set of the interrupts to > +pass onto the system interrupt controller. > + > +A single node in the device tree is used to describe the GPIO IRQ Muxer. > + > +Required properties: > +- compatible: SoC-specific compatible string "renesas,-gpioirqmux" > + followed by "renesas,rzn1-gpioirqmux" as fallback. The SoC-specific compatible > + strings must be one of: > + "renesas,r9a06g032-gpioirqmux" for RZ/N1D > + "renesas,r9a06g033-gpioirqmux" for RZ/N1S > +- reg: Base address and size of GPIO IRQ Muxer registers. > +- interrupts: List of output interrupts. > +- #interrupt-cells: Numder of cells in the input interrupt specifier, must be 1. > +- #address-cells: Must be 0. > +- interrupt-map-mask: must be 127. > +- interrupt-map: Standard property detailing the maps between input irqs and the > + corresponding output irq. This consist of a list of: > + > + The input-irq-spec is from 0 to 95, corresponding to the outputs of the GPIO > + Controllers. > + > +Example: > + > + The following is an example for the RZ/N1D SoC. > + > + gpioirqmux: gpioirqmux@51000480 { interrupt-controller@... > + compatible = "renesas,r9a06g032-gpioirqmux", > + "renesas,rzn1-gpioirqmux"; > + reg = <0x51000480 0x20>; > + interrupts = > + , > + ; This is a bit redundant as the same information is in interrupt-map, but I guess you need it to get the irq resources. > + > + #interrupt-cells = <1>; > + #address-cells = <0>; > + interrupt-map-mask = <127>; Use hex for masks. > + interrupt-map = > + /* gpio2a 24, pin 146: ETH Port 1 IRQ */ > + <88 &gic GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>, > + /* gpio2a 26, pin 148: TouchSCRN_IRQ */ > + <90 &gic GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>; > + }; > + > + gpio2: gpio@5000d000 { > + compatible = "snps,dw-apb-gpio"; > + reg = <0x5000d000 0x80>; > + #address-cells = <1>; > + #size-cells = <0>; > + clock-names = "bus"; > + clocks = <&sysctrl R9A06G032_HCLK_GPIO2>; > + > + gpio2a: gpio-controller@0 { gpio@0 > + compatible = "snps,dw-apb-gpio-port"; > + bank-name = "gpio2a"; > + gpio-controller; > + #gpio-cells = <2>; > + snps,nr-gpios = <32>; > + reg = <0>; > + > + interrupt-controller; > + interrupt-parent = <&gpioirqmux>; > + interrupts = < 64 65 66 67 68 69 70 71 > + 72 73 74 75 76 77 78 79 > + 80 81 82 83 84 85 86 87 > + 88 89 90 91 92 93 94 95 >; > + #interrupt-cells = <2>; > + }; > + }; > -- > 2.17.1 >