Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: BSD-3-Clause
0002 /*
0003  * Copyright (c) 2021, Luca Weiss <luca@z3ntu.xyz>
0004  */
0005 
0006 #include <dt-bindings/spmi/spmi.h>
0007 
0008 &spmi_bus {
0009         pmic@0 {
0010                 compatible = "qcom,pm6350", "qcom,spmi-pmic";
0011                 reg = <0x0 SPMI_USID>;
0012                 #address-cells = <1>;
0013                 #size-cells = <0>;
0014 
0015                 pm6350_pon: pon@800 {
0016                         compatible = "qcom,pm8998-pon";
0017                         reg = <0x800>;
0018                         mode-bootloader = <0x2>;
0019                         mode-recovery = <0x1>;
0020 
0021                         pm6350_pwrkey: pwrkey {
0022                                 compatible = "qcom,pm8941-pwrkey";
0023                                 interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>;
0024                                 debounce = <15625>;
0025                                 bias-pull-up;
0026                                 linux,code = <KEY_POWER>;
0027                         };
0028 
0029                         pm6350_resin: resin {
0030                                 compatible = "qcom,pm8941-resin";
0031                                 interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;
0032                                 debounce = <15625>;
0033                                 bias-pull-up;
0034                                 status = "disabled";
0035                         };
0036                 };
0037 
0038                 pm6350_gpios: gpios@c000 {
0039                         compatible = "qcom,pm6350-gpio", "qcom,spmi-gpio";
0040                         reg = <0xc000>;
0041                         gpio-controller;
0042                         gpio-ranges = <&pm6350_gpios 0 0 9>;
0043                         #gpio-cells = <2>;
0044                         interrupt-controller;
0045                         #interrupt-cells = <2>;
0046                 };
0047         };
0048 
0049         pmic@1 {
0050                 compatible = "qcom,pm6350", "qcom,spmi-pmic";
0051                 reg = <0x1 SPMI_USID>;
0052                 #address-cells = <1>;
0053                 #size-cells = <0>;
0054         };
0055 };