* [PATCH 00/13] MIPS: add support for the Microsemi MIPS SoCs
@ 2017-11-28 15:26 Alexandre Belloni
2017-11-28 15:26 ` [PATCH 01/13] dt-bindings: Add vendor prefix for Microsemi Corporation Alexandre Belloni
` (4 more replies)
0 siblings, 5 replies; 13+ messages in thread
From: Alexandre Belloni @ 2017-11-28 15:26 UTC (permalink / raw)
To: Ralf Baechle
Cc: linux-mips, linux-kernel, Alexandre Belloni, Rob Herring,
devicetree, Thomas Gleixner, Jason Cooper, Linus Walleij,
linux-gpio, Sebastian Reichel, linux-pm
Hi,
This patch series adds initial support for the Microsemi MIPS SoCs. It
is currently focusing on the Microsemi Ocelot (VSC7513, VSC7514).
It adds support for the IRQ controller, pinmux and gpio controller and
reset control.
This produces a kernel that can boot to the console.
This is a single series for reference but it can also be taken
separately by each maintainer as each drivers are independant.
Cc: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-gpio@vger.kernel.org
Cc: Sebastian Reichel <sre@kernel.org>
Cc: linux-pm@vger.kernel.org
Alexandre Belloni (13):
dt-bindings: Add vendor prefix for Microsemi Corporation
dt-bindings: interrupt-controller: Add binding for the Microsemi
Ocelot interrupt controller
irqchip: Add a driver for the Microsemi Ocelot controller
dt-bindings: pinctrl: Add bindings for Microsemi Ocelot
pinctrl: Add Microsemi Ocelot SoC driver
dt-bindings: power: reset: Document ocelot-reset binding
power: reset: Add a driver for the Microsemi Ocelot reset
dt-bindings: mips: Add bindings for Microsemi SoCs
MIPS: mscc: Add initial support for Microsemi MIPS SoCs
MIPS: mscc: add ocelot dtsi
MIPS: mscc: add ocelot PCB123 device tree
MIPS: defconfigs: add a defconfig for Microsemi SoCs
MAINTAINERS: Add entry for Microsemi MIPS SoCs
.../interrupt-controller/mscc,ocelot-icpu-intr.txt | 22 +
Documentation/devicetree/bindings/mips/mscc.txt | 6 +
.../bindings/pinctrl/mscc,ocelot-pinctrl.txt | 39 ++
.../bindings/power/reset/ocelot-reset.txt | 24 +
.../devicetree/bindings/vendor-prefixes.txt | 1 +
MAINTAINERS | 7 +
arch/mips/Kbuild.platforms | 1 +
arch/mips/Kconfig | 24 +
arch/mips/boot/dts/Makefile | 1 +
arch/mips/boot/dts/mscc/Makefile | 6 +
arch/mips/boot/dts/mscc/ocelot.dtsi | 118 +++++
arch/mips/boot/dts/mscc/ocelot_pcb123.dts | 30 ++
arch/mips/configs/mscc_defconfig | 84 ++++
arch/mips/mscc/Makefile | 11 +
arch/mips/mscc/Platform | 12 +
arch/mips/mscc/setup.c | 106 +++++
drivers/irqchip/Kconfig | 5 +
drivers/irqchip/Makefile | 1 +
drivers/irqchip/irq-mscc-ocelot.c | 109 +++++
drivers/pinctrl/Kconfig | 10 +
drivers/pinctrl/Makefile | 1 +
drivers/pinctrl/pinctrl-ocelot.c | 505 +++++++++++++++++++++
drivers/power/reset/Kconfig | 7 +
drivers/power/reset/Makefile | 1 +
drivers/power/reset/ocelot-reset.c | 87 ++++
25 files changed, 1218 insertions(+)
create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mscc,ocelot-icpu-intr.txt
create mode 100644 Documentation/devicetree/bindings/mips/mscc.txt
create mode 100644 Documentation/devicetree/bindings/pinctrl/mscc,ocelot-pinctrl.txt
create mode 100644 Documentation/devicetree/bindings/power/reset/ocelot-reset.txt
create mode 100644 arch/mips/boot/dts/mscc/Makefile
create mode 100644 arch/mips/boot/dts/mscc/ocelot.dtsi
create mode 100644 arch/mips/boot/dts/mscc/ocelot_pcb123.dts
create mode 100644 arch/mips/configs/mscc_defconfig
create mode 100644 arch/mips/mscc/Makefile
create mode 100644 arch/mips/mscc/Platform
create mode 100644 arch/mips/mscc/setup.c
create mode 100644 drivers/irqchip/irq-mscc-ocelot.c
create mode 100644 drivers/pinctrl/pinctrl-ocelot.c
create mode 100644 drivers/power/reset/ocelot-reset.c
--
2.15.0
^ permalink raw reply [flat|nested] 13+ messages in thread* [PATCH 01/13] dt-bindings: Add vendor prefix for Microsemi Corporation 2017-11-28 15:26 [PATCH 00/13] MIPS: add support for the Microsemi MIPS SoCs Alexandre Belloni @ 2017-11-28 15:26 ` Alexandre Belloni [not found] ` <20171128152643.20463-2-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2017-11-28 15:26 ` [PATCH 02/13] dt-bindings: interrupt-controller: Add binding for the Microsemi Ocelot interrupt controller Alexandre Belloni ` (3 subsequent siblings) 4 siblings, 1 reply; 13+ messages in thread From: Alexandre Belloni @ 2017-11-28 15:26 UTC (permalink / raw) To: Ralf Baechle Cc: linux-mips, linux-kernel, Alexandre Belloni, Rob Herring, devicetree Microsemi Corporation provides semiconductor and system solutions for aerospace & defense, communications, data center and industrial markets. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> --- Cc: Rob Herring <robh+dt@kernel.org> Cc: devicetree@vger.kernel.org Documentation/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 0994bdd82cd3..7b880084fd37 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -219,6 +219,7 @@ motorola Motorola, Inc. moxa Moxa Inc. mpl MPL AG mqmaker mqmaker Inc. +mscc Microsemi Corporation msi Micro-Star International Co. Ltd. mti Imagination Technologies Ltd. (formerly MIPS Technologies Inc.) multi-inno Multi-Inno Technology Co.,Ltd -- 2.15.0 ^ permalink raw reply related [flat|nested] 13+ messages in thread
[parent not found: <20171128152643.20463-2-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 01/13] dt-bindings: Add vendor prefix for Microsemi Corporation [not found] ` <20171128152643.20463-2-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2017-11-28 16:10 ` James Hogan [not found] ` <20171128161014.GG27409-4bYivNCBEGSP4qXr0kR+DFHK5/nzsB32@public.gmane.org> 0 siblings, 1 reply; 13+ messages in thread From: James Hogan @ 2017-11-28 16:10 UTC (permalink / raw) To: Alexandre Belloni Cc: Ralf Baechle, linux-mips-6z/3iImG2C8G8FEW9MqTrA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, devicetree-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: text/plain, Size: 1355 bytes --] On Tue, Nov 28, 2017 at 04:26:31PM +0100, Alexandre Belloni wrote: > Microsemi Corporation provides semiconductor and system solutions for > aerospace & defense, communications, data center and industrial markets. > > Signed-off-by: Alexandre Belloni <alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> > --- > Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Nit: Usually the Cc list goes before the --- line so that it is included in the git history (i.e. these people had the opportunity to comment). Cheers James > > > Documentation/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 0994bdd82cd3..7b880084fd37 100644 > --- a/Documentation/devicetree/bindings/vendor-prefixes.txt > +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt > @@ -219,6 +219,7 @@ motorola Motorola, Inc. > moxa Moxa Inc. > mpl MPL AG > mqmaker mqmaker Inc. > +mscc Microsemi Corporation > msi Micro-Star International Co. Ltd. > mti Imagination Technologies Ltd. (formerly MIPS Technologies Inc.) > multi-inno Multi-Inno Technology Co.,Ltd > -- > 2.15.0 > > [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <20171128161014.GG27409-4bYivNCBEGSP4qXr0kR+DFHK5/nzsB32@public.gmane.org>]
* Re: [PATCH 01/13] dt-bindings: Add vendor prefix for Microsemi Corporation [not found] ` <20171128161014.GG27409-4bYivNCBEGSP4qXr0kR+DFHK5/nzsB32@public.gmane.org> @ 2017-11-28 16:22 ` Alexandre Belloni [not found] ` <20171128162245.GH21126-m++hUPXGwpdeoWH0uzbU5w@public.gmane.org> 0 siblings, 1 reply; 13+ messages in thread From: Alexandre Belloni @ 2017-11-28 16:22 UTC (permalink / raw) To: James Hogan Cc: Ralf Baechle, linux-mips-6z/3iImG2C8G8FEW9MqTrA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, devicetree-u79uwXL29TY76Z2rM5mHXA On 28/11/2017 at 16:10:14 +0000, James Hogan wrote: > On Tue, Nov 28, 2017 at 04:26:31PM +0100, Alexandre Belloni wrote: > > Microsemi Corporation provides semiconductor and system solutions for > > aerospace & defense, communications, data center and industrial markets. > > > > Signed-off-by: Alexandre Belloni <alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> > > --- > > Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > > Nit: Usually the Cc list goes before the --- line so that it is included > in the git history (i.e. these people had the opportunity to comment). > Ok, it depends on the maintainer, some people prefer leaving that out of commit log. I'm fine with adding those back in. > Cheers > James > > > > > > > Documentation/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 0994bdd82cd3..7b880084fd37 100644 > > --- a/Documentation/devicetree/bindings/vendor-prefixes.txt > > +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt > > @@ -219,6 +219,7 @@ motorola Motorola, Inc. > > moxa Moxa Inc. > > mpl MPL AG > > mqmaker mqmaker Inc. > > +mscc Microsemi Corporation > > msi Micro-Star International Co. Ltd. > > mti Imagination Technologies Ltd. (formerly MIPS Technologies Inc.) > > multi-inno Multi-Inno Technology Co.,Ltd > > -- > > 2.15.0 > > > > -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -- 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 [flat|nested] 13+ messages in thread
[parent not found: <20171128162245.GH21126-m++hUPXGwpdeoWH0uzbU5w@public.gmane.org>]
* Re: [PATCH 01/13] dt-bindings: Add vendor prefix for Microsemi Corporation [not found] ` <20171128162245.GH21126-m++hUPXGwpdeoWH0uzbU5w@public.gmane.org> @ 2017-12-01 1:14 ` Rob Herring 0 siblings, 0 replies; 13+ messages in thread From: Rob Herring @ 2017-12-01 1:14 UTC (permalink / raw) To: Alexandre Belloni Cc: James Hogan, Ralf Baechle, linux-mips-6z/3iImG2C8G8FEW9MqTrA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA On Tue, Nov 28, 2017 at 05:22:45PM +0100, Alexandre Belloni wrote: > On 28/11/2017 at 16:10:14 +0000, James Hogan wrote: > > On Tue, Nov 28, 2017 at 04:26:31PM +0100, Alexandre Belloni wrote: > > > Microsemi Corporation provides semiconductor and system solutions for > > > aerospace & defense, communications, data center and industrial markets. > > > > > > Signed-off-by: Alexandre Belloni <alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> > > > --- > > > Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > > > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > > > > Nit: Usually the Cc list goes before the --- line so that it is included > > in the git history (i.e. these people had the opportunity to comment). > > > > Ok, it depends on the maintainer, some people prefer leaving that out of commit log. > I'm fine with adding those back in. Really? First, I've heard that. In any case, Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> -- 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 [flat|nested] 13+ messages in thread
* [PATCH 02/13] dt-bindings: interrupt-controller: Add binding for the Microsemi Ocelot interrupt controller 2017-11-28 15:26 [PATCH 00/13] MIPS: add support for the Microsemi MIPS SoCs Alexandre Belloni 2017-11-28 15:26 ` [PATCH 01/13] dt-bindings: Add vendor prefix for Microsemi Corporation Alexandre Belloni @ 2017-11-28 15:26 ` Alexandre Belloni [not found] ` <20171128152643.20463-3-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2017-11-28 15:26 ` [PATCH 04/13] dt-bindings: pinctrl: Add bindings for Microsemi Ocelot Alexandre Belloni ` (2 subsequent siblings) 4 siblings, 1 reply; 13+ messages in thread From: Alexandre Belloni @ 2017-11-28 15:26 UTC (permalink / raw) To: Ralf Baechle Cc: linux-mips, linux-kernel, Alexandre Belloni, Rob Herring, devicetree, Jason Cooper Add the Device Tree binding documentation for the Microsemi Ocelot interrupt controller that is part of the ICPU. It is connected directly to the MIPS core interrupt controller. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> --- Cc: Rob Herring <robh+dt@kernel.org> Cc: devicetree@vger.kernel.org To: Thomas Gleixner <tglx@linutronix.de> Cc: Jason Cooper <jason@lakedaemon.net> .../interrupt-controller/mscc,ocelot-icpu-intr.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mscc,ocelot-icpu-intr.txt diff --git a/Documentation/devicetree/bindings/interrupt-controller/mscc,ocelot-icpu-intr.txt b/Documentation/devicetree/bindings/interrupt-controller/mscc,ocelot-icpu-intr.txt new file mode 100644 index 000000000000..b47a8a02b17b --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/mscc,ocelot-icpu-intr.txt @@ -0,0 +1,22 @@ +Microsemi Ocelot SoC ICPU Interrupt Controller + +Required properties: + +- compatible : should be "mscc,ocelot-icpu-intr" +- reg : Specifies base physical address and size of the registers. +- interrupt-controller : Identifies the node as an interrupt controller +- #interrupt-cells : Specifies the number of cells needed to encode an + interrupt source. The value shall be 1. +- interrupt-parent : phandle of the CPU interrupt controller. +- interrupts : Specifies the CPU interrupt the controller is connected to. + +Example: + + intc: interrupt-controller@70000070 { + compatible = "mscc,ocelot-icpu-intr"; + reg = <0x70000070 0x70>; + #interrupt-cells = <1>; + interrupt-controller; + interrupt-parent = <&cpuintc>; + interrupts = <2>; + }; -- 2.15.0 ^ permalink raw reply related [flat|nested] 13+ messages in thread
[parent not found: <20171128152643.20463-3-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 02/13] dt-bindings: interrupt-controller: Add binding for the Microsemi Ocelot interrupt controller [not found] ` <20171128152643.20463-3-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2017-12-01 1:15 ` Rob Herring 0 siblings, 0 replies; 13+ messages in thread From: Rob Herring @ 2017-12-01 1:15 UTC (permalink / raw) To: Alexandre Belloni Cc: Ralf Baechle, linux-mips-6z/3iImG2C8G8FEW9MqTrA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, Jason Cooper On Tue, Nov 28, 2017 at 04:26:32PM +0100, Alexandre Belloni wrote: > Add the Device Tree binding documentation for the Microsemi Ocelot > interrupt controller that is part of the ICPU. It is connected directly to > the MIPS core interrupt controller. > > Signed-off-by: Alexandre Belloni <alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> > --- > Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > To: Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org> > Cc: Jason Cooper <jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org> > > .../interrupt-controller/mscc,ocelot-icpu-intr.txt | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mscc,ocelot-icpu-intr.txt Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> -- 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 [flat|nested] 13+ messages in thread
* [PATCH 04/13] dt-bindings: pinctrl: Add bindings for Microsemi Ocelot 2017-11-28 15:26 [PATCH 00/13] MIPS: add support for the Microsemi MIPS SoCs Alexandre Belloni 2017-11-28 15:26 ` [PATCH 01/13] dt-bindings: Add vendor prefix for Microsemi Corporation Alexandre Belloni 2017-11-28 15:26 ` [PATCH 02/13] dt-bindings: interrupt-controller: Add binding for the Microsemi Ocelot interrupt controller Alexandre Belloni @ 2017-11-28 15:26 ` Alexandre Belloni 2017-12-01 1:16 ` Rob Herring 2017-11-28 15:26 ` [PATCH 06/13] dt-bindings: power: reset: Document ocelot-reset binding Alexandre Belloni 2017-11-28 15:26 ` [PATCH 08/13] dt-bindings: mips: Add bindings for Microsemi SoCs Alexandre Belloni 4 siblings, 1 reply; 13+ messages in thread From: Alexandre Belloni @ 2017-11-28 15:26 UTC (permalink / raw) To: Ralf Baechle Cc: linux-mips, linux-kernel, Alexandre Belloni, Rob Herring, devicetree, linux-gpio Add the documentation for the Microsemi Ocelot pinmuxing and gpio controller. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> --- Cc: Rob Herring <robh+dt@kernel.org> Cc: devicetree@vger.kernel.org To: Linus Walleij <linus.walleij@linaro.org> Cc: linux-gpio@vger.kernel.org .../bindings/pinctrl/mscc,ocelot-pinctrl.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/mscc,ocelot-pinctrl.txt diff --git a/Documentation/devicetree/bindings/pinctrl/mscc,ocelot-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/mscc,ocelot-pinctrl.txt new file mode 100644 index 000000000000..24a210e0c59a --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/mscc,ocelot-pinctrl.txt @@ -0,0 +1,39 @@ +Microsemi Ocelot pin controller Device Tree Bindings +---------------------------------------------------- + +Required properties: + - compatible : Should be "mscc,ocelot-pinctrl" + - reg : Address and length of the register set for the device + - gpio-controller : Indicates this device is a GPIO controller + - #gpio-cells : Must be 2. + The first cell is the pin number and the + second cell specifies GPIO flags, as defined in + <dt-bindings/gpio/gpio.h>. + - gpio-ranges : Range of pins managed by the GPIO controller. + + +The ocelot-pinctrl driver uses the generic pin multiplexing and generic pin +configuration documented in pinctrl-bindings.txt. + +The following generic properties are supported: + - function + - pins + +Example: + gpio: pinctrl@71070034 { + compatible = "mscc,ocelot-pinctrl"; + reg = <0x71070034 0x28>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&gpio 0 0 22>; + + uart_pins: uart-pins { + pins = "GPIO_6", "GPIO_7"; + function = "uart"; + }; + + uart2_pins: uart2-pins { + pins = "GPIO_12", "GPIO_13"; + function = "uart2"; + }; + }; -- 2.15.0 ^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH 04/13] dt-bindings: pinctrl: Add bindings for Microsemi Ocelot 2017-11-28 15:26 ` [PATCH 04/13] dt-bindings: pinctrl: Add bindings for Microsemi Ocelot Alexandre Belloni @ 2017-12-01 1:16 ` Rob Herring 0 siblings, 0 replies; 13+ messages in thread From: Rob Herring @ 2017-12-01 1:16 UTC (permalink / raw) To: Alexandre Belloni Cc: Ralf Baechle, linux-mips, linux-kernel, devicetree, linux-gpio On Tue, Nov 28, 2017 at 04:26:34PM +0100, Alexandre Belloni wrote: > Add the documentation for the Microsemi Ocelot pinmuxing and gpio > controller. > > Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> > --- > Cc: Rob Herring <robh+dt@kernel.org> > Cc: devicetree@vger.kernel.org > To: Linus Walleij <linus.walleij@linaro.org> > Cc: linux-gpio@vger.kernel.org > > .../bindings/pinctrl/mscc,ocelot-pinctrl.txt | 39 ++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pinctrl/mscc,ocelot-pinctrl.txt Acked-by: Rob Herring <robh@kernel.org> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 06/13] dt-bindings: power: reset: Document ocelot-reset binding 2017-11-28 15:26 [PATCH 00/13] MIPS: add support for the Microsemi MIPS SoCs Alexandre Belloni ` (2 preceding siblings ...) 2017-11-28 15:26 ` [PATCH 04/13] dt-bindings: pinctrl: Add bindings for Microsemi Ocelot Alexandre Belloni @ 2017-11-28 15:26 ` Alexandre Belloni 2017-12-01 1:54 ` Rob Herring 2017-11-28 15:26 ` [PATCH 08/13] dt-bindings: mips: Add bindings for Microsemi SoCs Alexandre Belloni 4 siblings, 1 reply; 13+ messages in thread From: Alexandre Belloni @ 2017-11-28 15:26 UTC (permalink / raw) To: Ralf Baechle Cc: linux-mips, linux-kernel, Alexandre Belloni, Rob Herring, devicetree, linux-pm Add binding documentation for the Microsemi Ocelot reset block. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> --- Cc: Rob Herring <robh+dt@kernel.org> Cc: devicetree@vger.kernel.org To: Sebastian Reichel <sre@kernel.org> Cc: linux-pm@vger.kernel.org .../bindings/power/reset/ocelot-reset.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/ocelot-reset.txt diff --git a/Documentation/devicetree/bindings/power/reset/ocelot-reset.txt b/Documentation/devicetree/bindings/power/reset/ocelot-reset.txt new file mode 100644 index 000000000000..2d3f2c21fadd --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/ocelot-reset.txt @@ -0,0 +1,24 @@ +Microsemi Ocelot reset driver + +The DEVCPU_GCB:CHIP_REGS have a SOFT_RST register that can be used to reset the +SoC MIPS core. + +Required Properties: + - compatible: "mscc,ocelot-chip-reset" + - mscc,cpucontrol: phandle to the CPU system control syscon block + +Example: + cpu_ctrl: syscon@70000000 { + compatible = "syscon"; + reg = <0x70000000 0x2c>; + }; + + syscon@71070000 { + compatible = "simple-mfd", "syscon"; + reg = <0x71070000 0x1c>; + + reset { + compatible = "mscc,ocelot-chip-reset"; + mscc,cpucontrol = <&cpu_ctrl>; + }; + }; -- 2.15.0 ^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH 06/13] dt-bindings: power: reset: Document ocelot-reset binding 2017-11-28 15:26 ` [PATCH 06/13] dt-bindings: power: reset: Document ocelot-reset binding Alexandre Belloni @ 2017-12-01 1:54 ` Rob Herring 0 siblings, 0 replies; 13+ messages in thread From: Rob Herring @ 2017-12-01 1:54 UTC (permalink / raw) To: Alexandre Belloni Cc: Ralf Baechle, linux-mips, linux-kernel, devicetree, linux-pm On Tue, Nov 28, 2017 at 04:26:36PM +0100, Alexandre Belloni wrote: > Add binding documentation for the Microsemi Ocelot reset block. > > Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> > --- > Cc: Rob Herring <robh+dt@kernel.org> > Cc: devicetree@vger.kernel.org > To: Sebastian Reichel <sre@kernel.org> > Cc: linux-pm@vger.kernel.org > > .../bindings/power/reset/ocelot-reset.txt | 24 ++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/reset/ocelot-reset.txt > > diff --git a/Documentation/devicetree/bindings/power/reset/ocelot-reset.txt b/Documentation/devicetree/bindings/power/reset/ocelot-reset.txt > new file mode 100644 > index 000000000000..2d3f2c21fadd > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/reset/ocelot-reset.txt > @@ -0,0 +1,24 @@ > +Microsemi Ocelot reset driver Bindings are not drivers. > + > +The DEVCPU_GCB:CHIP_REGS have a SOFT_RST register that can be used to reset the > +SoC MIPS core. > + > +Required Properties: > + - compatible: "mscc,ocelot-chip-reset" > + - mscc,cpucontrol: phandle to the CPU system control syscon block > + > +Example: > + cpu_ctrl: syscon@70000000 { > + compatible = "syscon"; syscon alone is not valid. > + reg = <0x70000000 0x2c>; > + }; > + > + syscon@71070000 { > + compatible = "simple-mfd", "syscon"; SoC specific compatible? > + reg = <0x71070000 0x1c>; > + > + reset { > + compatible = "mscc,ocelot-chip-reset"; > + mscc,cpucontrol = <&cpu_ctrl>; This looks strange. A syscon pointing to another syscon? Doesn't look like you even need this node, but hard to know if you don't document the parent node completely (i.e. what are all the functions in this syscon). > + }; > + }; > -- > 2.15.0 > ^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 08/13] dt-bindings: mips: Add bindings for Microsemi SoCs 2017-11-28 15:26 [PATCH 00/13] MIPS: add support for the Microsemi MIPS SoCs Alexandre Belloni ` (3 preceding siblings ...) 2017-11-28 15:26 ` [PATCH 06/13] dt-bindings: power: reset: Document ocelot-reset binding Alexandre Belloni @ 2017-11-28 15:26 ` Alexandre Belloni [not found] ` <20171128152643.20463-9-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 4 siblings, 1 reply; 13+ messages in thread From: Alexandre Belloni @ 2017-11-28 15:26 UTC (permalink / raw) To: Ralf Baechle Cc: linux-mips, linux-kernel, Alexandre Belloni, Rob Herring, devicetree Add bindings for Microsemi SoCs. Currently only Ocelot is supported. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> --- Cc: Rob Herring <robh+dt@kernel.org> Cc: devicetree@vger.kernel.org Documentation/devicetree/bindings/mips/mscc.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/mscc.txt diff --git a/Documentation/devicetree/bindings/mips/mscc.txt b/Documentation/devicetree/bindings/mips/mscc.txt new file mode 100644 index 000000000000..2c52e76b7142 --- /dev/null +++ b/Documentation/devicetree/bindings/mips/mscc.txt @@ -0,0 +1,6 @@ +* Microsemi MIPS CPUs + +Required properties: +- compatible: "brcm,ocelot" + +- mips-hpt-frequency: CPU counter frequency. -- 2.15.0 ^ permalink raw reply related [flat|nested] 13+ messages in thread
[parent not found: <20171128152643.20463-9-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 08/13] dt-bindings: mips: Add bindings for Microsemi SoCs [not found] ` <20171128152643.20463-9-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2017-11-28 19:14 ` Florian Fainelli 0 siblings, 0 replies; 13+ messages in thread From: Florian Fainelli @ 2017-11-28 19:14 UTC (permalink / raw) To: Alexandre Belloni, Ralf Baechle Cc: linux-mips-6z/3iImG2C8G8FEW9MqTrA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, devicetree-u79uwXL29TY76Z2rM5mHXA On 11/28/2017 07:26 AM, Alexandre Belloni wrote: > Add bindings for Microsemi SoCs. Currently only Ocelot is supported. > > Signed-off-by: Alexandre Belloni <alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> > --- > Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > > Documentation/devicetree/bindings/mips/mscc.txt | 6 ++++++ > 1 file changed, 6 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mips/mscc.txt > > diff --git a/Documentation/devicetree/bindings/mips/mscc.txt b/Documentation/devicetree/bindings/mips/mscc.txt > new file mode 100644 > index 000000000000..2c52e76b7142 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mips/mscc.txt > @@ -0,0 +1,6 @@ > +* Microsemi MIPS CPUs > + > +Required properties: > +- compatible: "brcm,ocelot" You probably intended to use mscc,ocelot here, right? -- Florian -- 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 [flat|nested] 13+ messages in thread
end of thread, other threads:[~2017-12-01 1:54 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-28 15:26 [PATCH 00/13] MIPS: add support for the Microsemi MIPS SoCs Alexandre Belloni
2017-11-28 15:26 ` [PATCH 01/13] dt-bindings: Add vendor prefix for Microsemi Corporation Alexandre Belloni
[not found] ` <20171128152643.20463-2-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-11-28 16:10 ` James Hogan
[not found] ` <20171128161014.GG27409-4bYivNCBEGSP4qXr0kR+DFHK5/nzsB32@public.gmane.org>
2017-11-28 16:22 ` Alexandre Belloni
[not found] ` <20171128162245.GH21126-m++hUPXGwpdeoWH0uzbU5w@public.gmane.org>
2017-12-01 1:14 ` Rob Herring
2017-11-28 15:26 ` [PATCH 02/13] dt-bindings: interrupt-controller: Add binding for the Microsemi Ocelot interrupt controller Alexandre Belloni
[not found] ` <20171128152643.20463-3-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-12-01 1:15 ` Rob Herring
2017-11-28 15:26 ` [PATCH 04/13] dt-bindings: pinctrl: Add bindings for Microsemi Ocelot Alexandre Belloni
2017-12-01 1:16 ` Rob Herring
2017-11-28 15:26 ` [PATCH 06/13] dt-bindings: power: reset: Document ocelot-reset binding Alexandre Belloni
2017-12-01 1:54 ` Rob Herring
2017-11-28 15:26 ` [PATCH 08/13] dt-bindings: mips: Add bindings for Microsemi SoCs Alexandre Belloni
[not found] ` <20171128152643.20463-9-alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-11-28 19:14 ` Florian Fainelli
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox