Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5298609ybi; Tue, 11 Jun 2019 23:44:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7280+ypzDl/sZHAsyvfg6II2/MkaPaqcIj+ne6id0EwZSN+shRAyc74yPDmAXhQFMyXNY X-Received: by 2002:aa7:9087:: with SMTP id i7mr27518039pfa.40.1560321871347; Tue, 11 Jun 2019 23:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560321871; cv=none; d=google.com; s=arc-20160816; b=cnaEfKpdL13xDEArWMC03otu2Olsdn/YH7QcYZ8/sIGDNFNL/DVvm0kzdd4iFn6+fR v2i4WDxDNj2JIiiZ9yThhjad2xKSEF8/Q6X4jH+0vq109lOmJe4kZlkXFvtUBAM5XEy2 XAhgfwQ2hYz+pdGK0sqFA6P6fMRBBV+htmqPBksJG1JZRHavinvKDwrQMquIUzOOj4s6 opzExCqIpGPEsXJg/kp8/LoexD0Lw/7jXCRTentfEBxf7V77XPssoDD25rSEngu4CGFB m9LN5UerNFpmtveC1e0DVS/BpIv9vrwVdnbxRMghFottvV1wHv6SFMe4aGe2iXvLHkXB COQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=iQPRF6XFm/QWEVO1CPfMz0EhoIEuoqt7VcGHt4YVR3s=; b=UvUAo5jLhuq6VgP4tWZ7DuKAyT46BU/T1ErBQIdnrq+wIi4Iun3kviJeEEAsGIW0pz VcrCHj/3jP5Ks6CupuaWv3AtoqlCO99BV48Nh5HY6aaNYxwQi3P5J1WGjxH+fGWjlLY2 u+NYdLO+wcHOulFzrEmhrx33IFWtgEVm/CNn+R8lZ28sGim6KndSQq7wGWlkTGTuD0WF 1/h6z7a6uL0bcasknaIGV75TqelwTV+1AwV4tVTMoGshpMd8+xnEdn1nm786fCLlpLMw X9HgkqxiOlJopbkIHnzQcvHMR5mdwsKvM1itTssFWlb7sKcDXJv7X5BwbGYK8T0SWKyA wuEA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 x1si15508662pfa.253.2019.06.11.23.43.50; Tue, 11 Jun 2019 23:44:31 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436945AbfFKWx5 (ORCPT + 99 others); Tue, 11 Jun 2019 18:53:57 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:53852 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404048AbfFKWx5 (ORCPT ); Tue, 11 Jun 2019 18:53:57 -0400 Received: by mail-it1-f195.google.com with SMTP id m187so7742084ite.3; Tue, 11 Jun 2019 15:53:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=iQPRF6XFm/QWEVO1CPfMz0EhoIEuoqt7VcGHt4YVR3s=; b=bwzgGflXOQe5eP6WP6bnPoG5hVuqBAMFGVhnt6pOL42IxfwkdGrkJ2yelJHaSdxH4y 2HwasSizEfRa+XO3MMNcRLehBfehIuAOJEtOiN9yNeY44ivlEJPZ1+GwSuegddB7W4DG uVxChXqaTKJS2PimQ3q+lCOnBlYEOM42U/F8/MVwBXT4TKR+iJ0WjObF4Lwvo/5wjmVA 8LTtSQk8ZXuFhbh45kH37/uvr0rvtcfy7BLCn58JHvMtQKg8AWUEyb+ry3S/JbLnIfuZ I1QoU4w+kZcm4qiH1EjfshwroZxHbsV70PZAishX0Dwuhj4F9QNxXNHYOG/dEamKmK8t sWqQ== X-Gm-Message-State: APjAAAUPzzgSNKXjKq5GBz+1YYQqe/mIi0F0x6YYzLjpsjXNiKiw8XkG etHQzX9Ag/nWai+eDyPpLQ== X-Received: by 2002:a24:61d7:: with SMTP id s206mr19458252itc.133.1560293636578; Tue, 11 Jun 2019 15:53:56 -0700 (PDT) Received: from localhost (ip-174-149-252-64.englco.spcsdns.net. [174.149.252.64]) by smtp.gmail.com with ESMTPSA id f4sm5155254iok.56.2019.06.11.15.53.54 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 11 Jun 2019 15:53:55 -0700 (PDT) Date: Tue, 11 Jun 2019 16:53:51 -0600 From: Rob Herring To: Neal Liu Cc: Matt Mackall , Herbert Xu , Mark Rutland , Matthias Brugger , Sean Wang , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, wsd_upstream@mediatek.com, Crystal Guo Subject: Re: [PATCH v3 2/3] dt-bindings: rng: update bindings for MediaTek ARMv8 SoCs Message-ID: <20190611225351.GA17332@bogus> References: <1560162984-26104-1-git-send-email-neal.liu@mediatek.com> <1560162984-26104-3-git-send-email-neal.liu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1560162984-26104-3-git-send-email-neal.liu@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 10, 2019 at 06:36:23PM +0800, Neal Liu wrote: > Document the binding used by the MediaTek ARMv8 SoCs random > number generator with TrustZone enabled. > > Signed-off-by: Neal Liu > --- > Documentation/devicetree/bindings/rng/mtk-rng.txt | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/rng/mtk-rng.txt b/Documentation/devicetree/bindings/rng/mtk-rng.txt > index 2bc89f1..fb3dd59 100644 > --- a/Documentation/devicetree/bindings/rng/mtk-rng.txt > +++ b/Documentation/devicetree/bindings/rng/mtk-rng.txt > @@ -3,9 +3,13 @@ found in MediaTek SoC family > > Required properties: > - compatible : Should be > - "mediatek,mt7622-rng", "mediatek,mt7623-rng" : for MT7622 > - "mediatek,mt7629-rng", "mediatek,mt7623-rng" : for MT7629 > - "mediatek,mt7623-rng" : for MT7623 > + "mediatek,mt7622-rng", "mediatek,mt7623-rng" for MT7622 > + "mediatek,mt7629-rng", "mediatek,mt7623-rng" for MT7629 > + "mediatek,mt7623-rng" for MT7623 > + "mediatek,mtk-sec-rng" for MediaTek ARMv8 SoCs with > + security RNG Is there any commonality with the prior h/w? If not, make this a separate binding doc. > + > +Optional properties: > - clocks : list of clock specifiers, corresponding to > entries in clock-names property; > - clock-names : Should contain "rng" entries; > @@ -19,3 +23,8 @@ rng: rng@1020f000 { > clocks = <&infracfg CLK_INFRA_TRNG>; > clock-names = "rng"; > }; > + > +/* secure RNG */ > +hwrng: hwrng { > + compatible = "mediatek,mtk-sec-rng"; How does one access this? Seems like this should be part of a node for firmware? What about other functions? > +}; > -- > 1.7.9.5 >