Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pwm: sunxi: Add H3 support

H3 PWM controller has same register layout as sun4i driver, so it works
by adding H3 specific data.

Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: linux-pwm@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Milo Kim <woogyom.kim@gmail.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>

authored by

Milo Kim and committed by
Thierry Reding
42ddcf4f 211ed630

+10
+1
Documentation/devicetree/bindings/pwm/pwm-sun4i.txt
··· 6 6 - "allwinner,sun5i-a10s-pwm" 7 7 - "allwinner,sun5i-a13-pwm" 8 8 - "allwinner,sun7i-a20-pwm" 9 + - "allwinner,sun8i-h3-pwm" 9 10 - reg: physical base address and length of the controller's registers 10 11 - #pwm-cells: should be 3. See pwm.txt in this directory for a description of 11 12 the cells format.
+9
drivers/pwm/pwm-sun4i.c
··· 284 284 .npwm = 2, 285 285 }; 286 286 287 + static const struct sun4i_pwm_data sun4i_pwm_data_h3 = { 288 + .has_prescaler_bypass = true, 289 + .has_rdy = true, 290 + .npwm = 1, 291 + }; 292 + 287 293 static const struct of_device_id sun4i_pwm_dt_ids[] = { 288 294 { 289 295 .compatible = "allwinner,sun4i-a10-pwm", ··· 303 297 }, { 304 298 .compatible = "allwinner,sun7i-a20-pwm", 305 299 .data = &sun4i_pwm_data_a20, 300 + }, { 301 + .compatible = "allwinner,sun8i-h3-pwm", 302 + .data = &sun4i_pwm_data_h3, 306 303 }, { 307 304 /* sentinel */ 308 305 },