Message ID | 1492608293-12435-5-git-send-email-ulrich.hecht+renesas@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Simon Horman |
Headers | show |
On Wed, Apr 19, 2017 at 3:24 PM, Ulrich Hecht <ulrich.hecht+renesas@gmail.com> wrote: > From: Ryo Kodama <ryo.kodama.vz@renesas.com> > > This patch adds support of PWM{1,2} device for Salvator-X board on > R8A7796 SoC. > > Signed-off-by: Ryo Kodama <ryo.kodama.vz@renesas.com> > Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> > Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com> > --- > arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts > index 14d9e51..b4ff1b6 100644 > --- a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts > +++ b/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts > @@ -114,6 +126,15 @@ > function = "avb"; > }; > > + pwm1_pins: pwm1 { > + groups = "pwm1_a", "pwm1_b"; > + function = "pwm1"; > + }; > + pwm2_pins: pwm2 { > + groups = "pwm2_a", "pwm2_b"; > + function = "pwm2"; > + }; Same brain damage as the r8a7795 counterpart... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts index 14d9e51..b4ff1b6 100644 --- a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +++ b/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts @@ -105,6 +105,18 @@ }; }; +&pwm1 { + pinctrl-0 = <&pwm1_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&pwm2 { + pinctrl-0 = <&pwm2_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + &pfc { pinctrl-0 = <&scif_clk_pins>; pinctrl-names = "default"; @@ -114,6 +126,15 @@ function = "avb"; }; + pwm1_pins: pwm1 { + groups = "pwm1_a", "pwm1_b"; + function = "pwm1"; + }; + pwm2_pins: pwm2 { + groups = "pwm2_a", "pwm2_b"; + function = "pwm2"; + }; + scif1_pins: scif1 { groups = "scif1_data_a", "scif1_ctrl"; function = "scif1";