Add device nodes for BCM7xxx SoCs
Subsystems (3)
v3 cover Add device nodes for BCM7xxx SoCs
This patch series adds support for Broadcom BCM7xxx MIPS based SoCs.
The NAND device nodes have common file including chip select, BCH and partitions for the reference board with the same properties.
Changes in v3:
- Fixed incorrect interrupt number in aon_pm_l2_intc.
Changes in v2:
- Removed status properties in always enabled GPIO nodes.
- Removed NAND nodes for v3.3 brcmnand controller.
- Renamed interrupt-controller instead of lable string.
- Renamed bcm97xxx-nand-cs1-bch8.dtsi
Jaedon Shin (5):
MIPS: BMIPS: Add support PWM device nodes
MIPS: BMIPS: Add support GPIO device nodes
MIPS: BMIPS: Add support SDHCI device nodes
MIPS: BMIPS: Add support NAND device nodes
MIPS: BMIPS: Use interrupt-controller node name
arch/mips/boot/dts/brcm/bcm7125.dtsi | 34 ++++++- arch/mips/boot/dts/brcm/bcm7346.dtsi | 97 +++++++++++++++++- arch/mips/boot/dts/brcm/bcm7358.dtsi | 89 ++++++++++++++++- arch/mips/boot/dts/brcm/bcm7360.dtsi | 89 ++++++++++++++++- arch/mips/boot/dts/brcm/bcm7362.dtsi | 89 ++++++++++++++++- arch/mips/boot/dts/brcm/bcm7420.dtsi | 42 +++++++- arch/mips/boot/dts/brcm/bcm7425.dtsi | 109 ++++++++++++++++++++- arch/mips/boot/dts/brcm/bcm7435.dtsi | 109 ++++++++++++++++++++- arch/mips/boot/dts/brcm/bcm97125cbmb.dts | 4 + arch/mips/boot/dts/brcm/bcm97346dbsmb.dts | 17 ++++ arch/mips/boot/dts/brcm/bcm97358svmb.dts | 13 +++ arch/mips/boot/dts/brcm/bcm97360svmb.dts | 13 +++ arch/mips/boot/dts/brcm/bcm97362svmb.dts | 13 +++ arch/mips/boot/dts/brcm/bcm97420c.dts | 8 ++ arch/mips/boot/dts/brcm/bcm97425svmb.dts | 21 ++++ arch/mips/boot/dts/brcm/bcm97435svmb.dts | 21 ++++ .../mips/boot/dts/brcm/bcm97xxx-nand-cs1-bch8.dtsi | 24 +++++ 17 files changed, 754 insertions(+), 38 deletions(-) create mode 100644 arch/mips/boot/dts/brcm/bcm97xxx-nand-cs1-bch8.dtsi
Signature · 1 line
2.9.2
PATCH v3 1/5 MIPS: BMIPS: Add support PWM device nodes
Adds PWM device nodes to BCM7xxx MIPS based SoCs.
--- arch/mips/boot/dts/brcm/bcm7125.dtsi | 14 ++++++++++++++ arch/mips/boot/dts/brcm/bcm7346.dtsi | 22 ++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7358.dtsi | 22 ++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7360.dtsi | 14 ++++++++++++++ arch/mips/boot/dts/brcm/bcm7362.dtsi | 14 ++++++++++++++ arch/mips/boot/dts/brcm/bcm7420.dtsi | 22 ++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7425.dtsi | 22 ++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7435.dtsi | 22 ++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm97125cbmb.dts | 4 ++++ arch/mips/boot/dts/brcm/bcm97346dbsmb.dts | 8 ++++++++ arch/mips/boot/dts/brcm/bcm97358svmb.dts | 8 ++++++++ arch/mips/boot/dts/brcm/bcm97360svmb.dts | 4 ++++ arch/mips/boot/dts/brcm/bcm97362svmb.dts | 4 ++++ arch/mips/boot/dts/brcm/bcm97420c.dts | 8 ++++++++ arch/mips/boot/dts/brcm/bcm97425svmb.dts | 8 ++++++++ arch/mips/boot/dts/brcm/bcm97435svmb.dts | 8 ++++++++ 16 files changed, 204 insertions(+)
arch/mips/boot/dts/brcm/bcm7125.dtsi +14 -0
@@ -40,6 +40,12 @@ #clock-cells = <0>; clock-frequency = <81000000>; }; + + upg_clk: upg_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <27000000>; + }; }; rdb {
@@ -183,6 +189,14 @@ status = "disabled"; }; + pwma: pwm@406580 { + compatible = "brcm,bcm7038-pwm"; + reg = <0x406580 0x28>; + #pwm-cells = <2>; + clocks = <&upg_clk>; + status = "disabled"; + }; + ehci0: usb@488300 { compatible = "brcm,bcm7125-ehci", "generic-ehci"; reg = <0x488300 0x100>;
arch/mips/boot/dts/brcm/bcm7346.dtsi +22 -0
@@ -40,6 +40,12 @@ #clock-cells = <0>; clock-frequency = <81000000>; }; + + upg_clk: upg_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <27000000>; + }; }; rdb {
@@ -210,6 +216,22 @@ status = "disabled"; }; + pwma: pwm@406580 { + compatible = "brcm,bcm7038-pwm"; + reg = <0x406580 0x28>; + #pwm-cells = <2>; + clocks = <&upg_clk>; + status = "disabled"; + }; + + pwmb: pwm@406800 { + compatible = "brcm,bcm7038-pwm"; + reg = <0x406800 0x28>; + #pwm-cells = <2>; + clocks = <&upg_clk>; + status = "disabled"; + }; + enet0: ethernet@430000 { phy-mode = "internal"; phy-handle = <&phy1>;
arch/mips/boot/dts/brcm/bcm7358.dtsi +22 -0
@@ -34,6 +34,12 @@ #clock-cells = <0>; clock-frequency = <81000000>; }; + + upg_clk: upg_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <27000000>; + }; }; rdb {
@@ -194,6 +200,22 @@ status = "disabled"; }; + pwma: pwm@406400 { + compatible = "brcm,bcm7038-pwm"; + reg = <0x406400 0x28>; + #pwm-cells = <2>; + clocks = <&upg_clk>; + status = "disabled"; + }; + + pwmb: pwm@406700 { + compatible = "brcm,bcm7038-pwm"; + reg = <0x406700 0x28>; + #pwm-cells = <2>; + clocks = <&upg_clk>; + status = "disabled"; + }; + enet0: ethernet@430000 { phy-mode = "internal"; phy-handle = <&phy1>;
arch/mips/boot/dts/brcm/bcm7360.dtsi +14 -0
@@ -34,6 +34,12 @@ #clock-cells = <0>; clock-frequency = <81000000>; }; + + upg_clk: upg_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <27000000>; + }; }; rdb {
@@ -194,6 +200,14 @@ status = "disabled"; }; + pwma: pwm@406400 { + compatible = "brcm,bcm7038-pwm"; + reg = <0x406400 0x28>; + #pwm-cells = <2>; + clocks = <&upg_clk>; + status = "disabled"; + }; + enet0: ethernet@430000 { phy-mode = "internal"; phy-handle = <&phy1>;
arch/mips/boot/dts/brcm/bcm7362.dtsi +14 -0
@@ -40,6 +40,12 @@ #clock-cells = <0>; clock-frequency = <81000000>; }; + + upg_clk: upg_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <27000000>; + }; }; rdb {
@@ -190,6 +196,14 @@ status = "disabled"; }; + pwma: pwm@406400 { + compatible = "brcm,bcm7038-pwm"; + reg = <0x406400 0x28>; + #pwm-cells = <2>; + clocks = <&upg_clk>; + status = "disabled"; + }; + enet0: ethernet@430000 { phy-mode = "internal"; phy-handle = <&phy1>;
arch/mips/boot/dts/brcm/bcm7420.dtsi +22 -0
@@ -40,6 +40,12 @@ #clock-cells = <0>; clock-frequency = <81000000>; }; + + upg_clk: upg_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <27000000>; + }; }; rdb {
@@ -191,6 +197,22 @@ status = "disabled"; }; + pwma: pwm@406580 { + compatible = "brcm,bcm7038-pwm"; + reg = <0x406580 0x28>; + #pwm-cells = <2>; + clocks = <&upg_clk>; + status = "disabled"; + }; + + pwmb: pwm@406880 { + compatible = "brcm,bcm7038-pwm"; + reg = <0x406880 0x28>; + #pwm-cells = <2>; + clocks = <&upg_clk>; + status = "disabled"; + }; + enet0: ethernet@468000 { phy-mode = "internal"; phy-handle = <&phy1>;
arch/mips/boot/dts/brcm/bcm7425.dtsi +22 -0
@@ -40,6 +40,12 @@ #clock-cells = <0>; clock-frequency = <81000000>; }; + + upg_clk: upg_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <27000000>; + }; }; rdb {
@@ -209,6 +215,22 @@ status = "disabled"; }; + pwma: pwm@406580 { + compatible = "brcm,bcm7038-pwm"; + reg = <0x406580 0x28>; + #pwm-cells = <2>; + clocks = <&upg_clk>; + status = "disabled"; + }; + + pwmb: pwm@406800 { + compatible = "brcm,bcm7038-pwm"; + reg = <0x406800 0x28>; + #pwm-cells = <2>; + clocks = <&upg_clk>; + status = "disabled"; + }; + enet0: ethernet@b80000 { phy-mode = "internal"; phy-handle = <&phy1>;
arch/mips/boot/dts/brcm/bcm7435.dtsi +22 -0
@@ -52,6 +52,12 @@ #clock-cells = <0>; clock-frequency = <81000000>; }; + + upg_clk: upg_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <27000000>; + }; }; rdb {
@@ -224,6 +230,22 @@ status = "disabled"; }; + pwma: pwm@406580 { + compatible = "brcm,bcm7038-pwm"; + reg = <0x406580 0x28>; + #pwm-cells = <2>; + clocks = <&upg_clk>; + status = "disabled"; + }; + + pwmb: pwm@406800 { + compatible = "brcm,bcm7038-pwm"; + reg = <0x406800 0x28>; + #pwm-cells = <2>; + clocks = <&upg_clk>; + status = "disabled"; + }; + enet0: ethernet@b80000 { phy-mode = "internal"; phy-handle = <&phy1>;
arch/mips/boot/dts/brcm/bcm97125cbmb.dts +4 -0
@@ -45,6 +45,10 @@ status = "okay"; }; +&pwma { + status = "okay"; +}; + /* FIXME: USB is wonky; disable it for now */ &ehci0 { status = "disabled";
arch/mips/boot/dts/brcm/bcm97346dbsmb.dts +8 -0
@@ -49,6 +49,14 @@ status = "okay"; }; +&pwma { + status = "okay"; +}; + +&pwmb { + status = "okay"; +}; + &enet0 { status = "okay"; };
arch/mips/boot/dts/brcm/bcm97358svmb.dts +8 -0
@@ -45,6 +45,14 @@ status = "okay"; }; +&pwma { + status = "okay"; +}; + +&pwmb { + status = "okay"; +}; + &enet0 { status = "okay"; };
arch/mips/boot/dts/brcm/bcm97360svmb.dts +4 -0
@@ -45,6 +45,10 @@ status = "okay"; }; +&pwma { + status = "okay"; +}; + &enet0 { status = "okay"; };
arch/mips/boot/dts/brcm/bcm97362svmb.dts +4 -0
@@ -41,6 +41,10 @@ status = "okay"; }; +&pwma { + status = "okay"; +}; + &enet0 { status = "okay"; };
arch/mips/boot/dts/brcm/bcm97420c.dts +8 -0
@@ -51,6 +51,14 @@ status = "okay"; }; +&pwma { + status = "okay"; +}; + +&pwmb { + status = "okay"; +}; + /* FIXME: MAC driver comes up but cannot attach to PHY */ &enet0 { status = "disabled";
arch/mips/boot/dts/brcm/bcm97425svmb.dts +8 -0
@@ -51,6 +51,14 @@ status = "okay"; }; +&pwma { + status = "okay"; +}; + +&pwmb { + status = "okay"; +}; + &enet0 { status = "okay"; };
arch/mips/boot/dts/brcm/bcm97435svmb.dts +8 -0
@@ -51,6 +51,14 @@ status = "okay"; }; +&pwma { + status = "okay"; +}; + +&pwmb { + status = "okay"; +}; + &enet0 { status = "okay"; };
Signature · 1 line
2.9.2
Re: [v3 1/5] MIPS: BMIPS: Add support PWM device nodes
Quoted 3 lines · Jaedon Shin
Adds PWM device nodes to BCM7xxx MIPS based SoCs.
Signed-off-by Jaedon Shin <[email protected]>
Signature · 1 line
Florian
PATCH v3 2/5 MIPS: BMIPS: Add support GPIO device nodes
In reply to Jaedon ShinAdds GPIO device nodes to BCM7xxx MIPS based SoCs.
--- arch/mips/boot/dts/brcm/bcm7125.dtsi | 12 ++++++++++++ arch/mips/boot/dts/brcm/bcm7346.dtsi | 37 ++++++++++++++++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7358.dtsi | 37 ++++++++++++++++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7360.dtsi | 37 ++++++++++++++++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7362.dtsi | 37 ++++++++++++++++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7420.dtsi | 12 ++++++++++++ arch/mips/boot/dts/brcm/bcm7425.dtsi | 37 ++++++++++++++++++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7435.dtsi | 37 ++++++++++++++++++++++++++++++++++++ 8 files changed, 246 insertions(+)
arch/mips/boot/dts/brcm/bcm7125.dtsi +12 -0
@@ -197,6 +197,18 @@ status = "disabled"; }; + upg_gio: gpio@406700 { + compatible = "brcm,brcmstb-gpio"; + reg = <0x406700 0x80>; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + interrupt-parent = <&upg_irq0_intc>; + interrupts = <6>; + brcm,gpio-bank-widths = <32 32 32 18>; + }; + ehci0: usb@488300 { compatible = "brcm,bcm7125-ehci", "generic-ehci"; reg = <0x488300 0x100>;
arch/mips/boot/dts/brcm/bcm7346.dtsi +37 -0
@@ -232,6 +232,43 @@ status = "disabled"; }; + aon_pm_l2_intc: aon_pm_l2_intc@408440 { + compatible = "brcm,l2-intc"; + reg = <0x408440 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&periph_intc>; + interrupts = <53>; + brcm,irq-can-wake; + }; + + upg_gio: gpio@406700 { + compatible = "brcm,brcmstb-gpio"; + reg = <0x406700 0x60>; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + interrupt-parent = <&upg_irq0_intc>; + interrupts = <6>; + brcm,gpio-bank-widths = <32 32 16>; + }; + + upg_gio_aon: gpio@408c00 { + compatible = "brcm,brcmstb-gpio"; + reg = <0x408c00 0x60>; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + interrupt-parent = <&upg_aon_irq0_intc>; + interrupts = <6>; + interrupts-extended = <&upg_aon_irq0_intc 6>, + <&aon_pm_l2_intc 5>; + wakeup-source; + brcm,gpio-bank-widths = <27 32 2>; + }; + enet0: ethernet@430000 { phy-mode = "internal"; phy-handle = <&phy1>;
arch/mips/boot/dts/brcm/bcm7358.dtsi +37 -0
@@ -216,6 +216,43 @@ status = "disabled"; }; + aon_pm_l2_intc: aon_pm_l2_intc@408240 { + compatible = "brcm,l2-intc"; + reg = <0x408240 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&periph_intc>; + interrupts = <50>; + brcm,irq-can-wake; + }; + + upg_gio: gpio@406500 { + compatible = "brcm,brcmstb-gpio"; + reg = <0x406500 0xa0>; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + interrupt-parent = <&upg_irq0_intc>; + interrupts = <6>; + brcm,gpio-bank-widths = <32 32 32 29 4>; + }; + + upg_gio_aon: gpio@408c00 { + compatible = "brcm,brcmstb-gpio"; + reg = <0x408c00 0x60>; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + interrupt-parent = <&upg_aon_irq0_intc>; + interrupts = <6>; + interrupts-extended = <&upg_aon_irq0_intc 6>, + <&aon_pm_l2_intc 5>; + wakeup-source; + brcm,gpio-bank-widths = <21 32 2>; + }; + enet0: ethernet@430000 { phy-mode = "internal"; phy-handle = <&phy1>;
arch/mips/boot/dts/brcm/bcm7360.dtsi +37 -0
@@ -208,6 +208,43 @@ status = "disabled"; }; + aon_pm_l2_intc: aon_pm_l2_intc@408440 { + compatible = "brcm,l2-intc"; + reg = <0x408440 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&periph_intc>; + interrupts = <50>; + brcm,irq-can-wake; + }; + + upg_gio: gpio@406500 { + compatible = "brcm,brcmstb-gpio"; + reg = <0x406500 0xa0>; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + interrupt-parent = <&upg_irq0_intc>; + interrupts = <6>; + brcm,gpio-bank-widths = <32 32 32 29 4>; + }; + + upg_gio_aon: gpio@408c00 { + compatible = "brcm,brcmstb-gpio"; + reg = <0x408c00 0x60>; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + interrupt-parent = <&upg_aon_irq0_intc>; + interrupts = <6>; + interrupts-extended = <&upg_aon_irq0_intc 6>, + <&aon_pm_l2_intc 5>; + wakeup-source; + brcm,gpio-bank-widths = <21 32 2>; + }; + enet0: ethernet@430000 { phy-mode = "internal"; phy-handle = <&phy1>;
arch/mips/boot/dts/brcm/bcm7362.dtsi +37 -0
@@ -204,6 +204,43 @@ status = "disabled"; }; + aon_pm_l2_intc: aon_pm_l2_intc@408440 { + compatible = "brcm,l2-intc"; + reg = <0x408440 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&periph_intc>; + interrupts = <50>; + brcm,irq-can-wake; + }; + + upg_gio: gpio@406500 { + compatible = "brcm,brcmstb-gpio"; + reg = <0x406500 0xa0>; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + interrupt-parent = <&upg_irq0_intc>; + interrupts = <6>; + brcm,gpio-bank-widths = <32 32 32 29 4>; + }; + + upg_gio_aon: gpio@408c00 { + compatible = "brcm,brcmstb-gpio"; + reg = <0x408c00 0x60>; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + interrupt-parent = <&upg_aon_irq0_intc>; + interrupts = <6>; + interrupts-extended = <&upg_aon_irq0_intc 6>, + <&aon_pm_l2_intc 5>; + wakeup-source; + brcm,gpio-bank-widths = <21 32 2>; + }; + enet0: ethernet@430000 { phy-mode = "internal"; phy-handle = <&phy1>;
arch/mips/boot/dts/brcm/bcm7420.dtsi +12 -0
@@ -213,6 +213,18 @@ status = "disabled"; }; + upg_gio: gpio@406700 { + compatible = "brcm,brcmstb-gpio"; + reg = <0x406700 0x80>; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + interrupt-parent = <&upg_irq0_intc>; + interrupts = <6>; + brcm,gpio-bank-widths = <32 32 32 27>; + }; + enet0: ethernet@468000 { phy-mode = "internal"; phy-handle = <&phy1>;
arch/mips/boot/dts/brcm/bcm7425.dtsi +37 -0
@@ -231,6 +231,43 @@ status = "disabled"; }; + aon_pm_l2_intc: aon_pm_l2_intc@408440 { + compatible = "brcm,l2-intc"; + reg = <0x408440 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&periph_intc>; + interrupts = <49>; + brcm,irq-can-wake; + }; + + upg_gio: gpio@406700 { + compatible = "brcm,brcmstb-gpio"; + reg = <0x406700 0x80>; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + interrupt-parent = <&upg_irq0_intc>; + interrupts = <6>; + brcm,gpio-bank-widths = <32 32 32 21>; + }; + + upg_gio_aon: gpio@4094c0 { + compatible = "brcm,brcmstb-gpio"; + reg = <0x4094c0 0x40>; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + interrupt-parent = <&upg_aon_irq0_intc>; + interrupts = <6>; + interrupts-extended = <&upg_aon_irq0_intc 6>, + <&aon_pm_l2_intc 5>; + wakeup-source; + brcm,gpio-bank-widths = <18 4>; + }; + enet0: ethernet@b80000 { phy-mode = "internal"; phy-handle = <&phy1>;
arch/mips/boot/dts/brcm/bcm7435.dtsi +37 -0
@@ -246,6 +246,43 @@ status = "disabled"; }; + aon_pm_l2_intc: aon_pm_l2_intc@408440 { + compatible = "brcm,l2-intc"; + reg = <0x408440 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&periph_intc>; + interrupts = <54>; + brcm,irq-can-wake; + }; + + upg_gio: gpio@406700 { + compatible = "brcm,brcmstb-gpio"; + reg = <0x406700 0x80>; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + interrupt-parent = <&upg_irq0_intc>; + interrupts = <6>; + brcm,gpio-bank-widths = <32 32 32 21>; + }; + + upg_gio_aon: gpio@4094c0 { + compatible = "brcm,brcmstb-gpio"; + reg = <0x4094c0 0x40>; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + interrupt-parent = <&upg_aon_irq0_intc>; + interrupts = <6>; + interrupts-extended = <&upg_aon_irq0_intc 6>, + <&aon_pm_l2_intc 5>; + wakeup-source; + brcm,gpio-bank-widths = <18 4>; + }; + enet0: ethernet@b80000 { phy-mode = "internal"; phy-handle = <&phy1>;
Signature · 1 line
2.9.2
PATCH v3 3/5 MIPS: BMIPS: Add support SDHCI device nodes
In reply to Jaedon ShinAdds SDHCI device nodes to BCM7xxx MIPS based SoCs.
--- arch/mips/boot/dts/brcm/bcm7346.dtsi | 8 ++++++++ arch/mips/boot/dts/brcm/bcm7360.dtsi | 8 ++++++++ arch/mips/boot/dts/brcm/bcm7362.dtsi | 8 ++++++++ arch/mips/boot/dts/brcm/bcm7425.dtsi | 20 ++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7435.dtsi | 20 ++++++++++++++++++++ arch/mips/boot/dts/brcm/bcm97346dbsmb.dts | 4 ++++ arch/mips/boot/dts/brcm/bcm97360svmb.dts | 4 ++++ arch/mips/boot/dts/brcm/bcm97362svmb.dts | 4 ++++ arch/mips/boot/dts/brcm/bcm97425svmb.dts | 8 ++++++++ arch/mips/boot/dts/brcm/bcm97435svmb.dts | 8 ++++++++ 10 files changed, 92 insertions(+)
arch/mips/boot/dts/brcm/bcm7346.dtsi +8 -0
@@ -411,5 +411,13 @@ #phy-cells = <0>; }; }; + + sdhci0: sdhci@413500 { + compatible = "brcm,bcm7425-sdhci"; + reg = <0x413500 0x100>; + interrupt-parent = <&periph_intc>; + interrupts = <85>; + status = "disabled"; + }; }; };
arch/mips/boot/dts/brcm/bcm7360.dtsi +8 -0
@@ -330,5 +330,13 @@ #phy-cells = <0>; }; }; + + sdhci0: sdhci@410000 { + compatible = "brcm,bcm7425-sdhci"; + reg = <0x410000 0x100>; + interrupt-parent = <&periph_intc>; + interrupts = <82>; + status = "disabled"; + }; }; };
arch/mips/boot/dts/brcm/bcm7362.dtsi +8 -0
@@ -326,5 +326,13 @@ #phy-cells = <0>; }; }; + + sdhci0: sdhci@410000 { + compatible = "brcm,bcm7425-sdhci"; + reg = <0x410000 0x100>; + interrupt-parent = <&periph_intc>; + interrupts = <82>; + status = "disabled"; + }; }; };
arch/mips/boot/dts/brcm/bcm7425.dtsi +20 -0
@@ -410,5 +410,25 @@ #phy-cells = <0>; }; }; + + sdhci0: sdhci@419000 { + compatible = "brcm,bcm7425-sdhci"; + reg = <0x419000 0x100>; + interrupt-parent = <&periph_intc>; + interrupts = <43>; + sd-uhs-sdr50; + mmc-hs200-1_8v; + status = "disabled"; + }; + + sdhci1: sdhci@419200 { + compatible = "brcm,bcm7425-sdhci"; + reg = <0x419200 0x100>; + interrupt-parent = <&periph_intc>; + interrupts = <44>; + sd-uhs-sdr50; + mmc-hs200-1_8v; + status = "disabled"; + }; }; };
arch/mips/boot/dts/brcm/bcm7435.dtsi +20 -0
@@ -425,5 +425,25 @@ #phy-cells = <0>; }; }; + + sdhci0: sdhci@41a000 { + compatible = "brcm,bcm7425-sdhci"; + reg = <0x41a000 0x100>; + interrupt-parent = <&periph_intc>; + interrupts = <47>; + sd-uhs-sdr50; + mmc-hs200-1_8v; + status = "disabled"; + }; + + sdhci1: sdhci@41a200 { + compatible = "brcm,bcm7425-sdhci"; + reg = <0x41a200 0x100>; + interrupt-parent = <&periph_intc>; + interrupts = <48>; + sd-uhs-sdr50; + mmc-hs200-1_8v; + status = "disabled"; + }; }; };
arch/mips/boot/dts/brcm/bcm97346dbsmb.dts +4 -0
@@ -100,3 +100,7 @@ &sata_phy { status = "okay"; }; + +&sdhci0 { + status = "okay"; +};
arch/mips/boot/dts/brcm/bcm97360svmb.dts +4 -0
@@ -68,3 +68,7 @@ &sata_phy { status = "okay"; }; + +&sdhci0 { + status = "okay"; +};
arch/mips/boot/dts/brcm/bcm97362svmb.dts +4 -0
@@ -64,3 +64,7 @@ &sata_phy { status = "okay"; }; + +&sdhci0 { + status = "okay"; +};
arch/mips/boot/dts/brcm/bcm97425svmb.dts +8 -0
@@ -94,3 +94,11 @@ &ohci3 { status = "okay"; }; + +&sdhci0 { + status = "okay"; +}; + +&sdhci1 { + status = "okay"; +};
arch/mips/boot/dts/brcm/bcm97435svmb.dts +8 -0
@@ -102,3 +102,11 @@ &sata_phy { status = "okay"; }; + +&sdhci0 { + status = "okay"; +}; + +&sdhci1 { + status = "okay"; +};
Signature · 1 line
2.9.2
Re: [v3 3/5] MIPS: BMIPS: Add support SDHCI device nodes
Quoted 1 line · Jaedon Shin
Adds SDHCI device nodes to BCM7xxx MIPS based SoCs.
While this looks good, I don't think you will have working SDHCI interfaces on the 7425/7435 without additional pinmuxing, because sometimes the bootloader indicates in a scratch register whether the SDHCI0 is usable and the default pinmuxing does not necessarily make this possible:
https://github.com/Broadcom/stblinux-3.3/blob/master/linux/drivers/brcmstb/board.c#L325
We have some currently out of tree patches using the pinctrl-single and some CFE shim to fix that.
Other than that:
Signature · 1 line
Florian
Re: [v3 3/5] MIPS: BMIPS: Add support SDHCI device nodes
Hi Florian,
Quoted 10 lines · Florian Fainelli
Quoted 1 line · Jaedon Shin
Adds SDHCI device nodes to BCM7xxx MIPS based SoCs.
While this looks good, I don't think you will have working SDHCI interfaces on the 7425/7435 without additional pinmuxing, because sometimes the bootloader indicates in a scratch register whether the SDHCI0 is usable and the default pinmuxing does not necessarily make this possible:
Quoted 10 lines
https://github.com/Broadcom/stblinux-3.3/blob/master/linux/drivers/brcmstb/board.c#L325
We have some currently out of tree patches using the pinctrl-single and some CFE shim to fix that.
Other than that:
Reviewed-by Florian Fainelli <[email protected]>Signature · 1 line
Florian
Sure, It is need to set pinmux, scratch register, endian and avoid broken enable, but I think that is CFE's role. (eg. BCM7346 should be set the endian while run in little endian mode) If we cannot update the CFE, we should consider adding sun_top_ctrl_pin_mux and aon_pin_ctrl_pin_mux_ctrl in device tree with counterpart and endian patch in sdhci-brcmstb.
Anyway, that's not the work of device tree.
Thanks,
Jaedon
PATCH v3 4/5 MIPS: BMIPS: Add support NAND device nodes
In reply to Jaedon ShinAdds NAND device nodes to BCM7xxx MIPS based SoCs.
--- arch/mips/boot/dts/brcm/bcm7346.dtsi | 20 ++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7358.dtsi | 20 ++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7360.dtsi | 20 ++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7362.dtsi | 20 ++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7425.dtsi | 20 ++++++++++++++++++ arch/mips/boot/dts/brcm/bcm7435.dtsi | 20 ++++++++++++++++++ arch/mips/boot/dts/brcm/bcm97346dbsmb.dts | 5 +++++ arch/mips/boot/dts/brcm/bcm97358svmb.dts | 5 +++++ arch/mips/boot/dts/brcm/bcm97360svmb.dts | 5 +++++ arch/mips/boot/dts/brcm/bcm97362svmb.dts | 5 +++++ arch/mips/boot/dts/brcm/bcm97425svmb.dts | 5 +++++ arch/mips/boot/dts/brcm/bcm97435svmb.dts | 5 +++++ .../mips/boot/dts/brcm/bcm97xxx-nand-cs1-bch8.dtsi | 24 ++++++++++++++++++++++ 13 files changed, 174 insertions(+) create mode 100644 arch/mips/boot/dts/brcm/bcm97xxx-nand-cs1-bch8.dtsi
arch/mips/boot/dts/brcm/bcm7346.dtsi +20 -0
@@ -372,6 +372,26 @@ status = "disabled"; }; + hif_l2_intc: hif_l2_intc@411000 { + compatible = "brcm,l2-intc"; + reg = <0x411000 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&periph_intc>; + interrupts = <30>; + }; + + nand: nand@412800 { + compatible = "brcm,brcmnand-v5.0", "brcm,brcmnand"; + #address-cells = <1>; + #size-cells = <0>; + reg-names = "nand"; + reg = <0x412800 0x400>; + interrupt-parent = <&hif_l2_intc>; + interrupts = <24>; + status = "disabled"; + }; + sata: sata@181000 { compatible = "brcm,bcm7425-ahci", "brcm,sata3-ahci"; reg-names = "ahci", "top-ctrl";
arch/mips/boot/dts/brcm/bcm7358.dtsi +20 -0
@@ -298,5 +298,25 @@ interrupts = <66>; status = "disabled"; }; + + hif_l2_intc: hif_l2_intc@411000 { + compatible = "brcm,l2-intc"; + reg = <0x411000 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&periph_intc>; + interrupts = <30>; + }; + + nand: nand@412800 { + compatible = "brcm,brcmnand-v5.0", "brcm,brcmnand"; + #address-cells = <1>; + #size-cells = <0>; + reg-names = "nand"; + reg = <0x412800 0x400>; + interrupt-parent = <&hif_l2_intc>; + interrupts = <24>; + status = "disabled"; + }; }; };
arch/mips/boot/dts/brcm/bcm7360.dtsi +20 -0
@@ -291,6 +291,26 @@ status = "disabled"; }; + hif_l2_intc: hif_l2_intc@411000 { + compatible = "brcm,l2-intc"; + reg = <0x411000 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&periph_intc>; + interrupts = <30>; + }; + + nand: nand@412800 { + compatible = "brcm,brcmnand-v5.0", "brcm,brcmnand"; + #address-cells = <1>; + #size-cells = <0>; + reg-names = "nand"; + reg = <0x412800 0x400>; + interrupt-parent = <&hif_l2_intc>; + interrupts = <24>; + status = "disabled"; + }; + sata: sata@181000 { compatible = "brcm,bcm7425-ahci", "brcm,sata3-ahci"; reg-names = "ahci", "top-ctrl";
arch/mips/boot/dts/brcm/bcm7362.dtsi +20 -0
@@ -287,6 +287,26 @@ status = "disabled"; }; + hif_l2_intc: hif_l2_intc@411000 { + compatible = "brcm,l2-intc"; + reg = <0x411000 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&periph_intc>; + interrupts = <30>; + }; + + nand: nand@412800 { + compatible = "brcm,brcmnand-v5.0", "brcm,brcmnand"; + #address-cells = <1>; + #size-cells = <0>; + reg-names = "nand"; + reg = <0x412800 0x400>; + interrupt-parent = <&hif_l2_intc>; + interrupts = <24>; + status = "disabled"; + }; + sata: sata@181000 { compatible = "brcm,bcm7425-ahci", "brcm,sata3-ahci"; reg-names = "ahci", "top-ctrl";
arch/mips/boot/dts/brcm/bcm7425.dtsi +20 -0
@@ -371,6 +371,26 @@ status = "disabled"; }; + hif_l2_intc: hif_l2_intc@41a000 { + compatible = "brcm,l2-intc"; + reg = <0x41a000 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&periph_intc>; + interrupts = <24>; + }; + + nand: nand@41b800 { + compatible = "brcm,brcmnand-v5.0", "brcm,brcmnand"; + #address-cells = <1>; + #size-cells = <0>; + reg-names = "nand"; + reg = <0x41b800 0x400>; + interrupt-parent = <&hif_l2_intc>; + interrupts = <24>; + status = "disabled"; + }; + sata: sata@181000 { compatible = "brcm,bcm7425-ahci", "brcm,sata3-ahci"; reg-names = "ahci", "top-ctrl";
arch/mips/boot/dts/brcm/bcm7435.dtsi +20 -0
@@ -386,6 +386,26 @@ status = "disabled"; }; + hif_l2_intc: hif_l2_intc@41b000 { + compatible = "brcm,l2-intc"; + reg = <0x41b000 0x30>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&periph_intc>; + interrupts = <24>; + }; + + nand: nand@41c800 { + compatible = "brcm,brcmnand-v6.2", "brcm,brcmnand"; + #address-cells = <1>; + #size-cells = <0>; + reg-names = "nand", "flash-dma"; + reg = <0x41c800 0x600>, <0x41d000 0x100>; + interrupt-parent = <&hif_l2_intc>; + interrupts = <24>, <4>; + status = "disabled"; + }; + sata: sata@181000 { compatible = "brcm,bcm7425-ahci", "brcm,sata3-ahci"; reg-names = "ahci", "top-ctrl";
arch/mips/boot/dts/brcm/bcm97346dbsmb.dts +5 -0
@@ -1,6 +1,7 @@ /dts-v1/; /include/ "bcm7346.dtsi" +/include/ "bcm97xxx-nand-cs1-bch8.dtsi" / { compatible = "brcm,bcm97346dbsmb", "brcm,bcm7346";
@@ -93,6 +94,10 @@ status = "okay"; }; +&nand { + status = "okay"; +}; + &sata { status = "okay"; };
arch/mips/boot/dts/brcm/bcm97358svmb.dts +5 -0
@@ -1,6 +1,7 @@ /dts-v1/; /include/ "bcm7358.dtsi" +/include/ "bcm97xxx-nand-cs1-bch8.dtsi" / { compatible = "brcm,bcm97358svmb", "brcm,bcm7358";
@@ -64,3 +65,7 @@ &ohci0 { status = "okay"; }; + +&nand { + status = "okay"; +};
arch/mips/boot/dts/brcm/bcm97360svmb.dts +5 -0
@@ -1,6 +1,7 @@ /dts-v1/; /include/ "bcm7360.dtsi" +/include/ "bcm97xxx-nand-cs1-bch8.dtsi" / { compatible = "brcm,bcm97360svmb", "brcm,bcm7360";
@@ -61,6 +62,10 @@ status = "okay"; }; +&nand { + status = "okay"; +}; + &sata { status = "okay"; };
arch/mips/boot/dts/brcm/bcm97362svmb.dts +5 -0
@@ -1,6 +1,7 @@ /dts-v1/; /include/ "bcm7362.dtsi" +/include/ "bcm97xxx-nand-cs1-bch8.dtsi" / { compatible = "brcm,bcm97362svmb", "brcm,bcm7362";
@@ -57,6 +58,10 @@ status = "okay"; }; +&nand { + status = "okay"; +}; + &sata { status = "okay"; };
arch/mips/boot/dts/brcm/bcm97425svmb.dts +5 -0
@@ -1,6 +1,7 @@ /dts-v1/; /include/ "bcm7425.dtsi" +/include/ "bcm97xxx-nand-cs1-bch8.dtsi" / { compatible = "brcm,bcm97425svmb", "brcm,bcm7425";
@@ -95,6 +96,10 @@ status = "okay"; }; +&nand { + status = "okay"; +}; + &sdhci0 { status = "okay"; };
arch/mips/boot/dts/brcm/bcm97435svmb.dts +5 -0
@@ -1,6 +1,7 @@ /dts-v1/; /include/ "bcm7435.dtsi" +/include/ "bcm97xxx-nand-cs1-bch8.dtsi" / { compatible = "brcm,bcm97435svmb", "brcm,bcm7435";
@@ -95,6 +96,10 @@ status = "okay"; }; +&nand { + status = "okay"; +}; + &sata { status = "okay"; };
arch/mips/boot/dts/brcm/bcm97xxx-nand-cs1-bch8.dtsi new file +24 -0
@@ -0,0 +1,24 @@ +&nand { + nandcs@1 { + compatible = "brcm,nandcs"; + reg = <1>; + + nand-ecc-step-size = <512>; + nand-ecc-strength = <8>; + nand-on-flash-bbt; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + flash1.rootfs@0 { + reg = <0x0 0x10000000>; + }; + + flash1.kernel@10000000 { + reg = <0x10000000 0x400000>; + }; + }; + }; +};
Signature · 1 line
2.9.2
Re: [v3 4/5] MIPS: BMIPS: Add support NAND device nodes
Quoted 4 lines · Jaedon Shin
Adds NAND device nodes to BCM7xxx MIPS based SoCs.
Signed-off-by Jaedon Shin <[email protected]>---
I did not check all the reference boards, but for 7425 and 7435 here is what you should have:
Quoted 13 lines
arch/mips/boot/dts/brcm/bcm97425svmb.dts +1
-0@@ -1,6 +1,7 @@ /dts-v1/; /include/ "bcm7425.dtsi" +/include/ "bcm97xxx-nand-cs1-bch8.dtsi" / { compatible = "brcm,bcm97425svmb", "brcm,bcm7425";
arch/mips/boot/dts/brcm/bcm97425svmb.dts line 101
Quoted 6 lines
arch/mips/boot/dts/brcm/bcm97425svmb.dts +3
-0@@ -95,6 +96,10 @@ status = "okay"; }; +&nand { + status = "okay"; +};
Here are the correct properties for our BCM97425SVMB board:
&nand {
status = "okay";
nandcs@1 {
#size-cells = <0x2>;
#address-cells = <0x2>;
compatible = "brcm,nandcs";
reg = <0x1>;
nand-on-flash-bbt;
nand-ecc-strength = <24>;
nand-ecc-step-size = <1024>;
brcm,nand-oob-sector-size = <27>;arch/mips/boot/dts/brcm/bcm97435svmb.dts line 4
Quoted 13 lines
arch/mips/boot/dts/brcm/bcm97425svmb.dts +1
-0+ &sdhci0 { status = "okay"; };arch/mips/boot/dts/brcm/bcm97435svmb.dts +1
-0@@ -1,6 +1,7 @@ /dts-v1/; /include/ "bcm7435.dtsi" +/include/ "bcm97xxx-nand-cs1-bch8.dtsi"
And here are those for the BCM97435SVMB:
&nand {
status = "okay";
nandcs@1 {
#size-cells = <0x2>;
#address-cells = <0x2>;
compatible = "brcm,nandcs";
reg = <0x1>;
nand-on-flash-bbt;
nand-ecc-strength = <24>;
nand-ecc-step-size = <1024>;
brcm,nand-oob-sector-size = <27>;Signature · 1 line
Florian
Re: [v3 4/5] MIPS: BMIPS: Add support NAND device nodes
Hi Florian,
Quoted 62 lines · Florian Fainelli
Quoted 4 lines · Jaedon Shin
Adds NAND device nodes to BCM7xxx MIPS based SoCs.
Signed-off-by Jaedon Shin <[email protected]>---
I did not check all the reference boards, but for 7425 and 7435 here is what you should have:
Quoted 13 lines
arch/mips/boot/dts/brcm/bcm97425svmb.dts +0
-0@@ -1,6 +1,7 @@ /dts-v1/;/include/ "
bcm7425.dtsi"
+/include/ "bcm97xxx-nand-cs1-bch8.dtsi"/ { compatible = "brcm,bcm97425svmb", "brcm,bcm7425";arch/mips/boot/dts/brcm/bcm97425svmb.dts line 101
Quoted 6 lines
arch/mips/boot/dts/brcm/bcm97425svmb.dts +3
-0@@ -95,6 +96,10 @@ status = "okay"; }; +&nand { + status = "okay"; +};Here are the correct properties for our BCM97425SVMB board:
&nand { status = "okay"; nandcs@1 { #size-cells = <0x2>; #address-cells = <0x2>; compatible = "brcm,nandcs"; reg = <0x1>; nand-on-flash-bbt; nand-ecc-strength = <24>; nand-ecc-step-size = <1024>; brcm,nand-oob-sector-size = <27>;Quoted 11 lines
arch/mips/boot/dts/brcm/bcm97425svmb.dts +1
-0+ &sdhci0 { status = "okay"; };arch/mips/boot/dts/brcm/bcm97435svmb.dts +0
-0@@ -1,6 +1,7 @@ /dts-v1/;Quoted 2 lines
/include/ "
bcm7435.dtsi"
+/include/ "bcm97xxx-nand-cs1-bch8.dtsi"And here are those for the BCM97435SVMB:
Quoted 16 lines
&nand { status = "okay"; nandcs@1 { #size-cells = <0x2>; #address-cells = <0x2>; compatible = "brcm,nandcs"; reg = <0x1>; nand-on-flash-bbt; nand-ecc-strength = <24>; nand-ecc-step-size = <1024>; brcm,nand-oob-sector-size = <27>;Signature · 1 line
Florian
I found sample boot logs on CFE.
BCM7346, BCM7425 and BCM7435 have 32Gb (MT29F32G08CBCA) or 16Gb NAND flash, this is
nand-ecc-strength = <24>;
nand-ecc-step-size = <1024>;
brcm,nand-oob-sector-size = <27>;
BCM7358 and BCM7362 have 8Gb(MT29F8G08ABABA) or 2Gb NAND flash, this is
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
brcm,nand-oob-sector-size = <16>;
BCM7360 hasn't NAND flash.
So, I will split into two files like bellow,
bcm97xxx-nand-cs1-bch24.dtsi
bcm97xxx-nand-cs1-bch4.dtsi
Please let me know if you have better way.
Thanks,
Jaedon
PATCH v3 5/5 MIPS: BMIPS: Use interrupt-controller node name
In reply to Jaedon ShinChanges node names of the interrupt-controller device nodes to interrupt-controller instead of label strings.
--- arch/mips/boot/dts/brcm/bcm7125.dtsi | 8 ++++---- arch/mips/boot/dts/brcm/bcm7346.dtsi | 14 +++++++------- arch/mips/boot/dts/brcm/bcm7358.dtsi | 14 +++++++------- arch/mips/boot/dts/brcm/bcm7360.dtsi | 14 +++++++------- arch/mips/boot/dts/brcm/bcm7362.dtsi | 14 +++++++------- arch/mips/boot/dts/brcm/bcm7420.dtsi | 8 ++++---- arch/mips/boot/dts/brcm/bcm7425.dtsi | 14 +++++++------- arch/mips/boot/dts/brcm/bcm7435.dtsi | 14 +++++++------- 8 files changed, 50 insertions(+), 50 deletions(-)
arch/mips/boot/dts/brcm/bcm7125.dtsi +4 -4
@@ -26,7 +26,7 @@ uart0 = &uart0; }; - cpu_intc: cpu_intc { + cpu_intc: interrupt-controller { #address-cells = <0>; compatible = "mti,cpu-interrupt-controller";
@@ -55,7 +55,7 @@ compatible = "simple-bus"; ranges = <0 0x10000000 0x01000000>; - periph_intc: periph_intc@441400 { + periph_intc: interrupt-controller@441400 { compatible = "brcm,bcm7038-l1-intc"; reg = <0x441400 0x30>, <0x441600 0x30>;
@@ -66,7 +66,7 @@ interrupts = <2>, <3>; }; - sun_l2_intc: sun_l2_intc@401800 { + sun_l2_intc: interrupt-controller@401800 { compatible = "brcm,l2-intc"; reg = <0x401800 0x30>; interrupt-controller;
@@ -87,7 +87,7 @@ "avd_0", "jtag_0"; }; - upg_irq0_intc: upg_irq0_intc@406780 { + upg_irq0_intc: interrupt-controller@406780 { compatible = "brcm,bcm7120-l2-intc"; reg = <0x406780 0x8>;
arch/mips/boot/dts/brcm/bcm7346.dtsi +7 -7
@@ -26,7 +26,7 @@ uart0 = &uart0; }; - cpu_intc: cpu_intc { + cpu_intc: interrupt-controller { #address-cells = <0>; compatible = "mti,cpu-interrupt-controller";
@@ -55,7 +55,7 @@ compatible = "simple-bus"; ranges = <0 0x10000000 0x01000000>; - periph_intc: periph_intc@411400 { + periph_intc: interrupt-controller@411400 { compatible = "brcm,bcm7038-l1-intc"; reg = <0x411400 0x30>, <0x411600 0x30>;
@@ -66,7 +66,7 @@ interrupts = <2>, <3>; }; - sun_l2_intc: sun_l2_intc@403000 { + sun_l2_intc: interrupt-controller@403000 { compatible = "brcm,l2-intc"; reg = <0x403000 0x30>; interrupt-controller;
@@ -87,7 +87,7 @@ "jtag_0", "svd_0"; }; - upg_irq0_intc: upg_irq0_intc@406780 { + upg_irq0_intc: interrupt-controller@406780 { compatible = "brcm,bcm7120-l2-intc"; reg = <0x406780 0x8>;
@@ -102,7 +102,7 @@ interrupt-names = "upg_main", "upg_bsc"; }; - upg_aon_irq0_intc: upg_aon_irq0_intc@408b80 { + upg_aon_irq0_intc: interrupt-controller@408b80 { compatible = "brcm,bcm7120-l2-intc"; reg = <0x408b80 0x8>;
@@ -232,7 +232,7 @@ status = "disabled"; }; - aon_pm_l2_intc: aon_pm_l2_intc@408440 { + aon_pm_l2_intc: interrupt-controller@408440 { compatible = "brcm,l2-intc"; reg = <0x408440 0x30>; interrupt-controller;
@@ -372,7 +372,7 @@ status = "disabled"; }; - hif_l2_intc: hif_l2_intc@411000 { + hif_l2_intc: interrupt-controller@411000 { compatible = "brcm,l2-intc"; reg = <0x411000 0x30>; interrupt-controller;
arch/mips/boot/dts/brcm/bcm7358.dtsi +7 -7
@@ -20,7 +20,7 @@ uart0 = &uart0; }; - cpu_intc: cpu_intc { + cpu_intc: interrupt-controller { #address-cells = <0>; compatible = "mti,cpu-interrupt-controller";
@@ -49,7 +49,7 @@ compatible = "simple-bus"; ranges = <0 0x10000000 0x01000000>; - periph_intc: periph_intc@411400 { + periph_intc: interrupt-controller@411400 { compatible = "brcm,bcm7038-l1-intc"; reg = <0x411400 0x30>;
@@ -60,7 +60,7 @@ interrupts = <2>; }; - sun_l2_intc: sun_l2_intc@403000 { + sun_l2_intc: interrupt-controller@403000 { compatible = "brcm,l2-intc"; reg = <0x403000 0x30>; interrupt-controller;
@@ -81,7 +81,7 @@ "avd_0", "jtag_0"; }; - upg_irq0_intc: upg_irq0_intc@406600 { + upg_irq0_intc: interrupt-controller@406600 { compatible = "brcm,bcm7120-l2-intc"; reg = <0x406600 0x8>;
@@ -96,7 +96,7 @@ interrupt-names = "upg_main", "upg_bsc"; }; - upg_aon_irq0_intc: upg_aon_irq0_intc@408b80 { + upg_aon_irq0_intc: interrupt-controller@408b80 { compatible = "brcm,bcm7120-l2-intc"; reg = <0x408b80 0x8>;
@@ -216,7 +216,7 @@ status = "disabled"; }; - aon_pm_l2_intc: aon_pm_l2_intc@408240 { + aon_pm_l2_intc: interrupt-controller@408240 { compatible = "brcm,l2-intc"; reg = <0x408240 0x30>; interrupt-controller;
@@ -299,7 +299,7 @@ status = "disabled"; }; - hif_l2_intc: hif_l2_intc@411000 { + hif_l2_intc: interrupt-controller@411000 { compatible = "brcm,l2-intc"; reg = <0x411000 0x30>; interrupt-controller;
arch/mips/boot/dts/brcm/bcm7360.dtsi +7 -7
@@ -20,7 +20,7 @@ uart0 = &uart0; }; - cpu_intc: cpu_intc { + cpu_intc: interrupt-controller { #address-cells = <0>; compatible = "mti,cpu-interrupt-controller";
@@ -49,7 +49,7 @@ compatible = "simple-bus"; ranges = <0 0x10000000 0x01000000>; - periph_intc: periph_intc@411400 { + periph_intc: interrupt-controller@411400 { compatible = "brcm,bcm7038-l1-intc"; reg = <0x411400 0x30>;
@@ -60,7 +60,7 @@ interrupts = <2>; }; - sun_l2_intc: sun_l2_intc@403000 { + sun_l2_intc: interrupt-controller@403000 { compatible = "brcm,l2-intc"; reg = <0x403000 0x30>; interrupt-controller;
@@ -81,7 +81,7 @@ "avd_0", "jtag_0"; }; - upg_irq0_intc: upg_irq0_intc@406600 { + upg_irq0_intc: interrupt-controller@406600 { compatible = "brcm,bcm7120-l2-intc"; reg = <0x406600 0x8>;
@@ -96,7 +96,7 @@ interrupt-names = "upg_main", "upg_bsc"; }; - upg_aon_irq0_intc: upg_aon_irq0_intc@408b80 { + upg_aon_irq0_intc: interrupt-controller@408b80 { compatible = "brcm,bcm7120-l2-intc"; reg = <0x408b80 0x8>;
@@ -208,7 +208,7 @@ status = "disabled"; }; - aon_pm_l2_intc: aon_pm_l2_intc@408440 { + aon_pm_l2_intc: interrupt-controller@408440 { compatible = "brcm,l2-intc"; reg = <0x408440 0x30>; interrupt-controller;
@@ -291,7 +291,7 @@ status = "disabled"; }; - hif_l2_intc: hif_l2_intc@411000 { + hif_l2_intc: interrupt-controller@411000 { compatible = "brcm,l2-intc"; reg = <0x411000 0x30>; interrupt-controller;
arch/mips/boot/dts/brcm/bcm7362.dtsi +7 -7
@@ -26,7 +26,7 @@ uart0 = &uart0; }; - cpu_intc: cpu_intc { + cpu_intc: interrupt-controller { #address-cells = <0>; compatible = "mti,cpu-interrupt-controller";
@@ -55,7 +55,7 @@ compatible = "simple-bus"; ranges = <0 0x10000000 0x01000000>; - periph_intc: periph_intc@411400 { + periph_intc: interrupt-controller@411400 { compatible = "brcm,bcm7038-l1-intc"; reg = <0x411400 0x30>, <0x411600 0x30>;
@@ -66,7 +66,7 @@ interrupts = <2>, <3>; }; - sun_l2_intc: sun_l2_intc@403000 { + sun_l2_intc: interrupt-controller@403000 { compatible = "brcm,l2-intc"; reg = <0x403000 0x30>; interrupt-controller;
@@ -87,7 +87,7 @@ "avd_0", "jtag_0"; }; - upg_irq0_intc: upg_irq0_intc@406600 { + upg_irq0_intc: interrupt-controller@406600 { compatible = "brcm,bcm7120-l2-intc"; reg = <0x406600 0x8>;
@@ -102,7 +102,7 @@ interrupt-names = "upg_main", "upg_bsc"; }; - upg_aon_irq0_intc: upg_aon_irq0_intc@408b80 { + upg_aon_irq0_intc: interrupt-controller@408b80 { compatible = "brcm,bcm7120-l2-intc"; reg = <0x408b80 0x8>;
@@ -204,7 +204,7 @@ status = "disabled"; }; - aon_pm_l2_intc: aon_pm_l2_intc@408440 { + aon_pm_l2_intc: interrupt-controller@408440 { compatible = "brcm,l2-intc"; reg = <0x408440 0x30>; interrupt-controller;
@@ -287,7 +287,7 @@ status = "disabled"; }; - hif_l2_intc: hif_l2_intc@411000 { + hif_l2_intc: interrupt-controller@411000 { compatible = "brcm,l2-intc"; reg = <0x411000 0x30>; interrupt-controller;
arch/mips/boot/dts/brcm/bcm7420.dtsi +4 -4
@@ -26,7 +26,7 @@ uart0 = &uart0; }; - cpu_intc: cpu_intc { + cpu_intc: interrupt-controller { #address-cells = <0>; compatible = "mti,cpu-interrupt-controller";
@@ -55,7 +55,7 @@ compatible = "simple-bus"; ranges = <0 0x10000000 0x01000000>; - periph_intc: periph_intc@441400 { + periph_intc: interrupt-controller@441400 { compatible = "brcm,bcm7038-l1-intc"; reg = <0x441400 0x30>, <0x441600 0x30>;
@@ -66,7 +66,7 @@ interrupts = <2>, <3>; }; - sun_l2_intc: sun_l2_intc@401800 { + sun_l2_intc: interrupt-controller@401800 { compatible = "brcm,l2-intc"; reg = <0x401800 0x30>; interrupt-controller;
@@ -88,7 +88,7 @@ "jtag_0"; }; - upg_irq0_intc: upg_irq0_intc@406780 { + upg_irq0_intc: interrupt-controller@406780 { compatible = "brcm,bcm7120-l2-intc"; reg = <0x406780 0x8>;
arch/mips/boot/dts/brcm/bcm7425.dtsi +7 -7
@@ -26,7 +26,7 @@ uart0 = &uart0; }; - cpu_intc: cpu_intc { + cpu_intc: interrupt-controller { #address-cells = <0>; compatible = "mti,cpu-interrupt-controller";
@@ -55,7 +55,7 @@ compatible = "simple-bus"; ranges = <0 0x10000000 0x01000000>; - periph_intc: periph_intc@41a400 { + periph_intc: interrupt-controller@41a400 { compatible = "brcm,bcm7038-l1-intc"; reg = <0x41a400 0x30>, <0x41a600 0x30>;
@@ -66,7 +66,7 @@ interrupts = <2>, <3>; }; - sun_l2_intc: sun_l2_intc@403000 { + sun_l2_intc: interrupt-controller@403000 { compatible = "brcm,l2-intc"; reg = <0x403000 0x30>; interrupt-controller;
@@ -89,7 +89,7 @@ "vice_0"; }; - upg_irq0_intc: upg_irq0_intc@406780 { + upg_irq0_intc: interrupt-controller@406780 { compatible = "brcm,bcm7120-l2-intc"; reg = <0x406780 0x8>;
@@ -104,7 +104,7 @@ interrupt-names = "upg_main", "upg_bsc"; }; - upg_aon_irq0_intc: upg_aon_irq0_intc@409480 { + upg_aon_irq0_intc: interrupt-controller@409480 { compatible = "brcm,bcm7120-l2-intc"; reg = <0x409480 0x8>;
@@ -231,7 +231,7 @@ status = "disabled"; }; - aon_pm_l2_intc: aon_pm_l2_intc@408440 { + aon_pm_l2_intc: interrupt-controller@408440 { compatible = "brcm,l2-intc"; reg = <0x408440 0x30>; interrupt-controller;
@@ -371,7 +371,7 @@ status = "disabled"; }; - hif_l2_intc: hif_l2_intc@41a000 { + hif_l2_intc: interrupt-controller@41a000 { compatible = "brcm,l2-intc"; reg = <0x41a000 0x30>; interrupt-controller;
arch/mips/boot/dts/brcm/bcm7435.dtsi +7 -7
@@ -38,7 +38,7 @@ uart0 = &uart0; }; - cpu_intc: cpu_intc { + cpu_intc: interrupt-controller { #address-cells = <0>; compatible = "mti,cpu-interrupt-controller";
@@ -67,7 +67,7 @@ compatible = "simple-bus"; ranges = <0 0x10000000 0x01000000>; - periph_intc: periph_intc@41b500 { + periph_intc: interrupt-controller@41b500 { compatible = "brcm,bcm7038-l1-intc"; reg = <0x41b500 0x40>, <0x41b600 0x40>, <0x41b700 0x40>, <0x41b800 0x40>;
@@ -79,7 +79,7 @@ interrupts = <2>, <3>, <2>, <3>; }; - sun_l2_intc: sun_l2_intc@403000 { + sun_l2_intc: interrupt-controller@403000 { compatible = "brcm,l2-intc"; reg = <0x403000 0x30>; interrupt-controller;
@@ -104,7 +104,7 @@ "scpu"; }; - upg_irq0_intc: upg_irq0_intc@406780 { + upg_irq0_intc: interrupt-controller@406780 { compatible = "brcm,bcm7120-l2-intc"; reg = <0x406780 0x8>;
@@ -119,7 +119,7 @@ interrupt-names = "upg_main", "upg_bsc"; }; - upg_aon_irq0_intc: upg_aon_irq0_intc@409480 { + upg_aon_irq0_intc: interrupt-controller@409480 { compatible = "brcm,bcm7120-l2-intc"; reg = <0x409480 0x8>;
@@ -246,7 +246,7 @@ status = "disabled"; }; - aon_pm_l2_intc: aon_pm_l2_intc@408440 { + aon_pm_l2_intc: interrupt-controller@408440 { compatible = "brcm,l2-intc"; reg = <0x408440 0x30>; interrupt-controller;
@@ -386,7 +386,7 @@ status = "disabled"; }; - hif_l2_intc: hif_l2_intc@41b000 { + hif_l2_intc: interrupt-controller@41b000 { compatible = "brcm,l2-intc"; reg = <0x41b000 0x30>; interrupt-controller;
Signature · 1 line
2.9.2
Hi,
Quoted 14 lines · Jaedon Shin
This patch series adds support for Broadcom BCM7xxx MIPS based SoCs.
The NAND device nodes have common file including chip select, BCH and partitions for the reference board with the same properties.
Changes in v3:
- Fixed incorrect interrupt number inaon_pm_l2_intc.Changes in v2:
- Removed status properties in always enabled GPIO nodes.
- Removed NAND nodes for v3.3 brcmnand controller.
- Renamed interrupt-controller instead of lable string.
- Renamedbcm97xxx-nand-cs1-bch8.dtsi
Quoted 6 lines
Jaedon Shin (5):
MIPS: BMIPS: Add support PWM device nodes
MIPS: BMIPS: Add support GPIO device nodes
MIPS: BMIPS: Add support SDHCI device nodes
MIPS: BMIPS: Add support NAND device nodes
MIPS: BMIPS: Use interrupt-controller node name
Please directly add the interrupt controller names with the correct name instead of fixing them up later.
Also please CC devicetree@vger for device tree related patches.
Regards
Jonas
Hi Jonas,
Quoted 25 lines · Jonas Gorski
Hi,
Quoted 14 lines · Jaedon Shin
This patch series adds support for Broadcom BCM7xxx MIPS based SoCs.
The NAND device nodes have common file including chip select, BCH and partitions for the reference board with the same properties.
Changes in v3:
- Fixed incorrect interrupt number inaon_pm_l2_intc.Changes in v2:
- Removed status properties in always enabled GPIO nodes.
- Removed NAND nodes for v3.3 brcmnand controller.
- Renamed interrupt-controller instead of lable string.
- Renamedbcm97xxx-nand-cs1-bch8.dtsiQuoted 6 lines
Jaedon Shin (5):
MIPS: BMIPS: Add support PWM device nodes
MIPS: BMIPS: Add support GPIO device nodes
MIPS: BMIPS: Add support SDHCI device nodes
MIPS: BMIPS: Add support NAND device nodes
MIPS: BMIPS: Use interrupt-controller node name
Quoted 8 lines
Please directly add the interrupt controller names with the correct name instead of fixing them up later.
Also please CC devicetree@vger for device tree related patches.
Regards
Jonas
The last commit "MIPS: BMIPS: Use interrupt-controller node name" has on all changes about interrupt-controller@ not only your comments. I think it is needed for consistency and historicity.
Thanks,
Jaedon
Hi,
Quoted 34 lines · Jaedon Shin
Hi Jonas,
Quoted 31 lines · Jonas Gorski
Hi,
Quoted 14 lines · Jaedon Shin
This patch series adds support for Broadcom BCM7xxx MIPS based SoCs.
The NAND device nodes have common file including chip select, BCH and partitions for the reference board with the same properties.
Changes in v3:
- Fixed incorrect interrupt number inaon_pm_l2_intc.Changes in v2:
- Removed status properties in always enabled GPIO nodes.
- Removed NAND nodes for v3.3 brcmnand controller.
- Renamed interrupt-controller instead of lable string.
- Renamedbcm97xxx-nand-cs1-bch8.dtsiQuoted 6 lines
Jaedon Shin (5):
MIPS: BMIPS: Add support PWM device nodes
MIPS: BMIPS: Add support GPIO device nodes
MIPS: BMIPS: Add support SDHCI device nodes
MIPS: BMIPS: Add support NAND device nodes
MIPS: BMIPS: Use interrupt-controller node namePlease directly add the interrupt controller names with the correct name instead of fixing them up later.
Also please CC devicetree@vger for device tree related patches.
Quoted 6 lines
Quoted 2 lines
Regards
JonasThe last commit "MIPS: BMIPS: Use interrupt-controller node name" has on all changes about interrupt-controller@ not only your comments. I think it is needed for consistency and historicity.
That's fine if you want to fix up other wrong usages, but don't introduce them first just to modify them later in the same patch set. So please update your patches to add the nodes with the right names right away.
Jonas
Hi Jonas,
Quoted 45 lines · Jonas Gorski
Hi,
Quoted 34 lines · Jaedon Shin
Hi Jonas,
Quoted 31 lines · Jonas Gorski
Hi,
Quoted 14 lines · Jaedon Shin
This patch series adds support for Broadcom BCM7xxx MIPS based SoCs.
The NAND device nodes have common file including chip select, BCH and partitions for the reference board with the same properties.
Changes in v3:
- Fixed incorrect interrupt number inaon_pm_l2_intc.Changes in v2:
- Removed status properties in always enabled GPIO nodes.
- Removed NAND nodes for v3.3 brcmnand controller.
- Renamed interrupt-controller instead of lable string.
- Renamedbcm97xxx-nand-cs1-bch8.dtsiQuoted 6 lines
Jaedon Shin (5):
MIPS: BMIPS: Add support PWM device nodes
MIPS: BMIPS: Add support GPIO device nodes
MIPS: BMIPS: Add support SDHCI device nodes
MIPS: BMIPS: Add support NAND device nodes
MIPS: BMIPS: Use interrupt-controller node namePlease directly add the interrupt controller names with the correct name instead of fixing them up later.
Also please CC devicetree@vger for device tree related patches.
Quoted 6 lines
Quoted 2 lines
Regards
JonasThe last commit "MIPS: BMIPS: Use interrupt-controller node name" has on all changes about interrupt-controller@ not only your comments. I think it is needed for consistency and historicity.
Quoted 7 lines
That's fine if you want to fix up other wrong usages, but don't introduce them first just to modify them later in the same patch set. So please update your patches to ad the nodes with the right names right away.
Jonas
Okay, I will update patches with your review. They will have the right names at first, and the other wrong usages will be fixed.
Please let me know if you have other comments.
Thanks,
Jaedon