The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/src/arm64/qcom/pm6350.dtsi

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 // SPDX-License-Identifier: BSD-3-Clause
    2 /*
    3  * Copyright (c) 2021, Luca Weiss <luca@z3ntu.xyz>
    4  */
    5 
    6 #include <dt-bindings/spmi/spmi.h>
    7 
    8 &spmi_bus {
    9         pmic@0 {
   10                 compatible = "qcom,pm6350", "qcom,spmi-pmic";
   11                 reg = <0x0 SPMI_USID>;
   12                 #address-cells = <1>;
   13                 #size-cells = <0>;
   14 
   15                 pm6350_pon: pon@800 {
   16                         compatible = "qcom,pm8998-pon";
   17                         reg = <0x800>;
   18                         mode-bootloader = <0x2>;
   19                         mode-recovery = <0x1>;
   20 
   21                         pm6350_pwrkey: pwrkey {
   22                                 compatible = "qcom,pm8941-pwrkey";
   23                                 interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>;
   24                                 debounce = <15625>;
   25                                 bias-pull-up;
   26                                 linux,code = <KEY_POWER>;
   27                         };
   28 
   29                         pm6350_resin: resin {
   30                                 compatible = "qcom,pm8941-resin";
   31                                 interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;
   32                                 debounce = <15625>;
   33                                 bias-pull-up;
   34                                 status = "disabled";
   35                         };
   36                 };
   37 
   38                 pm6350_gpios: gpios@c000 {
   39                         compatible = "qcom,pm6350-gpio", "qcom,spmi-gpio";
   40                         reg = <0xc000>;
   41                         gpio-controller;
   42                         gpio-ranges = <&pm6350_gpios 0 0 9>;
   43                         #gpio-cells = <2>;
   44                         interrupt-controller;
   45                         #interrupt-cells = <2>;
   46                 };
   47         };
   48 
   49         pmic@1 {
   50                 compatible = "qcom,pm6350", "qcom,spmi-pmic";
   51                 reg = <0x1 SPMI_USID>;
   52                 #address-cells = <1>;
   53                 #size-cells = <0>;
   54         };
   55 };

Cache object: d67e2c3552fc40e51c8271f30d41d968


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.