All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
To: u-boot@lists.denx.de
Subject: [PATCH v1 02/15] dt-bindings: pinctrl: add ns3 pads definition
Date: Sun, 17 May 2020 13:49:32 +0530	[thread overview]
Message-ID: <20200517081945.21282-3-rayagonda.kokatanur@broadcom.com> (raw)
In-Reply-To: <20200517081945.21282-1-rayagonda.kokatanur@broadcom.com>

Add NS3 pads definitions.

Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
---
 .../dt-bindings/pinctrl/brcm,pinctrl-ns3.h    | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 include/dt-bindings/pinctrl/brcm,pinctrl-ns3.h

diff --git a/include/dt-bindings/pinctrl/brcm,pinctrl-ns3.h b/include/dt-bindings/pinctrl/brcm,pinctrl-ns3.h
new file mode 100644
index 0000000000..81ebd58ca5
--- /dev/null
+++ b/include/dt-bindings/pinctrl/brcm,pinctrl-ns3.h
@@ -0,0 +1,41 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2020 Broadcom.
+ */
+
+#ifndef __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__
+#define __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__
+
+/* Alternate functions available in MUX controller */
+#define MODE_NITRO				0
+#define MODE_NAND				1
+#define MODE_PNOR				2
+#define MODE_GPIO				3
+
+/* Pad configuration attribute */
+#define PAD_SLEW_RATE_ENA			BIT(0)
+#define PAD_SLEW_RATE_ENA_MASK			BIT(0)
+
+#define PAD_DRIVE_STRENGTH_2_MA			(0 << 1)
+#define PAD_DRIVE_STRENGTH_4_MA			BIT(1)
+#define PAD_DRIVE_STRENGTH_6_MA			(2 << 1)
+#define PAD_DRIVE_STRENGTH_8_MA			(3 << 1)
+#define PAD_DRIVE_STRENGTH_10_MA		(4 << 1)
+#define PAD_DRIVE_STRENGTH_12_MA		(5 << 1)
+#define PAD_DRIVE_STRENGTH_14_MA		(6 << 1)
+#define PAD_DRIVE_STRENGTH_16_MA		(7 << 1)
+#define PAD_DRIVE_STRENGTH_MASK			(7 << 1)
+
+#define PAD_PULL_UP_ENA				BIT(4)
+#define PAD_PULL_UP_ENA_MASK			BIT(4)
+
+#define PAD_PULL_DOWN_ENA			BIT(5)
+#define PAD_PULL_DOWN_ENA_MASK			BIT(5)
+
+#define PAD_INPUT_PATH_DIS			BIT(6)
+#define PAD_INPUT_PATH_DIS_MASK			BIT(6)
+
+#define PAD_HYSTERESIS_ENA			BIT(7)
+#define PAD_HYSTERESIS_ENA_MASK			BIT(7)
+
+#endif
-- 
2.17.1

  parent reply	other threads:[~2020-05-17  8:19 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-17  8:19 [PATCH v1 00/15] add basic driver support for broadcom NS3 soc Rayagonda Kokatanur
2020-05-17  8:19 ` [PATCH v1 01/15] configs: ns3: enable pinctrl driver Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` Rayagonda Kokatanur [this message]
2020-05-25  2:14   ` [PATCH v1 02/15] dt-bindings: pinctrl: add ns3 pads definition Simon Glass
2020-05-17  8:19 ` [PATCH v1 03/15] arm: dts: ns3: add pinctrl node Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-26 10:08     ` Rayagonda Kokatanur
2020-05-26 12:39       ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 04/15] arm: dts: ns3: add gpio node Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-06-02 14:18     ` Rayagonda Kokatanur
2020-05-17  8:19 ` [PATCH v1 05/15] configs: ns3: enable BCM IPROC mmc driver Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 06/15] arm: dts: ns3: add emmc node Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 07/15] configs: ns3: enable mmc commands Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 08/15] arm: dts: ns3: add qspi node Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 09/15] arm: dts: ns3: add i2c node Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 10/15] arm: dts: ns3: add PAXB PCIe host and phy node Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 11/15] configs: ns3: enable gpt commands Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 12/15] configs: ns3: enable EXT4 and FAT fs support Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 13/15] configs: ns3: enable sp805 watchdog driver Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 14/15] arm: dts: ns3: add sp805 watchdog node Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 15/15] board: ns3: start sp805 watchdog service Rayagonda Kokatanur
2020-05-25  2:15   ` Simon Glass
2020-05-18 19:16 ` [PATCH v1 00/15] add basic driver support for broadcom NS3 soc Tom Rini
2020-05-19 17:09   ` Rayagonda Kokatanur
2020-05-19 17:31     ` Tom Rini
2020-05-19 17:45       ` Rayagonda Kokatanur
2020-05-20  2:04         ` Thomas Fitzsimmons
2020-05-20  5:19           ` Rayagonda Kokatanur
2020-05-20 14:20             ` Simon Glass
2020-06-03  9:10               ` Rayagonda Kokatanur
2020-06-04  2:59                 ` Simon Glass
2020-06-04  3:16                   ` Tom Rini
2020-06-05  9:36                     ` Soeren Moch
2020-06-05 15:05                       ` Tom Rini
2020-06-05 15:47                         ` Walter Lozano
2020-06-05 18:22                           ` Tom Rini
2020-06-05 20:20                             ` Walter Lozano
2020-06-08 17:03                   ` Rayagonda Kokatanur
2020-06-08 17:12                     ` Simon Glass
2020-06-08 17:22                       ` Rayagonda Kokatanur
2020-06-07  6:54 ` dphadke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200517081945.21282-3-rayagonda.kokatanur@broadcom.com \
    --to=rayagonda.kokatanur@broadcom.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.