Re: [RFC PATCH 1/3] ARM: dts: Add support for OX820 and Pogoplug V3
On Mon, Oct 17, 2016 at 02:39:59PM +0200, Neil Armstrong wrote: > Add device tree for the Oxford Seminconductor OX820 SoC and the > Cloud Engines PogoPlug v3 board. > Add the SoC and board compatible strings to oxnas bindings. > > Signed-off-by: Neil Armstrong> --- > Documentation/devicetree/bindings/arm/oxnas.txt| 5 + > arch/arm/boot/dts/Makefile | 3 +- > .../boot/dts/cloudengines-pogoplug-series-3.dts| 60 + > arch/arm/boot/dts/ox820.dtsi | 259 > + > 4 files changed, 326 insertions(+), 1 deletion(-) > create mode 100644 arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts > create mode 100644 arch/arm/boot/dts/ox820.dtsi > > diff --git a/Documentation/devicetree/bindings/arm/oxnas.txt > b/Documentation/devicetree/bindings/arm/oxnas.txt > index b9e4971..ac64e60 100644 > --- a/Documentation/devicetree/bindings/arm/oxnas.txt > +++ b/Documentation/devicetree/bindings/arm/oxnas.txt > @@ -5,5 +5,10 @@ Boards with the OX810SE SoC shall have the following > properties: >Required root node property: > compatible: "oxsemi,ox810se" > > +Boards with the OX820 SoC shall have the following properties: > + Required root node property: > +compatible: "oxsemi,ox820" > + > Board compatible values: >- "wd,mbwe" (OX810SE) > + - "cloudengines,pogoplugv3" (OX820) > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index faacd52..5d9e8d5 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -588,7 +588,8 @@ dtb-$(CONFIG_ARCH_ORION5X) += \ > dtb-$(CONFIG_ARCH_PRIMA2) += \ > prima2-evb.dtb > dtb-$(CONFIG_ARCH_OXNAS) += \ > - wd-mbwe.dtb > + wd-mbwe.dtb \ > + cloudengines-pogoplug-series-3.dtb > dtb-$(CONFIG_ARCH_QCOM) += \ > qcom-apq8060-dragonboard.dtb \ > qcom-apq8064-arrow-sd-600eval.dtb \ > diff --git a/arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts > b/arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts > new file mode 100644 > index 000..78d9149 > --- /dev/null > +++ b/arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts > @@ -0,0 +1,60 @@ > +/* > + * cloudengines-pogoplug-series-3.dtsi - Device tree file for Cloud Engines > PogoPlug Series 3 > + * > + * Copyright (C) 2016 Neil Armstrong > + * > + * Licensed under GPLv2 or later > + */ > + > +/dts-v1/; > +#include "ox820.dtsi" > + > +/ { > + model = "Cloud Engines PogoPlug Series 3"; > + > + compatible = "cloudengines,pogoplugv3", "oxsemi,ox820"; > + > + chosen { > + bootargs = "console=ttyS0,115200n8 earlyprintk=serial"; Use stdout-path and I don't think "earlyprintk=serial" is valid. With that, Acked-by: Rob Herring
Re: [RFC PATCH 1/3] ARM: dts: Add support for OX820 and Pogoplug V3
On Mon, Oct 17, 2016 at 02:39:59PM +0200, Neil Armstrong wrote: > Add device tree for the Oxford Seminconductor OX820 SoC and the > Cloud Engines PogoPlug v3 board. > Add the SoC and board compatible strings to oxnas bindings. > > Signed-off-by: Neil Armstrong > --- > Documentation/devicetree/bindings/arm/oxnas.txt| 5 + > arch/arm/boot/dts/Makefile | 3 +- > .../boot/dts/cloudengines-pogoplug-series-3.dts| 60 + > arch/arm/boot/dts/ox820.dtsi | 259 > + > 4 files changed, 326 insertions(+), 1 deletion(-) > create mode 100644 arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts > create mode 100644 arch/arm/boot/dts/ox820.dtsi > > diff --git a/Documentation/devicetree/bindings/arm/oxnas.txt > b/Documentation/devicetree/bindings/arm/oxnas.txt > index b9e4971..ac64e60 100644 > --- a/Documentation/devicetree/bindings/arm/oxnas.txt > +++ b/Documentation/devicetree/bindings/arm/oxnas.txt > @@ -5,5 +5,10 @@ Boards with the OX810SE SoC shall have the following > properties: >Required root node property: > compatible: "oxsemi,ox810se" > > +Boards with the OX820 SoC shall have the following properties: > + Required root node property: > +compatible: "oxsemi,ox820" > + > Board compatible values: >- "wd,mbwe" (OX810SE) > + - "cloudengines,pogoplugv3" (OX820) > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index faacd52..5d9e8d5 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -588,7 +588,8 @@ dtb-$(CONFIG_ARCH_ORION5X) += \ > dtb-$(CONFIG_ARCH_PRIMA2) += \ > prima2-evb.dtb > dtb-$(CONFIG_ARCH_OXNAS) += \ > - wd-mbwe.dtb > + wd-mbwe.dtb \ > + cloudengines-pogoplug-series-3.dtb > dtb-$(CONFIG_ARCH_QCOM) += \ > qcom-apq8060-dragonboard.dtb \ > qcom-apq8064-arrow-sd-600eval.dtb \ > diff --git a/arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts > b/arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts > new file mode 100644 > index 000..78d9149 > --- /dev/null > +++ b/arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts > @@ -0,0 +1,60 @@ > +/* > + * cloudengines-pogoplug-series-3.dtsi - Device tree file for Cloud Engines > PogoPlug Series 3 > + * > + * Copyright (C) 2016 Neil Armstrong > + * > + * Licensed under GPLv2 or later > + */ > + > +/dts-v1/; > +#include "ox820.dtsi" > + > +/ { > + model = "Cloud Engines PogoPlug Series 3"; > + > + compatible = "cloudengines,pogoplugv3", "oxsemi,ox820"; > + > + chosen { > + bootargs = "console=ttyS0,115200n8 earlyprintk=serial"; Use stdout-path and I don't think "earlyprintk=serial" is valid. With that, Acked-by: Rob Herring
[RFC PATCH 1/3] ARM: dts: Add support for OX820 and Pogoplug V3
Add device tree for the Oxford Seminconductor OX820 SoC and the Cloud Engines PogoPlug v3 board. Add the SoC and board compatible strings to oxnas bindings. Signed-off-by: Neil Armstrong--- Documentation/devicetree/bindings/arm/oxnas.txt| 5 + arch/arm/boot/dts/Makefile | 3 +- .../boot/dts/cloudengines-pogoplug-series-3.dts| 60 + arch/arm/boot/dts/ox820.dtsi | 259 + 4 files changed, 326 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts create mode 100644 arch/arm/boot/dts/ox820.dtsi diff --git a/Documentation/devicetree/bindings/arm/oxnas.txt b/Documentation/devicetree/bindings/arm/oxnas.txt index b9e4971..ac64e60 100644 --- a/Documentation/devicetree/bindings/arm/oxnas.txt +++ b/Documentation/devicetree/bindings/arm/oxnas.txt @@ -5,5 +5,10 @@ Boards with the OX810SE SoC shall have the following properties: Required root node property: compatible: "oxsemi,ox810se" +Boards with the OX820 SoC shall have the following properties: + Required root node property: +compatible: "oxsemi,ox820" + Board compatible values: - "wd,mbwe" (OX810SE) + - "cloudengines,pogoplugv3" (OX820) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index faacd52..5d9e8d5 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -588,7 +588,8 @@ dtb-$(CONFIG_ARCH_ORION5X) += \ dtb-$(CONFIG_ARCH_PRIMA2) += \ prima2-evb.dtb dtb-$(CONFIG_ARCH_OXNAS) += \ - wd-mbwe.dtb + wd-mbwe.dtb \ + cloudengines-pogoplug-series-3.dtb dtb-$(CONFIG_ARCH_QCOM) += \ qcom-apq8060-dragonboard.dtb \ qcom-apq8064-arrow-sd-600eval.dtb \ diff --git a/arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts b/arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts new file mode 100644 index 000..78d9149 --- /dev/null +++ b/arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts @@ -0,0 +1,60 @@ +/* + * cloudengines-pogoplug-series-3.dtsi - Device tree file for Cloud Engines PogoPlug Series 3 + * + * Copyright (C) 2016 Neil Armstrong + * + * Licensed under GPLv2 or later + */ + +/dts-v1/; +#include "ox820.dtsi" + +/ { + model = "Cloud Engines PogoPlug Series 3"; + + compatible = "cloudengines,pogoplugv3", "oxsemi,ox820"; + + chosen { + bootargs = "console=ttyS0,115200n8 earlyprintk=serial"; + }; + + memory { + /* 128Mbytes DDR */ + reg = <0x6000 0x800>; + }; + + aliases { + serial0 = + gpio0 = + gpio1 = + }; + + leds { + compatible = "gpio-leds"; + + blue { + label = "pogoplug:blue"; + gpios = < 2 0>; + default-state = "keep"; + }; + + orange { + label = "pogoplug:orange"; + gpios = < 16 1>; + default-state = "keep"; + }; + + green { + label = "pogoplug:green"; + gpios = < 17 1>; + default-state = "keep"; + }; + }; +}; + + { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <_uart0>; +}; diff --git a/arch/arm/boot/dts/ox820.dtsi b/arch/arm/boot/dts/ox820.dtsi new file mode 100644 index 000..fe251f180 --- /dev/null +++ b/arch/arm/boot/dts/ox820.dtsi @@ -0,0 +1,259 @@ +/* + * ox820.dtsi - Device tree file for Oxford Semiconductor OX820 SoC + * + * Copyright (C) 2016 Neil Armstrong + * + * Licensed under GPLv2 or later + */ + +/include/ "skeleton.dtsi" +#include +#include +#include + +/ { + compatible = "oxsemi,ox820"; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + enable-method = "oxsemi,ox820-smp"; + + cpu@0 { + device_type = "cpu"; + compatible = "arm,arm11mpcore"; + clocks = <>; + reg = <0>; + }; + + cpu@1 { + device_type = "cpu"; + compatible = "arm,arm11mpcore"; + clocks = <>; + reg = <1>; + }; + }; + + memory { + /* Max 512MB @ 0x6000 */ + reg = <0x6000 0x2000>; + }; + + clocks { + osc: oscillator { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <2500>; + }; + + gmacclk: gmacclk { + compatible = "fixed-clock"; + #clock-cells = <0>; +
[RFC PATCH 1/3] ARM: dts: Add support for OX820 and Pogoplug V3
Add device tree for the Oxford Seminconductor OX820 SoC and the Cloud Engines PogoPlug v3 board. Add the SoC and board compatible strings to oxnas bindings. Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/arm/oxnas.txt| 5 + arch/arm/boot/dts/Makefile | 3 +- .../boot/dts/cloudengines-pogoplug-series-3.dts| 60 + arch/arm/boot/dts/ox820.dtsi | 259 + 4 files changed, 326 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts create mode 100644 arch/arm/boot/dts/ox820.dtsi diff --git a/Documentation/devicetree/bindings/arm/oxnas.txt b/Documentation/devicetree/bindings/arm/oxnas.txt index b9e4971..ac64e60 100644 --- a/Documentation/devicetree/bindings/arm/oxnas.txt +++ b/Documentation/devicetree/bindings/arm/oxnas.txt @@ -5,5 +5,10 @@ Boards with the OX810SE SoC shall have the following properties: Required root node property: compatible: "oxsemi,ox810se" +Boards with the OX820 SoC shall have the following properties: + Required root node property: +compatible: "oxsemi,ox820" + Board compatible values: - "wd,mbwe" (OX810SE) + - "cloudengines,pogoplugv3" (OX820) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index faacd52..5d9e8d5 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -588,7 +588,8 @@ dtb-$(CONFIG_ARCH_ORION5X) += \ dtb-$(CONFIG_ARCH_PRIMA2) += \ prima2-evb.dtb dtb-$(CONFIG_ARCH_OXNAS) += \ - wd-mbwe.dtb + wd-mbwe.dtb \ + cloudengines-pogoplug-series-3.dtb dtb-$(CONFIG_ARCH_QCOM) += \ qcom-apq8060-dragonboard.dtb \ qcom-apq8064-arrow-sd-600eval.dtb \ diff --git a/arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts b/arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts new file mode 100644 index 000..78d9149 --- /dev/null +++ b/arch/arm/boot/dts/cloudengines-pogoplug-series-3.dts @@ -0,0 +1,60 @@ +/* + * cloudengines-pogoplug-series-3.dtsi - Device tree file for Cloud Engines PogoPlug Series 3 + * + * Copyright (C) 2016 Neil Armstrong + * + * Licensed under GPLv2 or later + */ + +/dts-v1/; +#include "ox820.dtsi" + +/ { + model = "Cloud Engines PogoPlug Series 3"; + + compatible = "cloudengines,pogoplugv3", "oxsemi,ox820"; + + chosen { + bootargs = "console=ttyS0,115200n8 earlyprintk=serial"; + }; + + memory { + /* 128Mbytes DDR */ + reg = <0x6000 0x800>; + }; + + aliases { + serial0 = + gpio0 = + gpio1 = + }; + + leds { + compatible = "gpio-leds"; + + blue { + label = "pogoplug:blue"; + gpios = < 2 0>; + default-state = "keep"; + }; + + orange { + label = "pogoplug:orange"; + gpios = < 16 1>; + default-state = "keep"; + }; + + green { + label = "pogoplug:green"; + gpios = < 17 1>; + default-state = "keep"; + }; + }; +}; + + { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <_uart0>; +}; diff --git a/arch/arm/boot/dts/ox820.dtsi b/arch/arm/boot/dts/ox820.dtsi new file mode 100644 index 000..fe251f180 --- /dev/null +++ b/arch/arm/boot/dts/ox820.dtsi @@ -0,0 +1,259 @@ +/* + * ox820.dtsi - Device tree file for Oxford Semiconductor OX820 SoC + * + * Copyright (C) 2016 Neil Armstrong + * + * Licensed under GPLv2 or later + */ + +/include/ "skeleton.dtsi" +#include +#include +#include + +/ { + compatible = "oxsemi,ox820"; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + enable-method = "oxsemi,ox820-smp"; + + cpu@0 { + device_type = "cpu"; + compatible = "arm,arm11mpcore"; + clocks = <>; + reg = <0>; + }; + + cpu@1 { + device_type = "cpu"; + compatible = "arm,arm11mpcore"; + clocks = <>; + reg = <1>; + }; + }; + + memory { + /* Max 512MB @ 0x6000 */ + reg = <0x6000 0x2000>; + }; + + clocks { + osc: oscillator { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <2500>; + }; + + gmacclk: gmacclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <12500>; + }; +