Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp48410imj; Thu, 14 Feb 2019 15:05:48 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibp+Z3BD6CgzmE+OETWEp/kHkYkIz+5rgZ4NGuIM3SB7kHfZDE3mfvMdFrB+xJGI4K4LXbo X-Received: by 2002:a63:2117:: with SMTP id h23mr2297453pgh.375.1550185548788; Thu, 14 Feb 2019 15:05:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550185548; cv=none; d=google.com; s=arc-20160816; b=gR/L+p8NWmGEj7nCiiGX5sQneVYxD5gWv48hnMzpvm1S6MOJdQCPXDg77uyqr9o7Fd umzF622OJlSytwvDN/TTXFDIOxBqMJ4xwOY/dCCgloDgMMDYfpuzTsZ9e7NOIIJOmmqw tNv1uYZzEyyg8S4VNdWpbP7kTZ7WsHfZiv1Gono7NDUlUNQ7DO4cJpMRvljhczRytPnI WQn4Im3a0r5kQtEdKeejd+zwBGvibo56YzNiO2qAv4d8xZxQapuj4oRgLnSjXiJ+pEHN 6zIFat3fETugnGS0hgNEg/QVcFJnM0dR5UVijfpkpB+Fiu9fzbnY2VeSDjpHu0TWjzQZ pTSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=jkAJuVGwN5nHPN9VEIm8Jc+uNdErm4jgApurkTh/ZsU=; b=WkSgDl+JvJb5U+V/f+s0AzW6Yi9GTMvLmK1Meiue3nBERaGEdXePf0laZG6dfmVX+t RHhQlTr3qjkS9Wq4K7H9i326HsoH4leFxLIWPgKGs+/DA9OUCs85wzhWMCoYBO2dHQ8a hKYApb2MRLKAPIpSMG42hPYKoCDwG+EEPxOxoQZKgU2EJ19xSTr01hV+foQynzewUdQP LJDl8Bn1TJnMISdLYfGLdecV55ZY4J4gPMVUHaQOD4Mt8VennP/7x21VBuFIUBdaRbGR A/0QoSx9vTGvFLBIq/+Z6MAo7bDKYWC0SKrAaWh3W1pG6eJ/ofMeKxalVd1jfTBtBUxd q9ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="g/O56aJR"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si3630142pll.343.2019.02.14.15.05.16; Thu, 14 Feb 2019 15:05:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="g/O56aJR"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729574AbfBNLos (ORCPT + 99 others); Thu, 14 Feb 2019 06:44:48 -0500 Received: from mail-eopbgr70087.outbound.protection.outlook.com ([40.107.7.87]:44830 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725975AbfBNLos (ORCPT ); Thu, 14 Feb 2019 06:44:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jkAJuVGwN5nHPN9VEIm8Jc+uNdErm4jgApurkTh/ZsU=; b=g/O56aJRDEAVIJPpeLEtimySuBDDWdm4/yQrLWZbrNfo44OTbzm0pt6q370x85v0qBk7IWfSwQNUgETp4wDA0BDlpi/SXMQ4T/qjSwBCRZvI8AarjS+qoSeSrT+5h9dqdcLCyoMxzijvWXeLYkyajPJmtqNxh7mrbawfZ71mQWw= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3676.eurprd04.prod.outlook.com (52.134.70.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.22; Thu, 14 Feb 2019 11:44:38 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::14e8:6d2e:fe21:4fd5]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::14e8:6d2e:fe21:4fd5%3]) with mapi id 15.20.1601.023; Thu, 14 Feb 2019 11:44:38 +0000 From: Anson Huang To: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "wim@linux-watchdog.org" , "linux@roeck-us.net" , Aisheng Dong , "ulf.hansson@linaro.org" , Daniel Baluta , Andy Gross , "horms+renesas@verge.net.au" , "heiko@sntech.de" , "arnd@arndb.de" , "maxime.ripard@bootlin.com" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "olof@lixom.net" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-watchdog@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH 0/4] Add i.MX8QXP system controller watchdog support Thread-Topic: [PATCH 0/4] Add i.MX8QXP system controller watchdog support Thread-Index: AQHUxFqqpLhGqb77Ek6p04rL1RM8Xw== Date: Thu, 14 Feb 2019 11:44:38 +0000 Message-ID: <1550144346-1187-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR04CA0087.apcprd04.prod.outlook.com (2603:1096:202:15::31) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 58206c2e-c404-4e27-a084-08d69271cc85 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3676; x-ms-traffictypediagnostic: DB3PR0402MB3676: x-ms-exchange-purlcount: 1 x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;DB3PR0402MB3676;23:v2e8GTwxeBI3hX38CQciFQkVBtc8eN0Xc+zAV?= =?iso-8859-1?Q?NPpXimfXMXQ78LNF8EfBjKJcBCMM/Ou6NDqZ39epG4XxK12BVZi7grmdBI?= =?iso-8859-1?Q?UIWB40VHHPRnfh+rCgl6vQTJqZpRDxSFq6GDy+oGuMlyOHtakDuytuwhfp?= =?iso-8859-1?Q?pHO+2QR7nQuAFCXLzPXc9iF5/RbQCb9vRTxEaZouV3IPip0VDfA4wylmFO?= =?iso-8859-1?Q?uiuNI5fuWv9jIvz8IkNvRkwttNBR8l8F6YiPcBd0FnEPCBmRuL2Od5mngh?= =?iso-8859-1?Q?WjeZV8ODzfZbIgmQIYjFCOlbhQI6hOmp6RdydjwFfZ36jDq+OftUo8WpcC?= =?iso-8859-1?Q?ntoXv3tgkOfvt4T5oe+sRWcQ9gyd33lnDu/q5KNonyKnDJE7W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REWZt8ePujf2lly56veVcE8Q=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09480768F8 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(136003)(396003)(366004)(39860400002)(376002)(189003)(199004)(476003)(2616005)(486006)(2201001)(6436002)(36756003)(66066001)(106356001)(7416002)(25786009)(105586002)(186003)(6506007)(386003)(26005)(3846002)(6116002)(4326008)(102836004)(99286004)(256004)(8936002)(81166006)(81156014)(8676002)(2906002)(14454004)(7736002)(97736004)(14444005)(966005)(305945005)(71200400001)(2501003)(86362001)(316002)(50226002)(68736007)(6512007)(6306002)(478600001)(6486002)(52116002)(53936002)(110136005)(71190400001)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3676;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: M+qv1ko9keUzbW60UYxAt56mOlNZuuFXAUy3PHl7WL5+9feTp30h59BXG6xFzOHczZA0M1NkmcwFFy0Z4sbr12Engw1tqLceAIeMjKpYbccsyzTGVltwWl04bTqmERVxfL7gV3C2b6fTRadZNudKksncpIKScH7v9GQpYDGq1U6s2jkIElbJbopveVQKmmXF1Skhi7zs3Ol6ZHCN9vE7Vo6UscDywX1baIigGfltrKa0UkredIkhHn5su6eMkYVmJVmedPzSpTcNEzXjzIHVq8m3KcGUhHbwmKKqEgmGVthyJw/aKbF6hu0U4R2Ck3IVj93GZk5cwfMjWaGqMDf+b3Sm31qZCQw1UeRb5JpbqTjKcGLpT1xtkCXb5SU4osuEMz1miENkP7Nqy/wHA5E91xZZYhNS8JMqgspzy6o3Vzc= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58206c2e-c404-4e27-a084-08d69271cc85 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2019 11:44:29.8916 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3676 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org i.MX8QXP is an ARMv8 Cortex-A35 SoC with a Cortex-M4 system controller insi= de, the system controller manages overall power, clock, secure RTC and watchdog etc., so Linux kernel running on A35 needs to communicate with system controller for watchdog operation, this system controller watchdog will call SMC to trap to EL3 secure world ARM-Trusted-Firmware and then it will request system controller to do the watchdog operation via IPC. Below are the patch dependency: The dt-binding and imx8qxp.dtsi patch are based on my thermal patch series = as below: https://patchwork.kernel.org/patch/10800699/ Anson Huang (4): dt-bindings: fsl: scu: add watchdog binding watchdog: imx_sc: Add i.MX system controller watchdog support arm64: defconfig: add support for i.MX system controller watchdog arm64: dts: freescale: imx8qxp: add watchdog support .../devicetree/bindings/arm/freescale/fsl,scu.txt | 10 + arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 4 + arch/arm64/configs/defconfig | 1 + drivers/watchdog/Kconfig | 13 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/imx_sc_wdt.c | 210 +++++++++++++++++= ++++ 6 files changed, 239 insertions(+) create mode 100644 drivers/watchdog/imx_sc_wdt.c --=20 2.7.4