Linux RTC
 help / color / mirror / Atom feed
* [rtc-linux] [PATCH 00/28] MIPS Boston board support
@ 2015-11-30 16:21 Paul Burton
  2015-11-30 16:21 ` [rtc-linux] [PATCH 16/28] rtc: m41t80: add devicetree probe support Paul Burton
  2015-11-30 16:34 ` [rtc-linux] Re: [PATCH 00/28] MIPS Boston board support Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Paul Burton @ 2015-11-30 16:21 UTC (permalink / raw)
  To: linux-mips
  Cc: Paul Burton, Arnd Bergmann, Joshua Kinard, Alessandro Zummo,
	Jiri Slaby, Bjorn Helgaas, Zubair Lutfullah Kakakhel,
	Linus Walleij, Kumar Gala, Yijing Wang, Ian Campbell, Rob Herring,
	John Crispin, Jayachandran C, linux-spi, Geert Uytterhoeven,
	Ray Jui, Richard Cochran, Tejun Heo, Michal Simek,
	Andrew Bresticker, Russell Joyce, Thomas Gleixner, Grant Likely,
	Alexandre Belloni, linux-arm-kernel, Pawel Moll, linux-pci,
	Greg Kroah-Hartman, Ralf Baechle, Alexandre Courbot, Zhou Wang,
	Andrew Morton, Ley Foon Tan, devicetree, Jiang Liu, linux-serial,
	rtc-linux, Rob Herring, Mauro Carvalho Chehab, Wolfram Sang,
	Duc Dang, Frank Rowand, Vinod Koul, Markos Chandras, Michal Simek,
	Marc Zyngier, Dan Williams, Miguel Ojeda Sandonis,
	Lorenzo Pieralisi, linux-gpio, netdev, Mark Brown, linux-kernel,
	David S. Miller, Joe Perches, Jingoo Han, Hauke Mehrtens,
	Sören Brinkmann, dmaengine, Mark Rutland, Minghuan Lian,
	linux-i2c

This series introduces support for the Imagination Technologies MIPS
Boston development board. Boston is an FPGA-based development board
akin to the much older Malta board, built around a Xilinx FPGA running
a MIPS CPU & other logic including a PCIe root port connected to an
Intel EG20T Platform Controller Hub. This provides a base set of
peripherals including SATA, USB, SD/MMC, ethernet, I2C & GPIOs. PCIe
slots are also present for expansion.

