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: jh7110: Add PWM node and pins configuration

Add OpenCores PWM controller node and add PWM pins configuration
on VisionFive 2 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
8d01f741 5e598b99

+31
+22
arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
··· 323 323 }; 324 324 }; 325 325 326 + &pwm { 327 + pinctrl-names = "default"; 328 + pinctrl-0 = <&pwm_pins>; 329 + status = "okay"; 330 + }; 331 + 326 332 &spi0 { 327 333 pinctrl-names = "default"; 328 334 pinctrl-0 = <&spi0_pins>; ··· 513 507 GPI_NONE)>; 514 508 bias-disable; 515 509 drive-strength = <2>; 510 + input-disable; 511 + input-schmitt-disable; 512 + slew-rate = <0>; 513 + }; 514 + }; 515 + 516 + pwm_pins: pwm-0 { 517 + pwm-pins { 518 + pinmux = <GPIOMUX(46, GPOUT_SYS_PWM_CHANNEL0, 519 + GPOEN_SYS_PWM0_CHANNEL0, 520 + GPI_NONE)>, 521 + <GPIOMUX(59, GPOUT_SYS_PWM_CHANNEL1, 522 + GPOEN_SYS_PWM0_CHANNEL1, 523 + GPI_NONE)>; 524 + bias-disable; 525 + drive-strength = <12>; 516 526 input-disable; 517 527 input-schmitt-disable; 518 528 slew-rate = <0>;
+9
arch/riscv/boot/dts/starfive/jh7110.dtsi
··· 829 829 status = "disabled"; 830 830 }; 831 831 832 + pwm: pwm@120d0000 { 833 + compatible = "starfive,jh7110-pwm", "opencores,pwm-v1"; 834 + reg = <0x0 0x120d0000 0x0 0x10000>; 835 + clocks = <&syscrg JH7110_SYSCLK_PWM_APB>; 836 + resets = <&syscrg JH7110_SYSRST_PWM_APB>; 837 + #pwm-cells = <3>; 838 + status = "disabled"; 839 + }; 840 + 832 841 sfctemp: temperature-sensor@120e0000 { 833 842 compatible = "starfive,jh7110-temp"; 834 843 reg = <0x0 0x120e0000 0x0 0x10000>;