All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Shyti <andi.shyti@samsung.com>
To: Chanwoo Choi <cw00.choi@samsung.com>,
	Tomasz Figa <tomasz.figa@gmail.com>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Sylwester Nawrocki <s.nawrocki@samsung.com>,
	Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will.deacon@arm.com>, Kukjin Kim <kgene@kernel.org>,
	Javier Martinez Canillas <javier@osg.samsung.com>,
	Linus Walleij <linus.walleij@linaro.org>
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org, Andi Shyti <andi.shyti@samsung.com>,
	Andi Shyti <andi@etezian.org>
Subject: [PATCH v2 2/4] pinctrl: dt-bindings: samsung: add drive strength macros for Exynos5433
Date: Fri, 30 Dec 2016 13:14:19 +0900	[thread overview]
Message-ID: <20161230041421.24448-3-andi.shyti@samsung.com> (raw)
In-Reply-To: <20161230041421.24448-1-andi.shyti@samsung.com>

Commit 5db7e3bb87df ("pinctrl: dt-bindings: samsung: Add header with
values used for configuration") has added a header file for defining the
pinctrl values in order to avoid hardcoded settings in the Exynos
DTS related files.

Extend samsung.h to the Exynos5433 for drive strength values
which are strictly related to the particular SoC and may defer
from others.

Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
---
 include/dt-bindings/pinctrl/samsung.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/include/dt-bindings/pinctrl/samsung.h b/include/dt-bindings/pinctrl/samsung.h
index 6276eb785e2b..e0ebb20ffdd3 100644
--- a/include/dt-bindings/pinctrl/samsung.h
+++ b/include/dt-bindings/pinctrl/samsung.h
@@ -45,6 +45,20 @@
 #define EXYNOS5420_PIN_DRV_LV3		2
 #define EXYNOS5420_PIN_DRV_LV4		3
 
+/* Drive strengths for Exynos5433 */
+#define EXYNOS5433_PIN_DRV_FAST_SR1	0
+#define EXYNOS5433_PIN_DRV_FAST_SR2	1
+#define EXYNOS5433_PIN_DRV_FAST_SR3	2
+#define EXYNOS5433_PIN_DRV_FAST_SR4	3
+#define EXYNOS5433_PIN_DRV_FAST_SR5	4
+#define EXYNOS5433_PIN_DRV_FAST_SR6	5
+#define EXYNOS5433_PIN_DRV_SLOW_SR1	8
+#define EXYNOS5433_PIN_DRV_SLOW_SR2	9
+#define EXYNOS5433_PIN_DRV_SLOW_SR3	0xa
+#define EXYNOS5433_PIN_DRV_SLOW_SR4	0xb
+#define EXYNOS5433_PIN_DRV_SLOW_SR5	0xc
+#define EXYNOS5433_PIN_DRV_SLOW_SR6	0xf
+
 #define EXYNOS_PIN_FUNC_INPUT		0
 #define EXYNOS_PIN_FUNC_OUTPUT		1
 #define EXYNOS_PIN_FUNC_2		2
-- 
2.11.0

WARNING: multiple messages have this Message-ID (diff)
From: andi.shyti@samsung.com (Andi Shyti)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/4] pinctrl: dt-bindings: samsung: add drive strength macros for Exynos5433
Date: Fri, 30 Dec 2016 13:14:19 +0900	[thread overview]
Message-ID: <20161230041421.24448-3-andi.shyti@samsung.com> (raw)
In-Reply-To: <20161230041421.24448-1-andi.shyti@samsung.com>

