Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp472547pxv; Thu, 1 Jul 2021 02:21:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwX9C0kR5J3yS4+OEeFA7wdQMgJqrvEFTrZiaKRswcw6gjoq0qjLenhtfe8j3/RthqydWfw X-Received: by 2002:a92:6509:: with SMTP id z9mr29174293ilb.184.1625131278662; Thu, 01 Jul 2021 02:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625131278; cv=none; d=google.com; s=arc-20160816; b=IO9o5QGdC05l5ELXIcXHFtAHQ+N1DbRwZxHjyXq0veDa0rSQvz6YfeTUeEl7SLVkJ+ GKsGaT3EaseRv0k2UoBP+2Juw0N9ByZb4ivJxIjiPfyKlTh343YrAQ2GWXQl6Bf1tyJs CttfIXM7ZHqJ6jwtgvTqWFdC7UQZLB6jUEds0Jy8r3W2Hh3gi/YGJVo2YixptTKXpHp3 mDOobFB3ONori/6LMV0WiiJdpuxRaby7FKf4s6KVPmMI570jtjz/JubIsLbaDpT46npx 2Kt+IILJmA0MIa51j4t0fpLvpxHEq+HiN4h7QZjIF3gARtVhFpR5eh/WsKAh4lf+wZgJ /mbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=7bpYvv8lA/1j4v7R7NAURrd4Uck8U09k/ENnDW1qf6k=; b=BqXijNj38JzBa7X5HeEoeIbgwpn/uU3tJl/GbZHF8yba5+mkLh+/9CdwC5q17YxuZB dHSbznhlTsKjda+fb4b6hSvNoeb4quP41/vq30P3ueQr01c3tCpXB/LX4SExnHvQpP98 FhEiqBLumwjI9p8/t1l8Ncntx0ZZxLz8ig2rqdw+cCeTnUBIXe9QSAYBwqW9QjXuxCJT eaeuzewBuizdAL3khepgevPQfD7kTMxUkOOtHId71KgJADwUTSR/0oTBxP2tHOykYKsS 2dzCiiu0GWAkxWmMWaRy6QYja6i9wh7OvXS2ClinM0X+nSTwvdKTAg13YzhB869R/rcy Gxlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z4si5083358iln.120.2021.07.01.02.21.06; Thu, 01 Jul 2021 02:21:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235300AbhGAIhk (ORCPT + 99 others); Thu, 1 Jul 2021 04:37:40 -0400 Received: from mail-ua1-f43.google.com ([209.85.222.43]:44701 "EHLO mail-ua1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235159AbhGAIhj (ORCPT ); Thu, 1 Jul 2021 04:37:39 -0400 Received: by mail-ua1-f43.google.com with SMTP id e7so2148267uaj.11; Thu, 01 Jul 2021 01:35:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7bpYvv8lA/1j4v7R7NAURrd4Uck8U09k/ENnDW1qf6k=; b=M+ohH+lkIrViw+bXY3l8eMu148YOY4a7wRRAICP6iNCOfPBBYc+aqmOGZTjiXTzCF8 9d+6s3c6N+VieS9EpXd9PgIYwl/72LiYmu91VwXtyPTG2D8ZQmtDZOhZe3hqjubBF9oL lvtG3uI1liabPll8WoEs7ZcnIf2eKly7KngvFCylWaA49RriInGF9AZXvB9K2rOCHlGu mBFD8ULGzRy+3XLb8AU/gl351E3/hRkE/lE9IhJb9z+ROnEuetddT1HDTHkayj3CZPTO KW62khfu6RXzJnYzeEt9j7Em/+8yp65KGrqwvDrFvP1eY1Pthd7Ll8W8B7DFYtGBU9Jt eYxQ== X-Gm-Message-State: AOAM532KvTVeHfopuKU6rmFoYYWaOFsgZUPErfJdSVJh/LKYe/afdC1H FcrOyNSX/L7LQM/+yWhfp84BfJLJetUWv1GZxlk= X-Received: by 2002:ab0:71ca:: with SMTP id n10mr2640663uao.106.1625128507544; Thu, 01 Jul 2021 01:35:07 -0700 (PDT) MIME-Version: 1.0 References: <20210701002037.912625-1-drew@beagleboard.org> <20210701002037.912625-2-drew@beagleboard.org> In-Reply-To: <20210701002037.912625-2-drew@beagleboard.org> From: Geert Uytterhoeven Date: Thu, 1 Jul 2021 10:34:56 +0200 Message-ID: Subject: Re: [RFC PATH 1/2] dt-bindings: gpio: add starfive,jh7100-gpio bindings To: Drew Fustini Cc: Rob Herring , Linus Walleij , Bartosz Golaszewski , Paul Walmsley , Palmer Dabbelt , Michael Zhu , Fu Wei , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , linux-riscv , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Huan Feng Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Drew, On Thu, Jul 1, 2021 at 2:22 AM Drew Fustini wrote: > Add bindings for the GPIO controller in the StarFive JH7100 SoC [1]. > > [1] https://github.com/starfive-tech/beaglev_doc > > Signed-off-by: Drew Fustini > Signed-off-by: Huan Feng Thanks for your patch! > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml > @@ -0,0 +1,60 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpio/starfive,jh7100-gpio.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: StarFive JH7100 GPIO controller > + > +maintainers: > + - Huan Feng > + - Drew Fustini > + > +properties: > + compatible: > + items: > + - const: starfive,jh7100-gpio > + > + reg: > + maxItems: 1 > + > + interrupts: > + description: > + Interrupt mapping, one per GPIO. Maximum 32 GPIOs. > + minItems: 1 > + maxItems: 32 What about clocks and resets? > + > + gpio-controller: true > + > + "#gpio-cells": > + const: 2 > + > + interrupt-controller: true > + > + "#interrupt-cells": > + const: 2 > + > +required: > + - compatible > + - reg > + - interrupts > + - interrupt-controller > + - "#interrupt-cells" > + - "#gpio-cells" > + - gpio-controller > + > +additionalProperties: false > + > +examples: > + - | > + gpio@11910000 { > + compatible = "starfive,jh7100-gpio"; > + reg = <0x11910000 0x10000>; > + gpio-controller; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + interrupts = <32>; > + }; > + > +... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds