Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
0004  */
0005 
0006 #include <dt-bindings/interrupt-controller/irq.h>
0007 #include <dt-bindings/spmi/spmi.h>
0008 
0009 &spmi_bus {
0010         pmic@1 {
0011                 compatible = "qcom,pmx65", "qcom,spmi-pmic";
0012                 reg = <1 SPMI_USID>;
0013                 #address-cells = <1>;
0014                 #size-cells = <0>;
0015 
0016                 pmx65_temp: temp-alarm@a00 {
0017                         compatible = "qcom,spmi-temp-alarm";
0018                         reg = <0xa00>;
0019                         interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
0020                         #thermal-sensor-cells = <0>;
0021                 };
0022 
0023                 pmx65_gpios: pinctrl@8800 {
0024                         compatible = "qcom,pmx65-gpio", "qcom,spmi-gpio";
0025                         reg = <0x8800>;
0026                         gpio-controller;
0027                         gpio-ranges = <&pmx65_gpios 0 0 16>;
0028                         #gpio-cells = <2>;
0029                         interrupt-controller;
0030                         #interrupt-cells = <2>;
0031                 };
0032         };
0033 };