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.

riscv: dts: starfive: jh7100: Add PWM node and pins configuration

Add OpenCores PWM controller node and add PWM pins configuration
on VisionFive 1 board.

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>

authored by

William Qiu and committed by
Conor Dooley
5e598b99 25290858

+33
+24
arch/riscv/boot/dts/starfive/jh7100-common.dtsi
··· 115 115 }; 116 116 }; 117 117 118 + pwm_pins: pwm-0 { 119 + pwm-pins { 120 + pinmux = <GPIOMUX(7, 121 + GPO_PWM_PAD_OUT_BIT0, 122 + GPO_PWM_PAD_OE_N_BIT0, 123 + GPI_NONE)>, 124 + <GPIOMUX(5, 125 + GPO_PWM_PAD_OUT_BIT1, 126 + GPO_PWM_PAD_OE_N_BIT1, 127 + GPI_NONE)>; 128 + bias-disable; 129 + drive-strength = <35>; 130 + input-disable; 131 + input-schmitt-disable; 132 + slew-rate = <0>; 133 + }; 134 + }; 135 + 118 136 sdio0_pins: sdio0-0 { 119 137 clk-pins { 120 138 pinmux = <GPIOMUX(54, GPO_SDIO0_PAD_CCLK_OUT, ··· 273 255 274 256 &osc_aud { 275 257 clock-frequency = <27000000>; 258 + }; 259 + 260 + &pwm { 261 + pinctrl-names = "default"; 262 + pinctrl-0 = <&pwm_pins>; 263 + status = "okay"; 276 264 }; 277 265 278 266 &sdio0 {
+9
arch/riscv/boot/dts/starfive/jh7100.dtsi
··· 320 320 <&rstgen JH7100_RSTN_WDT>; 321 321 }; 322 322 323 + pwm: pwm@12490000 { 324 + compatible = "starfive,jh7100-pwm", "opencores,pwm-v1"; 325 + reg = <0x0 0x12490000 0x0 0x10000>; 326 + clocks = <&clkgen JH7100_CLK_PWM_APB>; 327 + resets = <&rstgen JH7100_RSTN_PWM_APB>; 328 + #pwm-cells = <3>; 329 + status = "disabled"; 330 + }; 331 + 323 332 sfctemp: temperature-sensor@124a0000 { 324 333 compatible = "starfive,jh7100-temp"; 325 334 reg = <0x0 0x124a0000 0x0 0x10000>;