Skip to content

Commit b889ea5

Browse files
RuibinChangkartben
authored andcommitted
dts/bindings/pwm/it8xxx2: remove redundant property pwm-output-frequency
it8xxx2 pwm driver does not handle "pwm-output-frequency" property, so setting the property in borad.dts is useless. About PWM output frequency, it can be set by pwm-cells "period", "pwm-output-frequency" is really redundant. Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
1 parent 443b701 commit b889ea5

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

boards/ite/it82xx2_evb/it82xx2_evb.dts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,14 @@
134134
pinctrl-names = "default";
135135
};
136136

137-
/* pwm for test */
137+
/*
138+
* pwm for test:
139+
* If we need pwm output in ITE chip power saving mode,
140+
* then we should set frequency <=324Hz.
141+
*/
138142
&pwm0 {
139143
status = "okay";
140144
prescaler-cx = <PWM_PRESCALER_C6>;
141-
/*
142-
* If we need pwm output in ITE chip power saving mode,
143-
* then we should set frequency <=324Hz.
144-
*/
145-
pwm-output-frequency = <324>;
146145
pinctrl-0 = <&pwm0_gpa0_default>;
147146
pinctrl-names = "default";
148147
};
@@ -151,7 +150,6 @@
151150
&pwm7 {
152151
status = "okay";
153152
prescaler-cx = <PWM_PRESCALER_C4>;
154-
pwm-output-frequency = <30000>;
155153
pinctrl-0 = <&pwm7_gpa7_default>;
156154
pinctrl-names = "default";
157155
};

boards/ite/it8xxx2_evb/it8xxx2_evb.dts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,23 +121,21 @@
121121
&uart2_tx_gph2_default>;
122122
pinctrl-names = "default";
123123
};
124-
/* pwm for test */
124+
/*
125+
* pwm for test:
126+
* If we need pwm output in ITE chip power saving mode,
127+
* then we should set frequency <=324Hz.
128+
*/
125129
&pwm0 {
126130
status = "okay";
127131
prescaler-cx = <PWM_PRESCALER_C6>;
128-
/*
129-
* If we need pwm output in ITE chip power saving mode,
130-
* then we should set frequency <=324Hz.
131-
*/
132-
pwm-output-frequency = <324>;
133132
pinctrl-0 = <&pwm0_gpa0_default>;
134133
pinctrl-names = "default";
135134
};
136135
/* pwm for fan */
137136
&pwm7 {
138137
status = "okay";
139138
prescaler-cx = <PWM_PRESCALER_C4>;
140-
pwm-output-frequency = <30000>;
141139
pinctrl-0 = <&pwm7_gpa7_default>;
142140
pinctrl-names = "default";
143141
};

dts/bindings/pwm/ite,it8xxx2-pwm.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ properties:
4242
- 3
4343
description: 1 = PWM_PRESCALER_C4, 2 = PWM_PRESCALER_C6, 3 = PWM_PRESCALER_C7
4444

45-
pwm-output-frequency:
46-
type: int
47-
description: PWM output frequency for operation
48-
4945
pinctrl-0:
5046
required: true
5147

0 commit comments

Comments
 (0)