From: Jaghathiswari Rankappagounder Natarajan <jaghu@google.com>
To: openbmc@lists.ozlabs.org, joel@jms.id.au
Cc: Jaghathiswari Rankappagounder Natarajan <jaghu@google.com>
Subject: [PATCH linux v2 3/3] devicetree : Add support in Zaius platform for 4 PWM output ports
Date: Tue, 8 Nov 2016 18:11:45 -0800 [thread overview]
Message-ID: <1478657505-23109-4-git-send-email-jaghu@google.com> (raw)
In-Reply-To: <1478657505-23109-1-git-send-email-jaghu@google.com>
Zaius has four fans. Add support for four PWM output ports in Zaius.
v2:
- make the pwmX entries children of the pwm_controller entry.
Signed-off-by: Jaghathiswari Rankappagounder Natarajan <jaghu@google.com>
---
arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 43 ++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
index 4c4754b..5ba8fed 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
@@ -58,6 +58,49 @@
};
};
};
+
+ pwm: pwm-controller@1e786000 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ reg = <0x1E786000 0x78>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default
+ &pinctrl_pwm2_default &pinctrl_pwm3_default>;
+ compatible = "aspeed,ast2500-pwm";
+ clock_enable = /bits/ 8 <0x01>;
+ clock_source = /bits/ 8 <0x00>;
+ typem_pwm_clock = <1 5 0 95>;
+ typen_pwm_clock = <0 0 0 0>;
+ typeo_pwm_clock = <0 0 0 0>;
+
+ pwm_port0 {
+ pwm_port = /bits/ 8 <0x00>;
+ pwm_enable = /bits/ 8 <0x01>;
+ pwm_type = /bits/ 8 <0x00>;
+ pwm_duty_cycle_percent = /bits/ 8 <0x64>;
+ };
+
+ pwm_port1 {
+ pwm_port = /bits/ 8 <0x01>;
+ pwm_enable = /bits/ 8 <0x01>;
+ pwm_type = /bits/ 8 <0x00>;
+ pwm_duty_cycle_percent = /bits/ 8 <0x64>;
+ };
+
+ pwm_port2 {
+ pwm_port = /bits/ 8 <0x02>;
+ pwm_enable = /bits/ 8 <0x01>;
+ pwm_type = /bits/ 8 <0x00>;
+ pwm_duty_cycle_percent = /bits/ 8 <0x64>;
+ };
+
+ pwm_port3 {
+ pwm_port = /bits/ 8 <0x03>;
+ pwm_enable = /bits/ 8 <0x01>;
+ pwm_type = /bits/ 8 <0x00>;
+ pwm_duty_cycle_percent = /bits/ 8 <0x64>;
+ };
+ };
};
&uart5 {
--
2.8.0.rc3.226.g39d4020
prev parent reply other threads:[~2016-11-09 2:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-09 2:11 [PATCH linux v2 0/3] ASPEED AST2500 PWM support Jaghathiswari Rankappagounder Natarajan
2016-11-09 2:11 ` [PATCH linux v2 1/3] devicetree: binding documentation update for ASPEED AST2500 PWM driver Jaghathiswari Rankappagounder Natarajan
2016-11-10 0:35 ` Joel Stanley
2016-11-21 7:50 ` Jaghathiswari Rankappagounder Natarajan
2016-11-09 2:11 ` [PATCH linux v2 2/3] drivers: hwmon: " Jaghathiswari Rankappagounder Natarajan
2016-11-09 7:15 ` Joel Stanley
2016-11-24 9:26 ` Jaghathiswari Rankappagounder Natarajan
2016-11-28 5:14 ` Joel Stanley
2016-11-09 2:11 ` Jaghathiswari Rankappagounder Natarajan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1478657505-23109-4-git-send-email-jaghu@google.com \
--to=jaghu@google.com \
--cc=joel@jms.id.au \
--cc=openbmc@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.