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

ARM: STi: STiH416: Add DT nodes for PWM

Supply top level nodes for the STiH416 based development boards.
The Pinctrl configuration has already been applied, so the only
missing piece of the DT puzzle is for a board's DTB to enable
the nodes.

Signed-off-by: Ajit Pal Singh <ajitpal.singh@st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>

authored by

Lee Jones and committed by
Maxime Coquelin
c66b2969 9723bac0

+43 -1
+43 -1
arch/arm/boot/dts/stih416.dtsi
··· 104 104 interrupts = <0 210 0>; 105 105 pinctrl-names = "default"; 106 106 pinctrl-0 = <&pinctrl_sbc_serial1>; 107 - clocks = <&clk_sysin>; 107 + clocks = <&clk_sysin>; 108 108 }; 109 109 110 110 i2c@fed40000 { ··· 444 444 resets = <&powerdown STIH416_USB3_POWERDOWN>, 445 445 <&softreset STIH416_USB3_SOFTRESET>; 446 446 reset-names = "power", "softreset"; 447 + }; 448 + 449 + /* SAS PWM Module */ 450 + pwm0: pwm@fed10000 { 451 + compatible = "st,sti-pwm"; 452 + status = "disabled"; 453 + #pwm-cells = <2>; 454 + reg = <0xfed10000 0x68>; 455 + 456 + pinctrl-names = "default"; 457 + pinctrl-0 = <&pinctrl_pwm0_chan0_default 458 + &pinctrl_pwm0_chan1_default 459 + &pinctrl_pwm0_chan2_default 460 + &pinctrl_pwm0_chan3_default>; 461 + 462 + clock-names = "pwm"; 463 + clocks = <&clk_sysin>; 464 + st,pwm-num-chan = <4>; 465 + }; 466 + 467 + /* SBC PWM Module */ 468 + pwm1: pwm@fe510000 { 469 + compatible = "st,sti-pwm"; 470 + status = "disabled"; 471 + #pwm-cells = <2>; 472 + reg = <0xfe510000 0x68>; 473 + 474 + pinctrl-names = "default"; 475 + pinctrl-0 = <&pinctrl_pwm1_chan0_default 476 + /* 477 + * Shared with SBC_OBS_NOTRST. Don't 478 + * enable unless you really know what 479 + * you're doing. 480 + * 481 + * &pinctrl_pwm1_chan1_default 482 + */ 483 + &pinctrl_pwm1_chan2_default 484 + &pinctrl_pwm1_chan3_default>; 485 + 486 + clock-names = "pwm"; 487 + clocks = <&clk_sysin>; 488 + st,pwm-num-chan = <3>; 447 489 }; 448 490 }; 449 491 };