powerpc: mpc85xx: Add board support for ucp1020
Subsystems (6)
PATCH 1/1 powerpc: mpc85xx: Add board support for ucp1020
New QorIQ p1020 based board support from Arcturus Networks Inc.
http://www.arcturusnetworks.com/products/ucp1020/
--- Documentation/devicetree/bindings/pci/fsl,pci.txt | 2 +- .../devicetree/bindings/powerpc/arcturus/board.txt | 149 ++ .../devicetree/bindings/powerpc/arcturus/ecm.txt | 64 + Documentation/devicetree/bindings/usb/fsl-usb.txt | 2 +- .../devicetree/bindings/vendor-prefixes.txt | 1 + arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsi | 179 ++ arch/powerpc/boot/dts/fsl/ucp1020som-pre.dtsi | 70 + arch/powerpc/boot/dts/ucp1020_32b.dts | 88 + arch/powerpc/boot/dts/ucp1020_32b.dtsi | 174 ++ arch/powerpc/configs/ucp1020_defconfig | 2731 ++++++++++++++++++++ arch/powerpc/platforms/85xx/Kconfig | 7 + arch/powerpc/platforms/85xx/Makefile | 1 + arch/powerpc/platforms/85xx/ucp1020_som.c | 100 + 13 files changed, 3566 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/powerpc/arcturus/board.txt create mode 100644 Documentation/devicetree/bindings/powerpc/arcturus/ecm.txt create mode 100644 arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsi create mode 100644 arch/powerpc/boot/dts/fsl/ucp1020som-pre.dtsi create mode 100644 arch/powerpc/boot/dts/ucp1020_32b.dts create mode 100644 arch/powerpc/boot/dts/ucp1020_32b.dtsi create mode 100644 arch/powerpc/configs/ucp1020_defconfig create mode 100644 arch/powerpc/platforms/85xx/ucp1020_som.c
Documentation/devicetree/bindings/pci/fsl,pci.txt +1 -1
@@ -20,7 +20,7 @@ Example: #interrupt-cells = <1>; #size-cells = <2>; #address-cells = <3>; - compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci"; + compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci", "fsl,mpc8548-pcie"; device_type = "pci"; ... ...
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +149 -0
149 lines not on this page · raw message
Documentation/devicetree/bindings/powerpc/arcturus/ecm.txt new file +64 -0
64 lines not on this page · raw message
Documentation/devicetree/bindings/usb/fsl-usb.txt +1 -1
@@ -57,7 +57,7 @@ Example multi port host USB controller device node : Example dual role USB controller device node : usb@23000 { - compatible = "fsl-usb2-dr"; + compatible = "fsl-usb2-dr", "fsl-usb2-dr-v1.6"; reg = <23000 1000>; #address-cells = <1>; #size-cells = <0>;
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
@@ -24,6 +24,7 @@ amstaos AMS-Taos Inc. apm Applied Micro Circuits Corporation (APM) aptina Aptina Imaging arasan Arasan Chip Systems +arcturus Arcturus Networks Inc. arm ARM Ltd. armadeus ARMadeus Systems SARL artesyn Artesyn Embedded Technologies Inc.
arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsi new file +179 -0
179 lines not on this page · raw message
arch/powerpc/boot/dts/fsl/ucp1020som-pre.dtsi new file +70 -0
70 lines not on this page · raw message
arch/powerpc/boot/dts/ucp1020_32b.dts new file +88 -0
88 lines not on this page · raw message
arch/powerpc/boot/dts/ucp1020_32b.dtsi new file +174 -0
174 lines not on this page · raw message
arch/powerpc/configs/ucp1020_defconfig new file +2731 -0
2,253 lines not on this page · raw message
arch/powerpc/platforms/85xx/ucp1020_som.c new file +100 -0
100 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.1.4
Part of the diff is not shown here. View the raw message.
Quoted 60 lines · Oleksandr G Zhadan
New QorIQ p1020 based board support from Arcturus Networks Inc.
http://www.arcturusnetworks.com/products/ucp1020/Signed-off-by Michael Durrant <[email protected]>Signed-off-by Oleksandr G Zhadan <[email protected]>--- Documentation/devicetree/bindings/pci/fsl,pci.txt | 2 +- .../devicetree/bindings/powerpc/arcturus/board.txt | 149 ++ .../devicetree/bindings/powerpc/arcturus/ecm.txt | 64 + Documentation/devicetree/bindings/usb/fsl-usb.txt | 2 +- .../devicetree/bindings/vendor-prefixes.txt | 1 + arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsi | 179 ++ arch/powerpc/boot/dts/fsl/ucp1020som-pre.dtsi | 70 + arch/powerpc/boot/dts/ucp1020_32b.dts | 88 + arch/powerpc/boot/dts/ucp1020_32b.dtsi | 174 ++ arch/powerpc/configs/ucp1020_defconfig | 2731 ++++++++++++++++++++ arch/powerpc/platforms/85xx/Kconfig | 7 + arch/powerpc/platforms/85xx/Makefile | 1 + arch/powerpc/platforms/85xx/ucp1020_som.c | 100 + 13 files changed, 3566 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/powerpc/arcturus/board.txt create mode 100644 Documentation/devicetree/bindings/powerpc/arcturus/ecm.txt create mode 100644 arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsi create mode 100644 arch/powerpc/boot/dts/fsl/ucp1020som-pre.dtsi create mode 100644 arch/powerpc/boot/dts/ucp1020_32b.dts create mode 100644 arch/powerpc/boot/dts/ucp1020_32b.dtsi create mode 100644 arch/powerpc/configs/ucp1020_defconfig create mode 100644 arch/powerpc/platforms/85xx/ucp1020_som.cDocumentation/devicetree/bindings/pci/fsl,pci.txt +1
-1@@ -20,7 +20,7 @@ Example: #interrupt-cells = <1>; #size-cells = <2>; #address-cells = <3>; - compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci"; + compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci", "fsl,mpc8548-pcie"; device_type = "pci";Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +12
-0@@ -0,0 +1,149 @@ +UCP1020 module Tree Bindings +---------------------------- + +Copyright 2013-2015 Arcturus Networks, Inc. + +QorIQ p1020 based board +http://www.arcturusnetworks.com/products/ucp1020/ +------------------------------------------------- + +Root Module + +Properties:
Documentation/devicetree/bindings/powerpc/arcturus/board.txt line 22
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +10
-0+- model: "arcturus,uCP1020" +- compatible: "arcturus,uCP1020" +- SN: "1234567890-1234" + +/ { + model = "arcturus,uCP1020"; + compatible = "arcturus,uCP1020", "fsl,P1020"; + SN = "1234567890-1234"; + ... + }
Drop the "fsl,P1020" compatible. Top-level compatible strings describe the whole board.
SN is a bad property name. Call it something like "arcturus,serial#", and define what it actually means rather than just giving an example.
Quoted 7 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +7
-0+------------------------------------------------- + +P1020 SPI controller + +Properties: +- compatible: "spansion,s25fl008k", "winbond,w25q80bl" +
Documentation/devicetree/bindings/powerpc/arcturus/board.txt line 39
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +10
-0+Example: + spi@7000 { + flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,s25fl008k", "winbond,w25q80bl"; + reg = <0>; + spi-max-frequency = <40000000>; /* input clock */ + ... + };
This isn't describing the controller, but rather a SPI chip attached to the controller. This also doesn't seem like the right place for random SPI chips.
If all you're specifying is the compatible, maybe create a spi/trivial-devices.txt similar to i2c/trivial-devices.txt? Or something specific to SPI flash chips to describe the partition specification, though I generally recommend against describing partitions in the device tree -- especially if this is a developer board rather than something fixed-purpose where the partitioning is not going to change based on user requirements.
Quoted 8 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +8
-0+------------------------------------------------- + +Chipselect/Local Bus + +Properties: +- #address-cells: <2>. +- #size-cells: <1>. +- compatible: "fsl,p1020-elbc", "fsl,elbc", "simple-bus","fsl,p1020-immr"
Documentation/devicetree/bindings/powerpc/arcturus/board.txt line 57
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +10
-0+- interrupts: interrupts to report localbus events. + +Example: + +&lbc { + #address-cells = <2>; + #size-cells = <1>; + compatible = "fsl,p1020-elbc", "fsl,elbc", "simple-bus"; + interrupts = <19 2 0 0>; +};
There's already a binding for elbc -- and the elbc node certainly should not claim compatibility with "fsl,p1020-immr".
Quoted 15 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +15
-0+------------------------------------------------- + +Freescale L2 Cache Controller + +L2 cache is present in Freescale's QorIQ and QorIQ Qonverge platforms. +The cache bindings explained below are ePAPR compliant + +Properties: + +- compatible : Should include "fsl,chip-l2-cache-controller" and "cache" + where chip is the processor (bsc9132, npc8572 etc.) +- reg : Address and size of L2 cache controller registers +- cache-size : Size of the entire L2 cache +- interrupts : Error interrupt of L2 controller +- cache-line-size : Size of L2 cache lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt line 82
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +10
-0+ +Example: + + L2: l2-cache-controller@20000 { + compatible = "fsl,p1020-l2-cache-controller", "cache"; + reg = <0x20000 0x1000>; + cache-line-size = <32>; // 32 bytes + cache-size = <0x40000>; // L2,256K + interrupts = <16 2 1 0>; + };
This is copied and pasted from the existing binding. Ignore checkpatch's inability to understand that "fsl,chip-l2-cache-controller" includes "fsl,p1020-l2-cache-controller".
Likewise for the other bindings. If you're going to have a binding document for your board, it should only talk about things that are specific to your board.
Documentation/devicetree/bindings/usb/fsl-usb.txt Example multi port host USB controller device node : · line 63
Quoted 13 lines
Documentation/devicetree/bindings/usb/fsl-usb.txt +1
-1@@ -57,7 +57,7 @@ Example multi port host USB controller device node : Example dual role USB controller device node : usb@23000 { - compatible = "fsl-usb2-dr"; + compatible = "fsl-usb2-dr", "fsl-usb2-dr-v1.6"; reg = <23000 1000>; #address-cells = <1>; #size-cells = <0>;
More specific compatibles come first.
arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsi
Quoted 5 lines
arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsi new file +0
-0
Why can't you use p1020si-post.dtsi? The "si" means "silicon" -- it's meant to be included by all p1020 boards.
arch/powerpc/boot/dts/ucp1020_32b.dts line 2
Quoted 8 lines
arch/powerpc/boot/dts/ucp1020_32b.dts new file +2
-0@@ -0,0 +1,88 @@ +/* + * uCP1020 Tree Source (32-bit address map)
Do you plan on supporting both 32 and 36 bits? If not, leave off the "_32b".
arch/powerpc/configs/ucp1020_defconfig
Quoted 5 lines
arch/powerpc/configs/ucp1020_defconfig new file +0
-0
Please explain why your board needs its own defconfig.
Plus, all defconfigs need to be run through savedefconfig to trim everything that doesn't change a default.
Quoted 32 lines
arch/powerpc/platforms/85xx/ucp1020_som.c new file +26
-0@@ -0,0 +1,100 @@ +/* +* Arcturus Networks Inc. uCP1020 system on module Setup +* +* Copyright 2014-2015 Arcturus Networks Inc. +* +* by Oleksandr G Zhadan & Michael Durrant (www.ArcturusNetworks.com) +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation; either version 2 of the License, or (at your +* option) any later version. +*/ + +#include <linux/stddef.h> +#include <linux/kernel.h> +#include <linux/pci.h> +#include <linux/kdev_t.h> +#include <linux/delay.h> +#include <linux/seq_file.h> +#include <linux/interrupt.h> +#include <linux/of_platform.h> + +#include <asm/time.h> +#include <asm/machdep.h> +#include <asm/pci-bridge.h> +#include <mm/mmu_decl.h>
arch/powerpc/platforms/85xx/ucp1020_som.c line 36
Quoted 10 lines
arch/powerpc/platforms/85xx/ucp1020_som.c new file +10
-0+#include <asm/prom.h> +#include <asm/udbg.h> +#include <asm/mpic.h> +#include <asm/fsl_guts.h> + +#include <sysdev/fsl_soc.h> +#include <sysdev/fsl_pci.h> +#include "smp.h" + +#include "mpc85xx.h"
You don't need all of these headers.
Quoted 5 lines
arch/powerpc/platforms/85xx/ucp1020_som.c new file +5
-0+ +void __init ucp1020_som_pic_init (void ) +{ +struct mpic *mpic; +unsigned long root =of_get_flat_dt_root ();
arch/powerpc/platforms/85xx/ucp1020_som.c line 51
Quoted 10 lines
arch/powerpc/platforms/85xx/ucp1020_som.c new file +10
-0+ +if (of_flat_dt_is_compatible (root,"fsl,MPC85XXRDB-CAMP" )) { + mpic =mpic_alloc (NULL ,0 ,MPIC_NO_RESET | +MPIC_BIG_ENDIAN | +MPIC_SINGLE_DEST_CPU ,0 ,256 ," OpenPIC " ); + }else { + mpic =mpic_alloc (NULL ,0 , +MPIC_BIG_ENDIAN | +MPIC_SINGLE_DEST_CPU ,0 ,256 ," OpenPIC " ); + }
Why do you have fsl,MPC85XXRDB-CAMP in here?
-Scott
Hi Scott,
Thanks for fast response, please see inline.
Quoted 75 lines · Scott Wood
Quoted 60 lines · Oleksandr G Zhadan
New QorIQ p1020 based board support from Arcturus Networks Inc.
http://www.arcturusnetworks.com/products/ucp1020/Signed-off-by Michael Durrant <[email protected]>Signed-off-by Oleksandr G Zhadan <[email protected]>--- Documentation/devicetree/bindings/pci/fsl,pci.txt | 2 +- .../devicetree/bindings/powerpc/arcturus/board.txt | 149 ++ .../devicetree/bindings/powerpc/arcturus/ecm.txt | 64 + Documentation/devicetree/bindings/usb/fsl-usb.txt | 2 +- .../devicetree/bindings/vendor-prefixes.txt | 1 + arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsi | 179 ++ arch/powerpc/boot/dts/fsl/ucp1020som-pre.dtsi | 70 + arch/powerpc/boot/dts/ucp1020_32b.dts | 88 + arch/powerpc/boot/dts/ucp1020_32b.dtsi | 174 ++ arch/powerpc/configs/ucp1020_defconfig | 2731 ++++++++++++++++++++ arch/powerpc/platforms/85xx/Kconfig | 7 + arch/powerpc/platforms/85xx/Makefile | 1 + arch/powerpc/platforms/85xx/ucp1020_som.c | 100 + 13 files changed, 3566 insertions(+), 2 deletions(-)create mode 100644
Documentation/devicetree/bindings/powerpc/arcturus/board.txtcreate mode 100644Documentation/devicetree/bindings/powerpc/arcturus/ecm.txtcreate mode 100644arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsicreate mode 100644arch/powerpc/boot/dts/fsl/ucp1020som-pre.dtsicreate mode 100644arch/powerpc/boot/dts/ucp1020_32b.dts
create mode 100644arch/powerpc/boot/dts/ucp1020_32b.dtsi
create mode 100644arch/powerpc/configs/ucp1020_defconfig
create mode 100644arch/powerpc/platforms/85xx/ucp1020_som.cDocumentation/devicetree/bindings/pci/fsl,pci.txt +1
-1@@ -20,7 +20,7 @@ Example: #interrupt-cells = <1>; #size-cells = <2>; #address-cells = <3>; - compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci"; + compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci", "fsl,mpc8548-pcie"; device_type = "pci";Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +12
-0@@ -0,0 +1,149 @@ +UCP1020 module Tree Bindings +---------------------------- + +Copyright 2013-2015 Arcturus Networks, Inc. + +QorIQ p1020 based board +http://www.arcturusnetworks.com/products/ucp1020/ +------------------------------------------------- + +Root Module + +Properties:Documentation/devicetree/bindings/powerpc/arcturus/board.txt line 22
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +10
-0+- model: "arcturus,uCP1020" +- compatible: "arcturus,uCP1020" +- SN: "1234567890-1234" + +/ { + model = "arcturus,uCP1020"; + compatible = "arcturus,uCP1020", "fsl,P1020"; + SN = "1234567890-1234"; + ... + }Drop the "fsl,P1020" compatible. Top-level compatible strings describe the whole board.
Quoted 3 lines
SN is a bad property name. Call it something like "arcturus,serial#", and define what it actually means rather than just giving an example.
OK, will fix.
Quoted 22 lines
Quoted 7 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +7
-0+------------------------------------------------- + +P1020 SPI controller + +Properties: +- compatible: "spansion,s25fl008k", "winbond,w25q80bl" +Documentation/devicetree/bindings/powerpc/arcturus/board.txt line 39
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +10
-0+Example: + spi@7000 { + flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,s25fl008k", "winbond,w25q80bl"; + reg = <0>; + spi-max-frequency = <40000000>; /* input clock */ + ... + };This isn't describing the controller, but rather a SPI chip attached to the controller. This also doesn't seem like the right place for random SPI chips.
Quoted 9 lines
If all you're specifying is the compatible, maybe create a
spi/trivial-devices.txtsimilar toi2c/trivial-devices.txt? Or something specific to SPI flash chips to describe the partition specification, though I generally recommend against describing partitions in the device tree -- especially if this is a developer board rather than something fixed-purpose where the partitioning is not going to change based on user requirements.
Mostly in all Documentation/devicetree/bindings/ I tried to satisfy checkpatch script as simple as possible. And for me as well it looks reasonable to create spi/trivial-devices.txt file and I will.
Quoted 13 lines
Quoted 13 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +13
-0+------------------------------------------------- + +Chipselect/Local Bus + +Properties: +- #address-cells: <2>. +- #size-cells: <1>. +- compatible: "fsl,p1020-elbc", "fsl,elbc", "simple-bus","fsl,p1020-immr" +- interrupts: interrupts to report localbus events. + +Example: + +&lbc {
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt line 57
Quoted 5 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +5
-0+ #address-cells = <2>; + #size-cells = <1>; + compatible = "fsl,p1020-elbc", "fsl,elbc", "simple-bus"; + interrupts = <19 2 0 0>; +};There's already a binding for elbc -- and the elbc node certainly should not claim compatibility with "fsl,p1020-immr".
to satisfy checkpatch script.
Quoted 30 lines
Quoted 15 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +15
-0+------------------------------------------------- + +Freescale L2 Cache Controller + +L2 cache is present in Freescale's QorIQ and QorIQ Qonverge platforms. +The cache bindings explained below are ePAPR compliant + +Properties: + +- compatible : Should include "fsl,chip-l2-cache-controller" and "cache" + where chip is the processor (bsc9132, npc8572 etc.) +- reg : Address and size of L2 cache controller registers +- cache-size : Size of the entire L2 cache +- interrupts : Error interrupt of L2 controller +- cache-line-size : Size of L2 cache linesDocumentation/devicetree/bindings/powerpc/arcturus/board.txt line 82
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +10
-0+ +Example: + + L2: l2-cache-controller@20000 { + compatible = "fsl,p1020-l2-cache-controller", "cache"; + reg = <0x20000 0x1000>; + cache-line-size = <32>; // 32 bytes + cache-size = <0x40000>; // L2,256K + interrupts = <16 2 1 0>; + };This is copied and pasted from the existing binding. Ignore checkpatch's inability to understand that "fsl,chip-l2-cache-controller" includes "fsl,p1020-l2-cache-controller".
Quoted 4 lines
Likewise for the other bindings. If you're going to have a binding document for your board, it should only talk about things that are specific to your board.
to satisfy checkpatch script.
Quoted 6 lines
Quoted 6 lines
Documentation/devicetree/bindings/usb/fsl-usb.txt +0
-0@@ -57,7 +57,7 @@ Example multi port host USB controller device node :
Quoted 10 lines
Documentation/devicetree/bindings/usb/fsl-usb.txt Example multi port host USB controller device node : · line 63
Quoted 7 lines
Documentation/devicetree/bindings/usb/fsl-usb.txt +1
-1Example dual role USB controller device node : usb@23000 { - compatible = "fsl-usb2-dr"; + compatible = "fsl-usb2-dr", "fsl-usb2-dr-v1.6"; reg = <23000 1000>; #address-cells = <1>; #size-cells = <0>;More specific compatibles come first.
OK.
Quoted 9 lines
arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsi
Quoted 5 lines
arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsi new file +0
-0Why can't you use
p1020si-post.dtsi? The "si" means "silicon" -- it's meant to be included by all p1020 boards.
Yes, silicon is the same, but p1020 boards using all 3 etsec ethernet controllers. Our board using only 2: etsec1 and etsec3. And to avoid using eth0,eth2, and to use eth0,eth1 we make this extra ucp1020som-*.
Quoted 12 lines
arch/powerpc/boot/dts/ucp1020_32b.dts line 2
Quoted 8 lines
arch/powerpc/boot/dts/ucp1020_32b.dts new file +2
-0@@ -0,0 +1,88 @@ +/* + * uCP1020 Tree Source (32-bit address map)Do you plan on supporting both 32 and 36 bits? If not, leave off the "
_32b".
Good point - will rename.
Quoted 8 lines
arch/powerpc/configs/ucp1020_defconfig
Quoted 5 lines
arch/powerpc/configs/ucp1020_defconfig new file +0
-0Please explain why your board needs its own defconfig.
Because, it's our own board and it has some specific to board definitions like CONFIG_DEFAULT_HOSTNAME and some specific to product definitions.
If I can do it in some other way could you please give me some example if it's possible.
Quoted 3 lines
Plus, all defconfigs need to be run through savedefconfig to trim everything that doesn't change a default.
Sorry, forgot. Will do.
Quoted 54 lines
Quoted 32 lines
arch/powerpc/platforms/85xx/ucp1020_som.c new file +26
-0@@ -0,0 +1,100 @@ +/* +* Arcturus Networks Inc. uCP1020 system on module Setup +* +* Copyright 2014-2015 Arcturus Networks Inc. +* +* by Oleksandr G Zhadan & Michael Durrant (www.ArcturusNetworks.com) +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation; either version 2 of the License, or (at your +* option) any later version. +*/ + +#include <linux/stddef.h> +#include <linux/kernel.h> +#include <linux/pci.h> +#include <linux/kdev_t.h> +#include <linux/delay.h> +#include <linux/seq_file.h> +#include <linux/interrupt.h> +#include <linux/of_platform.h> + +#include <asm/time.h> +#include <asm/machdep.h> +#include <asm/pci-bridge.h> +#include <mm/mmu_decl.h> arch/powerpc/platforms/85xx/ucp1020_som.c line 36
Quoted 10 lines
arch/powerpc/platforms/85xx/ucp1020_som.c new file +10
-0+#include <asm/prom.h> +#include <asm/udbg.h> +#include <asm/mpic.h> +#include <asm/fsl_guts.h> + +#include <sysdev/fsl_soc.h> +#include <sysdev/fsl_pci.h> +#include "smp.h" + +#include "mpc85xx.h" You don't need all of these headers.
Quoted 9 lines
arch/powerpc/platforms/85xx/ucp1020_som.c new file +9
-0+ +void __init ucp1020_som_pic_init (void ) +{ +struct mpic *mpic; +unsigned long root =of_get_flat_dt_root (); + +if (of_flat_dt_is_compatible (root,"fsl,MPC85XXRDB-CAMP" )) { + mpic = mpic_alloc(NULL, 0, MPIC_NO_RESET | + MPIC_BIG_ENDIAN |
Quoted 9 lines
arch/powerpc/platforms/85xx/ucp1020_som.c line 51
Quoted 6 lines
arch/powerpc/platforms/85xx/ucp1020_som.c new file +6
-0+ MPIC_SINGLE_DEST_CPU, 0, 256, " OpenPIC "); + }else { + mpic =mpic_alloc (NULL ,0 , +MPIC_BIG_ENDIAN | +MPIC_SINGLE_DEST_CPU ,0 ,256 ," OpenPIC " ); + }Why do you have fsl,MPC85XXRDB-CAMP in here?
ups, didn't notice(cut and paste) will fix.
Probably will delay with patches fixes until May 21 - I'll be out of office.
Oleks
Quoted 4 lines
-Scott
Signature · 4 lines
Oleksandr Zhadan Arcturus Networks T 416 621-0125 x235 F 416 621-0190
Quoted 38 lines · Oleksandr G Zhadan
Hi Scott,
Thanks for fast response, please see inline.
Quoted 23 lines · Scott Wood
Quoted 7 lines · Oleksandr G Zhadan
+-------------------------------------------------
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +6
-0+ +P1020 SPI controller + +Properties: +- compatible: "spansion,s25fl008k", "winbond,w25q80bl" +Documentation/devicetree/bindings/powerpc/arcturus/board.txt line 39
Quoted 10 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +10
-0+Example: + spi@7000 { + flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,s25fl008k", "winbond,w25q80bl"; + reg = <0>; + spi-max-frequency = <40000000>; /* input clock */ + ... + };This isn't describing the controller, but rather a SPI chip attached to the controller. This also doesn't seem like the right place for random SPI chips.
Quoted 9 lines
If all you're specifying is the compatible, maybe create a
spi/trivial-devices.txtsimilar toi2c/trivial-devices.txt? Or something specific to SPI flash chips to describe the partition specification, though I generally recommend against describing partitions in the device tree -- especially if this is a developer board rather than something fixed-purpose where the partitioning is not going to change based on user requirements.
Quoted 3 lines
Mostly in all
Documentation/devicetree/bindings/I tried to satisfy checkpatch script as simple as possible. And for me as well it looks reasonable to createspi/trivial-devices.txtfile and I will.
Checkpatch is a tool, not a dictator. Sometimes it gets things wrong.
Also, please CC [email protected] when adding bindings or modifying dts files.
Quoted 24 lines
Quoted 13 lines
Quoted 13 lines
+-------------------------------------------------
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +12
-0+ +Chipselect/Local Bus + +Properties: +- #address-cells: <2>. +- #size-cells: <1>. +- compatible: "fsl,p1020-elbc", "fsl,elbc", "simple-bus","fsl,p1020-immr" +- interrupts: interrupts to report localbus events. + +Example: + +&lbc {Quoted 10 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt line 57
Quoted 5 lines
Documentation/devicetree/bindings/powerpc/arcturus/board.txt new file +5
-0+ #address-cells = <2>; + #size-cells = <1>; + compatible = "fsl,p1020-elbc", "fsl,elbc", "simple-bus"; + interrupts = <19 2 0 0>; +};There's already a binding for elbc -- and the elbc node certainly should not claim compatibility with "fsl,p1020-immr".
Quoted 1 line
to satisfy checkpatch script.
Even if that were necessary, why do it by copy-and-paste, and why put the immr compatible in the binding for a different node?
Quoted 10 lines
Quoted 9 lines
arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsi
Quoted 5 lines
arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsi new file +0
-0Why can't you use
p1020si-post.dtsi? The "si" means "silicon" -- it's meant to be included by all p1020 boards.
Quoted 2 lines
Yes, silicon is the same, but p1020 boards using all 3 etsec ethernet controllers. Our board using only 2: etsec1 and etsec3.
So have your board write status = "disabled" into the etsec2 node after including the post file.
Quoted 9 lines
Quoted 8 lines
arch/powerpc/configs/ucp1020_defconfig
Quoted 5 lines
arch/powerpc/configs/ucp1020_defconfig new file +0
-0Please explain why your board needs its own defconfig.
Quoted 6 lines
Because, it's our own board and it has some specific to board definitions like
CONFIG_DEFAULT_HOSTNAMEand some specific to product definitions.If I can do it in some other way could you please give me some example if it's possible.
I don't think stuff like CONFIG_DEFAULT_HOSTNAME belongs upstream. Could you list what you need to be set that mpc85xx_smp_defconfig doesn't set?
-Scott
Quoted 39 lines · Scott Wood
Quoted 38 lines · Oleksandr G Zhadan
Hi Scott,
Thanks for fast response, please see inline.
Quoted 32 lines · Scott Wood
Quoted 7 lines · Oleksandr G Zhadan
+-------------------------------------------------
(quoted diff) +6
-0+ +P1020 SPI controller + +Properties: +- compatible: "spansion,s25fl008k", "winbond,w25q80bl" +Review
Quoted 10 lines
(quoted diff) +10
-0+Example: + spi@7000 { + flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,s25fl008k", "winbond,w25q80bl"; + reg = <0>; + spi-max-frequency = <40000000>; /* input clock */ + ... + };This isn't describing the controller, but rather a SPI chip attached to the controller. This also doesn't seem like the right place for random SPI chips.
If all you're specifying is the compatible, maybe create a
spi/trivial-devices.txtsimilar toi2c/trivial-devices.txt? Or something specific to SPI flash chips to describe the partition specification, though I generally recommend against describing partitions in the device tree -- especially if this is a developer board rather than something fixed-purpose where the partitioning is not going to change based on user requirements.
Quoted 9 lines
Quoted 3 lines
Mostly in all
Documentation/devicetree/bindings/I tried to satisfy checkpatch script as simple as possible. And for me as well it looks reasonable to createspi/trivial-devices.txtfile and I will.Checkpatch is a tool, not a dictator. Sometimes it gets things wrong.
Also, please CC [email protected] when adding bindings or modifying dts files.
OK, got it.
Quoted 24 lines
Quoted 24 lines
Quoted 23 lines
Quoted 8 lines
+-------------------------------------------------
(quoted diff) +7
-0+ +Chipselect/Local Bus + +Properties: +- #address-cells: <2>. +- #size-cells: <1>. +- compatible: "fsl,p1020-elbc", "fsl,elbc", "simple-bus","fsl,p1020-immr"Review
Quoted 10 lines
(quoted diff) +10
-0+- interrupts: interrupts to report localbus events. + +Example: + +&lbc { + #address-cells = <2>; + #size-cells = <1>; + compatible = "fsl,p1020-elbc", "fsl,elbc", "simple-bus"; + interrupts = <19 2 0 0>; +};There's already a binding for elbc -- and the elbc node certainly should not claim compatibility with "fsl,p1020-immr".
Quoted 4 lines
Quoted 1 line
to satisfy checkpatch script.
Even if that were necessary, why do it by copy-and-paste, and why put the immr compatible in the binding for a different node?
Will fix.
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsi
Quoted 6 lines
arch/powerpc/boot/dts/fsl/ucp1020som-post.dtsi new file +0
-0Why can't you use
p1020si-post.dtsi? The "si" means "silicon" -- it's meant to be included by all p1020 boards.
Quoted 5 lines
Quoted 2 lines
Yes, silicon is the same, but p1020 boards using all 3 etsec ethernet controllers. Our board using only 2: etsec1 and etsec3.
So have your board write status = "disabled" into the etsec2 node after including the post file.
While ago I create ucp1020som-post.dtsi to make it work as we need. I did try some things, but I really don't remember what exactly and result always was eth0,eth1,eth2 or eth0,eth2 and newer eth0,eth1.
I'll retry status="disabled".
Quoted 14 lines
Quoted 14 lines
Quoted 9 lines
arch/powerpc/configs/ucp1020_defconfig
Quoted 6 lines
arch/powerpc/configs/ucp1020_defconfig new file +0
-0Please explain why your board needs its own defconfig.
Because, it's our own board and it has some specific to board definitions like
CONFIG_DEFAULT_HOSTNAMEand some specific to product definitions.
Quoted 6 lines
Quoted 2 lines
If I can do it in some other way could you please give me some example if it's possible.
I don't think stuff like
CONFIG_DEFAULT_HOSTNAMEbelongs upstream. Could you list what you need to be set thatmpc85xx_smp_defconfigdoesn't set?
I make diff "mpc85xx_smp_defconfig" vs "ucp1020_defconfig after make savedefconfig" and it's some differences like:
- mpc85xx_smp_defconfig has:CONFIG_PHYS_64BIT=yCONFIG_NR_CPUS=8
- it enabled almost all boards to build. What for ?
- it has MTD related differences (doesn't enabled spi flashes support we need):
-CONFIG_MTD_M25P80=y
-CONFIG_MTD_SST25L=y
- It includes some PHY support, but not phy we are using and we need include intel wifi support:
-CONFIG_MICREL_PHY=y
-CONFIG_IWLWIFI=y
- It doesn't enable EXT4 fs support.
Etc...
You can see it yourself below:
----------------------------------------
mpc85xx_smp_defconfig 2015-05-01 18:45:03.000000000 -0400 renamed from defconfig 2015-05-07 14:48:12.000000000 -0400 +147 -158
@@ -1,51 +1,58 @@ CONFIG_PPC_85xx=y +CONFIG_PHYS_64BIT=y CONFIG_SMP=y -CONFIG_NR_CPUS=2 -CONFIG_CROSS_COMPILE="powerpc-linux-" -# CONFIG_LOCALVERSION_AUTO is not set -CONFIG_DEFAULT_HOSTNAME="uCP1020" -# CONFIG_SWAP is not set +CONFIG_NR_CPUS=8 CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y CONFIG_AUDIT=y -CONFIG_NO_HZ_IDLE=y +CONFIG_IRQ_DOMAIN_DEBUG=y +CONFIG_NO_HZ=y +CONFIG_HIGH_RES_TIMERS=y CONFIG_BSD_PROCESS_ACCT=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=14 -CONFIG_LOG_CPU_MAX_BUF_SHIFT=14 -CONFIG_SYSFS_DEPRECATED=y CONFIG_BLK_DEV_INITRD=y -# CONFIG_RD_BZIP2 is not set -# CONFIG_RD_LZMA is not set -# CONFIG_RD_XZ is not set -# CONFIG_RD_LZO is not set -# CONFIG_RD_LZ4 is not set -CONFIG_SYSCTL_SYSCALL=y -CONFIG_EMBEDDED=y -# CONFIG_SLUB_DEBUG is not set -# CONFIG_COMPAT_BRK is not set -CONFIG_JUMP_LABEL=y +CONFIG_EXPERT=y +CONFIG_KALLSYMS_ALL=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_FORCE_UNLOAD=y +CONFIG_MODVERSIONS=y # CONFIG_BLK_DEV_BSG is not set CONFIG_PARTITION_ADVANCED=y CONFIG_MAC_PARTITION=y -# CONFIG_EFI_PARTITION is not set -# CONFIG_IOSCHED_CFQ is not set -CONFIG_UCP1020_SOM=y +CONFIG_C293_PCIE=y +CONFIG_MPC8540_ADS=y +CONFIG_MPC8560_ADS=y +CONFIG_MPC85xx_CDS=y +CONFIG_MPC85xx_MDS=y +CONFIG_MPC8536_DS=y +CONFIG_MPC85xx_DS=y +CONFIG_MPC85xx_RDB=y +CONFIG_P1010_RDB=y +CONFIG_P1022_DS=y +CONFIG_P1022_RDK=y +CONFIG_P1023_RDB=y +CONFIG_SOCRATES=y +CONFIG_KSI8560=y +CONFIG_XES_MPC85xx=y +CONFIG_STX_GP3=y +CONFIG_TQM8540=y +CONFIG_TQM8541=y +CONFIG_TQM8548=y +CONFIG_TQM8555=y +CONFIG_TQM8560=y +CONFIG_SBC8548=y +CONFIG_QUICC_ENGINE=y +CONFIG_QE_GPIO=y CONFIG_HIGHMEM=y -CONFIG_PREEMPT=y -# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set +CONFIG_BINFMT_MISC=m CONFIG_MATH_EMULATION=y -CONFIG_SWIOTLB=y -# CONFIG_COMPACTION is not set +CONFIG_FORCE_MAX_ZONEORDER=12 CONFIG_PCI=y -CONFIG_PCIEPORTBUS=y -# CONFIG_PCIEAER is not set -# CONFIG_PCIEASPM is not set CONFIG_PCI_MSI=y +CONFIG_RAPIDIO=y CONFIG_NET=y CONFIG_PACKET=y CONFIG_UNIX=y
@@ -53,44 +60,26 @@ CONFIG_NET_KEY=y CONFIG_INET=y CONFIG_IP_MULTICAST=y -CONFIG_SYN_COOKIES=y -# CONFIG_INET_XFRM_MODE_TRANSPORT is not set -# CONFIG_INET_XFRM_MODE_TUNNEL is not set +CONFIG_IP_ADVANCED_ROUTER=y +CONFIG_IP_MULTIPLE_TABLES=y +CONFIG_IP_ROUTE_MULTIPATH=y +CONFIG_IP_ROUTE_VERBOSE=y +CONFIG_IP_PNP=y +CONFIG_IP_PNP_DHCP=y +CONFIG_IP_PNP_BOOTP=y +CONFIG_IP_PNP_RARP=y +CONFIG_NET_IPIP=y +CONFIG_IP_MROUTE=y +CONFIG_IP_PIMSM_V1=y +CONFIG_IP_PIMSM_V2=y +CONFIG_INET_ESP=y # CONFIG_INET_XFRM_MODE_BEET is not set # CONFIG_INET_LRO is not set -# CONFIG_IPV6 is not set -CONFIG_NETFILTER=y -CONFIG_BRIDGE_NETFILTER=y -CONFIG_NF_CONNTRACK=y -CONFIG_NF_CONNTRACK_FTP=y -CONFIG_NETFILTER_XT_TARGET_CONNMARK=y -CONFIG_NETFILTER_XT_TARGET_MARK=y -CONFIG_NETFILTER_XT_MATCH_COMMENT=y -CONFIG_NETFILTER_XT_MATCH_CONNMARK=y -CONFIG_NETFILTER_XT_MATCH_CONNTRACK=y -CONFIG_NETFILTER_XT_MATCH_HELPER=y -CONFIG_NETFILTER_XT_MATCH_MARK=y -CONFIG_NETFILTER_XT_MATCH_MULTIPORT=y -CONFIG_NETFILTER_XT_MATCH_STATE=y -CONFIG_NF_CONNTRACK_IPV4=y -CONFIG_IP_NF_IPTABLES=y -CONFIG_IP_NF_FILTER=y -CONFIG_IP_NF_TARGET_REJECT=y -CONFIG_IP_NF_NAT=y -CONFIG_IP_NF_TARGET_MASQUERADE=y -CONFIG_IP_NF_TARGET_NETMAP=y -CONFIG_IP_NF_TARGET_REDIRECT=y -CONFIG_IP_NF_MANGLE=y -CONFIG_BRIDGE=y -CONFIG_VLAN_8021Q=y -CONFIG_NET_SCHED=y -CONFIG_NET_SCH_HTB=y -CONFIG_CFG80211=y -# CONFIG_CFG80211_DEFAULT_PS is not set -CONFIG_MAC80211=y -# CONFIG_MAC80211_RC_MINSTREL is not set -CONFIG_UEVENT_HELPER_PATH="/bin/hotplug" -CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y +CONFIG_IPV6=y +CONFIG_IP_SCTP=m +CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" +CONFIG_DEVTMPFS=y +CONFIG_DEVTMPFS_MOUNT=y CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_BLOCK=y
@@ -99,77 +88,44 @@ CONFIG_MTD_CFI_INTELEXT=y CONFIG_MTD_CFI_AMDSTD=y CONFIG_MTD_PHYSMAP_OF=y -CONFIG_MTD_M25P80=y -CONFIG_MTD_SST25L=y CONFIG_MTD_NAND=y -CONFIG_MTD_NAND_PLATFORM=y CONFIG_MTD_NAND_FSL_ELBC=y -CONFIG_MTD_NAND_FSL_UPM=y +CONFIG_MTD_NAND_FSL_IFC=y CONFIG_MTD_SPI_NOR=y +CONFIG_MTD_UBI=y CONFIG_BLK_DEV_LOOP=y +CONFIG_BLK_DEV_NBD=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_SIZE=131072 -CONFIG_EEPROM_AT25=y -CONFIG_SCSI=y +CONFIG_EEPROM_AT24=y +CONFIG_EEPROM_LEGACY=y CONFIG_BLK_DEV_SD=y CONFIG_CHR_DEV_ST=y CONFIG_BLK_DEV_SR=y CONFIG_CHR_DEV_SG=y CONFIG_SCSI_LOGGING=y +CONFIG_ATA=y +CONFIG_SATA_AHCI=y +CONFIG_SATA_FSL=y +CONFIG_SATA_SIL24=y +CONFIG_PATA_ALI=y CONFIG_NETDEVICES=y -# CONFIG_NET_VENDOR_3COM is not set -# CONFIG_NET_VENDOR_ADAPTEC is not set -# CONFIG_NET_VENDOR_AGERE is not set -# CONFIG_NET_VENDOR_ALTEON is not set -# CONFIG_NET_VENDOR_AMD is not set -# CONFIG_NET_VENDOR_ARC is not set -# CONFIG_NET_VENDOR_ATHEROS is not set -# CONFIG_NET_CADENCE is not set -# CONFIG_NET_VENDOR_BROADCOM is not set -# CONFIG_NET_VENDOR_BROCADE is not set -# CONFIG_NET_VENDOR_CHELSIO is not set -# CONFIG_NET_VENDOR_CISCO is not set -# CONFIG_NET_VENDOR_DEC is not set -# CONFIG_NET_VENDOR_DLINK is not set -# CONFIG_NET_VENDOR_EMULEX is not set -# CONFIG_NET_VENDOR_EXAR is not set +CONFIG_DUMMY=y +CONFIG_FS_ENET=y +CONFIG_UCC_GETH=y CONFIG_GIANFAR=y -# CONFIG_NET_VENDOR_HP is not set -# CONFIG_NET_VENDOR_INTEL is not set -# CONFIG_NET_VENDOR_MARVELL is not set -# CONFIG_NET_VENDOR_MELLANOX is not set -# CONFIG_NET_VENDOR_MICREL is not set -# CONFIG_NET_VENDOR_MICROCHIP is not set -# CONFIG_NET_VENDOR_MYRI is not set -# CONFIG_NET_VENDOR_NATSEMI is not set -# CONFIG_NET_VENDOR_NVIDIA is not set -# CONFIG_NET_VENDOR_OKI is not set -# CONFIG_NET_PACKET_ENGINE is not set -# CONFIG_NET_VENDOR_QLOGIC is not set -# CONFIG_NET_VENDOR_QUALCOMM is not set -# CONFIG_NET_VENDOR_REALTEK is not set -# CONFIG_NET_VENDOR_RDC is not set -# CONFIG_NET_VENDOR_ROCKER is not set -# CONFIG_NET_VENDOR_SAMSUNG is not set -# CONFIG_NET_VENDOR_SEEQ is not set -# CONFIG_NET_VENDOR_SILAN is not set -# CONFIG_NET_VENDOR_SIS is not set -# CONFIG_NET_VENDOR_SMSC is not set -# CONFIG_NET_VENDOR_STMICRO is not set -# CONFIG_NET_VENDOR_SUN is not set -# CONFIG_NET_VENDOR_TEHUTI is not set -# CONFIG_NET_VENDOR_TI is not set -# CONFIG_NET_VENDOR_VIA is not set -# CONFIG_NET_VENDOR_WIZNET is not set -# CONFIG_NET_VENDOR_XILINX is not set -CONFIG_MICREL_PHY=y -CONFIG_IWLWIFI=y +CONFIG_E1000E=y +CONFIG_AT803X_PHY=y +CONFIG_MARVELL_PHY=y +CONFIG_DAVICOM_PHY=y +CONFIG_CICADA_PHY=y +CONFIG_VITESSE_PHY=y +CONFIG_FIXED_PHY=y +CONFIG_INPUT_FF_MEMLESS=m # CONFIG_INPUT_MOUSEDEV is not set # CONFIG_INPUT_KEYBOARD is not set # CONFIG_INPUT_MOUSE is not set CONFIG_SERIO_LIBPS2=y -CONFIG_LEGACY_PTY_COUNT=16 -CONFIG_NOZOMI=y CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_8250_NR_UARTS=2
@@ -177,79 +133,112 @@ CONFIG_SERIAL_8250_MANY_PORTS=y CONFIG_SERIAL_8250_DETECT_IRQ=y CONFIG_SERIAL_8250_RSA=y +CONFIG_SERIAL_QE=m CONFIG_NVRAM=y CONFIG_I2C=y CONFIG_I2C_CHARDEV=y +CONFIG_I2C_CPM=m CONFIG_I2C_MPC=y CONFIG_SPI=y -CONFIG_SPI_BITBANG=y +CONFIG_SPI_FSL_SPI=y CONFIG_SPI_FSL_ESPI=y -CONFIG_SPI_SPIDEV=y -CONFIG_GPIOLIB=y CONFIG_GPIO_MPC8XXX=y CONFIG_SENSORS_LM90=y -CONFIG_THERMAL=y -CONFIG_WATCHDOG=y -CONFIG_BOOKE_WDT=y -CONFIG_BOOKE_WDT_DEFAULT_TIMEOUT=36 -# CONFIG_HID is not set -# CONFIG_USB_HID is not set +CONFIG_FB=y +CONFIG_FB_FSL_DIU=y +# CONFIG_VGA_CONSOLE is not set +CONFIG_FRAMEBUFFER_CONSOLE=y +CONFIG_SOUND=y +CONFIG_SND=y +# CONFIG_SND_SUPPORT_OLD_API is not set +# CONFIG_SND_DRIVERS is not set +CONFIG_SND_INTEL8X0=y +# CONFIG_SND_PPC is not set +# CONFIG_SND_USB is not set +CONFIG_SND_SOC=y +CONFIG_SND_POWERPC_SOC=y +CONFIG_HID_A4TECH=y +CONFIG_HID_APPLE=y +CONFIG_HID_BELKIN=y +CONFIG_HID_CHERRY=y +CONFIG_HID_CHICONY=y +CONFIG_HID_CYPRESS=y +CONFIG_HID_EZKEY=y +CONFIG_HID_GYRATION=y +CONFIG_HID_LOGITECH=y +CONFIG_HID_MICROSOFT=y +CONFIG_HID_MONTEREY=y +CONFIG_HID_PANTHERLORD=y +CONFIG_HID_PETALYNX=y +CONFIG_HID_SAMSUNG=y +CONFIG_HID_SUNPLUS=y CONFIG_USB=y -CONFIG_USB_ANNOUNCE_NEW_DEVICES=y -CONFIG_USB_DYNAMIC_MINORS=y CONFIG_USB_MON=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_FSL=y -CONFIG_USB_ACM=y -CONFIG_USB_WDM=y -CONFIG_USB_TMC=y +CONFIG_USB_OHCI_HCD=y +CONFIG_USB_OHCI_HCD_PPC_OF_BE=y +CONFIG_USB_OHCI_HCD_PPC_OF_LE=y CONFIG_USB_STORAGE=y -CONFIG_USB_STORAGE_DEBUG=y CONFIG_MMC=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_PLTFM=y CONFIG_MMC_SDHCI_OF_ESDHC=y +CONFIG_EDAC=y +CONFIG_EDAC_MM_EDAC=y +CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_DS1307=y +CONFIG_RTC_DRV_DS1374=y +CONFIG_RTC_DRV_DS3232=y +CONFIG_RTC_DRV_CMOS=y CONFIG_DMADEVICES=y CONFIG_FSL_DMA=y -CONFIG_ASYNC_TX_DMA=y -# CONFIG_IOMMU_SUPPORT is not set CONFIG_EXT2_FS=y CONFIG_EXT3_FS=y # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set -# CONFIG_EXT3_FS_XATTR is not set -CONFIG_EXT4_FS=y -CONFIG_XFS_FS=y -CONFIG_MSDOS_FS=y +CONFIG_ISO9660_FS=m +CONFIG_JOLIET=y +CONFIG_ZISOFS=y +CONFIG_UDF_FS=m +CONFIG_MSDOS_FS=m CONFIG_VFAT_FS=y CONFIG_NTFS_FS=y CONFIG_PROC_KCORE=y CONFIG_TMPFS=y +CONFIG_HUGETLBFS=y +CONFIG_ADFS_FS=m +CONFIG_AFFS_FS=m +CONFIG_HFS_FS=m +CONFIG_HFSPLUS_FS=m +CONFIG_BEFS_FS=m +CONFIG_BFS_FS=m +CONFIG_EFS_FS=m CONFIG_JFFS2_FS=y -CONFIG_JFFS2_FS_WBUF_VERIFY=y -CONFIG_JFFS2_SUMMARY=y -CONFIG_JFFS2_FS_XATTR=y -CONFIG_JFFS2_COMPRESSION_OPTIONS=y -CONFIG_JFFS2_LZO=y -CONFIG_JFFS2_RUBIN=y +CONFIG_JFFS2_FS_DEBUG=1 +CONFIG_UBIFS_FS=y CONFIG_CRAMFS=y +CONFIG_VXFS_FS=m +CONFIG_HPFS_FS=m +CONFIG_QNX4FS_FS=m +CONFIG_SYSV_FS=m +CONFIG_UFS_FS=m CONFIG_NFS_FS=y CONFIG_NFS_V4=y +CONFIG_ROOT_NFS=y CONFIG_NFSD=y -CONFIG_CIFS=y CONFIG_NLS_CODEPAGE_437=y +CONFIG_NLS_CODEPAGE_850=y CONFIG_NLS_ISO8859_1=y CONFIG_CRC_T10DIF=y -CONFIG_CRC_ITU_T=y -# CONFIG_SCHED_DEBUG is not set -# CONFIG_DEBUG_PREEMPT is not set -# CONFIG_DEBUG_BUGVERBOSE is not set -CONFIG_RCU_CPU_STALL_TIMEOUT=60 -# CONFIG_RCU_CPU_STALL_INFO is not set -# CONFIG_FTRACE is not set -CONFIG_CRYPTO_CBC=y -CONFIG_CRYPTO_PCBC=y -CONFIG_CRYPTO_SHA1=y -CONFIG_CRYPTO_SHA1_PPC=y -CONFIG_CRYPTO_DEFLATE=y +CONFIG_FONTS=y +CONFIG_FONT_8x8=y +CONFIG_FONT_8x16=y +CONFIG_DEBUG_INFO=y +CONFIG_DEBUG_FS=y +CONFIG_DETECT_HUNG_TASK=y +CONFIG_CRYPTO_PCBC=m +CONFIG_CRYPTO_SHA256=y +CONFIG_CRYPTO_SHA512=y # CONFIG_CRYPTO_ANSI_CPRNG is not set +CONFIG_CRYPTO_DEV_FSL_CAAM=y CONFIG_CRYPTO_DEV_TALITOS=y
----------------------------------------
Oleks
Quoted 5 lines
-Scott
Signature · 4 lines
Oleksandr Zhadan Arcturus Networks T 416 621-0125 x235 F 416 621-0190
Quoted 22 lines · Oleksandr G Zhadan
Quoted 14 lines · Scott Wood
Quoted 13 lines · Oleksandr G Zhadan
Quoted 8 lines
arch/powerpc/configs/ucp1020_defconfig
Quoted 5 lines
arch/powerpc/configs/ucp1020_defconfig new file +0
-0Please explain why your board needs its own defconfig.
Because, it's our own board and it has some specific to board definitions like
CONFIG_DEFAULT_HOSTNAMEand some specific to product definitions.Quoted 6 lines
Quoted 2 lines
If I can do it in some other way could you please give me some example if it's possible.
I don't think stuff like
CONFIG_DEFAULT_HOSTNAMEbelongs upstream. Could you list what you need to be set thatmpc85xx_smp_defconfigdoesn't set?
Quoted 6 lines
I make diff "
mpc85xx_smp_defconfig" vs "ucp1020_defconfigafter make savedefconfig" and it's some differences like:-
mpc85xx_smp_defconfighas:CONFIG_PHYS_64BIT=yCONFIG_NR_CPUS=8
These won't prevent your board from working. If you want CONFIG_PHYS_64BIT disabled for performance, I could see a fragment being used for that as per the recent defconfig discussions. I wouldn't expect NR_CPUS being 8 instead of 2 to be noticeable.
Quoted 1 line
- it enabled almost all boards to build. What for ?
Because that's what the common defconfigs are for. We don't want a defconfig for each board (most of the board-specific configs that are currently there were added long ago). If you want a config that contains nothing your board doesn't need, you can maintain that locally.
mpc85xx_smp_defconfig 2015-05-01 18:45:03.000000000 -0400 line 103
Quoted 4 lines
- it has MTD related differences (doesn't enabled spi flashes support we need):
mpc85xx_smp_defconfig 2015-05-01 18:45:03.000000000 -0400 renamed from defconfig 2015-05-07 14:48:12.000000000 -0400 +0
-2-CONFIG_MTD_M25P80=y -CONFIG_MTD_SST25L=y
So add them to the existing defconfig.
Quoted 1 line
- It includes some PHY support, but not phy we are using
This should not harm your board.
mpc85xx_smp_defconfig 2015-05-01 18:45:03.000000000 -0400 line 166
Quoted 3 lines
and we need include intel wifi support:
mpc85xx_smp_defconfig 2015-05-01 18:45:03.000000000 -0400 renamed from defconfig 2015-05-07 14:48:12.000000000 -0400 +0
-2-CONFIG_MICREL_PHY=y -CONFIG_IWLWIFI=y
So add them to the existing defconfig.
Quoted 1 line
- It doesn't enable EXT4 fs support.
I think this would be a reasonable thing to add.
Quoted 3 lines
Etc...
You can see it yourself below:
That doesn't show me the set of changes that you *need*, only the set of changes that you have.
-Scott