I'm Neal and I am here to assist you. Only accept when you are happy with my assistance. If I can't help I will open your Question to other experts.
the P0507 DTC (diagnostic trouble code) is triggered when the PCM (powertrain control module) detects an engine idle speed that is greater than the desired (pre-programmed) RPM. Are you having any noticeable problems? Have you cleared the code only to have it return?