mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-11 07:04:04 +08:00
ce20364bf7
Add support for PWM chips present on SPEAr platforms. These PWM chips support 4 channel output with programmable duty cycle and frequency. More details on these PWM chips can be obtained from relevant chapter of reference manual, present at following[1] location. 1. http://www.st.com/internet/mcu/product/251211.jsp Cc: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Vipin Kumar <vipin.kumar@st.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
19 lines
561 B
Plaintext
19 lines
561 B
Plaintext
== ST SPEAr SoC PWM controller ==
|
|
|
|
Required properties:
|
|
- compatible: should be one of:
|
|
- "st,spear320-pwm"
|
|
- "st,spear1340-pwm"
|
|
- reg: physical base address and length of the controller's registers
|
|
- #pwm-cells: number of cells used to specify PWM which is fixed to 2 on
|
|
SPEAr. The first cell specifies the per-chip index of the PWM to use and
|
|
the second cell is the period in nanoseconds.
|
|
|
|
Example:
|
|
|
|
pwm: pwm@a8000000 {
|
|
compatible ="st,spear320-pwm";
|
|
reg = <0xa8000000 0x1000>;
|
|
#pwm-cells = <2>;
|
|
};
|