http://oracle-help.com/oracle-rac/upgrading-grid-infrastructure-11-2-0-4-12-1-0-2-command-line/
Upgrading the Grid Infrastructure from 11.2.0.4 to 12.1.0.2 on the command line