Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5513880ybp; Tue, 8 Oct 2019 04:11:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1I654kUfcJYNJHqVDuqFhTa4ag/YihvVcaiCcxijJU0oeivfrdIJcpTaor2JJk8e7pHrx X-Received: by 2002:a17:906:168f:: with SMTP id s15mr28400379ejd.109.1570533073016; Tue, 08 Oct 2019 04:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570533073; cv=none; d=google.com; s=arc-20160816; b=fZh6pdMyuUUDPaZmlCRqKolF6NQ2Vjq0lfiM4WCPPvELCOI5rYSL2A9Cy1fTNj+dTj K9w5IIKo47irAPt0FFEU1RaJKgGfe/x7h06j1Kle6UY3ixpqhNJvyDKp1Re/jsdK45H0 De6/5zr8oBA8CvrPaaQFwLLTX+dadll2ucKuQpqvlH1JoSL/kOk3ByUH6YMJsOWqaGG9 kgidShWbjgW/Ts2ceizZE7rNJyuXn3zGqWNiw5rpShykeylWczdWxRO3xctUfrF8CEmL p4Nljh5Ix91O4xHh3o7Fjm4ycYhXJW1emmU4pUF8cTuxYuW349OhGISQBZdHUf7LlB4V owrQ== 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=9LxmNslvP1/UDLKfA4llrWl90HkRlawrejlGMsYdyPw=; b=kI8qu9qy+jcyf8Q3jsUh3Pds4HUJzleMYoMFWh6BK4zipp+iZ35JaWpmqoKQHcoFTC CWaXU8cSNjg52bVFj1JkoT4y1p3ADL3QXxelTvD5EeAhmPsvBwxA1VOtNUl3lwDyZ0NO Vqn3BStWt6MIcBfWeeLjmEy1eWU+Wm5L7cP6Z8u4APOwAsapKFIfYZc8DobgLPPib0Nl aejpjr1Tf/qb0xfLYvwjfmOWt/yzQZI5FL1gc+YYnlGFGByHxxW5+ichB5MnBOJWvKue QMy5L5gKqK+1D+FDDwLr4i/j0IXwdwxjKyq0T/EKSqscrXvz/BqDrX8I/x8C38Kp804v rZKA== 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 f11si8898016ejw.116.2019.10.08.04.10.49; Tue, 08 Oct 2019 04:11:13 -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 S1730591AbfJHLKi (ORCPT + 99 others); Tue, 8 Oct 2019 07:10:38 -0400 Received: from mail-sz.amlogic.com ([211.162.65.117]:48486 "EHLO mail-sz.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730555AbfJHLKh (ORCPT ); Tue, 8 Oct 2019 07:10:37 -0400 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, 8 Oct 2019 19:10:38 +0800 From: Qianggui Song To: Linus Walleij , CC: Qianggui Song , Neil Armstrong , Jerome Brunet , Kevin Hilman , Martin Blumenstingl , Carlo Caione , Rob Herring , Xingyu Chen , Jianxin Pan , Hanjie Lin , Mark Rutland , , , , Subject: [PATCH v2 1/3] pinctrl: add compatible for Amlogic Meson A1 pin controller Date: Tue, 8 Oct 2019 19:09:57 +0800 Message-ID: <1570532999-23302-2-git-send-email-qianggui.song@amlogic.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1570532999-23302-1-git-send-email-qianggui.song@amlogic.com> References: <1570532999-23302-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. Note that A1 doesn't need DS bank reg any more, use gpio reg as base. Reviewed-by: Rob Herring Reviewed-by: Neil Armstrong Signed-off-by: Qianggui Song --- .../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 10dc4f7176ca..0aff1f28495c 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 000000000000..40e57a5ff1db --- /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