Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3230025pxu; Mon, 19 Oct 2020 07:15:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzS8C2dSP2DTvi2r5CVEBCJraQZpXuz85uZQrW8e00MukpkGUb7Fqt85CLbQRYk1mbIt10 X-Received: by 2002:a05:6402:b91:: with SMTP id cf17mr20597edb.130.1603116900772; Mon, 19 Oct 2020 07:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603116900; cv=none; d=google.com; s=arc-20160816; b=Pwh0qFn0q/LYwSy7cvs+kLs4ugzGDOVo2eOpoMTCRuUc9ixW8s6INodUqWynRVsbJ1 r9dWW2lxe5UAWkdQxz6UPgx5FRFdFk09uzqBeswpdmv5SVUT6SIyb72/d0kyG2M+R+SX 9XUxVAge48ERgkpZm0ZYNVcHCZuK533lKRtFlS3GASNFqvG2S4+4S2Yk2yGVUrTwnzwh MGrZeOf/VHzxJN7mCwmCgK6jcIT1e/LyyhfcJpvJL81tKAeu8C/vCRvC6y3mL1/KrFwD CQwezCnGDJxofo6YDa1bHJub9yKMzaDa56jfi5NQufMqKVPQ4mIVY2ip3t1E5R/mJnZC DCJQ== 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=W7YA8x/YJ4hzstR6fHI6wY0DfW4AJFQtQe/riUUB+yw=; b=akkAUff4E6guo9SRJs9HGQr3WfZslKuEEg80dg0L/tNPTTTfilIQB8pMQFattOIxkX 55DYkemOGbebQs2wLQG2QtCkEy7PvEvI0ahEI8qvB2Ge0ZQSPqLAdRuJI4Yy1AXfvm8L Mx/FNaVWOj2oOYiL5qxgDGq1kj3gg/dRVVSoNHjDC/nOjphVUv+rP/VoG0ZfBJQEk27f k9Zw2mP88fgdJk2twH6ztMbEMx2QsAM4xkYmbfh0pDoJq2ksK2d2Dfw+KTod2dXOLuMv RAVq42NbgU68Rnhs6Zq5ky0uOq8zLtXH+HtUV9MyY5Ya3jeb2uIulSiD6AKpMw/bAeYp J4fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=T9yXXAo2; 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 g24si7576078edq.128.2020.10.19.07.14.38; Mon, 19 Oct 2020 07:15:00 -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=@0x0f.com header.s=google header.b=T9yXXAo2; 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 S1729431AbgJSOKd (ORCPT + 99 others); Mon, 19 Oct 2020 10:10:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729155AbgJSOKV (ORCPT ); Mon, 19 Oct 2020 10:10:21 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A4B9C0613D0 for ; Mon, 19 Oct 2020 07:10:21 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id ds1so5379221pjb.5 for ; Mon, 19 Oct 2020 07:10:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W7YA8x/YJ4hzstR6fHI6wY0DfW4AJFQtQe/riUUB+yw=; b=T9yXXAo2lls4cGBq9D+RVumXVsoXW+ItpctPehVNWYA68UIJ+EU0DTyZ26m7NGtrxU dBfTHx0jxt18mlTxv8ecE1P+QH3jzG8CDOUO3Xow1U17SLr0ja2nSQz1AuYb481cDk94 4RteL8SZnhOkVwWbjttU/0cK8GyDQMivD/DpU= 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=W7YA8x/YJ4hzstR6fHI6wY0DfW4AJFQtQe/riUUB+yw=; b=WkSepHZs9Wy8QyLvIL7ghMo2EX2+FG81I+es6EpTULof7smjCQeIK5mgvC69pyY0pi Q+geH8nEC5YEaDb8Nb/DPg1z8R4v8WH67W2yRnGmib6ipToFMQXcLooal5/8k/g/2SOD 7paqmTAhFUyoYhvUVDjCr4lA3r4tyhRZnIcRbQ2rRcF0pVK2+Q1o2PYlLyrgisiEDC/d hco8xSUVng/ORAIqNG61dXusASpuy8TnIMl1AEdRynuG4l7jHVJUTDtVeDZgPVaqvM4Z C7fYQOAohkK7QJ9Q7530htd156B1fVI203Fd6UbtknXxrs/I+BNLjRDscgwXMRLr3KXu FWQQ== X-Gm-Message-State: AOAM5316WwcACevYKSA+Z0+D3x5ABRqkGKFIfzCd18CMejxUYf+XZZhj BpDERUdZFXhd9r2sP88CNtgw/Q== X-Received: by 2002:a17:90a:5889:: with SMTP id j9mr17886422pji.109.1603116620985; Mon, 19 Oct 2020 07:10:20 -0700 (PDT) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id 131sm78999pfy.5.2020.10.19.07.10.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2020 07:10:20 -0700 (PDT) From: Daniel Palmer To: linux-gpio@vger.kernel.org Cc: devicetree@vger.kernel.org, arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linus.walleij@linaro.org, Daniel Palmer Subject: [PATCH v2 2/5] dt-bindings: gpio: Binding for MStar MSC313 GPIO controller Date: Mon, 19 Oct 2020 23:10:05 +0900 Message-Id: <20201019141008.871177-3-daniel@0x0f.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201019141008.871177-1-daniel@0x0f.com> References: <20201019141008.871177-1-daniel@0x0f.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a binding description for the MStar/SigmaStar GPIO controller found in the MSC313 and later ARMv7 SoCs. Signed-off-by: Daniel Palmer --- .../bindings/gpio/mstar,msc313-gpio.yaml | 61 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/mstar,msc313-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/mstar,msc313-gpio.yaml b/Documentation/devicetree/bindings/gpio/mstar,msc313-gpio.yaml new file mode 100644 index 000000000000..8c69153ac27e --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/mstar,msc313-gpio.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/mstar,msc313-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MStar/SigmaStar GPIO controller + +maintainers: + - Daniel Palmer + +properties: + $nodename: + pattern: "^gpio@[0-9a-f]+$" + + compatible: + const: mstar,msc313-gpio + + reg: + maxItems: 1 + + gpio-controller: true + + "#gpio-cells": + const: 2 + + gpio-ranges: true + + gpio-ranges-group-names: + $ref: /schemas/types.yaml#/definitions/string-array + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + +required: + - compatible + - reg + - gpio-controller + - "#gpio-cells" + - interrupt-controller + - "#interrupt-cells" + +examples: + - | + #include + + gpio: gpio@207800 { + compatible = "mstar,msc313e-gpio"; + #gpio-cells = <2>; + reg = <0x207800 0x200>; + gpio-controller; + gpio-ranges = <&pinctrl 0 36 22>, + <&pinctrl 22 63 4>, + <&pinctrl 26 68 6>; + #interrupt-cells = <2>; + interrupt-controller; + interrupt-parent = <&intc_fiq>; + status = "okay"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index a188fae8c04e..102aedca81dc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2130,6 +2130,7 @@ L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained W: http://linux-chenxing.org/ F: Documentation/devicetree/bindings/arm/mstar/* +F: Documentation/devicetree/bindings/gpio/mstar,msc313-gpio.yaml F: arch/arm/boot/dts/mstar-* F: arch/arm/mach-mstar/ F: include/dt-bindings/gpio/msc313-gpio.h -- 2.28.0