Skip to content

Commit

Permalink
MIPS: BMIPS: Add support PWM device nodes
Browse files Browse the repository at this point in the history
Adds PWM device nodes to BCM7xxx MIPS based SoCs.

Signed-off-by: Jaedon Shin <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Cc: Jonas Gorski <[email protected]>
Cc: Kevin Cernekee <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: MIPS Mailing List <[email protected]>
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/14000/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
jaedon authored and ralfbaechle committed Oct 6, 2016
1 parent c834469 commit 7bbe59d
Show file tree
Hide file tree
Showing 16 changed files with 204 additions and 0 deletions.
14 changes: 14 additions & 0 deletions arch/mips/boot/dts/brcm/bcm7125.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
#clock-cells = <0>;
clock-frequency = <81000000>;
};

upg_clk: upg_clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <27000000>;
};
};

rdb {
Expand Down Expand Up @@ -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>;
Expand Down
22 changes: 22 additions & 0 deletions arch/mips/boot/dts/brcm/bcm7346.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
#clock-cells = <0>;
clock-frequency = <81000000>;
};

upg_clk: upg_clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <27000000>;
};
};

rdb {
Expand Down Expand Up @@ -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>;
Expand Down
22 changes: 22 additions & 0 deletions arch/mips/boot/dts/brcm/bcm7358.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
#clock-cells = <0>;
clock-frequency = <81000000>;
};

upg_clk: upg_clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <27000000>;
};
};

rdb {
Expand Down Expand Up @@ -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>;
Expand Down
14 changes: 14 additions & 0 deletions arch/mips/boot/dts/brcm/bcm7360.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
#clock-cells = <0>;
clock-frequency = <81000000>;
};

upg_clk: upg_clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <27000000>;
};
};

rdb {
Expand Down Expand Up @@ -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>;
Expand Down
14 changes: 14 additions & 0 deletions arch/mips/boot/dts/brcm/bcm7362.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
#clock-cells = <0>;
clock-frequency = <81000000>;
};

upg_clk: upg_clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <27000000>;
};
};

rdb {
Expand Down Expand Up @@ -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>;
Expand Down
22 changes: 22 additions & 0 deletions arch/mips/boot/dts/brcm/bcm7420.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
#clock-cells = <0>;
clock-frequency = <81000000>;
};

upg_clk: upg_clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <27000000>;
};
};

rdb {
Expand Down Expand Up @@ -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>;
Expand Down
22 changes: 22 additions & 0 deletions arch/mips/boot/dts/brcm/bcm7425.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
#clock-cells = <0>;
clock-frequency = <81000000>;
};

upg_clk: upg_clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <27000000>;
};
};

rdb {
Expand Down Expand Up @@ -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>;
Expand Down
22 changes: 22 additions & 0 deletions arch/mips/boot/dts/brcm/bcm7435.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
#clock-cells = <0>;
clock-frequency = <81000000>;
};

upg_clk: upg_clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <27000000>;
};
};

rdb {
Expand Down Expand Up @@ -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>;
Expand Down
4 changes: 4 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97125cbmb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
status = "okay";
};

&pwma {
status = "okay";
};

/* FIXME: USB is wonky; disable it for now */
&ehci0 {
status = "disabled";
Expand Down
8 changes: 8 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97346dbsmb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@
status = "okay";
};

&pwma {
status = "okay";
};

&pwmb {
status = "okay";
};

&enet0 {
status = "okay";
};
Expand Down
8 changes: 8 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97358svmb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
status = "okay";
};

&pwma {
status = "okay";
};

&pwmb {
status = "okay";
};

&enet0 {
status = "okay";
};
Expand Down
4 changes: 4 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97360svmb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
status = "okay";
};

&pwma {
status = "okay";
};

&enet0 {
status = "okay";
};
Expand Down
4 changes: 4 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97362svmb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
status = "okay";
};

&pwma {
status = "okay";
};

&enet0 {
status = "okay";
};
Expand Down
8 changes: 8 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97420c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
8 changes: 8 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97425svmb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@
status = "okay";
};

&pwma {
status = "okay";
};

&pwmb {
status = "okay";
};

&enet0 {
status = "okay";
};
Expand Down
8 changes: 8 additions & 0 deletions arch/mips/boot/dts/brcm/bcm97435svmb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@
status = "okay";
};

&pwma {
status = "okay";
};

&pwmb {
status = "okay";
};

&enet0 {
status = "okay";
};
Expand Down

0 comments on commit 7bbe59d

Please sign in to comment.