From: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
To: u-boot@lists.denx.de
Subject: [PATCH v3 2/7] dt-bindings: pinctrl: add ns3 pads definition
Date: Thu, 25 Jun 2020 13:45:28 +0530 [thread overview]
Message-ID: <20200625081533.1144-3-rayagonda.kokatanur@broadcom.com> (raw)
In-Reply-To: <20200625081533.1144-1-rayagonda.kokatanur@broadcom.com>
Add NS3 pads definitions.
Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
.../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
next prev parent reply other threads:[~2020-06-25 8:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-25 8:15 [PATCH v3 0/7] add basic driver support for broadcom NS3 soc Rayagonda Kokatanur
2020-06-25 8:15 ` [PATCH v3 1/7] configs: ns3: enable pinctrl driver Rayagonda Kokatanur
2020-06-25 8:15 ` Rayagonda Kokatanur [this message]
2020-06-25 8:15 ` [PATCH v3 3/7] configs: ns3: enable BCM IPROC mmc driver Rayagonda Kokatanur
2020-06-25 8:15 ` [PATCH v3 4/7] configs: ns3: enable mmc commands Rayagonda Kokatanur
2020-06-25 8:15 ` [PATCH v3 5/7] configs: ns3: enable gpt commands Rayagonda Kokatanur
2020-06-25 8:15 ` [PATCH v3 6/7] configs: ns3: enable EXT4 and FAT fs support Rayagonda Kokatanur
2020-06-25 8:15 ` [PATCH v3 7/7] configs: ns3: enable sp805 watchdog driver Rayagonda Kokatanur
2020-06-26 12:39 ` Stefan Roese
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=20200625081533.1144-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.