diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2017-03-22 23:35:39 +0100 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2017-03-24 19:52:00 +0100 |
commit | 313197d7079ae5046740909133b1cd89f81e2533 (patch) | |
tree | aad922b97b671381ef38291c41abd07b3f3d9311 /target/linux/brcm2708/patches-4.9/030-pinctrl-bcm2835-add-pull-defines-to-dt-bindings.patch | |
parent | 322a7226d32222e19b2a633c05f56fa0f06da435 (diff) | |
download | upstream-313197d7079ae5046740909133b1cd89f81e2533.tar.gz upstream-313197d7079ae5046740909133b1cd89f81e2533.tar.bz2 upstream-313197d7079ae5046740909133b1cd89f81e2533.zip |
brcm2708: backport upstream ARM dts commits
This gets us in sync with dts from kernel 4.11. Two patches were already
backported earlier.
I decided to use 03x prefix as it's kind of similar to the 3xx prefix:
3xx - architecture specific patches
It isn't any documented or strict rule though. We don't need to stick to
it if we hit any problems.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/patches-4.9/030-pinctrl-bcm2835-add-pull-defines-to-dt-bindings.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.9/030-pinctrl-bcm2835-add-pull-defines-to-dt-bindings.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.9/030-pinctrl-bcm2835-add-pull-defines-to-dt-bindings.patch b/target/linux/brcm2708/patches-4.9/030-pinctrl-bcm2835-add-pull-defines-to-dt-bindings.patch new file mode 100644 index 0000000000..e300cf6a37 --- /dev/null +++ b/target/linux/brcm2708/patches-4.9/030-pinctrl-bcm2835-add-pull-defines-to-dt-bindings.patch @@ -0,0 +1,44 @@ +From 396a3529800af0817c6af2eb65c542588a1f7fb7 Mon Sep 17 00:00:00 2001 +From: Gerd Hoffmann <kraxel@redhat.com> +Date: Mon, 19 Sep 2016 10:43:17 +0200 +Subject: [PATCH] pinctrl: bcm2835: add pull defines to dt bindings + +Also delete (unused) private enum from driver. +The pull defines can be used instead if needed. + +Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> +Signed-off-by: Eric Anholt <eric@anholt.net> +Acked-by: Linus Walleij <linus.walleij@linaro.org> +Acked-by: Stefan Wahren <stefan.wahren@i2se.com> +--- + drivers/pinctrl/bcm/pinctrl-bcm2835.c | 6 ------ + include/dt-bindings/pinctrl/bcm2835.h | 5 +++++ + 2 files changed, 5 insertions(+), 6 deletions(-) + +--- a/drivers/pinctrl/bcm/pinctrl-bcm2835.c ++++ b/drivers/pinctrl/bcm/pinctrl-bcm2835.c +@@ -76,12 +76,6 @@ enum bcm2835_pinconf_param { + BCM2835_PINCONF_PARAM_PULL, + }; + +-enum bcm2835_pinconf_pull { +- BCM2835_PINCONFIG_PULL_NONE, +- BCM2835_PINCONFIG_PULL_DOWN, +- BCM2835_PINCONFIG_PULL_UP, +-}; +- + #define BCM2835_PINCONF_PACK(_param_, _arg_) ((_param_) << 16 | (_arg_)) + #define BCM2835_PINCONF_UNPACK_PARAM(_conf_) ((_conf_) >> 16) + #define BCM2835_PINCONF_UNPACK_ARG(_conf_) ((_conf_) & 0xffff) +--- a/include/dt-bindings/pinctrl/bcm2835.h ++++ b/include/dt-bindings/pinctrl/bcm2835.h +@@ -24,4 +24,9 @@ + #define BCM2835_FSEL_ALT2 6 + #define BCM2835_FSEL_ALT3 7 + ++/* brcm,pull property */ ++#define BCM2835_PUD_OFF 0 ++#define BCM2835_PUD_DOWN 1 ++#define BCM2835_PUD_UP 2 ++ + #endif /* __DT_BINDINGS_PINCTRL_BCM2835_H__ */ |