Paul Burton (28):
  serial: earlycon: allow MEM32 I/O for DT earlycon
  dt-bindings: ascii-lcd: Document a binding for simple ASCII LCDs
  auxdisplay: driver for simple memory mapped ASCII LCD displays
  MIPS: PCI: compatibility with ARM-like PCI host drivers
  PCI: xilinx: keep references to both IRQ domains
  PCI: xilinx: unify INTx & MSI interrupt FIFO decode
  PCI: xilinx: always clear interrupt decode register
  PCI: xilinx: fix INTX irq dispatch
  PCI: xilinx: allow build on MIPS platforms
  misc: pch_phub: allow build on MIPS platforms
  dmaengine: pch_dma: allow build on MIPS platforms
  gpio: pch: allow build on MIPS platforms
  gpio: pch: allow use from device tree
  i2c: eg20t: allow build on MIPS platforms
  i2c: eg20t: set i2c_adapter->dev.of_node
  rtc: m41t80: add devicetree probe support
  spi: topcliff-pch: allow build for MIPS platforms
  ptp: pch: allow build on MIPS platforms
  net: pch_gbe: allow build on MIPS platforms
  net: pch_gbe: clear interrupt FIFO during probe
  net: pch_gbe: mark Minnow PHY reset GPIO active low
  net: pch_gbe: pull PHY GPIO handling out of Minnow code
  net: pch_gbe: always reset PHY along with MAC
  net: pch_gbe: add device tree support
  net: pch_gbe: allow longer for resets
  MIPS: support for generating FIT (.itb) images
  dt-bindings: mips: img,boston: Document img,boston binding
  MIPS: Boston board support

 Documentation/devicetree/bindings/ascii-lcd.txt    |  10 +
 .../devicetree/bindings/mips/img/boston.txt        |  15 ++
 MAINTAINERS                                        |  14 ++
 arch/mips/Kbuild.platforms                         |   1 +
 arch/mips/Kconfig                                  |  45 ++++
 arch/mips/Makefile                                 |   6 +-
 arch/mips/boot/Makefile                            |  61 ++++++
 arch/mips/boot/dts/Makefile                        |   1 +
 arch/mips/boot/dts/img/Makefile                    |   7 +
 arch/mips/boot/dts/img/boston.dts                  | 201 ++++++++++++++++++
 arch/mips/boot/skeleton.its                        |  24 +++
 arch/mips/boston/Makefile                          |  12 ++
 arch/mips/boston/Platform                          |   8 +
 arch/mips/boston/init.c                            |  75 +++++++
 arch/mips/boston/int.c                             |  33 +++
 arch/mips/boston/time.c                            |  89 ++++++++
 arch/mips/boston/vmlinux.its                       |  23 ++
 arch/mips/configs/boston_defconfig                 | 170 +++++++++++++++
 .../asm/mach-boston/cpu-feature-overrides.h        |  26 +++
 arch/mips/include/asm/mach-boston/irq.h            |  18 ++
 arch/mips/include/asm/mach-boston/spaces.h         |  20 ++
 arch/mips/include/asm/pci.h                        |  67 +++++-
 arch/mips/lib/iomap-pci.c                          |   2 +-
 arch/mips/pci/Makefile                             |   6 +
 arch/mips/pci/pci-generic.c                        | 138 ++++++++++++
 arch/mips/pci/pci-legacy.c                         | 232 +++++++++++++++++++++
 arch/mips/pci/pci.c                                | 226 +-------------------
 drivers/auxdisplay/Kconfig                         |   7 +
 drivers/auxdisplay/Makefile                        |   1 +
 drivers/auxdisplay/ascii-lcd.c                     | 230 ++++++++++++++++++++
 drivers/dma/Kconfig                                |   2 +-
 drivers/gpio/Kconfig                               |   2 +-
 drivers/gpio/gpio-pch.c                            |   1 +
 drivers/i2c/busses/Kconfig                         |   2 +-
 drivers/i2c/busses/i2c-eg20t.c                     |   1 +
 drivers/misc/Kconfig                               |   2 +-
 drivers/net/ethernet/oki-semi/pch_gbe/Kconfig      |   2 +-
 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h    |   4 +-
 .../net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c   |  74 +++++--
 drivers/of/fdt.c                                   |   2 +-
 drivers/pci/host/Kconfig                           |   2 +-
 drivers/pci/host/pcie-xilinx.c                     | 123 +++++------
 drivers/ptp/Kconfig                                |   2 +-
 drivers/rtc/rtc-m41t80.c                           |  26 +++
 drivers/spi/Kconfig                                |   2 +-
 drivers/tty/serial/Makefile                        |   1 +
 drivers/tty/serial/earlycon.c                      |  15 +-
 include/linux/serial_core.h                        |   2 +-
 48 files changed, 1720 insertions(+), 313 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/ascii-lcd.txt
 create mode 100644 Documentation/devicetree/bindings/mips/img/boston.txt
 create mode 100644 arch/mips/boot/dts/img/Makefile
 create mode 100644 arch/mips/boot/dts/img/boston.dts
 create mode 100644 arch/mips/boot/skeleton.its
 create mode 100644 arch/mips/boston/Makefile
 create mode 100644 arch/mips/boston/Platform
 create mode 100644 arch/mips/boston/init.c
 create mode 100644 arch/mips/boston/int.c
 create mode 100644 arch/mips/boston/time.c
 create mode 100644 arch/mips/boston/vmlinux.its
 create mode 100644 arch/mips/configs/boston_defconfig
 create mode 100644 arch/mips/include/asm/mach-boston/cpu-feature-overrides.h
 create mode 100644 arch/mips/include/asm/mach-boston/irq.h
 create mode 100644 arch/mips/include/asm/mach-boston/spaces.h
 create mode 100644 arch/mips/pci/pci-generic.c
 create mode 100644 arch/mips/pci/pci-legacy.c
 create mode 100644 drivers/auxdisplay/ascii-lcd.c

-- 
2.6.2

-- 
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [rtc-linux] [PATCH 16/28] rtc: m41t80: add devicetree probe support
  2015-11-30 16:21 [rtc-linux] [PATCH 00/28] MIPS Boston board support Paul Burton
