bmips: add device tree example for BCM6358
Subsystems (4)
PATCH 2/2 bmips: add device tree example for BCM6358
This adds a device tree example for SFR Neufbox4 (Sercomm version), which also serves as a real example for brcm,bcm6358-leds.
--- .../devicetree/bindings/mips/brcm/soc.txt | 2 +- arch/mips/bmips/Kconfig | 4 + arch/mips/boot/dts/brcm/Makefile | 2 + arch/mips/boot/dts/brcm/bcm6358.dtsi | 111 +++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm96358nb4ser.dts | 47 +++++++++ 5 files changed, 165 insertions(+), 1 deletion(-) create mode 100644 arch/mips/boot/dts/brcm/bcm6358.dtsi create mode 100644 arch/mips/boot/dts/brcm/bcm96358nb4ser.dts
Documentation/devicetree/bindings/mips/brcm/soc.txt +1 -1
@@ -4,7 +4,7 @@ Required properties: - compatible: "brcm,bcm3384", "brcm,bcm33843" "brcm,bcm3384-viper", "brcm,bcm33843-viper" - "brcm,bcm6328", "brcm,bcm6368", + "brcm,bcm6328", "brcm,bcm6358", "brcm,bcm6368", "brcm,bcm7125", "brcm,bcm7346", "brcm,bcm7358", "brcm,bcm7360", "brcm,bcm7362", "brcm,bcm7420", "brcm,bcm7425"
arch/mips/bmips/Kconfig +4 -0
@@ -21,6 +21,10 @@ config DT_BCM93384WVG_VIPER bool "BCM93384WVG Viper CPU (EXPERIMENTAL)" select BUILTIN_DTB +config DT_BCM96358NB4SER + bool "BCM96358NB4SER" + select BUILTIN_DTB + config DT_BCM96368MVWG bool "BCM96368MVWG" select BUILTIN_DTB
arch/mips/boot/dts/brcm/Makefile +2 -0
@@ -1,5 +1,6 @@ dtb-$(CONFIG_DT_BCM93384WVG) += bcm93384wvg.dtb dtb-$(CONFIG_DT_BCM93384WVG_VIPER) += bcm93384wvg_viper.dtb +dtb-$(CONFIG_DT_BCM96358NB4SER) += bcm96358nb4ser.dtb dtb-$(CONFIG_DT_BCM96368MVWG) += bcm96368mvwg.dtb dtb-$(CONFIG_DT_BCM9EJTAGPRB) += bcm9ejtagprb.dtb dtb-$(CONFIG_DT_BCM97125CBMB) += bcm97125cbmb.dtb
@@ -14,6 +15,7 @@ dtb-$(CONFIG_DT_BCM97435SVMB) += bcm97435svmb.dtb dtb-$(CONFIG_DT_NONE) += \ bcm93384wvg.dtb \ bcm93384wvg_viper.dtb \ + bcm96358nb4ser.dtb \ bcm96368mvwg.dtb \ bcm9ejtagprb.dtb \ bcm97125cbmb.dtb \
arch/mips/boot/dts/brcm/bcm6358.dtsi new file +111 -0
111 lines not on this page · raw message
arch/mips/boot/dts/brcm/bcm96358nb4ser.dts new file +47 -0
47 lines not on this page · raw message
Signature · 1 line
1.9.1
Quoted 5 lines · Álvaro Fernández Rojas
This adds a device tree example for SFR Neufbox4 (Sercomm version), which
also serves as a real example for brcm,bcm6358-leds.Signed-off-by Álvaro Fernández Rojas <[email protected]>
Signature · 1 line
Florian
Rob Herring
maintainerQuoted 4 lines · Álvaro Fernández Rojas
This adds a device tree example for SFR Neufbox4 (Sercomm version), which also serves as a real example for brcm,bcm6358-leds.
Signed-off-by Álvaro Fernández Rojas <[email protected]>
[...]
Review
Quoted 1 line
(quoted diff) +0
-0
b/arch/mips/boot/dts/brcm/bcm6358.dtsi
Quoted 29 lines
new file mode 100644
index 0000000..b2d11daarch/mips/boot/dts/brcm/bcm6358.dtsi new file +24
-0@@ -0,0 +1,111 @@ +/ { + #address-cells = <1>; + #size-cells = <1>; + compatible = "brcm,bcm6358"; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + mips-hpt-frequency = <150000000>; + + cpu@0 { + compatible = "brcm,bmips4350"; + device_type = "cpu"; + reg = <0>; + }; + + cpu@1 { + compatible = "brcm,bmips4350"; + device_type = "cpu"; + reg = <1>; + }; + }; +
arch/mips/boot/dts/brcm/bcm6358.dtsi line 34
Quoted 10 lines
arch/mips/boot/dts/brcm/bcm6358.dtsi new file +10
-0+ clocks { + periph_clk: periph_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <50000000>; + }; + }; + + aliases { + leds0 = &leds0;
Why do we need alias for LEDs?
Quoted 3 lines
arch/mips/boot/dts/brcm/bcm6358.dtsi new file +3
-0+ uart0 = &uart0; + uart1 = &uart1; + };
[...]
Quoted 12 lines
arch/mips/boot/dts/brcm/bcm96358nb4ser.dts new file +6
-0@@ -0,0 +1,47 @@ +/dts-v1/; + +/include/ "bcm6358.dtsi" + +/ { + compatible = "sfr,nb4-ser", "brcm,bcm6358";
arch/mips/boot/dts/brcm/bcm96358nb4ser.dts line 16
Quoted 10 lines
arch/mips/boot/dts/brcm/bcm96358nb4ser.dts new file +10
-0+ model = "SFR Neufbox 4 (Sercomm)"; + + memory@0 { + device_type = "memory"; + reg = <0x00000000 0x02000000>; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + stdout-path = &uart0;
You shouldn't need both here. Just stdout-path.
Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 41 lines · Rob Herring
Quoted 4 lines · Álvaro Fernández Rojas
This adds a device tree example for SFR Neufbox4 (Sercomm version), which also serves as a real example for brcm,bcm6358-leds.
Signed-off-by Álvaro Fernández Rojas <[email protected]>[...]
Review
Quoted 1 line
(quoted diff) +0
-0
b/arch/mips/boot/dts/brcm/bcm6358.dtsiQuoted 32 lines
new file mode 100644
index 0000000..b2d11daarch/mips/boot/dts/brcm/bcm6358.dtsi new file +27
-0@@ -0,0 +1,111 @@ +/ { + #address-cells = <1>; + #size-cells = <1>; + compatible = "brcm,bcm6358"; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + mips-hpt-frequency = <150000000>; + + cpu@0 { + compatible = "brcm,bmips4350"; + device_type = "cpu"; + reg = <0>; + }; + + cpu@1 { + compatible = "brcm,bmips4350"; + device_type = "cpu"; + reg = <1>; + }; + }; + + clocks { + periph_clk: periph_clk { + compatible = "fixed-clock";
Quoted 8 lines
arch/mips/boot/dts/brcm/bcm6358.dtsi line 34
Quoted 7 lines
arch/mips/boot/dts/brcm/bcm6358.dtsi new file +7
-0+ #clock-cells = <0>; + clock-frequency = <50000000>; + }; + }; + + aliases { + leds0 = &leds0;Why do we need alias for LEDs?
Okay, I will remove this, but you should know it was accepted for BCM6328 and BCM6368 too:
http://git.linux-mips.org/cgit/sjhill/linux-sjhill.git/commit/arch/mips/boot/dts/brcm?h=mips-for-linux-next&id=db66dbbbfd8ded204a97d090357aff582968fcf5
http://git.linux-mips.org/cgit/sjhill/linux-sjhill.git/commit/arch/mips/boot/dts/brcm?h=mips-for-linux-next&id=70ce14bfc9fdb9b6af84ac492e9d3311551618a5
Quoted 21 lines
Quoted 4 lines
arch/mips/boot/dts/brcm/bcm6358.dtsi new file +3
-0+ uart0 = &uart0; + uart1 = &uart1; + };[...]
Quoted 15 lines
arch/mips/boot/dts/brcm/bcm96358nb4ser.dts new file +9
-0@@ -0,0 +1,47 @@ +/dts-v1/; + +/include/ "bcm6358.dtsi" + +/ { + compatible = "sfr,nb4-ser", "brcm,bcm6358"; + model = "SFR Neufbox 4 (Sercomm)"; + + memory@0 {
Quoted 8 lines
arch/mips/boot/dts/brcm/bcm96358nb4ser.dts line 16
Quoted 7 lines
arch/mips/boot/dts/brcm/bcm96358nb4ser.dts new file +7
-0+ device_type = "memory"; + reg = <0x00000000 0x02000000>; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + stdout-path = &uart0;You shouldn't need both here. Just stdout-path.
Okay, I will use stdout-path only, but once again you should know that both are used on every bmips board:
https://github.com/torvalds/linux/tree/master/arch/mips/boot/dts/brcm
https://github.com/torvalds/linux/blob/master/arch/mips/boot/dts/brcm/bcm93384wvg.dts#L9
...
https://github.com/torvalds/linux/blob/master/arch/mips/boot/dts/brcm/bcm9ejtagprb.dts#L14
Quoted 2 lines
Rob
Álvaro.