Volkswagen, Daimler and BMW have agreed to upgrade around 5m newer diesel cars in Germany and offer trade-in rebates on older models, avoiding more costly remedies in a bid to salvage diesel technology and avoid driving bans in cities, a media report said.