Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8877609ybi; Tue, 23 Jul 2019 17:14:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxXsPXp95jxU7SJDYQ0TsBA+12tItGp1uq2trRLSMXrIrrf8ssfqZO+zj3TrWlmz2COHZi X-Received: by 2002:a17:902:70c3:: with SMTP id l3mr81450001plt.92.1563927246368; Tue, 23 Jul 2019 17:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563927246; cv=none; d=google.com; s=arc-20160816; b=hMQUP5D9EjeuuMuP+C8HgvzZ5xuTJR/ZQ/9EiZlA1iVUQQSybpLw/2TJC0rpHolvN2 xKOrkIHALC1sbsW10ChzyGZThRLoQPDrdGJL9ULom1Gc7HMIkCFBALwlf/kz34/+5tXG DNgDh1Mu6D0O0p7GlL/g1BbXEhsVtsTVeZmYh4anV9jxBL6YDbDZagS7nfyKJ+HTQd/L Du6bdZlK7XdQw5cbn+91f7gxA2pYFwR52S1QRNfqIuW6kGc8RXIpBbDOgRSMmdHl9qRJ QdKLA87jcbLeNs2Kf6xKqRyUi9GK2AYaZdmVCHh0eS377/s9tvjhge0OJtcPra9dAMHf 4Scg== 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=laIARLeOm8mQLNRnROpU/RPqjKJvZUiGexXsxpxXvTo=; b=e1dINsCgbNIH5NRZLGc9iDPMiZM64fO0SpmD4nHLwaQ6+UtLW+fizIiHY+yEEGQj3B gEqSmIrK7ZG0ro0jX3Chp/uf/KBPsMIFzWDpBCKnO+xb1oFTeQrzDG4ASWwSAKHkIKLw kB+k3NKxjZZFEDqvC6RujjD/dL0HmOAXtVLBrZusw2xzBdYHLD8z5+2TmxMKex77rcWh pzstoxkPRToSkXSeBDL2TLd0kxzlSp0XYQNHCpsy9X1b3shWPUhmqNyok1sy4NHpJpmx pgwx6XXWBB35kk1734SpC1ZRg77gaRkZW5actDALPVcBHs0zvps60OXwo0KrNkPqKE9A kt4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="wLzKco/A"; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 gn22si13985857plb.422.2019.07.23.17.13.52; Tue, 23 Jul 2019 17:14:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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="wLzKco/A"; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 S2387987AbfGWOgB (ORCPT + 99 others); Tue, 23 Jul 2019 10:36:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:45980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732590AbfGWOgB (ORCPT ); Tue, 23 Jul 2019 10:36:01 -0400 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (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 8D152227BE; Tue, 23 Jul 2019 14:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563892560; bh=RhgZmcSMrQfqbKW3yJR0qQgPijWPcwlwWIuyvyAMaj0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=wLzKco/ArT5Dvfhgx+RaF8Fzo9J01LD8d96HbTMMRKdSTPSycFxvhs5LCOraxZkJZ JkUM874oADKHLP14egH8DMTatS/Yt2U7n9FBkCxywEqixwbZPny1z7mEeiOeM5TeiK jnDroFl49M4ihJT2TP4q5KB7tPiKJpsXJPqPjJX8= Received: by mail-qk1-f170.google.com with SMTP id s22so31295834qkj.12; Tue, 23 Jul 2019 07:36:00 -0700 (PDT) X-Gm-Message-State: APjAAAVnMfvA9112Z+IklUnI3TUlOV542NX0V7aAXidWh3Gwxr5cA9Se BWWdbQQqCzkzoN2skbnvbzJTvQ833ug4/bsDPg== X-Received: by 2002:a37:a48e:: with SMTP id n136mr51861407qke.223.1563892559731; Tue, 23 Jul 2019 07:35:59 -0700 (PDT) MIME-Version: 1.0 References: <1561361052-13072-1-git-send-email-neal.liu@mediatek.com> <1561361052-13072-3-git-send-email-neal.liu@mediatek.com> <20190722171320.GA9806@bogus> <1563848465.31451.4.camel@mtkswgap22> In-Reply-To: <1563848465.31451.4.camel@mtkswgap22> From: Rob Herring Date: Tue, 23 Jul 2019 08:35:47 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 2/3] dt-bindings: rng: add bindings for MediaTek ARMv8 SoCs To: Neal Liu Cc: Mark Rutland , "devicetree@vger.kernel.org" , Herbert Xu , wsd_upstream , Sean Wang , "linux-kernel@vger.kernel.org" , =?UTF-8?B?Q3J5c3RhbCBHdW8gKOmDreaZtik=?= , "linux-crypto@vger.kernel.org" , Matt Mackall , Matthias Brugger , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Jul 22, 2019 at 8:21 PM Neal Liu wrote: > Please don't top post to lists. > Dear Rob, > You can check my driver for detail: > http://patchwork.kernel.org/patch/11012475/ or patchset 3/3 I could, or you could just answer my question. > > This driver is registered as hardware random number generator, and > combines with rng-core. > We want to add one rng hw based on the dts. Is this proper or do you > have other suggestion to meet this requirement? It depends. There doesn't appear to be any resource configuration, so why does it need to be in DT. DT is not the only way instantiate drivers. Rob > > Thanks > > > On Tue, 2019-07-23 at 01:13 +0800, Rob Herring wrote: > > On Mon, Jun 24, 2019 at 03:24:11PM +0800, Neal Liu wrote: > > > Document the binding used by the MediaTek ARMv8 SoCs random > > > number generator with TrustZone enabled. > > > > > > Signed-off-by: Neal Liu > > > --- > > > .../devicetree/bindings/rng/mtk-sec-rng.txt | 10 ++++++++++ > > > 1 file changed, 10 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/rng/mtk-sec-rng.txt > > > > > > diff --git a/Documentation/devicetree/bindings/rng/mtk-sec-rng.txt b/Documentation/devicetree/bindings/rng/mtk-sec-rng.txt > > > new file mode 100644 > > > index 0000000..c04ce15 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/rng/mtk-sec-rng.txt > > > @@ -0,0 +1,10 @@ > > > +MediaTek random number generator with TrustZone enabled > > > + > > > +Required properties: > > > +- compatible : Should be "mediatek,mtk-sec-rng" > > > > What's the interface to access this? > > > > A node with a 'compatible' and nothing else is a sign of something that > > a parent device should instantiate and doesn't need to be in DT. IOW, > > what do complete bindings for firmware functions look like? > > > > > + > > > +Example: > > > + > > > +hwrng: hwrng { > > > + compatible = "mediatek,mtk-sec-rng"; > > > +} > > > -- > > > 1.7.9.5 > > > > > > > _______________________________________________ > > Linux-mediatek mailing list > > Linux-mediatek@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-mediatek > >