blob: 55e8e211060a81918ce7380c30def3c52340338b [file] [log] [blame]
Chetan C R8d3d0472018-10-15 18:42:08 +05301/*
2 * Copyright (c) 2018 The Linux Foundation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#include "pmi8937.dtsi"
15
16&qpnp_smbcharger {
17 qcom,chg-led-sw-controls;
18 qcom,chg-led-support;
19 dpdm-supply = <&usb_otg>;
20};
21
22&usb_otg {
23 extcon = <&qpnp_smbcharger>;
24};
25
26&soc {
27 led_flash0: qcom,camera-flash {
28 cell-index = <0>;
29 compatible = "qcom,camera-flash";
30 qcom,flash-type = <1>;
31 qcom,flash-source = <&pmi8937_flash0 &pmi8937_flash1>;
32 qcom,torch-source = <&pmi8937_torch0 &pmi8937_torch1>;
33 qcom,switch-source = <&pmi8937_switch>;
34 };
35};