mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 10:37:53 +07:00
85bc3096b3
PMS405 also features PON block, so add PON and PWRKEY nodes Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Andy Gross <andy.gross@linaro.org>
56 lines
1.2 KiB
Plaintext
56 lines
1.2 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
// Copyright (c) 2018, Linaro Limited
|
|
|
|
#include <dt-bindings/spmi/spmi.h>
|
|
#include <dt-bindings/input/linux-event-codes.h>
|
|
|
|
&spmi_bus {
|
|
pms405_0: pms405@0 {
|
|
compatible = "qcom,spmi-pmic";
|
|
reg = <0x0 SPMI_USID>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
pms405_gpios: gpio@c000 {
|
|
compatible = "qcom,pms405-gpio";
|
|
reg = <0xc000>;
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
|
|
<0 0xc1 0 IRQ_TYPE_NONE>,
|
|
<0 0xc2 0 IRQ_TYPE_NONE>,
|
|
<0 0xc3 0 IRQ_TYPE_NONE>,
|
|
<0 0xc4 0 IRQ_TYPE_NONE>,
|
|
<0 0xc5 0 IRQ_TYPE_NONE>,
|
|
<0 0xc6 0 IRQ_TYPE_NONE>,
|
|
<0 0xc7 0 IRQ_TYPE_NONE>,
|
|
<0 0xc8 0 IRQ_TYPE_NONE>,
|
|
<0 0xc9 0 IRQ_TYPE_NONE>,
|
|
<0 0xca 0 IRQ_TYPE_NONE>,
|
|
<0 0xcb 0 IRQ_TYPE_NONE>;
|
|
};
|
|
|
|
pon@800 {
|
|
compatible = "qcom,pms405-pon";
|
|
reg = <0x0800>;
|
|
mode-bootloader = <0x2>;
|
|
mode-recovery = <0x1>;
|
|
|
|
pwrkey {
|
|
compatible = "qcom,pm8941-pwrkey";
|
|
interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
|
|
debounce = <15625>;
|
|
bias-pull-up;
|
|
linux,code = <KEY_POWER>;
|
|
};
|
|
};
|
|
|
|
rtc@6000 {
|
|
compatible = "qcom,pm8941-rtc";
|
|
reg = <0x6000>;
|
|
reg-names = "rtc", "alarm";
|
|
interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
|
|
};
|
|
};
|
|
};
|