Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3474577pxu; Sun, 11 Oct 2020 11:00:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHmyo5cfoV21BxGZWs7Z0ulRWcl3R79YGbxIJoCvkAN/d3g9olmAwVphBWzgRTE9bz+vQQ X-Received: by 2002:a17:906:54c7:: with SMTP id c7mr22458071ejp.21.1602439215545; Sun, 11 Oct 2020 11:00:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602439215; cv=none; d=google.com; s=arc-20160816; b=EgqcPhu0Z6UnfvUItLweVDAGSGisEJXQRhAMKTmmoqQgbxbVgPUFEcixoO2ZPp30U7 4XRNz9Ti0mDnvPeUlJ9T5x5uOFlxqcEhg7JJjAHvAS2XJ0s6HZkUTogbLPB6yICNRWed /oFcc0Qz/Yc/hdAn33MtZM8nekLOtWq6kg7vsHhMGqGZxR79Gedv7in4KbTI8yvX8oBx vhQ9cYBpjh0Q9o/YzS8dfvlTVYqzuANOT5A/tQccGycjC/5py5x0CXp6z6hT1LxtVouN Ob5HVTgZp0cdzLHkCUNoGHskcad3eY2NDeavMjbIHThy4dPG4my0r1d6z5tuAJcqETOk QRzQ== 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=F6fjmcOmJzSVz0Oy0Rq9zEBYtq/tY9BpvhD8w5xQD/A=; b=N8y3SLsKGQkE7cHN+lHlxth75tNMgDRbXKZ5yiYPHE6woHOoxnDIdoqt/fYH2Ormhe vh2o7mUPFPv3Z16eiHgsk/Zel6boLAwq4wibxJwW44Kr56ax094E5IaT4kP71KDU87WE b+EAT5kOxiVZB0ouZ9XXVHjLjcIuu5KsoaZMtX6o8n7xU9Kc1YmulrpDwme/UHs9n3+g rAwzh6LXXyhnI3BJ7IwEgKYk/ONEQEQCc6EHh7xGAuAhrCvasG+QxrAC1edULHSmQPA9 ONMVdeIDvVarR/H2FP7/6+pglxGzs1LJEObFh3cECjx4O9wDGHrSM2Zi2HXoD+0zWdp1 N8gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=Ay8X1xlc; 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 u22si10446477ejr.188.2020.10.11.10.59.52; Sun, 11 Oct 2020 11:00:15 -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=Ay8X1xlc; 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 S1730431AbgJKCss (ORCPT + 99 others); Sat, 10 Oct 2020 22:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730426AbgJKCss (ORCPT ); Sat, 10 Oct 2020 22:48:48 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A020FC0613D2 for ; Sat, 10 Oct 2020 19:48:46 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id y20so6551357pll.12 for ; Sat, 10 Oct 2020 19:48:46 -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=F6fjmcOmJzSVz0Oy0Rq9zEBYtq/tY9BpvhD8w5xQD/A=; b=Ay8X1xlcQiaQIvb2Fs3y51q3hYVpv86xWv4PwucQ5ugGIOJruN/Xv59WZRq2YS9hTU dmCEQqu9g4Q/0Q5WtF80kyaVUL1Ig/xwhkKmFGl1u8c4SkCDO4Qi9kNoL8dIJed6L23K CwuEMeOHzBxKKp3Mdx/pfigyMeKrOdqiP9/iQ= 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=F6fjmcOmJzSVz0Oy0Rq9zEBYtq/tY9BpvhD8w5xQD/A=; b=ceWJN+ORg7CQety0XdSIe19BzRUzAKx1AgbLiGKJJEV8uCBA1kJoKDMYmqzs/3l+8c kO0IonoPuWnN3t2KvqYrzOKTCpkXld/nxV3RKlgDPiNk9LXmipg4vicwhNKS84eEg7C+ I7SErdTRJZ4SLb+mx9t2a5Uy6T4oZRwzEf1GmoQ5RU5ZKaNYHgFxgQdLddZv2Sj+eaNJ 11WNtu7SXHj4dk6s6muuhjJdOD+NcdISI7PAGfcUvTEeBy7LJyYDWbocM/s/pw94KZJ+ OX9eBWOwHb+7CJzZCXy7s5z1Q7qVMol6U96FC64rTwAIxOnnfSvbIl/RUGzRpP0xZdCv CvZw== X-Gm-Message-State: AOAM530cvmIH4ZIU0I6HL8OpmvwPtNi5f+jrCEvfhbD1Wsqj4316cyGb t33Rcj64EjAE3i7rzaqZ9grgQQ== X-Received: by 2002:a17:902:b402:b029:d2:686a:4f43 with SMTP id x2-20020a170902b402b02900d2686a4f43mr18210883plr.34.1602384525677; Sat, 10 Oct 2020 19:48:45 -0700 (PDT) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id z25sm14832836pgl.6.2020.10.10.19.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Oct 2020 19:48:45 -0700 (PDT) From: Daniel Palmer To: linux-gpio@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH 1/5] dt-bindings: gpio: Binding for MStar MSC313 GPIO controller Date: Sun, 11 Oct 2020 11:48:27 +0900 Message-Id: <20201011024831.3868571-2-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201011024831.3868571-1-daniel@0x0f.com> References: <20201011024831.3868571-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 | 69 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 70 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..07ef463273d2 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/mstar,msc313-gpio.yaml @@ -0,0 +1,69 @@ +# 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 + + interrupts: true + + interrupt-names: + description: | + The interrupt name should match the pin that the interrupt + is connected to. + +required: + - compatible + - reg + - gpio-controller + - "#gpio-cells" + +examples: + - | + #include + #include + #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-parent = <&intc_fiq>; + interrupt-names = MSC313_PINNAME_SPI0_CZ, + MSC313_PINNAME_SPI0_CK, + MSC313_PINNAME_SPI0_DI, + MSC313_PINNAME_SPI0_DO; + interrupts = , + , + , + ; + status = "okay"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 75b04ba10f21..4594b70f2e3a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2155,6 +2155,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/ -- 2.27.0