* [PATCH 0/4] ARM: bcm2835: DT improvements
@ 2015-01-16 16:48 Stefan Wahren
2015-01-16 16:48 ` [PATCH 1/4] dt-bindings: Add vendor prefix for Raspberry Pi Stefan Wahren
[not found] ` <1421426897-27225-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
0 siblings, 2 replies; 5+ messages in thread
From: Stefan Wahren @ 2015-01-16 16:48 UTC (permalink / raw)
To: swarren, lee, linux, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-kernel, linux-rpi-kernel
This patch series contains DT improvements for the Raspberry Pi.
Patch 1,2: Add missing vendor prefix and root compatible properties
Patch 3,4: Use constants for pin function instead of error-prone numbers
Stefan Wahren (4):
dt-bindings: Add vendor prefix for Raspberry Pi
dt-bindings: Add root properties for Raspberry Pi B and B+
ARM: bcm2835: Add header file for pinctrl constants
ARM: bcm2835: Use pinctrl header
Documentation/devicetree/bindings/arm/bcm2835.txt | 10 ++++++--
.../devicetree/bindings/vendor-prefixes.txt | 1 +
arch/arm/boot/dts/bcm2835-rpi-b-plus.dts | 4 +--
arch/arm/boot/dts/bcm2835-rpi-b.dts | 4 +--
arch/arm/boot/dts/bcm2835-rpi.dtsi | 8 +++---
arch/arm/boot/dts/bcm2835.dtsi | 3 ++-
include/dt-bindings/pinctrl/bcm2835.h | 27 ++++++++++++++++++++
7 files changed, 46 insertions(+), 11 deletions(-)
create mode 100644 include/dt-bindings/pinctrl/bcm2835.h
--
1.7.9.5
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/4] dt-bindings: Add vendor prefix for Raspberry Pi
2015-01-16 16:48 [PATCH 0/4] ARM: bcm2835: DT improvements Stefan Wahren
@ 2015-01-16 16:48 ` Stefan Wahren
[not found] ` <1421426897-27225-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Wahren @ 2015-01-16 16:48 UTC (permalink / raw)
To: swarren, lee, linux, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: devicetree, linux-kernel, linux-rpi-kernel
Since the prefix is already in use, we need to add it in the
vendor list.
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
---
.../devicetree/bindings/vendor-prefixes.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 5d2251a..0546f73 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.txt
+++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
@@ -136,6 +136,7 @@ radxa Radxa
raidsonic RaidSonic Technology GmbH
ralink Mediatek/Ralink Technology Corp.
ramtron Ramtron International
+raspberrypi Raspberry Pi Foundation
realtek Realtek Semiconductor Corp.
renesas Renesas Electronics Corporation
ricoh Ricoh Co. Ltd.
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
[parent not found: <1421426897-27225-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>]
* [PATCH 2/4] dt-bindings: Add root properties for Raspberry Pi B and B+
[not found] ` <1421426897-27225-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
@ 2015-01-16 16:48 ` Stefan Wahren
2015-01-18 3:05 ` Stephen Warren
2015-01-16 16:48 ` [PATCH 3/4] ARM: bcm2835: Add header file for pinctrl constants Stefan Wahren
1 sibling, 1 reply; 5+ messages in thread
From: Stefan Wahren @ 2015-01-16 16:48 UTC (permalink / raw)
To: swarren-3lzwWm7+Weoh9ZMKESR00Q, lee-DgEjT+Ai2ygdnm+yROfE0A,
linux-lFZ/pmaqli7XmaaqVzeoHQ, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
galak-sgV2jX0FEOL9JmXXK+q4OQ
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
This patch adds root compatible properties for the following boards:
- Raspberry Pi Model B
- Raspberry Pi Model B+
Signed-off-by: Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org>
---
Documentation/devicetree/bindings/arm/bcm2835.txt | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/arm/bcm2835.txt b/Documentation/devicetree/bindings/arm/bcm2835.txt
index ac68348..789aca2 100644
--- a/Documentation/devicetree/bindings/arm/bcm2835.txt
+++ b/Documentation/devicetree/bindings/arm/bcm2835.txt
@@ -1,8 +1,14 @@
Broadcom BCM2835 device tree bindings
-------------------------------------------
-Boards with the BCM2835 SoC shall have the following properties:
+Raspberry Pi Model B
+Required root node properties:
+compatible = "raspberrypi,model-b", "brcm,bcm2835";
-Required root node property:
+Raspberry Pi Model B+
+Required root node properties:
+compatible = "raspberrypi,model-b-plus", "brcm,bcm2835";
+Generic BCM2835 board
+Required root node properties:
compatible = "brcm,bcm2835";
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/4] dt-bindings: Add root properties for Raspberry Pi B and B+
2015-01-16 16:48 ` [PATCH 2/4] dt-bindings: Add root properties for Raspberry Pi B and B+ Stefan Wahren
@ 2015-01-18 3:05 ` Stephen Warren
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Warren @ 2015-01-18 3:05 UTC (permalink / raw)
To: Stefan Wahren
Cc: lee, linux, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, linux-kernel, linux-rpi-kernel
On 01/16/2015 09:48 AM, Stefan Wahren wrote:
> This patch adds root compatible properties for the following boards:
> - Raspberry Pi Model B
> - Raspberry Pi Model B+
We may as well add all the models while at it. I think the following is
a complete list so far:
"model-b-i2c0": early model B with I2C0 rather than I2C1 routed to the
expansion header.
model-b
model-a
model-b-rev2
model-b-plus
compute-module
model-a-plus
FWIW, take a look at the following file to see U-Boot's board
identification code for the various models. Ideally we'll create
matching DT files in the kernel for all of the DT filenames there, sometime.
> http://git.denx.de/?p=u-boot.git;a=blob;f=board/raspberrypi/rpi/rpi.c;h=c18271fce823f7523a8958352701bfe3ea7086c7;hb=HEAD#l82
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 3/4] ARM: bcm2835: Add header file for pinctrl constants
[not found] ` <1421426897-27225-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
2015-01-16 16:48 ` [PATCH 2/4] dt-bindings: Add root properties for Raspberry Pi B and B+ Stefan Wahren
@ 2015-01-16 16:48 ` Stefan Wahren
1 sibling, 0 replies; 5+ messages in thread
From: Stefan Wahren @ 2015-01-16 16:48 UTC (permalink / raw)
To: swarren-3lzwWm7+Weoh9ZMKESR00Q, lee-DgEjT+Ai2ygdnm+yROfE0A,
linux-lFZ/pmaqli7XmaaqVzeoHQ, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
galak-sgV2jX0FEOL9JmXXK+q4OQ
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
This new header file defines pincontrol constants to use
from bcm2835 DTS files for pincontrol properties option.
Signed-off-by: Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org>
---
include/dt-bindings/pinctrl/bcm2835.h | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 include/dt-bindings/pinctrl/bcm2835.h
diff --git a/include/dt-bindings/pinctrl/bcm2835.h b/include/dt-bindings/pinctrl/bcm2835.h
new file mode 100644
index 0000000..6f0bc37
--- /dev/null
+++ b/include/dt-bindings/pinctrl/bcm2835.h
@@ -0,0 +1,27 @@
+/*
+ * Header providing constants for bcm2835 pinctrl bindings.
+ *
+ * Copyright (C) 2015 Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org>
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+#ifndef __DT_BINDINGS_PINCTRL_BCM2835_H__
+#define __DT_BINDINGS_PINCTRL_BCM2835_H__
+
+/* brcm,function property */
+#define BCM2835_FSEL_GPIO_IN 0
+#define BCM2835_FSEL_GPIO_OUT 1
+#define BCM2835_FSEL_ALT5 2
+#define BCM2835_FSEL_ALT4 3
+#define BCM2835_FSEL_ALT0 4
+#define BCM2835_FSEL_ALT1 5
+#define BCM2835_FSEL_ALT2 6
+#define BCM2835_FSEL_ALT3 7
+
+#endif /* __DT_BINDINGS_PINCTRL_BCM2835_H__ */
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-01-18 3:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-16 16:48 [PATCH 0/4] ARM: bcm2835: DT improvements Stefan Wahren
2015-01-16 16:48 ` [PATCH 1/4] dt-bindings: Add vendor prefix for Raspberry Pi Stefan Wahren
[not found] ` <1421426897-27225-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
2015-01-16 16:48 ` [PATCH 2/4] dt-bindings: Add root properties for Raspberry Pi B and B+ Stefan Wahren
2015-01-18 3:05 ` Stephen Warren
2015-01-16 16:48 ` [PATCH 3/4] ARM: bcm2835: Add header file for pinctrl constants Stefan Wahren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).