14870c76cSKonrad Dybcio// SPDX-License-Identifier: BSD-3-Clause 24870c76cSKonrad Dybcio/* 34870c76cSKonrad Dybcio * Copyright (c) 2020, Konrad Dybcio 44870c76cSKonrad Dybcio */ 54870c76cSKonrad Dybcio 64870c76cSKonrad Dybcio#include <dt-bindings/input/linux-event-codes.h> 74870c76cSKonrad Dybcio#include <dt-bindings/interrupt-controller/irq.h> 84870c76cSKonrad Dybcio#include <dt-bindings/spmi/spmi.h> 94870c76cSKonrad Dybcio 104870c76cSKonrad Dybcio&spmi_bus { 114870c76cSKonrad Dybcio 124870c76cSKonrad Dybcio pmic@2 { 134870c76cSKonrad Dybcio compatible = "qcom,pm660l", "qcom,spmi-pmic"; 144870c76cSKonrad Dybcio reg = <0x2 SPMI_USID>; 154870c76cSKonrad Dybcio #address-cells = <1>; 164870c76cSKonrad Dybcio #size-cells = <0>; 174870c76cSKonrad Dybcio 184870c76cSKonrad Dybcio pm660l_gpios: gpios@c000 { 194870c76cSKonrad Dybcio compatible = "qcom,pm660l-gpio", "qcom,spmi-gpio"; 204870c76cSKonrad Dybcio reg = <0xc000>; 214870c76cSKonrad Dybcio gpio-controller; 224870c76cSKonrad Dybcio gpio-ranges = <&pm660l_gpios 0 0 12>; 234870c76cSKonrad Dybcio #gpio-cells = <2>; 244870c76cSKonrad Dybcio interrupt-controller; 254870c76cSKonrad Dybcio #interrupt-cells = <2>; 264870c76cSKonrad Dybcio }; 274870c76cSKonrad Dybcio }; 284870c76cSKonrad Dybcio 294870c76cSKonrad Dybcio pmic@3 { 304870c76cSKonrad Dybcio compatible = "qcom,pm660l", "qcom,spmi-pmic"; 314870c76cSKonrad Dybcio reg = <0x3 SPMI_USID>; 324870c76cSKonrad Dybcio #address-cells = <1>; 334870c76cSKonrad Dybcio #size-cells = <0>; 347b56a804SKonrad Dybcio 357b56a804SKonrad Dybcio pm660l_wled: leds@d800 { 367b56a804SKonrad Dybcio compatible = "qcom,pm660l-wled"; 377b56a804SKonrad Dybcio reg = <0xd800 0xd900>; 387b56a804SKonrad Dybcio interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>; 397b56a804SKonrad Dybcio interrupt-names = "ovp"; 407b56a804SKonrad Dybcio label = "backlight"; 417b56a804SKonrad Dybcio 427b56a804SKonrad Dybcio qcom,switching-freq = <800>; 437b56a804SKonrad Dybcio qcom,ovp-millivolt = <29600>; 447b56a804SKonrad Dybcio qcom,current-boost-limit = <970>; 457b56a804SKonrad Dybcio qcom,current-limit-microamp = <20000>; 467b56a804SKonrad Dybcio qcom,num-strings = <2>; 477b56a804SKonrad Dybcio qcom,enabled-strings = <0 1>; 487b56a804SKonrad Dybcio 497b56a804SKonrad Dybcio status = "disabled"; 507b56a804SKonrad Dybcio }; 51*2a1fbb12SAngeloGioacchino Del Regno 52*2a1fbb12SAngeloGioacchino Del Regno pm660l_spmi_regulators: pm660l-regulators { 53*2a1fbb12SAngeloGioacchino Del Regno compatible = "qcom,pm660l-regulators"; 54*2a1fbb12SAngeloGioacchino Del Regno }; 554870c76cSKonrad Dybcio }; 564870c76cSKonrad Dybcio}; 574870c76cSKonrad Dybcio 58