Received: by 2002:a25:c6d7:0:0:0:0:0 with SMTP id k206csp1041462ybf; Wed, 19 Feb 2020 15:06:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxJrwT6RckCONyUNm4f7vv5rbVVloRDmQK1WzIVOnMFJii6dbl/Jm8VVOyeQYFpORZl+WkQ X-Received: by 2002:a9d:68c8:: with SMTP id i8mr22009063oto.34.1582153574985; Wed, 19 Feb 2020 15:06:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582153574; cv=none; d=google.com; s=arc-20160816; b=x1qOA7lebdxIK/uQroUkKN9RCeThERGmNw8VhTW2LXtfoReUXev2LnrLGWsMMQMXqT tnGiYQpycCH6wre65kj0MQWvr79c9jjyYN7DvytnFY346IU7cu0XBUhPqIjXjWbqQk+q L7DHbgl+o/PYIp0Hq+gPM6Oq5R+Z3Z4/X5oD4llJrfejdC8GKStDzD8DoQQAK11SP0Y/ MLGkkftsf+Z9X2jGmHL8qSrFhWzXB175sCptOXEtmIc5luMyPrRJayEGB5O5eKH4ymiV xF2PvPe0JatFPkCAO/M6ljJr6h8cR12QYaHcP0jFGsZ4aH4hCtYeF/PTkY4BSxIltWZB vepw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=C4rTZrvjd+k43gH59N0+bWBoBUjxR7f3cs7vatzlSe4=; b=WlvDuY8P3W8mWoTOrDfeVO4krJSS+UobcNam5Wrxc7xEFShKpnms8tW0c95DcyYj3i NkT5waX4Y1nhyBNddyFXp6smAKcziJPkf9oQbYB5Zf32z+FmmCpfdb+hIgPT/SfvjpGC RcZTIkKQxfnRMYJNXGy9fIo4SyThIGvAOMFWb343u5oZnsTdgEpUp3lOuESY6NpYfWDf JngPr/Sxx+ts6ta6O1M69DMTPQzThw3n5gFsXK0AFMpzVSMDBQtfXnlgx6l46jKdNbCn 5BDd/ZZheHNPOYbG+aRzKTKSpUxQJWRmdk5gT7K/KGWlWmp7SeRY0Ptx192lpRwyck+f 8y7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VGTfGueC; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2si10063178oie.151.2020.02.19.15.05.46; Wed, 19 Feb 2020 15:06:14 -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=@chromium.org header.s=google header.b=VGTfGueC; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727891AbgBSXFH (ORCPT + 99 others); Wed, 19 Feb 2020 18:05:07 -0500 Received: from mail-il1-f193.google.com ([209.85.166.193]:43541 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727883AbgBSXFH (ORCPT ); Wed, 19 Feb 2020 18:05:07 -0500 Received: by mail-il1-f193.google.com with SMTP id p78so2215170ilb.10 for ; Wed, 19 Feb 2020 15:05:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=C4rTZrvjd+k43gH59N0+bWBoBUjxR7f3cs7vatzlSe4=; b=VGTfGueCM+KyWZU8BdKTSiD81U6AeL1BlAl5hB3Hh1E7L8o0QADNfN3PnyJ8INQ4R5 VcIQ2vNhiXgA8xQUIgGArs3zlHsQei8Q7P1pH+n3bhZaGGQKa6ql9f3KtU7TAcwBD1sC /5ORI1SfifdkmxAVrow86X+yCVVLuqbvVHtMk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=C4rTZrvjd+k43gH59N0+bWBoBUjxR7f3cs7vatzlSe4=; b=Dy5yJb0gRkM/iEDcZ1nwiAO1JvJvVzbpsC1k+UKFXb/ecLAqA8Yx1CQcQKNIZNqD4y ei4PH1ekCHQzK76Tnqm39DvALBgFL59YQoqESkdWKxEwGF8AFhiGiqlFnU1rjSTHoNKm pX3CRIklC0WW9ZCNLH5j4Z9DCiFkm/CEeRIL5a4Hi7p/IadxooIugUV0U/ENGHgFSedA p6ZUuPnc2SDoMRxUkIW8vYKjvbe/jEUChKYMKnnRpQpSrDKdAMVPkfm+VPQVHXA15+ye A59u0zshB6OBb8kjSn8ZxpuOMk6ApOx8kMp5L/3JddoU7p1V4mrTVVKaOiBlDzwWVCH9 2qHA== X-Gm-Message-State: APjAAAWFSt3dNvyCe2rkJu3POrpakYnJoCRVWi1Xeqg6JYUEfOYZiKOD dEKklukTJ/VAprijsAiMWlBEHBKUnPvOO3x01lv2UQ== X-Received: by 2002:a92:8c54:: with SMTP id o81mr26451570ild.163.1582153506521; Wed, 19 Feb 2020 15:05:06 -0800 (PST) MIME-Version: 1.0 References: <20200214062637.216209-1-evanbenn@chromium.org> <20200214172512.1.I02ebc5b8743b1a71e0e15f68ea77e506d4e6f840@changeid> <20200219223046.GA16537@bogus> In-Reply-To: <20200219223046.GA16537@bogus> From: Julius Werner Date: Wed, 19 Feb 2020 15:04:54 -0800 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: watchdog: Add arm,smc-wdt watchdog arm,smc-wdt compatible To: Rob Herring Cc: Evan Benn , LKML , Julius Werner , devicetree@vger.kernel.org, Guenter Roeck , "David S. Miller" , Jonathan Cameron , Mauro Carvalho Chehab , Wim Van Sebroeck , Greg Kroah-Hartman , Mark Rutland , linux-watchdog@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > You are not the first 'watchdog in firmware accessed via an SMC call'. > Is there some more detail about what implementation this is? Part of > TF-A? Defined by some spec (I can dream)? This is just some random implementation written by me because we needed one. I would like it to be the new generic implementation, but it sounds like people here prefer the naming to be MediaTek specific (at least for now). The other SMC watchdog we're aware of is imx_sc_wdt but unfortunately that seems to hardcode platform-specific details in the interface (at least in the pretimeout SMC) so we can't just expand that. With this driver I tried to directly wrap the kernel watchdog interface so it should be platform-agnostic and possible to expand this driver to other platforms later if desired. The SMC function ID would still always have to be platform-specific, unfortunately (but we could pass it in through the device tree), since the Arm SMC spec doesn't really leave any room for OS-generic SMCs like this.