/* * Copyright (c) 2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include "mdmfermium.dtsi" #include "mdmfermium-pinctrl.dtsi" &soc { }; &blsp1_uart5 { status = "ok"; pinctrl-names = "default"; pinctrl-0 = <&uart_console_sleep>; }; &i2c_4 { status = "ok"; }; &spi_1 { status = "ok"; }; &blsp1_uart3 { status = "ok"; }; /* MPP pin 2 configs for SMB358 interrupt line */ &pm8019_mpps { mpp@a100 { qcom,mode = <0>; /* Digital input */ qcom,vin-sel = <3>; /* 1.8V (L11) */ qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */ qcom,pull = <2>; /* PULL UP 10KOHM */ qcom,master-en = <1>; }; }; &i2c_4 { /* SMB358 charger configuration */ smb358_otg_vreg: smb358-charger@57 { compatible = "qcom,smb358-charger"; regulator-name = "smb358_otg_vreg"; reg = <0x57>; interrupt-parent = <&spmi_bus>; interrupts = <0x0 0xa1 0x0>; /* PMIC MPP 2 */ qcom,float-voltage-mv = <4200>; qcom,irq-gpio = <&pm8019_mpps 2 0>; }; }; &usb_otg { vbus_otg-supply = <&smb358_otg_vreg>; };