Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8063639ybi; Tue, 23 Jul 2019 02:12:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7pH6yenbF7SWiDRgFIlEhr5vY6qQvROOJxB5359FvoUp39lCZ6doFW76GqpGTwzFDK2vB X-Received: by 2002:a17:90a:bf08:: with SMTP id c8mr81236975pjs.75.1563873149060; Tue, 23 Jul 2019 02:12:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563873149; cv=none; d=google.com; s=arc-20160816; b=JXmTjGtCMTejK89T+z8viHhdw8UHQk0j27N6+EXAKSBUPc4w31s/f5sQXP6GCJzuN5 cQ7SYn/aJG72G9ZyLYQ0kF+twIRcq666D9MZ11reGiuoPSMZ85WFmGDi/TM4TauDKPaq lNtEITZN+bsIVTa3+UN04WtWAcqMiwhKruAQQYrTPS777gbdDRJ9l8wAT2dMrcJtPug4 VVwNwUzzpHIKhRzqx1cz2Etwfjy/m66zBvCpmKnmzAtBs/VLW0EZb5/hf+FUeqEgj3xa XcrS+wdjpX5MNYUumcrognr1xGSBUN8iwDpMPS/YeD+1a9HcMAuuILBa/673MUBtr8dQ AC0A== 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 :references:in-reply-to:date:cc:to:from:subject:message-id; bh=Cs9Hhmw/ly9xqILTJuhbmeISdXV6Et7yfqzGODfSFZ0=; b=W3/fAy96dc2RRBmgDmqVL9lDxlmbU71R4bRA6dLvdLxC6GVg1HLw5DCGeAmfnYWbM7 L2nweiDDKSoQKLirYDV74oCHcKaBlzH0jb8k618if32CXZnkfF49V6uMOMLCSbicGWyz MOsYCGr9/xcGUsA7rdqDihr035WqyrUkaUoa/xAYkXpwGxo47E40NCRZj4O1Z8Swas12 1bnIkTeh39wN2ZzeQKWRe0PTZ8yLm9l4JdZYtNAt9OXlbR3QtsNKjy/a19iZNTI84+W7 Em7WqePN9Q+aamBH9Ibpd64UDKZQXmz5/OYs9KW3pZ3P91Xr4wDztJkQXqnuc0G3aTyp 1oBg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9si9851663plp.118.2019.07.23.02.12.09; Tue, 23 Jul 2019 02:12:29 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727437AbfGWCV0 (ORCPT + 99 others); Mon, 22 Jul 2019 22:21:26 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:59495 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726930AbfGWCVZ (ORCPT ); Mon, 22 Jul 2019 22:21:25 -0400 X-UUID: 791c5dbc0a0e46ca99e8e8dbb509d716-20190723 X-UUID: 791c5dbc0a0e46ca99e8e8dbb509d716-20190723 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1532202587; Tue, 23 Jul 2019 10:21:08 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 23 Jul 2019 10:21:05 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 23 Jul 2019 10:21:05 +0800 Message-ID: <1563848465.31451.4.camel@mtkswgap22> Subject: Re: [PATCH v4 2/3] dt-bindings: rng: add bindings for MediaTek ARMv8 SoCs From: Neal Liu To: Rob Herring CC: Mark Rutland , "devicetree@vger.kernel.org" , Herbert Xu , wsd_upstream , Sean Wang , "linux-kernel@vger.kernel.org" , Crystal Guo =?UTF-8?Q?=28=E9=83=AD=E6=99=B6=29?= , "linux-crypto@vger.kernel.org" , Matt Mackall , Matthias Brugger , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" Date: Tue, 23 Jul 2019 10:21:05 +0800 In-Reply-To: <20190722171320.GA9806@bogus> References: <1561361052-13072-1-git-send-email-neal.liu@mediatek.com> <1561361052-13072-3-git-send-email-neal.liu@mediatek.com> <20190722171320.GA9806@bogus> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Dear Rob, You can check my driver for detail: http://patchwork.kernel.org/patch/11012475/ or patchset 3/3 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? 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