Skip to contentSkip to conversation

[RESEND PATCH v2 0/3]

PATCH RESEND Applied Neil Armstrong 3 participants 6 messages Oct 5, 2016 – Oct 20, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover [RESEND PATCH v2 0/3]

This is a resend of v2 with the actual changes on patch number 3.

This patchset adds support for the reset controller in the Oxford Semiconductor OX820 SoC, big brother of the OX810SE.

Since this driver uses a regmap access, it's important to tag each compatible SoC since the regmap offset could differ in later SoCs.

This patchet also moves the reset indices to a clean DT include file.

Changes since v1 at: http://lkml.kernel.org/r/20160909131955.27334-1-narmstrong at baylibre.com
- Reformat bindings
- Add reference to include files in bindings

Neil Armstrong (3):
reset: oxnas: Add OX820 support
dt-bindings: reset: oxnas: Add include file with reset indexes
dt-bindings: reset: oxnas: Update for OX820

 .../devicetree/bindings/reset/oxnas,reset.txt      | 44 ++++--------------
 drivers/reset/reset-oxnas.c                        |  1 +
 include/dt-bindings/reset/oxsemi,ox810se.h         | 53 ++++++++++++++++++++++
 include/dt-bindings/reset/oxsemi,ox820.h           | 53 ++++++++++++++++++++++
 4 files changed, 116 insertions(+), 35 deletions(-)
 create mode 100644 include/dt-bindings/reset/oxsemi,ox810se.h
 create mode 100644 include/dt-bindings/reset/oxsemi,ox820.h
Signature · 1 line
2.7.0
#1 lore raw

PATCH RESEND v2 1/3 reset: oxnas: Add OX820 support

In order to support the Oxford Semiconductor OX820 SoC, add a new compatible string.

---
 drivers/reset/reset-oxnas.c | 1 +
 1 file changed, 1 insertion(+)
