mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-07-06 05:45:29 +02:00
dt-bindings: watchdog: qcom,pm8916-wdt: add parent spmi node to example
The PM8916 watchdog is part of an SPMI PMIC, which lives on an SPMI bus. Add a parent SPMI bus node with an '#address-cells' of 2 and '#size-cells' of 0 instead of relying on the fact that the default number of register cells happen to match (i.e. 1 + 1). Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Wim Van Sebroeck <wim@linux-watchdog.org> Link: https://lore.kernel.org/r/20231130174254.13180-1-johan+linaro@kernel.org Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
This commit is contained in:
parent
1cb113c5d6
commit
179c4acd55
|
@ -30,22 +30,27 @@ examples:
|
||||||
#include <dt-bindings/interrupt-controller/irq.h>
|
#include <dt-bindings/interrupt-controller/irq.h>
|
||||||
#include <dt-bindings/spmi/spmi.h>
|
#include <dt-bindings/spmi/spmi.h>
|
||||||
|
|
||||||
pmic@0 {
|
spmi {
|
||||||
compatible = "qcom,pm8916", "qcom,spmi-pmic";
|
#address-cells = <2>;
|
||||||
reg = <0x0 SPMI_USID>;
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
pon@800 {
|
pmic@0 {
|
||||||
compatible = "qcom,pm8916-pon";
|
compatible = "qcom,pm8916", "qcom,spmi-pmic";
|
||||||
reg = <0x800>;
|
reg = <0x0 SPMI_USID>;
|
||||||
mode-bootloader = <0x2>;
|
#address-cells = <1>;
|
||||||
mode-recovery = <0x1>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
watchdog {
|
pon@800 {
|
||||||
compatible = "qcom,pm8916-wdt";
|
compatible = "qcom,pm8916-pon";
|
||||||
interrupts = <0x0 0x8 6 IRQ_TYPE_EDGE_RISING>;
|
reg = <0x800>;
|
||||||
timeout-sec = <60>;
|
mode-bootloader = <0x2>;
|
||||||
|
mode-recovery = <0x1>;
|
||||||
|
|
||||||
|
watchdog {
|
||||||
|
compatible = "qcom,pm8916-wdt";
|
||||||
|
interrupts = <0x0 0x8 6 IRQ_TYPE_EDGE_RISING>;
|
||||||
|
timeout-sec = <60>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user