Which version of Firmata are you using? You can change the number of pins known to be analog pins in some versions.