Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5435708ybe; Tue, 17 Sep 2019 08:02:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyvKlVgTyiH4Z523QRvXRhG5N0TddlJ3aWx//Nt1M1oJ+cwpKmNVtSsncbcQ4Ae9BF/uWj X-Received: by 2002:a17:906:1cc6:: with SMTP id i6mr5299238ejh.40.1568732542094; Tue, 17 Sep 2019 08:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568732542; cv=none; d=google.com; s=arc-20160816; b=JCUX3EsFTEfXWlqehbSeU/H4+lyl7HAC1E14AWayFf+QdJqoK2i9QvTRWpSjW91VL2 hxnNtDLXIWBQ+WW932Ds8s1m+o8303FKPcy+fOQoB60GxlFqqzY/ZvNOAFe/rzwEOtsB BQRqnM2oCSvWXP7FZk8jx2TudleXho8TWHX8xZKeJ0EWmaBEVWhrVEY9xU2OdtP9k8pW 1oAdvQ9VwDbgGv1wiBq42EwsadGghDGU+1ShDZUX4542mG+CSeFA9pcdQGzvKLwraJmI dla8/lZPZxPBQtcxbsMCdMWYL+4duyKOEB1+3J2HK/65J91i9t+o1LZ3vlVfAcugd/dN OsNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=V1o1DuDn97Mzb1+WBhmtGMu8BI3+yoktJhQunS/yPWg=; b=AI3z0t8a+t8FFMmKU4/a9uQOpWPCnJwnOZjvT0ZEGAdgEXe2ALBXC7Ke6OqVa4duKq RYCNJeP+5TWKWGDFbSTcEpPXCy9GUm84uaYNtG+iK3w0b2H82TinX4EMep0mrRmKy0Bl wn0YMKuvtzk7WUQ48RhsqD0gfz2M52/eIfkhdc3lkDPzQkMYVjrKeQexqdTCf4keT4Uk ElUybXBjKvfTxCmzv9Lw+79IGCfiuer7bIi6PusQEXso5HlW9jHAJyn2XhP06353HUIJ fM9feddJ8RbE8dIOgx4YIepcV1lV5g75aO6GGCvYaFzUB6om/LBvrCq5aopEgEkvmA8y Yjnw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8si1571808edi.22.2019.09.17.08.01.57; Tue, 17 Sep 2019 08:02:22 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404207AbfIQGWj (ORCPT + 99 others); Tue, 17 Sep 2019 02:22:39 -0400 Received: from mail-sz.amlogic.com ([211.162.65.117]:11520 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404179AbfIQGWi (ORCPT ); Tue, 17 Sep 2019 02:22:38 -0400 X-Greylist: delayed 904 seconds by postgrey-1.27 at vger.kernel.org; Tue, 17 Sep 2019 02:22:35 EDT Received: from localhost.localdomain (10.28.8.19) by mail-sz.amlogic.com (10.28.11.5) with Microsoft SMTP Server id 15.1.1591.10; Tue, 17 Sep 2019 14:08:27 +0800 From: Qianggui Song To: Linus Walleij , CC: Qianggui Song , Xingyu Chen , Jianxin Pan , Neil Armstrong , Jerome Brunet , Kevin Hilman , Martin Blumenstingl , Carlo Caione , Rob Herring , Hanjie Lin , Mark Rutland , , , , Subject: [PATCH 1/3] pinctrl: add compatible for Amlogic Meson A1 pin controller Date: Tue, 17 Sep 2019 14:07:20 +0800 Message-ID: <1568700442-18540-2-git-send-email-qianggui.song@amlogic.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1568700442-18540-1-git-send-email-qianggui.song@amlogic.com> References: <1568700442-18540-1-git-send-email-qianggui.song@amlogic.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.28.8.19] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add new compatible name for Amlogic's Meson-A1 pin controller add a dt-binding header file which document the detail pin names. Signed-off-by: Qianggui Song Signed-off-by: Xingyu Chen Signed-off-by: Jianxin Pan --- .../devicetree/bindings/pinctrl/meson,pinctrl.txt | 1 + include/dt-bindings/gpio/meson-a1-gpio.h | 73 ++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 include/dt-bindings/gpio/meson-a1-gpio.h diff --git a/Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt index 10dc4f7..0aff1f2 100644 --- a/Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt @@ -15,6 +15,7 @@ Required properties for the root node: "amlogic,meson-axg-aobus-pinctrl" "amlogic,meson-g12a-periphs-pinctrl" "amlogic,meson-g12a-aobus-pinctrl" + "amlogic,meson-a1-periphs-pinctrl" - reg: address and size of registers controlling irq functionality === GPIO sub-nodes === diff --git a/include/dt-bindings/gpio/meson-a1-gpio.h b/include/dt-bindings/gpio/meson-a1-gpio.h new file mode 100644 index 0000000..40e57a5 --- /dev/null +++ b/include/dt-bindings/gpio/meson-a1-gpio.h @@ -0,0 +1,73 @@ +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ +/* + * Copyright (c) 2019 Amlogic, Inc. All rights reserved. + * Author: Qianggui Song + */ + +#ifndef _DT_BINDINGS_MESON_A1_GPIO_H +#define _DT_BINDINGS_MESON_A1_GPIO_H + +#define GPIOP_0 0 +#define GPIOP_1 1 +#define GPIOP_2 2 +#define GPIOP_3 3 +#define GPIOP_4 4 +#define GPIOP_5 5 +#define GPIOP_6 6 +#define GPIOP_7 7 +#define GPIOP_8 8 +#define GPIOP_9 9 +#define GPIOP_10 10 +#define GPIOP_11 11 +#define GPIOP_12 12 +#define GPIOB_0 13 +#define GPIOB_1 14 +#define GPIOB_2 15 +#define GPIOB_3 16 +#define GPIOB_4 17 +#define GPIOB_5 18 +#define GPIOB_6 19 +#define GPIOX_0 20 +#define GPIOX_1 21 +#define GPIOX_2 22 +#define GPIOX_3 23 +#define GPIOX_4 24 +#define GPIOX_5 25 +#define GPIOX_6 26 +#define GPIOX_7 27 +#define GPIOX_8 28 +#define GPIOX_9 29 +#define GPIOX_10 30 +#define GPIOX_11 31 +#define GPIOX_12 32 +#define GPIOX_13 33 +#define GPIOX_14 34 +#define GPIOX_15 35 +#define GPIOX_16 36 +#define GPIOF_0 37 +#define GPIOF_1 38 +#define GPIOF_2 39 +#define GPIOF_3 40 +#define GPIOF_4 41 +#define GPIOF_5 42 +#define GPIOF_6 43 +#define GPIOF_7 44 +#define GPIOF_8 45 +#define GPIOF_9 46 +#define GPIOF_10 47 +#define GPIOF_11 48 +#define GPIOF_12 49 +#define GPIOA_0 50 +#define GPIOA_1 51 +#define GPIOA_2 52 +#define GPIOA_3 53 +#define GPIOA_4 54 +#define GPIOA_5 55 +#define GPIOA_6 56 +#define GPIOA_7 57 +#define GPIOA_8 58 +#define GPIOA_9 59 +#define GPIOA_10 60 +#define GPIOA_11 61 + +#endif /* _DT_BINDINGS_MESON_A1_GPIO_H */ -- 1.9.1