@ 2015-11-30 16:21 ` Paul Burton
  2015-11-30 16:56   ` [rtc-linux] " Alexandre Belloni
  2015-11-30 16:34 ` [rtc-linux] Re: [PATCH 00/28] MIPS Boston board support Mark Brown
  1 sibling, 1 reply; 5+ messages in thread
From: Paul Burton @ 2015-11-30 16:21 UTC (permalink / raw)
  To: linux-mips
  Cc: Paul Burton, Alexandre Belloni, rtc-linux, Alessandro Zummo,
	linux-kernel

Allow the m41t80 RTC driver to be probed via devicetree.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
---

 drivers/rtc/rtc-m41t80.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c
index a82937e..d3b29fc 100644
--- a/drivers/rtc/rtc-m41t80.c
+++ b/drivers/rtc/rtc-m41t80.c
@@ -20,6 +20,7 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/rtc.h>
 #include <linux/slab.h>
 #include <linux/mutex.h>
@@ -85,6 +86,14 @@ static const struct i2c_device_id m41t80_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, m41t80_id);
 
+#ifdef CONFIG_OF
+static const struct of_device_id m41t80_of_match[] = {
+	{ .compatible = "st,m41t81s", .name = "m41t81s" },
+	{ }
+};
+MODULE_DEVICE_TABLE(of, m41t80_of_match);
+#endif
+
 struct m41t80_data {
 	u8 features;
 	struct rtc_device *rtc;
@@ -637,6 +646,22 @@ static int m41t80_probe(struct i2c_client *client,
 	struct rtc_device *rtc = NULL;
 	struct rtc_time tm;
 	struct m41t80_data *clientdata = NULL;
+	const struct of_device_id *of_id;
+
+	if (!id && client->dev.of_node) {
+		of_id = of_match_node(of_match_ptr(m41t80_of_match),
+				      client->dev.of_node);
+		for (id = m41t80_id; id->name[0]; id++) {
+			if (strcmp(of_id->name, id->name) == 0)
+				break;
+		}
+		if (!id->name[0])
+			id = NULL;
+	}
+	if (!id) {
+		dev_err(&client->dev, "No i2c_device_id found\n");
+		return -EINVAL;
+	}
 
 	if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C
 				     | I2C_FUNC_SMBUS_BYTE_DATA))
@@ -728,6 +753,7 @@ static int m41t80_remove(struct i2c_client *client)
 static struct i2c_driver m41t80_driver = {
 	.driver = {
 		.name = "rtc-m41t80",
+		.of_match_table = of_match_ptr(m41t80_of_match),
 	},
 	.probe = m41t80_probe,
 	.remove = m41t80_remove,
-- 
2.6.2

-- 
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [rtc-linux] Re: [PATCH 00/28] MIPS Boston board support
  2015-11-30 16:21 [rtc-linux] [PATCH 00/28] MIPS Boston board support Paul Burton
  2015-11-30 16:21 ` [rtc-linux] [PATCH 16/28] rtc: m41t80: add devicetree probe support Paul Burton
@ 2015-11-30 16:34 ` Mark Brown
  2015-12-10 16:26   ` Linus Walleij
  1 sibling, 1 reply; 5+ messages in thread
From: Mark Brown @ 2015-11-30 16:34 UTC (permalink / raw)
  To: Paul Burton
  Cc: linux-mips, Arnd Bergmann, Joshua Kinard, Alessandro Zummo,
	Jiri Slaby, Bjorn Helgaas, Zubair Lutfullah Kakakhel,
	Linus Walleij, Kumar Gala, Yijing Wang, Ian Campbell, Rob Herring,
	John Crispin, Jayachandran C, linux-spi, Geert Uytterhoeven,
	Ray Jui, Richard Cochran, Tejun Heo, Michal Simek,
	Andrew Bresticker, Russell Joyce, Thomas Gleixner, Grant Likely,
	Alexandre Belloni, linux-arm-kernel, Pawel Moll, linux-pci,
	Greg Kroah-Hartman, Ralf Baechle, Alexandre Courbot, Zhou Wang,
	Andrew Morton, Ley Foon Tan, devicetree, Jiang Liu, linux-serial,
	rtc-linux, Rob Herring, Mauro Carvalho Chehab, Wolfram Sang,
	Duc Dang, Frank Rowand, Vinod Koul, Markos Chandras, Michal Simek,
	Marc Zyngier, Dan Williams, Miguel Ojeda Sandonis,
	Lorenzo Pieralisi, linux-gpio, netdev, linux-kernel,
	David S. Miller, Joe Perches, Jingoo Han, Hauke Mehrtens,
	Sören Brinkmann, dmaengine, Mark Rutland, Minghuan Lian,
	linux-i2c