Commit 5db7e3bb87df ("pinctrl: dt-bindings: samsung: Add header with
values used for configuration") has added a header file for defining the
pinctrl values in order to avoid hardcoded settings in the Exynos
DTS related files.

Extend samsung.h to the Exynos5433 for drive strength values
which are strictly related to the particular SoC and may defer
from others.

Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
---
 include/dt-bindings/pinctrl/samsung.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/include/dt-bindings/pinctrl/samsung.h b/include/dt-bindings/pinctrl/samsung.h
index 6276eb785e2b..e0ebb20ffdd3 100644
--- a/include/dt-bindings/pinctrl/samsung.h
+++ b/include/dt-bindings/pinctrl/samsung.h
@@ -45,6 +45,20 @@
 #define EXYNOS5420_PIN_DRV_LV3		2
 #define EXYNOS5420_PIN_DRV_LV4		3
 
+/* Drive strengths for Exynos5433 */
+#define EXYNOS5433_PIN_DRV_FAST_SR1	0
+#define EXYNOS5433_PIN_DRV_FAST_SR2	1
+#define EXYNOS5433_PIN_DRV_FAST_SR3	2
+#define EXYNOS5433_PIN_DRV_FAST_SR4	3
+#define EXYNOS5433_PIN_DRV_FAST_SR5	4
+#define EXYNOS5433_PIN_DRV_FAST_SR6	5
+#define EXYNOS5433_PIN_DRV_SLOW_SR1	8
+#define EXYNOS5433_PIN_DRV_SLOW_SR2	9
+#define EXYNOS5433_PIN_DRV_SLOW_SR3	0xa
+#define EXYNOS5433_PIN_DRV_SLOW_SR4	0xb
+#define EXYNOS5433_PIN_DRV_SLOW_SR5	0xc
+#define EXYNOS5433_PIN_DRV_SLOW_SR6	0xf
+
 #define EXYNOS_PIN_FUNC_INPUT		0
 #define EXYNOS_PIN_FUNC_OUTPUT		1
 #define EXYNOS_PIN_FUNC_2		2
-- 
2.11.0

  parent reply	other threads:[~2016-12-30  4:15 UTC|newest]

Thread overview: 84+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20161230041426epcas1p1a8564e969a8f6a1746a3af9b26aac99f@epcas1p1.samsung.com>
2016-12-30  4:14 ` [PATCH v2 0/4] Use Exynos macros for pinctrl settings Andi Shyti
2016-12-30  4:14   ` Andi Shyti
2016-12-30  4:14   ` Andi Shyti
     [not found]   ` <CGME20161230041426epcas1p1f827d3cee8b607d81e9921b412ddf301@epcas1p1.samsung.com>
2016-12-30  4:14     ` [PATCH v2 1/4] pinctrl: samsung: Fix the width of PINCFG_TYPE_DRV bitfields for Exynos5433 Andi Shyti
2016-12-30  4:14       ` Andi Shyti
2016-12-30  4:14       ` Andi Shyti
2016-12-30 13:28       ` Linus Walleij
2016-12-30 13:28         ` Linus Walleij
2016-12-30 13:28         ` Linus Walleij
2016-12-30 15:09         ` Krzysztof Kozlowski
2016-12-30 15:09           ` Krzysztof Kozlowski
2016-12-30 15:09           ` Krzysztof Kozlowski
2016-12-30 15:09           ` Krzysztof Kozlowski
2017-01-03  9:45           ` Andi Shyti
2017-01-03  9:45             ` Andi Shyti
2017-01-03  9:45             ` Andi Shyti
2017-01-03  9:45             ` Andi Shyti
2017-02-24  0:22         ` Chanwoo Choi
2017-02-24  0:22           ` Chanwoo Choi
2017-02-24  0:22           ` Chanwoo Choi
2017-02-24  0:22           ` Chanwoo Choi
2017-03-14 13:47           ` Linus Walleij
2017-03-14 13:47             ` Linus Walleij
2017-03-14 13:47             ` Linus Walleij
2017-03-14 13:47             ` Linus Walleij
2017-03-14 14:27             ` Krzysztof Kozlowski
2017-03-14 14:27               ` Krzysztof Kozlowski
2017-03-14 14:27               ` Krzysztof Kozlowski
2017-03-15 13:52               ` Linus Walleij
2017-03-15 13:52                 ` Linus Walleij
2017-03-15 13:52                 ` Linus Walleij
2017-03-15 13:52                 ` Linus Walleij
     [not found]   ` <CGME20161230041427epcas1p1e4d0dd5e7f9928664c664b7850dbd87a@epcas1p1.samsung.com>
2016-12-30  4:14     ` Andi Shyti [this message]
2016-12-30  4:14       ` [PATCH v2 2/4] pinctrl: dt-bindings: samsung: add drive strength macros " Andi Shyti
2016-12-30  6:37       ` Chanwoo Choi
2016-12-30  6:37         ` Chanwoo Choi
2016-12-30  6:37         ` Chanwoo Choi
2016-12-30 13:30       ` Linus Walleij
2016-12-30 13:30         ` Linus Walleij
2016-12-30 13:30         ` Linus Walleij
2016-12-30 13:30         ` Linus Walleij
2017-01-06  6:48         ` Krzysztof Kozlowski
2017-01-06  6:48           ` Krzysztof Kozlowski
2017-01-06  6:48           ` Krzysztof Kozlowski
2017-01-06  6:48           ` Krzysztof Kozlowski
     [not found]   ` <CGME20161230041427epcas1p1151d6e28fac143c63efaf4f7c8ed432d@epcas1p1.samsung.com>
2016-12-30  4:14     ` [PATCH v2 3/4] ARM64: dts: exynos5433: use macros for pinctrl configuration on Exynos5433 Andi Shyti
2016-12-30  4:14       ` Andi Shyti
2016-12-30  6:38       ` Chanwoo Choi
2016-12-30  6:38         ` Chanwoo Choi
2016-12-30  6:38         ` Chanwoo Choi
2016-12-30 13:32       ` Linus Walleij
2016-12-30 13:32         ` Linus Walleij
2016-12-30 13:32         ` Linus Walleij
2016-12-30 15:17         ` Krzysztof Kozlowski
2016-12-30 15:17           ` Krzysztof Kozlowski
2016-12-30 15:17           ` Krzysztof Kozlowski
2017-01-03  8:24           ` Linus Walleij
2017-01-03  8:24             ` Linus Walleij
2017-01-03  8:24             ` Linus Walleij
2017-01-05 20:08             ` Krzysztof Kozlowski
2017-01-05 20:08               ` Krzysztof Kozlowski
2017-01-05 20:08               ` Krzysztof Kozlowski
2017-01-05 20:08               ` Krzysztof Kozlowski
2017-01-06  2:23               ` Andi Shyti
2017-01-06  2:23                 ` Andi Shyti
2017-01-06  2:23                 ` Andi Shyti
2017-01-06  2:23                 ` Andi Shyti
2017-01-06  6:18                 ` Krzysztof Kozlowski
2017-01-06  6:18                   ` Krzysztof Kozlowski
2017-01-06  6:18                   ` Krzysztof Kozlowski
2016-12-30 20:28         ` Andi Shyti
2016-12-30 20:28           ` Andi Shyti
2016-12-30 20:28           ` Andi Shyti
2017-01-06  6:48       ` Krzysztof Kozlowski
2017-01-06  6:48         ` Krzysztof Kozlowski
2017-01-06  6:48         ` Krzysztof Kozlowski
     [not found]   ` <CGME20161230041427epcas1p135fd1703c0bb0cc47a60f4c619b49973@epcas1p1.samsung.com>
2016-12-30  4:14     ` [PATCH v2 4/4] ARM64: dts: TM2: comply to the samsung pinctrl naming convention Andi Shyti
2016-12-30  4:14       ` Andi Shyti
2016-12-30  6:41       ` Chanwoo Choi
2016-12-30  6:41         ` Chanwoo Choi
2016-12-30  6:41         ` Chanwoo Choi
2017-01-06  6:49       ` Krzysztof Kozlowski
2017-01-06  6:49         ` Krzysztof Kozlowski
2017-01-06  6:49         ` Krzysztof Kozlowski

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=20161230041421.24448-3-andi.shyti@samsung.com \
    --to=andi.shyti@samsung.com \
    --cc=andi@etezian.org \
    --cc=catalin.marinas@arm.com \
    --cc=cw00.choi@samsung.com \
    --cc=devicetree@vger.kernel.org \
    --cc=javier@osg.samsung.com \
    --cc=kgene@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=s.nawrocki@samsung.com \
    --cc=stable@vger.kernel.org \
    --cc=tomasz.figa@gmail.com \
    --cc=will.deacon@arm.com \
    /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.