Pratham Pratap | b2bbeff | 2018-11-01 06:25:11 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. |
David Collins | de33ee9 | 2017-07-12 11:55:32 -0700 | [diff] [blame] | 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 | #include <dt-bindings/gpio/gpio.h> |
| 14 | |
| 15 | #include "pmi8998.dtsi" |
| 16 | |
| 17 | &vendor { |
| 18 | ext_5v_boost: ext_5v_boost { |
| 19 | status = "disabled"; |
| 20 | compatible = "regulator-fixed"; |
| 21 | regulator-name = "ext_5v_boost"; |
| 22 | gpio = <&pmi8998_gpios 10 GPIO_ACTIVE_HIGH>; |
| 23 | enable-active-high; |
| 24 | |
| 25 | regulator-enable-ramp-delay = <1600>; |
| 26 | pinctrl-names = "default"; |
| 27 | pinctrl-0 = <&usb2_ext_5v_boost_default>; |
| 28 | }; |
| 29 | }; |
| 30 | |
| 31 | &pmi8998_charger { |
| 32 | smb2_vconn: qcom,smb2-vconn { |
| 33 | regulator-name = "smb2-vconn"; |
| 34 | }; |
Fenglin Wu | a3e0a6a | 2017-09-18 09:11:44 +0800 | [diff] [blame] | 35 | smb2_vbus: qcom,smb2-vbus { |
| 36 | regulator-name = "smb2-vbus"; |
| 37 | }; |
David Collins | de33ee9 | 2017-07-12 11:55:32 -0700 | [diff] [blame] | 38 | }; |
| 39 | |
Subbaraman Narayanamurthy | 11826ba | 2017-10-06 15:45:11 -0700 | [diff] [blame] | 40 | &pmi8998_qnovo { |
| 41 | pinctrl-names = "default"; |
| 42 | pinctrl-0 = <&qnovo_fet_ctrl_default>; |
| 43 | }; |
| 44 | |
David Collins | de33ee9 | 2017-07-12 11:55:32 -0700 | [diff] [blame] | 45 | &usb0 { |
| 46 | extcon = <&pmi8998_pdphy>, <&pmi8998_pdphy>, <&eud>; |
| 47 | }; |
Pratham Pratap | b2bbeff | 2018-11-01 06:25:11 +0530 | [diff] [blame] | 48 | |
| 49 | &usb_qmp_dp_phy { |
| 50 | extcon = <&pmi8998_pdphy>; |
| 51 | }; |