Loading Documentation/devicetree/bindings/misc/qpnp-misc.txt +12 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,16 @@ Required properties: - compatible : should be "qcom,qpnp-misc" - reg : offset and length of the PMIC peripheral register map. Optional properties: - qcom,pwm-sel: Select PWM source. Possible values: 0: LOW 1: PWM1_in 2: PWM2_in 3: PWM1_in & PWM2_in - qcom,enable-gp-driver: Enable the GP driver. Should only be specified if a non-zero PWM source is specified under "qcom,pwm-sel" property. Example: qcom,spmi@fc4c0000 { #address-cells = <1>; Loading @@ -22,6 +32,8 @@ Example: qcom,misc@900 { compatible = "qcom,qpnp-misc"; reg = <0x900 0x100>; qcom,pwm-sel = <2>; qcom,enable-gp-driver; }; } }; arch/arm/boot/dts/qcom/mdmcalifornium-mtp.dtsi +6 −1 Original line number Diff line number Diff line /* Copyright (c) 2015, The Linux Foundation. All rights reserved. /* Copyright (c) 2015-2016, 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 Loading Loading @@ -80,6 +80,11 @@ }; }; &pmdcalifornium_misc { qcom,pwm-sel = <2>; /* PWM2 */ qcom,enable-gp-driver; /* Enable GP */ }; &qnand_1 { status = "ok"; }; Loading arch/arm/boot/dts/qcom/msm-pmdcalifornium.dtsi +6 −1 Original line number Diff line number Diff line /* Copyright (c) 2015, The Linux Foundation. All rights reserved. /* Copyright (c) 2015-2016, 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 Loading Loading @@ -29,6 +29,11 @@ }; pmdcalifornium_misc: qcom,misc@900 { compatible = "qcom,qpnp-misc"; reg = <0x900 0x100>; }; pmdcalifornium_gpios: gpios { spmi-dev-container; compatible = "qcom,qpnp-pin"; Loading arch/arm/configs/mdm-perf_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -178,6 +178,7 @@ CONFIG_MTD_MSM_QPIC_NAND=y CONFIG_MTD_UBI=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y CONFIG_QPNP_MISC=y CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y CONFIG_CHR_DEV_SG=y Loading arch/arm/configs/mdm_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -177,6 +177,7 @@ CONFIG_MTD_MSM_QPIC_NAND=y CONFIG_MTD_UBI=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y CONFIG_QPNP_MISC=y CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y CONFIG_CHR_DEV_SG=y Loading Loading
Documentation/devicetree/bindings/misc/qpnp-misc.txt +12 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,16 @@ Required properties: - compatible : should be "qcom,qpnp-misc" - reg : offset and length of the PMIC peripheral register map. Optional properties: - qcom,pwm-sel: Select PWM source. Possible values: 0: LOW 1: PWM1_in 2: PWM2_in 3: PWM1_in & PWM2_in - qcom,enable-gp-driver: Enable the GP driver. Should only be specified if a non-zero PWM source is specified under "qcom,pwm-sel" property. Example: qcom,spmi@fc4c0000 { #address-cells = <1>; Loading @@ -22,6 +32,8 @@ Example: qcom,misc@900 { compatible = "qcom,qpnp-misc"; reg = <0x900 0x100>; qcom,pwm-sel = <2>; qcom,enable-gp-driver; }; } };
arch/arm/boot/dts/qcom/mdmcalifornium-mtp.dtsi +6 −1 Original line number Diff line number Diff line /* Copyright (c) 2015, The Linux Foundation. All rights reserved. /* Copyright (c) 2015-2016, 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 Loading Loading @@ -80,6 +80,11 @@ }; }; &pmdcalifornium_misc { qcom,pwm-sel = <2>; /* PWM2 */ qcom,enable-gp-driver; /* Enable GP */ }; &qnand_1 { status = "ok"; }; Loading
arch/arm/boot/dts/qcom/msm-pmdcalifornium.dtsi +6 −1 Original line number Diff line number Diff line /* Copyright (c) 2015, The Linux Foundation. All rights reserved. /* Copyright (c) 2015-2016, 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 Loading Loading @@ -29,6 +29,11 @@ }; pmdcalifornium_misc: qcom,misc@900 { compatible = "qcom,qpnp-misc"; reg = <0x900 0x100>; }; pmdcalifornium_gpios: gpios { spmi-dev-container; compatible = "qcom,qpnp-pin"; Loading
arch/arm/configs/mdm-perf_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -178,6 +178,7 @@ CONFIG_MTD_MSM_QPIC_NAND=y CONFIG_MTD_UBI=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y CONFIG_QPNP_MISC=y CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y CONFIG_CHR_DEV_SG=y Loading
arch/arm/configs/mdm_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -177,6 +177,7 @@ CONFIG_MTD_MSM_QPIC_NAND=y CONFIG_MTD_UBI=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y CONFIG_QPNP_MISC=y CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y CONFIG_CHR_DEV_SG=y Loading