arm64: dts: fsl: imx8mq: add watchdog devices
Subsystems (2)
PATCH v2 1/2 arm64: dts: fsl: imx8mq: add watchdog devices
---
v2:
* Rename nodes name prefix to 'watchdog@'
* Add fsl,imx8mq-wdt to compatible list
--- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +24 -0
@@ -250,6 +250,30 @@ "clk_ext1", "clk_ext2", "clk_ext3", "clk_ext4"; }; + + wdog1: watchdog at 30280000 { + compatible = "fsl,imx8mq-wdt", "fsl,imx21-wdt"; + reg = <0x30280000 0x10000>; + interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk IMX8MQ_CLK_WDOG1_ROOT>; + status = "disabled"; + }; + + wdog2: watchdog at 30290000 { + compatible = "fsl,imx8mq-wdt", "fsl,imx21-wdt"; + reg = <0x30290000 0x10000>; + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk IMX8MQ_CLK_WDOG2_ROOT>; + status = "disabled"; + }; + + wdog3: watchdog at 302a0000 { + compatible = "fsl,imx8mq-wdt", "fsl,imx21-wdt"; + reg = <0x302a0000 0x10000>; + interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk IMX8MQ_CLK_WDOG3_ROOT>; + status = "disabled"; + }; }; bus at 30400000 { /* AIPS2 */
Signature · 1 line
2.15.1
PATCH v2 2/2 arm64: dts: fsl: imx8mq-evk: enable watchdog
The external nWDOG signal connects to the EVK board reset circuit.
Tested on the i.MX8MQ EVK rev B3.
---
v2:
* Rename the fsl,pins to pinmux
* Drop input-schmitt-enable
--- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq-evk.dts +14 -0
@@ -170,6 +170,13 @@ status = "okay"; }; +&wdog1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wdog>; + fsl,ext-reset-output; + status = "okay"; +}; + &iomuxc { pinctrl_fec1_mdc: fec1mdcgrp { pinmux = <MX8MQ_IOMUXC_ENET_MDC_ENET1_MDC>;
@@ -402,4 +409,11 @@ bias-pull-up; input-schmitt-enable; }; + + pinctrl_wdog: wdoggrp { + pinmux = <MX8MQ_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B>; + drive-strength = <6>; + slew-rate = <0>; + bias-pull-up; + }; };
Signature · 1 line
2.15.1
Fabio Estevam
reviewerPATCH v2 2/2 arm64: dts: fsl: imx8mq-evk: enable watchdog
Quoted 5 lines · Baruch Siach
The external nWDOG signal connects to the EVK board reset circuit.
Tested on the i.MX8MQ EVK rev B3.
Signed-off-by Baruch Siach <[email protected]>
There is an ongoing discussion whether we are going to adopt this generic pinctrl scheme or the old i.MX pinctrl scheme on i.MX8MQ.
Anyway this patch looks good:
PATCH v2 2/2 arm64: dts: fsl: imx8mq-evk: enable watchdog
Am Mittwoch, den 07.02.2018, 13:43 -0200 schrieb Fabio Estevam:
Quoted 10 lines
Quoted 5 lines · Baruch Siach
The external nWDOG signal connects to the EVK board reset circuit.
Tested on the i.MX8MQ EVK rev B3.
Signed-off-by Baruch Siach <[email protected]>There is an ongoing discussion whether we are going to adopt this generic pinctrl scheme or the old i.MX pinctrl scheme on i.MX8MQ.
Yep, ignoring this discussion, patch looks good. I've just tested this on my MX8_EVK A1 board and it seems to work fine.
Fabio Estevam
reviewerPATCH v2 1/2 arm64: dts: fsl: imx8mq: add watchdog devices
In reply to Baruch SiachQuoted 2 lines · Baruch Siach
Reviewed-by Lucas Stach <[email protected]>Signed-off-by Baruch Siach <[email protected]>