I think it is more correct to speak of the period of a square wave instead of a square wave frequency. A square wave is a periodic signal, where the period is the time interval after which the signal repeats the same pattern of values.
Moreover, we have the Fourier analysis. This mathematical tool allows us to express a signal that meets certain conditions, such as a series whose terms are trigonometric functions.
In the case of a square wave, the Fourier series representation contains infinite terms, of which the lower frequency corresponds to the fundamental frequency of the square wave, and the period is the same as for the square wave.
The point of the speed at which a square wave grows, is unrelated to the fundamental frequency of the same, but rather with limited bandwidth. What does this mean? If all the infinite terms of the Fourier series are not included in the representation of a square wave, the sum represents "roughly square" signals; few more terms we include, the more "square" is the signal represented.
A band-limited signal is one that does not include all the harmonic components (the terms of the Fourier series), or rather, has a maximum value for the frequency of the harmonic components to consider. This limit, usually due to system conditions.
Then, in a real system, a "square wave" can not include all the harmonics that should theoretically include. This means that the signal is "not so square" and needs a certain interval to go from one value to another.