Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1903109imj; Sun, 17 Feb 2019 18:04:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IY9CLW4eGFBpT1cx0FX936N9RlNaka7Ej++BaT76nvS4RGfHvDMrqdx4te/kcaNNgcOxd/m X-Received: by 2002:a62:6e07:: with SMTP id j7mr22306493pfc.135.1550455487279; Sun, 17 Feb 2019 18:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550455487; cv=none; d=google.com; s=arc-20160816; b=dkONLzYpXOW6Agx/Slfal3Z7rJibvwIRAKRFn/jajz20WvQ8XgOILIdP6TCx4DOGXQ bTRrJrDlY35dZPTptn6zXlE1/cy90pWPtw0b4E208u4akXQnwkfdMqpRtCxaWJYg8lUY I4uHZHvKcuF17szduVtk+GCWcTlGos817Pqw9e4FOBa+JEwBDVi7+ivRZHXHyx5VtWTn t/CB/9Ei/3GKolIieAW85bYGrRhsqG0zc7fxCXhZevWdnWB8zYbv4aKKl2OOhgzMHNFu y0juZEeLGYH9Z3osB1ikCdrI3wIPre6Zx7O7sl8kwb2e/h0P8PQ7geE/zuZ7s2FdLj29 jUPg== 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=o4BltGXfSLFKgD+3kchG1fOKLqa5CkzwNQAmhrMKZ+m8JBZZhqNa4pGtAX6HluT5Z+ kRTVna+tn0I0eYofNB3usBfdxA5OhxLa9lucz3w4uwAJz7qhk2/wSRE7USUICunwqfvU UkHE+QEkgDJYQTRHZrAOpFONMn1goLpvumT+Y676hBud5KsGiz12JqGA5F+GuxaVvLYh wkv4WjlOHeDswLXHrgmvjtSPpuormaCC8ofpTdSqkUhLJ1MNwU08/G4xgLAzSXIoMGtj iqRM3KgZqjtOgURPL7nrSvzswDLIE/llBhkORc59+wvcLyaWGoZ49/eIwqKVsw0xIkVI lsWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=lnzY0m9z; 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 q14si11989526pgf.47.2019.02.17.18.04.31; Sun, 17 Feb 2019 18:04:47 -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=lnzY0m9z; 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 S1728140AbfBRCB5 (ORCPT + 99 others); Sun, 17 Feb 2019 21:01:57 -0500 Received: from mail-eopbgr80087.outbound.protection.outlook.com ([40.107.8.87]:20032 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727808AbfBRCB5 (ORCPT ); Sun, 17 Feb 2019 21:01:57 -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=lnzY0m9zrLyINP86QUAQqDjCGOT4yulhphT7HbKvzQjnjuwWZdE+L8KE+6O003Um6jTWzLXe2n8y/fPVC7Z7v9TpWoQ0VPX6y60dY/6WXtzRaXTiZORK3Ym5GPa2QCEGYK+b9OXUydOsBeJC67hBuSnd076fdGlW9acAqUuml1E= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3900.eurprd04.prod.outlook.com (52.134.71.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.17; Mon, 18 Feb 2019 02:01:11 +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; Mon, 18 Feb 2019 02:01:11 +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" , "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 V2 0/4] Add i.MX8QXP system controller watchdog support Thread-Topic: [PATCH V2 0/4] Add i.MX8QXP system controller watchdog support Thread-Index: AQHUxy3SjzHfKLwYjUOtmItPpKm1yA== Date: Mon, 18 Feb 2019 02:01:11 +0000 Message-ID: <1550454997-4398-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: HK2PR0401CA0006.apcprd04.prod.outlook.com (2603:1096:202:2::16) 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: d9f9851e-b602-4421-5486-08d69544f424 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)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3900; x-ms-traffictypediagnostic: DB3PR0402MB3900: x-ms-exchange-purlcount: 1 x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;DB3PR0402MB3900;23:YDQHBy7oREmN76FBisT10bn6rgF8MrDSz+WuR?= =?iso-8859-1?Q?t3CCw6NoxarNUbvD+8pxCAnb4P1XQqfYPxxSFRd3H2WXO+0AX6iWPz9kZ/?= =?iso-8859-1?Q?6TxmPQg99LMBqPB711+kqKkEF63GaNeuSGZNle/rzHIQjOs8r7agVrB0Ml?= =?iso-8859-1?Q?rUiZIbl8Bkie8UA7xbr4kOB/dYyeYzO+stIT5R7n2jGreN9rwBtGd0660a?= =?iso-8859-1?Q?yifnrOzIOJFcZj0FjM/b2tzz3kjqVUEj8h0DG9yttkRFIaWGtJtMIqRx9Y?= =?iso-8859-1?Q?7KduxyqXrQLdEDvO++XZFIfYa096Nay7Z2UIh4KlMObujxgZ16G48zN5hL?= =?iso-8859-1?Q?0v5nwQbACX5kMz4n/DcfAlIJmZf1dVtGJCNjp2bbzv1vFxxbesK9ZuZNoM?= =?iso-8859-1?Q?K0zpIqQQNJ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7+N0Ytz7Z6K?= =?iso-8859-1?Q?wXOU=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09525C61DB x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(136003)(39860400002)(376002)(396003)(366004)(189003)(199004)(6306002)(7416002)(66066001)(81166006)(81156014)(8676002)(6512007)(25786009)(3846002)(2501003)(8936002)(476003)(6116002)(2616005)(50226002)(68736007)(14454004)(478600001)(2906002)(2201001)(105586002)(6486002)(106356001)(110136005)(71190400001)(186003)(52116002)(966005)(5660300002)(6436002)(14444005)(36756003)(486006)(256004)(386003)(26005)(71200400001)(102836004)(99286004)(7736002)(53936002)(4326008)(305945005)(97736004)(86362001)(316002)(6506007)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3900;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: e51Xsp+pf8SYVyi6aX1Ujb1S+bUFzL9dc+5dIY0z+GEwW/ke7F8Zm1Xm6dFWyeu+sPCkqf1reuYd7riMh0RsjPQmym8tgRKzy2PjC/b2XgaAOMzXZpishBxavR+o+AYABM9qZutSm22hGXgLShPwb7+1Vz4q71q6BHwVxsqxyN91sl0yJ3KzKJRx5uqNE0j4YV8T8rrX24SFjF4czi0sKE4cpspKWMh+hiUOCrB7/msLrT1oprkOhSoqOJe5Z25ouZEGbhdomItZjKJCJA8Xwg11NdpDvSjDTtRJ0Sa4tIoKqs+O60sfjZ8j42p3kzi/CCYbJkqalfLWMid4BeTqoKTQvRlMelr2KLrwlli2WQbToHrJFEoWYBXlZFWotoamxE5dPGWpXXPvizqr4UeZDGPFxRET8vhv+Cr6iEYw81Q= 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: d9f9851e-b602-4421-5486-08d69544f424 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Feb 2019 02:01:02.5873 (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: DB3PR0402MB3900 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