drivers/reset/reset-oxnas.c +1 -0
index 9449805..0d9036d 100644
@@ -80,6 +80,7 @@ static const struct reset_control_ops oxnas_reset_ops = {
 
 static const struct of_device_id oxnas_reset_dt_ids[] = {
 	 { .compatible = "oxsemi,ox810se-reset", },
+	 { .compatible = "oxsemi,ox820-reset", },
 	 { /* sentinel */ },
 };
 MODULE_DEVICE_TABLE(of, oxnas_reset_dt_ids);
Signature · 1 line
2.7.0
#3 lore raw

PATCH RESEND v2 2/3 dt-bindings: reset: oxnas: Add include file with reset indexes

In reply to Neil Armstrong

Add DT include file for Oxford Semiconductor OX810SE and OX820 reset controller support.

---
 include/dt-bindings/reset/oxsemi,ox810se.h | 53 ++++++++++++++++++++++++++++++
 include/dt-bindings/reset/oxsemi,ox820.h   | 53 ++++++++++++++++++++++++++++++
 2 files changed, 106 insertions(+)
 create mode 100644 include/dt-bindings/reset/oxsemi,ox810se.h
 create mode 100644 include/dt-bindings/reset/oxsemi,ox820.h
include/dt-bindings/reset/oxsemi,ox810se.h new file +53 -0
new file mode 100644
index 0000000..960c26e
@@ -0,0 +1,53 @@
+/*
+ * Copyright (C) 2016 Neil Armstrong <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef DT_RESET_OXSEMI_OX810SE_H
+#define DT_RESET_OXSEMI_OX810SE_H
+
+#define RESET_ARM	0
+#define RESET_COPRO	1
+/* Reserved		2 */
+/* Reserved		3 */
+#define RESET_USBHS	4
+#define RESET_USBHSPHY	5
+#define RESET_MAC	6
+#define RESET_PCI	7
+#define RESET_DMA	8
+#define RESET_DPE	9
+#define RESET_DDR	10
+#define RESET_SATA	11
+#define RESET_SATA_LINK	12
+#define RESET_SATA_PHY	13
+ /* Reserved		14 */
+#define RESET_NAND	15
+#define RESET_GPIO	16
+#define RESET_UART1	17
+#define RESET_UART2	18
+#define RESET_MISC	19
+#define RESET_I2S	20
+#define RESET_AHB_MON	21
+#define RESET_UART3	22
+#define RESET_UART4	23
+#define RESET_SGDMA	24
+/* Reserved		25 */
+/* Reserved		26 */
+/* Reserved		27 */
+/* Reserved		28 */
+/* Reserved		29 */
+/* Reserved		30 */
+#define RESET_BUS	31
+
+#endif /* DT_RESET_OXSEMI_OX810SE_H */
include/dt-bindings/reset/oxsemi,ox820.h new file +53 -0

53 lines not on this page · raw message

Signature · 1 line
2.7.0
#4 lore raw

PATCH RESEND v2 3/3 dt-bindings: reset: oxnas: Update for OX820

In reply to Neil Armstrong

Add new compatible string for reset and sys-ctrl for the Oxford Semiconductor OX820 Support.
Drop the OX810SE indices since they moved in a dedicated include file.

---
 .../devicetree/bindings/reset/oxnas,reset.txt      | 44 +++++-----------------
 1 file changed, 9 insertions(+), 35 deletions(-)
Documentation/devicetree/bindings/reset/oxnas,reset.txt +9 -35
index 6f06db9..d27ccb5 100644
@@ -5,45 +5,19 @@ Please also refer to reset.txt in this directory for common reset
 controller binding usage.
 
 Required properties:
-- compatible: Should be "oxsemi,ox810se-reset"
+- compatible: For OX810SE, should be "oxsemi,ox810se-reset"
+	      For OX820, should be "oxsemi,ox820-reset"
 - #reset-cells: 1, see below
 
 Parent node should have the following properties :
-- compatible: Should be "oxsemi,ox810se-sys-ctrl", "syscon", "simple-mfd"
+- compatible: For OX810SE, should be :
+			"oxsemi,ox810se-sys-ctrl", "syscon", "simple-mfd"
+	      For OX820, should be :
+			"oxsemi,ox820-sys-ctrl", "syscon", "simple-mfd"
 
-For OX810SE, the indices are :
- - 0 : ARM
- - 1 : COPRO
- - 2 : Reserved
- - 3 : Reserved
- - 4 : USBHS
- - 5 : USBHSPHY
- - 6 : MAC
- - 7 : PCI
- - 8 : DMA
- - 9 : DPE
- - 10 : DDR
- - 11 : SATA
- - 12 : SATA_LINK
- - 13 : SATA_PHY
- - 14 : Reserved
- - 15 : NAND
- - 16 : GPIO
- - 17 : UART1
- - 18 : UART2
- - 19 : MISC
- - 20 : I2S
- - 21 : AHB_MON
- - 22 : UART3
- - 23 : UART4
- - 24 : SGDMA
- - 25 : Reserved
- - 26 : Reserved
- - 27 : Reserved
- - 28 : Reserved
- - 29 : Reserved
- - 30 : Reserved
- - 31 : BUS
+Reset indices are in dt-bindings include files :
+- For OX810SE: include/dt-bindings/reset/oxsemi,ox810se.h
+- For OX820: include/dt-bindings/reset/oxsemi,ox820.h
 
 example:
 
Signature · 1 line
2.7.0
maintainer Acked-by on v2 3/3
#5 lore raw

Re: [RESEND PATCH v2 3/3] dt-bindings: reset: oxnas: Update for OX820

Quoted 8 lines · Neil Armstrong

Add new compatible string for reset and sys-ctrl for the Oxford Semiconductor OX820 Support.
Drop the OX810SE indices since they moved in a dedicated include file.

---
 .../devicetree/bindings/reset/oxnas,reset.txt      | 44 +++++-----------------
 1 file changed, 9 insertions(+), 35 deletions(-)
maintainer Applied
#2 lore raw

Re: [RESEND PATCH v2 1/3] reset: oxnas: Add OX820 support

In reply to Neil Armstrong

Am Mittwoch, den 05.10.2016, 17:27 +0200 schrieb Neil Armstrong:

Quoted 13 lines

In order to support the Oxford Semiconductor OX820 SoC, add a new compatible string.

---
 drivers/reset/reset-oxnas.c | 1 +
 1 file changed, 1 insertion(+)
drivers/reset/reset-oxnas.c +0 -0
index 9449805..0d9036d 100644

drivers/reset/reset-oxnas.c static const struct reset_control_ops oxnas_reset_ops = { · line 86

Quoted 7 lines
drivers/reset/reset-oxnas.c +1 -0
@@ -80,6 +80,7 @@ static const struct reset_control_ops oxnas_reset_ops = {
 
 static const struct of_device_id oxnas_reset_dt_ids[] = {
 	 { .compatible = "oxsemi,ox810se-reset", },
+	 { .compatible = "oxsemi,ox820-reset", },
 	 { /* sentinel */ },
 };
 MODULE_DEVICE_TABLE(of, oxnas_reset_dt_ids);

Applied all three, thanks.

regards
Philipp