Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1463017imc; Mon, 11 Mar 2019 14:28:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8rVKNCDyoBbptcyMreOwdD8CTimRHUdsK05EeFsIv43AwQXERZI8R9s8cv0zvarvdmrv/ X-Received: by 2002:a17:902:e85:: with SMTP id 5mr36314777plx.13.1552339701677; Mon, 11 Mar 2019 14:28:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552339701; cv=none; d=google.com; s=arc-20160816; b=Z0STH4B3QSr4cClFJ3bDpeweNxx0N9+Uk6lak5Pv0Nde+F92VNhgOb0nb9ebnNopFA C4mccpcOQ34TkMW1+dPX/WO3nVT0dRncfq+/FH1sBpeMcNyktWj92IOXW8wPTS3mCeOZ J1f8zSoITIrGGi4Ouu+GHtbfDBWC+SG2XdNsf2ppl6TXf+qGaOymPor8hJGpn5b+e0fx HOzw1nKkReFd8GF0rl5dg85J/UdWuKkvdwHUXPsishXLtGv848J3jqDByLMZ4sXMCqbT +R7+Qn7nrItZvXaOfoGZY1P8DHJRsJRdkdJj5g1pbeYplMT/kbPRZDJ1JhGZngB9ed5K iFIg== 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=R6Ae/Y9icFFsz4L42BLG/1JtO76ZQRtYXcqZwEcCw+w=; b=m2Yr+FLJD02vffDXy3dZDQQ97XeHyricgqoEZT39sxlZrVGGB2e6RxpSEzSOGs9K/j bb484Ns5bgo9/iUvcsPtZYTpwthRr27vonAuNXP7fLof2N6MSZtt3V0Zo4RkBxCD/jYS MVh+wgTsvXwmAk01JjK2QArEORv1+EXs4yN7GTCXca0TrvLfscNw0ef34NnKs9l+1kEQ nSBrDuksG5yA4PbFhYkNk80pRcO6brSgRrALeukLpNsauJV0VEAiMuEO6QWJ7frFO6iA PCNm3kS0Z653dMMSp6hsXIh5/aR3SIj0VwUV1P3760vWDrbM9C9kSHSqowvT7Y3E5Ws3 1HaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cyLU8CVk; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d68si5874717pgc.538.2019.03.11.14.28.05; Mon, 11 Mar 2019 14:28:21 -0700 (PDT) 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=@kernel.org header.s=default header.b=cyLU8CVk; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728218AbfCKV0a (ORCPT + 99 others); Mon, 11 Mar 2019 17:26:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:52960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727138AbfCKV03 (ORCPT ); Mon, 11 Mar 2019 17:26:29 -0400 Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D6A8D2087C; Mon, 11 Mar 2019 21:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552339588; bh=R6Ae/Y9icFFsz4L42BLG/1JtO76ZQRtYXcqZwEcCw+w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=cyLU8CVkuWOMj9tQv97A1pwcs25QFHjKaVYyPOF+xK/0crH+a7tU8r7UqqeQJGwPM blMUQn118aqZvoFO6izBja0HQSuNyLpqhEbuK1TVE3saohpZhlDejXYFfCXLC1gspx tWzlgY8L6cQj0oz5gTMsusQjA+G4cLZPkQqsiHTY= Received: by mail-qt1-f180.google.com with SMTP id u7so257505qtg.9; Mon, 11 Mar 2019 14:26:27 -0700 (PDT) X-Gm-Message-State: APjAAAXVG2s9UAlQDfmaTcjYzLqTikG1qNdrOfZDCQwQpaLvbop5O+8I 1VPb2UhbYeuErB4u6YCEXSzlL1PQqo3Ux1ISUA== X-Received: by 2002:a0c:b14f:: with SMTP id r15mr28007307qvc.90.1552339587095; Mon, 11 Mar 2019 14:26:27 -0700 (PDT) MIME-Version: 1.0 References: <1550472539-16590-1-git-send-email-Anson.Huang@nxp.com> <1550472539-16590-2-git-send-email-Anson.Huang@nxp.com> <20190222195217.GA22194@bogus> <96932b3e-87f1-d8f2-95bc-0e9a8d5d45ed@roeck-us.net> In-Reply-To: From: Rob Herring Date: Mon, 11 Mar 2019 16:26:16 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH RESEND V2 1/4] dt-bindings: fsl: scu: add watchdog binding To: Aisheng Dong Cc: Anson Huang , Guenter Roeck , "mark.rutland@arm.com" , "ulf.hansson@linaro.org" , "heiko@sntech.de" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "bjorn.andersson@linaro.org" , "festevam@gmail.com" , "jagan@amarulasolutions.com" , Andy Gross , dl-linux-imx , "devicetree@vger.kernel.org" , "linux-watchdog@vger.kernel.org" , "arnd@arndb.de" , "marc.w.gonzalez@free.fr" , "s.hauer@pengutronix.de" , "enric.balletbo@collabora.com" , "horms+renesas@verge.net.au" , "wim@linux-watchdog.org" , Daniel Baluta , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "kernel@pengutronix.de" , "olof@lixom.net" , "shawnguo@kernel.org" , Jens Wiklander 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 +Jens W On Thu, Mar 7, 2019 at 6:22 AM Aisheng Dong wrote: > > Hi Rob, > > > > > I think Rob suggested that the SCU parent driver should instantiate > > > > the watchdog without explicit watchdog node. That would be possible, > > > > but it currently uses > > > > devm_of_platform_populate() to do the instantiation, and changing > > > > that would be a mess. Besides, it does sem to me that your suggested > > > > node would describe the hardware, so I am not sure I understand the > > reasoning. > > > > It would just be a call to create a platform device instead. How is that a mess? > > > > It's describing firmware. We have DT for describing h/w we've failed to make > > discoverable. We should not repeat that and just describe firmware in DT. > > Make the firmware discoverable! Though there are cases like firmware > > provided clocks where we still need something in DT, but this is not one of > > them. > > > > The watchdog node here in question actually is not using SCU firmware call. > Due to security requirement by SCU, watchdog can only be accessed in > security mode, for IMX case, via ARM Trust Firmware. That means the > watchdog used in Linux actually is using ARM SMC call and does not > depend SCU driver. So It would be strange for SCU driver to instantiate it. > > For this situation, do you think we can move watchdog out of scu node? > Maybe rename the compatible string like "fsl,imx8qxp-sip-watchdog" > because it's actually a watchdog serviced by ATF firmware. Yes, but that creates more questions. What exactly does ATF talk to for the watchdog? The SCU firmware? Maybe ATF should define and provide a standard watchdog interface? It is still a question of making the firmware discoverable rather than trying to describe the firmware in DT. Rob