Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2083162imj; Sun, 17 Feb 2019 22:57:37 -0800 (PST) X-Google-Smtp-Source: AHgI3IbzaucuTQLdPFFdjCE6eIc611s0Gr5oKi1LRipaXSI694nH0UWpi6MD1+uwr8QwlJhT2s+Z X-Received: by 2002:a65:4bcd:: with SMTP id p13mr17561932pgr.422.1550473057481; Sun, 17 Feb 2019 22:57:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550473057; cv=none; d=google.com; s=arc-20160816; b=eraErt1UfbfXUY0nZKV8JYLDPZQCJsbQ6Kr3JbD41nZQG1zoZvi9vKxULa0GIpuKvQ lHrghA6unNV0qZi6XPOsgAFm7XwleTi8nocpU4kuvK31x2/hEeGOkCJ6+z/C2AHpSwOh KQX0KVFtg6bhLGpYm/VvpChKmC6TnQJvtbgrMglQ9n1CqWPdC5EJuvAlloMqXD+qIwfv 55S7WAdJI07y/PQZJHcs6sbl8eTJ7jO6xne8kSmYgOK42Vehqu8oUdVrjGKcF6kg8shu vJqzxNuScuDUPHCxJ440HVdJCVXbkCD3b233p4fdwUqiLwaJBn0oaqqw8sehTUpMS4uV YeuA== 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=DrM9BCm9y7Y1cuUfJyUAeEJToBuXD9iRMdPf1FUA2rM=; b=IQeqIIk+u8O02LEMpUWyUBrdqHic26/kwXQa3/ePT/KF+LzOPHnKU6QtsJsz5Kwmw9 80P/sORXzUN0ERy/0GYcAs3xCwhDtUW2CSPM6mlxTLg0GPiqrF+/eWwiEQrVybFICW1E FmC03jcxqE1RUzoSLsHcBrtQTVRM382ygw6auH6n6rVGcbT4hlO7PeLCCUvLCXofs5cG QrCCsKUYX3AK5ULbqTxf+jDF3ZW5bthpZ31o+LzsNDKdFOgkYKYlRJp+yf0MWrCMbLTu YUdyVmmHhPGfnheR+UkE36BYI852JRLVXAPba13NCegr57YiQBzFAh5M3NHXM5RbMy/Y FGyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=X5hQz9mH; 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 p9si12502626pgc.448.2019.02.17.22.57.21; Sun, 17 Feb 2019 22:57:37 -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=X5hQz9mH; 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 S1728646AbfBRGy0 (ORCPT + 99 others); Mon, 18 Feb 2019 01:54:26 -0500 Received: from mail-eopbgr80051.outbound.protection.outlook.com ([40.107.8.51]:47456 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725881AbfBRGyZ (ORCPT ); Mon, 18 Feb 2019 01:54:25 -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=DrM9BCm9y7Y1cuUfJyUAeEJToBuXD9iRMdPf1FUA2rM=; b=X5hQz9mHzddw2lgPlisgFarS1yfUDkoCKREkcwVHJUmB7lxpt5f7bzndLkLb4quowHIF4G8Q/fjy21oZR5HeneiXT+VhFfoA5NHunLZr1zR3mLHpKq9TEMufwzSBjDXWwiyXsj9bUHMe0JYo+Nf4UgyK4sefFZ7JvA40nmg+cOg= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3707.eurprd04.prod.outlook.com (52.134.65.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.19; Mon, 18 Feb 2019 06:53:39 +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 06:53:39 +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 RESEND V2 0/4] Add i.MX8QXP system controller watchdog support Thread-Topic: [PATCH RESEND V2 0/4] Add i.MX8QXP system controller watchdog support Thread-Index: AQHUx1atSP6lSFBBKUe5Cz27IkPE+g== Date: Mon, 18 Feb 2019 06:53:39 +0000 Message-ID: <1550472539-16590-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: HK2PR02CA0133.apcprd02.prod.outlook.com (2603:1096:202:16::17) 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: f380aa6f-73d3-4fec-21c4-08d6956dcfd3 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:DB3PR0402MB3707; x-ms-traffictypediagnostic: DB3PR0402MB3707: x-ms-exchange-purlcount: 1 x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;DB3PR0402MB3707;23:RBuINAoncevKsKcqWFPkOm1449Zw1S4eVpBXl?= =?iso-8859-1?Q?CQyO8vDm+GvmWn6xj/PFvn4aOinmjUrGX9kbMcxfEcLcTVWdahr0PJSxG1?= =?iso-8859-1?Q?QZLJibtv+FGtcYYAWHIyqG4wjL713hZzzffwCGVDVg1WE8Frzx0OnExDJ5?= =?iso-8859-1?Q?S7+6qvz3OiKhppYP1S/XP1xGXK1CQgcH/Vm85UXPjxbLxy6l1NzoPKU0Dn?= =?iso-8859-1?Q?rqY78fcvD0sGWjLAImq0D6+BS3esqQ55KyOjz3UxpcgwGGjYmseAVgz70s?= =?iso-8859-1?Q?RtjQu9fHy/miEw/fJhFUfQvudzTOdFKXDSRO2SjFAn1PY+c602hPh7F3in?= =?iso-8859-1?Q?1/JbW8SpIbcWE309I/fww46zZB1UhXnsltSv5iS/cdfqmjEWGreOWwgP10?= =?iso-8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APYhXDAmSKCLKXpP2S2P3TBW+gWIxyYPji7petZQ1?= =?iso-8859-1?Q?nDBVI178ZVl9y31OZSSwaWL1I+6p3i+mcY+OdSI8F7Tb+gQ=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09525C61DB x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(346002)(39860400002)(366004)(136003)(396003)(54534003)(199004)(189003)(305945005)(71200400001)(71190400001)(217873002)(256004)(5660300002)(14444005)(105586002)(4326008)(7736002)(25786009)(476003)(2616005)(106356001)(53936002)(8676002)(7416002)(316002)(110136005)(66066001)(2501003)(486006)(6116002)(3846002)(86362001)(81166006)(6436002)(8936002)(68736007)(81156014)(2201001)(6512007)(6306002)(50226002)(102836004)(2906002)(6486002)(26005)(478600001)(36756003)(966005)(97736004)(386003)(6506007)(52116002)(186003)(14454004)(99286004)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3707;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: D8DWC7z2VCMd0kU6lxwCNfKX6bmc8jeMgVmXCWrNC3bfYJkfg/n0Ck/Y/S+sHwA9pnYU106HM8wGiicDNQzrOff7/CwJoJ99qZg4trVs5ltz2SKd3PI8KlWKskEGmpyH6NfUVOfq7+TNLTTHpTw/98MXq+q7pBm8XO6T7akjGLhsaEyUhpWIN1S1Ig5RxKS80wFMTgDXuWYh6UU5O8NSpPIoQoUKSY/A0G9eRgO80QgujwYcD+60FpnIXlo2MiJsRg8GWB2I4FaEdJgHXpGwd4wbmVwRfnM2Gsg1eKMu8mUNpd3KBGBF9E0wz1Z/20gdDap6QmVXbpa1vZ6U/ZxxBlUxirg/6LQEao8KDVoHnR2yrE4UmfzwBap5w8zkJtGYfaq+CJ5BUkRAKZR2OIYEbrrGsZwLVgjGWVBJUrFHf6s= 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: f380aa6f-73d3-4fec-21c4-08d6956dcfd3 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Feb 2019 06:53:26.2026 (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: DB3PR0402MB3707 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. This V2 patch series addresses all the comments from V1, and change log is = inside each patch of this V2 series. 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