[-- Attachment #1: Type: text/plain, Size: 1398 bytes --]

On Mon, Nov 30, 2015 at 04:21:25PM +0000, Paul Burton wrote:
> This series introduces support for the Imagination Technologies MIPS
> Boston development board. Boston is an FPGA-based development board
> akin to the much older Malta board, built around a Xilinx FPGA running
> a MIPS CPU & other logic including a PCIe root port connected to an
> Intel EG20T Platform Controller Hub. This provides a base set of
> peripherals including SATA, USB, SD/MMC, ethernet, I2C & GPIOs. PCIe
> slots are also present for expansion.

This is an insanely big CC list :(

What are the interdependencies here - does this really need to be one
patch series or can the individual driver changes go in separately?  The
latter is more normal, usually rather than a single patch series we just
have each driver sent by itself since that's usually easier to handle
and avoids the massive CC lists.

-- 
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [rtc-linux] Re: [PATCH 16/28] rtc: m41t80: add devicetree probe support
  2015-11-30 16:21 ` [rtc-linux] [PATCH 16/28] rtc: m41t80: add devicetree probe support Paul Burton
@ 2015-11-30 16:56   ` Alexandre Belloni
  0 siblings, 0 replies; 5+ messages in thread
From: Alexandre Belloni @ 2015-11-30 16:56 UTC (permalink / raw)
  To: Paul Burton, Wolfram Sang
  Cc: linux-mips, rtc-linux, Alessandro Zummo, linux-kernel

Hi,

On 30/11/2015 at 16:21:41 +0000, Paul Burton wrote :
> Allow the m41t80 RTC driver to be probed via devicetree.
> 

This patch is probably unnecessary as "m41t81s" is already part of
m41t80_id[] and will be matched with "st,m41t81s" by the i2c core. See
http://lxr.free-electrons.com/source/drivers/i2c/i2c-core.c#L700

I actually don't know how to get people to stop submitting that kind of
patches :)

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

-- 
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [rtc-linux] Re: [PATCH 00/28] MIPS Boston board support
  2015-11-30 16:34 ` [rtc-linux] Re: [PATCH 00/28] MIPS Boston board support Mark Brown
@ 2015-12-10 16:26   ` Linus Walleij
  0 siblings, 0 replies; 5+ messages in thread
From: Linus Walleij @ 2015-12-10 16:26 UTC (permalink / raw)
  To: Mark Brown
  Cc: Paul Burton, Linux MIPS, Arnd Bergmann, Joshua Kinard,
	Alessandro Zummo, Jiri Slaby, Bjorn Helgaas,
	Zubair Lutfullah Kakakhel, Kumar Gala, Yijing Wang, Ian Campbell,
	Rob Herring, John Crispin, Jayachandran C,
	linux-spi@vger.kernel.org, Geert Uytterhoeven, Ray Jui,
	Richard Cochran, Tejun Heo, Michal Simek, Andrew Bresticker,
	Russell Joyce, Thomas Gleixner, Grant Likely, Alexandre Belloni,
	linux-arm-kernel@lists.infradead.org, Pawel Moll, linux-pci,
	Greg Kroah-Hartman, Ralf Baechle, Alexandre Courbot, Zhou Wang,
	Andrew Morton, Ley Foon Tan, devicetree@vger.kernel.org,
	Jiang Liu, linux-serial@vger.kernel.org,
	rtc-linux@googlegroups.com, Rob Herring, Mauro Carvalho Chehab,
	Wolfram Sang, Duc Dang, Frank Rowand, Vinod Koul, Markos Chandras,
	Michal Simek, Marc Zyngier, Dan Williams, Miguel Ojeda Sandonis,
	Lorenzo Pieralisi, linux-gpio@vger.kernel.org,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	David S. Miller, Joe Perches, Jingoo Han, Hauke Mehrtens,
	Sören Brinkmann, dmaengine, Mark Rutland, Minghuan Lian,
	linux-i2c@vger.kernel.org

On Mon, Nov 30, 2015 at 5:34 PM, Mark Brown <broonie@kernel.org> wrote:
> On Mon, Nov 30, 2015 at 04:21:25PM +0000, Paul Burton wrote:
>> This series introduces support for the Imagination Technologies MIPS
>> Boston development board. Boston is an FPGA-based development board
>> akin to the much older Malta board, built around a Xilinx FPGA running
>> a MIPS CPU & other logic including a PCIe root port connected to an
>> Intel EG20T Platform Controller Hub. This provides a base set of
>> peripherals including SATA, USB, SD/MMC, ethernet, I2C & GPIOs. PCIe
>> slots are also present for expansion.
>
> This is an insanely big CC list :(
>
> What are the interdependencies here - does this really need to be one
> patch series or can the individual driver changes go in separately?

I took the two GPIO patches and ran off with them at least.

Yours,
Linus Walleij

-- 
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-12-10 16:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-30 16:21 [rtc-linux] [PATCH 00/28] MIPS Boston board support Paul Burton
2015-11-30 16:21 ` [rtc-linux] [PATCH 16/28] rtc: m41t80: add devicetree probe support Paul Burton
2015-11-30 16:56   ` [rtc-linux] " Alexandre Belloni
2015-11-30 16:34 ` [rtc-linux] Re: [PATCH 00/28] MIPS Boston board support Mark Brown
2015-12-10 16:26   ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox