Frequency to PWM output
A DC motor has a voltage rating and maximum RPM which is linear above some threshold to get it started due to stiction. It is linear when there is no load on the motor. However when mechanically loaded , current will rise and the RPM will drop so another speed sensor on the motor is necessary to keep it regulated while voltage must be increased a bit to generate power to match the mechanical power.