Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp3977303imc; Sun, 24 Feb 2019 18:19:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IbogSNTKWcu9qsMfaxbQDktOLmTp/TYoK6R8OC6ESnrB3+EJHybB33UztKRhM+KzVzO6ES+ X-Received: by 2002:a63:f553:: with SMTP id e19mr16133832pgk.87.1551061193725; Sun, 24 Feb 2019 18:19:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551061193; cv=none; d=google.com; s=arc-20160816; b=xBTzjJkBK2Ra67ut+Tu2iQN5/Fq16U+gQJ59MalViKAD4tNw9KOP8gAjf+mmdX4+h4 vuUVRUOXOvQnCZQ6KD2o70bwn2OnEjpRQhDZt4+eY5lN4jLqckkndJJCwGpfzmqHXd/h pLLO4fqMgiDC3VysB1uVm3Cw/0G/KVwJvgMKD8tBJ8LuwNTIZz3qcl0SYBlzDR+FQSGI BaD5OwzUNOO4pm95cPYXLlCKdy2iITpU8KTY+3yJvViaKM1bFSLBCzXQOtdqy0lLSOwE lE8L4YYQQShHl6+MqHlIcP544RZ7xGryFkJ9+SBWzQDjvAanz0C/ATyUE6dd7ZmxumeJ ptOQ== 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=XJIwByVuXAh4v7dRSU5aApK7jpfPceQPXcp4Ds9UzSA=; b=ccajFCL+MtK80itCJ2YO7zhBTMHjAp6RsaJLzEClJk1TAEGc1Lymik/V5V15t5p6UE fy7LsPpahqxPOVwAxrz2az9JW1fo/buKgjsMdNgd4S6R3NJpL8dHBKjsjHf5BgeqLei7 2F3+vrIeh6bf+pWUypXDDkWERmacBMu4KHaaf3ZHEiRCk6MA61+No+UTMpBAm7iwfdIW Gm5AB6PN0k1XnZZ4JQunUm/rmfqliEKecxIMi8amxKrvn4yIv8UairVF6/fnO1YC+FJh 76r7nUzQryUFmrg2bSqgjWX2xkHu7o/EVBTTs5dLYu5ocdBGtpiL9zd+8LUOe7LPTw76 p7VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=Ne+3gz4m; 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 k2si8482659pfc.189.2019.02.24.18.19.32; Sun, 24 Feb 2019 18:19:53 -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=Ne+3gz4m; 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 S1728322AbfBYCTN (ORCPT + 99 others); Sun, 24 Feb 2019 21:19:13 -0500 Received: from mail-eopbgr00064.outbound.protection.outlook.com ([40.107.0.64]:10548 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726755AbfBYCTN (ORCPT ); Sun, 24 Feb 2019 21:19:13 -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=XJIwByVuXAh4v7dRSU5aApK7jpfPceQPXcp4Ds9UzSA=; b=Ne+3gz4mBkY+tnruC6mYg3fSYj68BCimansEqU2Dh5jrZRqnk6dOh2kSYy9lmwWtT2iWXIxR9erK9A5nAM7/s+O0TlAVIfeDJFnbN6gGPYDAJO+KC21ielDovjS5c8PSGBye/M8hp6UHEkEnN8/U7Em2Mc7kj8U6PBwWz4GnBLU= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3674.eurprd04.prod.outlook.com (52.134.66.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.16; Mon, 25 Feb 2019 02:18:54 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7%2]) with mapi id 15.20.1643.019; Mon, 25 Feb 2019 02:18:54 +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" , "olof@lixom.net" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "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 V3 0/4] Add i.MX8QXP system controller watchdog support Thread-Topic: [PATCH V3 0/4] Add i.MX8QXP system controller watchdog support Thread-Index: AQHUzLB0r5YVhKiES0eqmgM1XXhaBg== Date: Mon, 25 Feb 2019 02:18:53 +0000 Message-ID: <1551060850-22553-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: HK0PR03CA0078.apcprd03.prod.outlook.com (2603:1096:203:72::18) 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: 51fa5689-47d6-454e-5e95-08d69ac796ac x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3674; x-ms-traffictypediagnostic: DB3PR0402MB3674: x-ms-exchange-purlcount: 1 x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;DB3PR0402MB3674;23:ROmQzD/16XKgVOtZUCuAJa/japmQ6QYlarKKF?= =?iso-8859-1?Q?XF7pKqe+/RGeqR1YxpLByPvz7h8BJg3gX0JV2SzVU3uNarcTLdxjTd/0ym?= =?iso-8859-1?Q?CvbdnJqmTszlFu6JLCoLkDGr4MenZpWr/mrSE08aigtN9tjOkixONyGiX9?= =?iso-8859-1?Q?sZIN6eTGg2qSzY/ua5p6EKXIS9JSXFZyF9SLcdT+6CHPEWrFDxdVVb9rwZ?= =?iso-8859-1?Q?CTiHQNqqKnOM+EuD35Qr3bKqX5XBIThxKgepfPideiWqAt0QzrD5Jj5fs3?= =?iso-8859-1?Q?e/Kni/AJpW1rwqutB4U88fML1wvrNcA8iBde+uBKOuTJ0khBg5JSxuvZGz?= =?iso-8859-1?Q?mp+KsYIADirxwOkexckz19LJoVx4foT/aUC+UG8QIsDVaOqt3/vL9I+pwL?= =?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iEpiziJwhpwjXtTbJIq?= =?iso-8859-1?Q?pUkDFYgC53m9p9b0M6AfxPlm/?= x-microsoft-antispam-prvs: x-forefront-prvs: 095972DF2F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(366004)(136003)(346002)(376002)(189003)(199004)(54534003)(66066001)(305945005)(2201001)(52116002)(486006)(14444005)(7736002)(316002)(110136005)(256004)(476003)(50226002)(106356001)(2616005)(53936002)(86362001)(105586002)(99286004)(97736004)(7416002)(966005)(81156014)(3846002)(6116002)(478600001)(68736007)(6436002)(8936002)(186003)(2906002)(4326008)(25786009)(102836004)(8676002)(81166006)(36756003)(71200400001)(71190400001)(26005)(6486002)(5660300002)(6512007)(14454004)(6506007)(6306002)(386003)(2501003)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3674;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: WWeRo2OayiUs/pBIPSkz1KfnfQ8qwJtMpohKdh/qY719ZOtnvhivFehNfipMNS50L3Yrtt1wjVcUrPwpB3BNezkem/zwgjKlfhPHe0oS78wMqzNUJV8Q5B9msVrMVfXEeMstMpeePSwOBhHn6VBEPmm9eyIl1ovDACXsKXbBlDzBgdrcnLhtJC/L10bn5xgtTXzAIFAjhDTQm7z9h8pQeW3h1Y6vZ6wU/rSQK11tOCnkwpDWFON6nfZBZywwLzCW91Puz/tDUnPcsSfDpju5twTDrfwKd4dmuUm6RmmdtQ63+iTOMWKRc4cbHz9xM/cxZIoTpms8A5lzCZo74KssIK7df3WQUMzPv0HPG1+4Dfj1oF1mnBQa1h3CTPTG/aQH8GpP1F4V/8D2aTS5PMu4k1GpoqDBGUq1ncHYbxjzEHw= 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: 51fa5689-47d6-454e-5e95-08d69ac796ac X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Feb 2019 02:18:45.7217 (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: DB3PR0402MB3674 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 V3 patch series addresses all the comments from V2, and change log is = inside each patch of this V3 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/10827673/ 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 | 12 ++ 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 | 183 +++++++++++++++++= ++++ 6 files changed, 214 insertions(+) create mode 100644 drivers/watchdog/imx_sc_wdt.c --=20 2.7.4