MIPS: dts: drop skeleton.dtsi
PATCH 1/1 MIPS: dts: drop skeleton.dtsi
Based on feedback from Sascha:
http://lists.infradead.org/pipermail/barebox/2018-April/032694.html " skeleton.dtsi should no longer be used "
Several reasons to remove skeleton.dtsi ares explained in the linux commit 3ebee5a2e141 ("arm64: dts: kill skeleton.dtsi").
Unit number is added to the /memory nodes to fix this dtc warning:
Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name
Also this commit adds #address-cells and #size-cells definitions to board and SoC dts file to avoid dtc warning, e.g.
Warning (avoid_default_addr_size): /memory@0: Relying on default #address-cells value
--- arch/mips/dts/dlink-dir-320.dts | 7 ++++--- arch/mips/dts/img-ci20.dts | 2 +- arch/mips/dts/jz4755.dtsi | 5 +++-- arch/mips/dts/jz4780.dtsi | 5 +++-- arch/mips/dts/loongson-ls1b.dts | 2 +- arch/mips/dts/ls1b.dtsi | 5 +++-- arch/mips/dts/qemu-malta.dts | 7 ++++--- arch/mips/dts/rzx50.dts | 2 +- arch/mips/dts/skeleton.dtsi | 13 ------------- 9 files changed, 20 insertions(+), 28 deletions(-)
arch/mips/dts/dlink-dir-320.dts +4 -3
@@ -1,12 +1,13 @@ /dts-v1/; -#include "skeleton.dtsi" - / { model = "D-Link DIR-320"; compatible = "dlink,dir320"; - memory { + #address-cells = <1>; + #size-cells = <1>; + + memory@0 { reg = <0x00000000 0x2000000>; };
arch/mips/dts/img-ci20.dts +1 -1
@@ -24,7 +24,7 @@ model = "MIPS Creator CI20"; compatible = "img,ci20"; - memory { + memory@0 { device_type = "memory"; reg = <0x0 0x10000000>; };
arch/mips/dts/jz4755.dtsi +3 -2
@@ -1,6 +1,7 @@ -#include "skeleton.dtsi" - / { + #address-cells = <1>; + #size-cells = <1>; + soc { compatible = "simple-bus"; model = "Ingenic JZ4755";
arch/mips/dts/jz4780.dtsi +3 -2
@@ -1,6 +1,7 @@ -#include "skeleton.dtsi" - / { + #address-cells = <1>; + #size-cells = <1>; + soc { model = "Ingenic JZ4780"; #address-cells = <1>;
arch/mips/dts/loongson-ls1b.dts +1 -1
@@ -6,7 +6,7 @@ model = "Loongson Tech LS1B Demo Board"; compatible = "loongson,ls1b"; - memory { + memory@0 { reg = <0x00000000 0x4000000>; }; };
arch/mips/dts/ls1b.dtsi +3 -2
@@ -1,6 +1,7 @@ -#include "skeleton.dtsi" - / { + #address-cells = <1>; + #size-cells = <1>; + soc { #address-cells = <1>; #size-cells = <1>;
arch/mips/dts/qemu-malta.dts +4 -3
@@ -1,11 +1,12 @@ /dts-v1/; -/include/ "skeleton.dtsi" - / { model = "qemu malta"; compatible = "qemu,malta"; + #address-cells = <1>; + #size-cells = <1>; + chosen { environment@0 { compatible = "barebox,environment";
@@ -13,7 +14,7 @@ }; }; - memory { + memory@0 { reg = <0x00000000 0x10000000>; };
arch/mips/dts/rzx50.dts +1 -1
@@ -6,7 +6,7 @@ model = "Ritmix RZX-50"; compatible = "ritmix,rzx50"; - memory { + memory@0 { reg = <0x00000000 0x4000000>; };
arch/mips/dts/skeleton.dtsi deleted +0 -13
@@ -1,13 +0,0 @@ -/* - * Skeleton device tree; the bare minimum needed to boot; just include and - * add a compatible value. The bootloader will typically populate the memory - * node. - */ - -/ { - #address-cells = <1>; - #size-cells = <1>; - chosen { }; - aliases { }; - memory { device_type = "memory"; reg = <0 0>; }; -};
Signature · 7 lines
2.17.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Tested-by Oleksij Rempel <[email protected]>
on dpt board.
Am 19.06.2018 um 19:14 schrieb Antony Pavlov:
Quoted 184 lines
Based on feedback from Sascha:
http://lists.infradead.org/pipermail/barebox/2018-April/032694.html " skeleton.dtsi should no longer be used "Several reasons to remove
skeleton.dtsiares explained in the linux commit3ebee5a2e141("arm64: dts: killskeleton.dtsi").Unit number is added to the /memory nodes to fix this dtc warning:
Warning (
unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit nameAlso this commit adds #address-cells and #size-cells definitions to board and SoC dts file to avoid dtc warning, e.g.
Warning (
avoid_default_addr_size): /memory@0: Relying on default #address-cells valueSigned-off-by Antony Pavlov <[email protected]>--- arch/mips/dts/dlink-dir-320.dts | 7 ++++--- arch/mips/dts/img-ci20.dts | 2 +- arch/mips/dts/jz4755.dtsi | 5 +++-- arch/mips/dts/jz4780.dtsi | 5 +++-- arch/mips/dts/loongson-ls1b.dts | 2 +- arch/mips/dts/ls1b.dtsi | 5 +++-- arch/mips/dts/qemu-malta.dts | 7 ++++--- arch/mips/dts/rzx50.dts | 2 +- arch/mips/dts/skeleton.dtsi | 13 ------------- 9 files changed, 20 insertions(+), 28 deletions(-)arch/mips/dts/dlink-dir-320.dts +4
-3@@ -1,12 +1,13 @@ /dts-v1/; -#include "skeleton.dtsi" - / { model = "D-Link DIR-320"; compatible = "dlink,dir320"; - memory { + #address-cells = <1>; + #size-cells = <1>; + + memory@0 { reg = <0x00000000 0x2000000>; };arch/mips/dts/img-ci20.dts +1
-1@@ -24,7 +24,7 @@ model = "MIPS Creator CI20"; compatible = "img,ci20"; - memory { + memory@0 { device_type = "memory"; reg = <0x0 0x10000000>; };arch/mips/dts/jz4755.dtsi +3
-2@@ -1,6 +1,7 @@ -#include "skeleton.dtsi" - / { + #address-cells = <1>; + #size-cells = <1>; + soc { compatible = "simple-bus"; model = "Ingenic JZ4755";arch/mips/dts/jz4780.dtsi +3
-2@@ -1,6 +1,7 @@ -#include "skeleton.dtsi" - / { + #address-cells = <1>; + #size-cells = <1>; + soc { model = "Ingenic JZ4780"; #address-cells = <1>;arch/mips/dts/loongson-ls1b.dts +1
-1@@ -6,7 +6,7 @@ model = "Loongson Tech LS1B Demo Board"; compatible = "loongson,ls1b"; - memory { + memory@0 { reg = <0x00000000 0x4000000>; }; };arch/mips/dts/ls1b.dtsi +3
-2@@ -1,6 +1,7 @@ -#include "skeleton.dtsi" - / { + #address-cells = <1>; + #size-cells = <1>; + soc { #address-cells = <1>; #size-cells = <1>;arch/mips/dts/qemu-malta.dts +4
-3@@ -1,11 +1,12 @@ /dts-v1/; -/include/ "skeleton.dtsi" - / { model = "qemu malta"; compatible = "qemu,malta"; + #address-cells = <1>; + #size-cells = <1>; + chosen { environment@0 { compatible = "barebox,environment";@@ -13,7 +14,7 @@ }; }; - memory { + memory@0 { reg = <0x00000000 0x10000000>; };arch/mips/dts/rzx50.dts +1
-1@@ -6,7 +6,7 @@ model = "Ritmix RZX-50"; compatible = "ritmix,rzx50"; - memory { + memory@0 { reg = <0x00000000 0x4000000>; };arch/mips/dts/skeleton.dtsi deleted +0
-13@@ -1,13 +0,0 @@ -/* - * Skeleton device tree; the bare minimum needed to boot; just include and - * add a compatible value. The bootloader will typically populate the memory - * node. - */ - -/ { - #address-cells = <1>; - #size-cells = <1>; - chosen { }; - aliases { }; - memory { device_type = "memory"; reg = <0 0>; }; -};
Signature · 2 lines
Regards, Oleksij
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 3 lines · On Tue, 19 Jun 2018 19:46:38 +0200 Oleksij Rempel <[email protected]>…
Tested-by Oleksij Rempel <[email protected]>
on dpt board.
Have you tried to boot linux?
Quoted 192 lines
Am 19.06.2018 um 19:14 schrieb Antony Pavlov:
Quoted 184 lines
Based on feedback from Sascha:
http://lists.infradead.org/pipermail/barebox/2018-April/032694.html " skeleton.dtsi should no longer be used "Several reasons to remove
skeleton.dtsiares explained in the linux commit3ebee5a2e141("arm64: dts: killskeleton.dtsi").Unit number is added to the /memory nodes to fix this dtc warning:
Warning (
unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit nameAlso this commit adds #address-cells and #size-cells definitions to board and SoC dts file to avoid dtc warning, e.g.
Warning (
avoid_default_addr_size): /memory@0: Relying on default #address-cells valueSigned-off-by Antony Pavlov <[email protected]>--- arch/mips/dts/dlink-dir-320.dts | 7 ++++--- arch/mips/dts/img-ci20.dts | 2 +- arch/mips/dts/jz4755.dtsi | 5 +++-- arch/mips/dts/jz4780.dtsi | 5 +++-- arch/mips/dts/loongson-ls1b.dts | 2 +- arch/mips/dts/ls1b.dtsi | 5 +++-- arch/mips/dts/qemu-malta.dts | 7 ++++--- arch/mips/dts/rzx50.dts | 2 +- arch/mips/dts/skeleton.dtsi | 13 ------------- 9 files changed, 20 insertions(+), 28 deletions(-)arch/mips/dts/dlink-dir-320.dts +4
-3@@ -1,12 +1,13 @@ /dts-v1/; -#include "skeleton.dtsi" - / { model = "D-Link DIR-320"; compatible = "dlink,dir320"; - memory { + #address-cells = <1>; + #size-cells = <1>; + + memory@0 { reg = <0x00000000 0x2000000>; };arch/mips/dts/img-ci20.dts +1
-1@@ -24,7 +24,7 @@ model = "MIPS Creator CI20"; compatible = "img,ci20"; - memory { + memory@0 { device_type = "memory"; reg = <0x0 0x10000000>; };arch/mips/dts/jz4755.dtsi +3
-2@@ -1,6 +1,7 @@ -#include "skeleton.dtsi" - / { + #address-cells = <1>; + #size-cells = <1>; + soc { compatible = "simple-bus"; model = "Ingenic JZ4755";arch/mips/dts/jz4780.dtsi +3
-2@@ -1,6 +1,7 @@ -#include "skeleton.dtsi" - / { + #address-cells = <1>; + #size-cells = <1>; + soc { model = "Ingenic JZ4780"; #address-cells = <1>;arch/mips/dts/loongson-ls1b.dts +1
-1@@ -6,7 +6,7 @@ model = "Loongson Tech LS1B Demo Board"; compatible = "loongson,ls1b"; - memory { + memory@0 { reg = <0x00000000 0x4000000>; }; };arch/mips/dts/ls1b.dtsi +3
-2@@ -1,6 +1,7 @@ -#include "skeleton.dtsi" - / { + #address-cells = <1>; + #size-cells = <1>; + soc { #address-cells = <1>; #size-cells = <1>;arch/mips/dts/qemu-malta.dts +4
-3@@ -1,11 +1,12 @@ /dts-v1/; -/include/ "skeleton.dtsi" - / { model = "qemu malta"; compatible = "qemu,malta"; + #address-cells = <1>; + #size-cells = <1>; + chosen { environment@0 { compatible = "barebox,environment";@@ -13,7 +14,7 @@ }; }; - memory { + memory@0 { reg = <0x00000000 0x10000000>; };arch/mips/dts/rzx50.dts +1
-1@@ -6,7 +6,7 @@ model = "Ritmix RZX-50"; compatible = "ritmix,rzx50"; - memory { + memory@0 { reg = <0x00000000 0x4000000>; };arch/mips/dts/skeleton.dtsi deleted +0
-13@@ -1,13 +0,0 @@ -/* - * Skeleton device tree; the bare minimum needed to boot; just include and - * add a compatible value. The bootloader will typically populate the memory - * node. - */ - -/ { - #address-cells = <1>; - #size-cells = <1>; - chosen { }; - aliases { }; - memory { device_type = "memory"; reg = <0 0>; }; -};Signature · 2 lines
Regards, Oleksij
Signature · 7 lines
Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Am 20.06.2018 um 15:18 schrieb Antony Pavlov:
Quoted 1 line
Have you tried to boot linux?
yes, seems to be without notable regressions.
Signature · 2 lines
Regards, Oleksij
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
On Tue, 19 Jun 2018 20:14:33 +0300
Antony Pavlov <[email protected]> wrote:
Hi, Sascha!
Please ignore this patch.
I have to add device_type = "memory"; to memory nodes.
Also I'm planning to move #address-cells and #size-cells definitions to a separate patch.
Quoted 186 lines
Based on feedback from Sascha:
http://lists.infradead.org/pipermail/barebox/2018-April/032694.html " skeleton.dtsi should no longer be used "Several reasons to remove
skeleton.dtsiares explained in the linux commit3ebee5a2e141("arm64: dts: killskeleton.dtsi").Unit number is added to the /memory nodes to fix this dtc warning:
Warning (
unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit nameAlso this commit adds #address-cells and #size-cells definitions to board and SoC dts file to avoid dtc warning, e.g.
Warning (
avoid_default_addr_size): /memory@0: Relying on default #address-cells valueSigned-off-by Antony Pavlov <[email protected]>--- arch/mips/dts/dlink-dir-320.dts | 7 ++++--- arch/mips/dts/img-ci20.dts | 2 +- arch/mips/dts/jz4755.dtsi | 5 +++-- arch/mips/dts/jz4780.dtsi | 5 +++-- arch/mips/dts/loongson-ls1b.dts | 2 +- arch/mips/dts/ls1b.dtsi | 5 +++-- arch/mips/dts/qemu-malta.dts | 7 ++++--- arch/mips/dts/rzx50.dts | 2 +- arch/mips/dts/skeleton.dtsi | 13 ------------- 9 files changed, 20 insertions(+), 28 deletions(-)arch/mips/dts/dlink-dir-320.dts +4
-3@@ -1,12 +1,13 @@ /dts-v1/; -#include "skeleton.dtsi" - / { model = "D-Link DIR-320"; compatible = "dlink,dir320"; - memory { + #address-cells = <1>; + #size-cells = <1>; + + memory@0 { reg = <0x00000000 0x2000000>; };arch/mips/dts/img-ci20.dts +1
-1@@ -24,7 +24,7 @@ model = "MIPS Creator CI20"; compatible = "img,ci20"; - memory { + memory@0 { device_type = "memory"; reg = <0x0 0x10000000>; };arch/mips/dts/jz4755.dtsi +3
-2@@ -1,6 +1,7 @@ -#include "skeleton.dtsi" - / { + #address-cells = <1>; + #size-cells = <1>; + soc { compatible = "simple-bus"; model = "Ingenic JZ4755";arch/mips/dts/jz4780.dtsi +3
-2@@ -1,6 +1,7 @@ -#include "skeleton.dtsi" - / { + #address-cells = <1>; + #size-cells = <1>; + soc { model = "Ingenic JZ4780"; #address-cells = <1>;arch/mips/dts/loongson-ls1b.dts +1
-1@@ -6,7 +6,7 @@ model = "Loongson Tech LS1B Demo Board"; compatible = "loongson,ls1b"; - memory { + memory@0 { reg = <0x00000000 0x4000000>; }; };arch/mips/dts/ls1b.dtsi +3
-2@@ -1,6 +1,7 @@ -#include "skeleton.dtsi" - / { + #address-cells = <1>; + #size-cells = <1>; + soc { #address-cells = <1>; #size-cells = <1>;arch/mips/dts/qemu-malta.dts +4
-3@@ -1,11 +1,12 @@ /dts-v1/; -/include/ "skeleton.dtsi" - / { model = "qemu malta"; compatible = "qemu,malta"; + #address-cells = <1>; + #size-cells = <1>; + chosen { environment@0 { compatible = "barebox,environment";@@ -13,7 +14,7 @@ }; }; - memory { + memory@0 { reg = <0x00000000 0x10000000>; };arch/mips/dts/rzx50.dts +1
-1@@ -6,7 +6,7 @@ model = "Ritmix RZX-50"; compatible = "ritmix,rzx50"; - memory { + memory@0 { reg = <0x00000000 0x4000000>; };arch/mips/dts/skeleton.dtsi deleted +0
-13@@ -1,13 +0,0 @@ -/* - * Skeleton device tree; the bare minimum needed to boot; just include and - * add a compatible value. The bootloader will typically populate the memory - * node. - */ - -/ { - #address-cells = <1>; - #size-cells = <1>; - chosen { }; - aliases { }; - memory { device_type = "memory"; reg = <0 0>; }; -};Signature · 1 line
2.17.0
Signature · 7 lines
Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox