Commit d18dd9d3 authored by Bill Waters's avatar Bill Waters Committed by Benjamin Cabé
Browse files

drivers: pwm: Infineon: updates to PWM driver sample files



* Updates the overlay files for samples/basic/blinky_pwm and
samples/basic/fade_led to run on the cyw920829m2_evk board.

Signed-off-by: default avatarBill Waters <bill.waters@infineon.com>
parent 7973535e
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -22,13 +22,17 @@
	};
};

&pwm0_0 {
&tcpwm0_0 {
	status = "okay";
	pinctrl-0 = <&p1_1_pwm0_0>;
	pinctrl-names = "default";
	divider-type = <CY_SYSCLK_DIV_16_BIT>;
	divider-type = <PWM_IFX_SYSCLK_DIV_16_BIT>;
	divider-sel = <1>;
	divider-val = <9599>;

	pwm0_0: pwm0_0 {
		status = "okay";
		pinctrl-0 = <&p1_1_pwm0_0>;
		pinctrl-names = "default";
	};
};

&pinctrl {
+31 −4
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
/ {
	aliases {
		pwm-led0 = &pwm_led0;
		pwm-led1 = &pwm_led1;
	};

	pwmleds {
@@ -19,20 +20,46 @@
			pwms = <&pwm0_0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
			label = "PWM MB1";
		};

		pwm_led1: pwm_led_1 {
			pwms = <&pwm1_5 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
			label = "PWM MB2";
		};
	};
};

&pwm0_0 {
&tcpwm0_0 {
	status = "okay";
	divider-type = <PWM_IFX_SYSCLK_DIV_16_BIT>;
	divider-sel = <1>;
	divider-val = <9599>;

	pwm0_0: pwm0_0 {
		status = "okay";
		pinctrl-0 = <&p1_1_pwm0_0>;
		pinctrl-names = "default";
	divider-type = <CY_SYSCLK_DIV_16_BIT>;
	};
};

&tcpwm1_5 {
	status = "okay";
	divider-type = <PWM_IFX_SYSCLK_DIV_16_BIT>;
	divider-sel = <1>;
	divider-val = <9599>;

	pwm1_5: pwm1_5 {
		status = "okay";
		pinctrl-0 = <&p5_2_pwm1_5>;
		pinctrl-names = "default";
	};
};

&pinctrl {
	p1_1_pwm0_0: p1_1_pwm0_0 {
		drive-push-pull;
	};

	p5_2_pwm1_5: p5_2_pwm1_5 {
		drive-push-pull;
	};
};