Adds PWM device nodes to BCM7xxx MIPS based SoCs. Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Cc: Jonas Gorski <jonas.gorski@gmail.com> Cc: Kevin Cernekee <cernekee@gmail.com> Cc: Rob Herring <robh+dt@kernel.org> Cc: MIPS Mailing List <linux-mips@linux-mips.org> Cc: devicetree@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/14000/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
@@ -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>;
@@ -210,6 +216,22 @@
+ pwmb: pwm@406800 {
+ reg = <0x406800 0x28>;
enet0: ethernet@430000 {
phy-mode = "internal";
phy-handle = <&phy1>;
@@ -34,6 +34,12 @@
@@ -194,6 +200,22 @@
+ pwma: pwm@406400 {
+ reg = <0x406400 0x28>;
+ pwmb: pwm@406700 {
+ reg = <0x406700 0x28>;
@@ -194,6 +200,14 @@
@@ -190,6 +196,14 @@
@@ -191,6 +197,22 @@
+ pwmb: pwm@406880 {
+ reg = <0x406880 0x28>;
enet0: ethernet@468000 {
@@ -209,6 +215,22 @@
enet0: ethernet@b80000 {
@@ -52,6 +52,12 @@
@@ -224,6 +230,22 @@
@@ -45,6 +45,10 @@
status = "okay";
+&pwma {
+ status = "okay";
+};
/* FIXME: USB is wonky; disable it for now */
&ehci0 {
@@ -49,6 +49,14 @@
+&pwmb {
&enet0 {
@@ -45,6 +45,14 @@
@@ -41,6 +41,10 @@
@@ -51,6 +51,14 @@
/* FIXME: MAC driver comes up but cannot attach to PHY */