// SPDX-License-Identifier: BSD-3-Clause /* * Copyright (c) 2020, Konrad Dybcio */ #include #include #include &spmi_bus { pmic@2 { compatible = "qcom,pm660l", "qcom,spmi-pmic"; reg = <0x2 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; pm660l_gpios: gpios@c000 { compatible = "qcom,pm660l-gpio", "qcom,spmi-gpio"; reg = <0xc000>; gpio-controller; gpio-ranges = <&pm660l_gpios 0 0 12>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; }; pmic@3 { compatible = "qcom,pm660l", "qcom,spmi-pmic"; reg = <0x3 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; pm660l_wled: leds@d800 { compatible = "qcom,pm660l-wled"; reg = <0xd800 0xd900>; interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>; interrupt-names = "ovp"; label = "backlight"; qcom,switching-freq = <800>; qcom,ovp-millivolt = <29600>; qcom,current-boost-limit = <970>; qcom,current-limit-microamp = <20000>; qcom,num-strings = <2>; qcom,enabled-strings = <0 1>; status = "disabled"; }; pm660l_spmi_regulators: pm660l-regulators { compatible = "qcom,pm660l-regulators"; }; }; };