David Collins | de33ee9 | 2017-07-12 11:55:32 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2017, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | &pmi8998_gpios { |
| 14 | usb2_vbus_boost { |
| 15 | usb2_vbus_boost_default: usb2_vbus_boost_default { |
| 16 | pins = "gpio2"; |
| 17 | function = "normal"; |
| 18 | output-low; |
| 19 | power-source = <0>; |
| 20 | }; |
| 21 | }; |
| 22 | |
| 23 | usb2_vbus_det { |
| 24 | usb2_vbus_det_default: usb2_vbus_det_default { |
| 25 | pins = "gpio8"; |
| 26 | function = "normal"; |
| 27 | input-enable; |
| 28 | bias-pull-down; |
| 29 | power-source = <1>; /* VPH input supply */ |
| 30 | }; |
| 31 | }; |
| 32 | |
| 33 | usb2_id_det { |
| 34 | usb2_id_det_default: usb2_id_det_default { |
| 35 | pins = "gpio9"; |
| 36 | function = "normal"; |
| 37 | input-enable; |
| 38 | bias-pull-up; |
| 39 | power-source = <0>; |
| 40 | }; |
| 41 | }; |
| 42 | |
| 43 | usb2_ext_5v_boost { |
| 44 | usb2_ext_5v_boost_default: usb2_ext_5v_boost_default { |
| 45 | pins = "gpio10"; |
| 46 | function = "normal"; |
| 47 | output-low; |
| 48 | power-source = <0>; |
| 49 | }; |
| 50 | }; |
| 51 | }; |