Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp149829pxv; Wed, 30 Jun 2021 17:24:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhLakAal3zZfXWZkDK+Pj74lwdgRbL+CdsmxYJTsNeUk1lxT4+wWLkiCJlunkS8CQZzxm5 X-Received: by 2002:a17:907:97c8:: with SMTP id js8mr580601ejc.308.1625099058240; Wed, 30 Jun 2021 17:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625099058; cv=none; d=google.com; s=arc-20160816; b=aasntgRpM9cUOtuWHCZZ2wvG/qWIZDbAWG8waqn4VEsUKgEbjQm65aHAnfRShAR+8I +X9byZfTgVSgT0wBJcDtKNzy8Xs37P6GTwF3XAwRDm1w0dPhrrWIo6OPIMXonApIXYXl oqfwb7cNEEevMfijEguYrFUCDVrhjzAIvRz5h0lu9R9CgTpuc64NX5A8gEJGWMRgGbJS 4YAQsKCIFckAxZGSVEGxbZxCHGpAWyi2mg4bf/21tyUiwricBy17nmlOBy1CuwG0gGoT hfXmM0g+NQXxaiO5ZciIZqw7hPGXNY9ngLnoM6Ip/Yr3jCzrsXoYJ+2+LJu17n2Gue0y n22A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HSdm070R4SM/eRkEfUHVyZ+M0Thpoj9fAA1Eqy/QCP4=; b=UdODUqOVmJmYCreTd1HuZK0tjn7wRhL3WZSDFJWhoXcZi9w/EPbvIGVy796yqs6F7C 65BmqPxlQR1zZWckfYDsvNo7zxVTgOOzDGDFHv6V26guyr964rQHfhkRPwjkD5WA8UxX cNZYILHuU1320NFJ3SDX/xp5HkOhsMZzAKzW/wMUOyyFUZAVHIsPLEJTZVYwkZ+p/E9J wVCbdayUtItq+D+gZpvff/wrr90wtuCAHg6FR71OGn1NhVUEzQaQOVDgS4wpl+5nFxTG lnRlYuxpiaEc4h2y4eV/71at1Pxk2kCy3cW6ZzdJONtrh5d9s+yxnA5arwgtwWPLDDCq iL5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=iDwJzjkg; 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 8si19165114eje.741.2021.06.30.17.23.55; Wed, 30 Jun 2021 17:24: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; dkim=pass header.i=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=iDwJzjkg; 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 S238162AbhGAAYz (ORCPT + 99 others); Wed, 30 Jun 2021 20:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238144AbhGAAYy (ORCPT ); Wed, 30 Jun 2021 20:24:54 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C5E7C061756 for ; Wed, 30 Jun 2021 17:22:24 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id t9so4403078pgn.4 for ; Wed, 30 Jun 2021 17:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HSdm070R4SM/eRkEfUHVyZ+M0Thpoj9fAA1Eqy/QCP4=; b=iDwJzjkg/Cb6xXcKJDcqkbedHRnU0N//h3MMRTg1+KnfRnJ9qoHHXuILtF5nlFNPto iGbKzvpVlyvCYQIRO74L9lyd8SjvhqGEx/t74r5T+zwGx1ahklXn/88A2YoeJpqyyQF3 S++9jMJ/COOuShtlkkwQ3eJWPXVj8O4lYr53RtUIMFUBgPNHJnxHtQ3piI/m5Y6pp0Hj MrXHcnFcFRQbIUeX9jP8zLrY3jx3xXSVvqn8Jwudz/vVTOWDJ3ss3woHtWwfUDpyEi9v h0/SlzMlAMIfHY0xOxhvwFfFknUwaRARZ4jZQL2bFiHWmpyNvPw5YdkOuoivOpgvC/oA 8tLA== 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=HSdm070R4SM/eRkEfUHVyZ+M0Thpoj9fAA1Eqy/QCP4=; b=g1zQHc/K9pux8aZAuD+fXQigJpRbRTzj5319IhQWsY5jSB5iYeLL2RzGTU7bVzZrhG 9tEJ37NfKuJqOigvuaWANqLx7JeyyvUC8ZsmfbPMweJSSVdGOFob+rpJni7FowGIEp0y H31RmiCXWB7ed7cBKcfK9zhwKHXlcoVFEjziS3H3KpcocwWbn3sFS1q9QsRf2/A2pbHJ vdcO4yDAgVFSTgI2picTNk5lTh5QTBr4EQj0Jr6N+U2YOAEL9R7TzmznrIrvI8v1uj3F VO9Cwick0BZ5fpFQsvQVfh5XnDQgLdbQdK0gJYy7kbTRyplGknfLeWfY657rY3rbPqrX ySRQ== X-Gm-Message-State: AOAM532iRa+wWOS105EqSUO+Drfws8yFzUxETw1c9wrR/wR6PSYuiJi2 cU/kmWYd6LbXp7C3gK8P6Bi4kA== X-Received: by 2002:a62:380c:0:b029:2f7:4057:c3ed with SMTP id f12-20020a62380c0000b02902f74057c3edmr38802381pfa.21.1625098943069; Wed, 30 Jun 2021 17:22:23 -0700 (PDT) Received: from x1.hsd1.or.comcast.net ([2601:1c0:4701:ae70:8687:fcbc:6b3d:c844]) by smtp.gmail.com with ESMTPSA id v6sm25117495pgk.33.2021.06.30.17.22.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 17:22:22 -0700 (PDT) From: Drew Fustini To: Rob Herring , Linus Walleij , Bartosz Golaszewski , Paul Walmsley , Palmer Dabbelt , Michael Zhu , Geert Uytterhoeven , Fu Wei , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org Cc: Drew Fustini , Huan Feng Subject: [RFC PATH 1/2] dt-bindings: gpio: add starfive,jh7100-gpio bindings Date: Wed, 30 Jun 2021 17:20:38 -0700 Message-Id: <20210701002037.912625-2-drew@beagleboard.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210701002037.912625-1-drew@beagleboard.org> References: <20210701002037.912625-1-drew@beagleboard.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- .../bindings/gpio/starfive,jh7100-gpio.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml b/Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml new file mode 100644 index 000000000000..8c9d14d9ac3b --- /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 + + 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>; + }; + +... -- 2.27.0