Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp464096ybi; Fri, 24 May 2019 06:37:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqw19CuV4jT0z3xeH1sHd97puztTBgAwwzjlF2U9TLv4qkutTMkZ2Je72fIvCNnYjoblt7q4 X-Received: by 2002:a62:2805:: with SMTP id o5mr112134067pfo.256.1558705048920; Fri, 24 May 2019 06:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558705048; cv=none; d=google.com; s=arc-20160816; b=Wo1Vv/akcSd0Y/EIMvsgvlwr7d6tk6sgWr6OORxvIr8yNUFvFSXeIFpjM3VrybJPHU CyfViAzypRd17FBA0kl6/1PxoyG3GFyYWEB5YqA8lxDADkjA3TB9g8CRQfwgj778dFpn IL/Ply2xGb6FlAZsSBUn3IM8hvWoZVJn5/fMDlj1KhQBg/Z4WKYqHvBAMNqilUKrVciN qL/sPT0e+XPMYjmFqwgYzI7xCmZcLKixJOhyazBtq5NeJfwT9ELH/fxaoaO5/5c+1geA tx1+NxuxP0+EFkn+sZywCO/CoOyUJxuVockwlfq2ewu8DFLqMBVQg/OZAPfR6JftbThD nWwg== 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=EmvSHn2SOaQgCa1Yz4a4YYhH9r2m1HhVHQ2jyowDYlw=; b=hYjTr5e6voOsuRUhrcJcdQ32QmVD878vC6DxLKVzIuXrD0Qrzvsro3Gyb/+CevAFfT /XReu4AjY3J59kmOhQ5ma8hsykdr3+XlYls3NO4pa+5th8oKN8nrZ5ycBtsbUDRZ/fFy lFiBTezEl57ybTphXBNzczeoh6/IzfUvb1ZBb6mGVmEWtxTOC10RPO3mExwNWSEikWoQ zmkdjTzjHpMjCKl6HylMDmnCB17A3JPYc+mXJtw/D259ERMmPeTsdWpLP225DfDiyGYd dkdSG2YAEVhFpidZC7a0M8lkfCF/Za1Q0HmaFr+DTBsNZNAFkZ6MXffKCUkbsIMnITdh b8zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LumGEaPF; 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 p13si4027832pgh.417.2019.05.24.06.37.07; Fri, 24 May 2019 06:37:28 -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=LumGEaPF; 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 S2391395AbfEXNgm (ORCPT + 99 others); Fri, 24 May 2019 09:36:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:43354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391361AbfEXNgl (ORCPT ); Fri, 24 May 2019 09:36:41 -0400 Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (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 640DB21855 for ; Fri, 24 May 2019 13:36:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558705000; bh=tMBECbiBS4GeoIN2QdWttyV14DSkMjIwIZ/HSg2Q84U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=LumGEaPFodLNRDIkJbwtxOQRllCWgShXM8+qzkOK+Ni3o4sYZfMnhUOe/gR4dkkhw gV60MWootRXVlod34UxYtYXjshnADlFDmcdBbY7zq9IuSAg6JD9PknJRhUFEF1Hgn/ 2ik0nXGzGxaJ/MHJT2iI4Po8UguGa3Zi2IB/B8Jw= Received: by mail-qk1-f182.google.com with SMTP id j1so7539571qkk.12 for ; Fri, 24 May 2019 06:36:40 -0700 (PDT) X-Gm-Message-State: APjAAAUKsL52KCgCpUYT3X8vbLjkwmp2fmOqEdYFZ9yIG2B2vPLMGqkn rzOg9qkBo8wB4K/thCF7BHEVnZ9yQxA5z6cVoQ== X-Received: by 2002:ac8:6b14:: with SMTP id w20mr65181261qts.110.1558704999637; Fri, 24 May 2019 06:36:39 -0700 (PDT) MIME-Version: 1.0 References: <20190430162910.16771-1-ard.biesheuvel@linaro.org> <20190430162910.16771-6-ard.biesheuvel@linaro.org> In-Reply-To: From: Rob Herring Date: Fri, 24 May 2019 08:36:28 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 5/5] dt-bindings: add Atmel SHA204A I2C crypto processor To: Ard Biesheuvel Cc: "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Linus Walleij , Joakim Bech , Mark Rutland 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 Fri, May 24, 2019 at 8:16 AM Ard Biesheuvel wrote: > > On Fri, 24 May 2019 at 15:12, Rob Herring wrote: > > > > On Tue, Apr 30, 2019 at 11:29 AM Ard Biesheuvel > > wrote: > > > > > > Add a compatible string for the Atmel SHA204A I2C crypto processor. > > > > > > Cc: Rob Herring > > > Cc: Mark Rutland > > > Signed-off-by: Ard Biesheuvel > > > --- > > > Documentation/devicetree/bindings/crypto/atmel-crypto.txt | 13 +++++++++++++ > > > 1 file changed, 13 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/crypto/atmel-crypto.txt b/Documentation/devicetree/bindings/crypto/atmel-crypto.txt > > > index 6b458bb2440d..a93d4b024d0e 100644 > > > --- a/Documentation/devicetree/bindings/crypto/atmel-crypto.txt > > > +++ b/Documentation/devicetree/bindings/crypto/atmel-crypto.txt > > > @@ -79,3 +79,16 @@ atecc508a@c0 { > > > compatible = "atmel,atecc508a"; > > > reg = <0xC0>; > > > }; > > > + > > > +* Symmetric Cryptography (I2C) > > > > This doesn't really seem to be related to the rest of the file which > > are all sub-blocks on SoCs. You could just add this one to > > trivial-devices.yaml. > > > > > + > > > +Required properties: > > > +- compatible : must be "atmel,atsha204a". > > > +- reg: I2C bus address of the device. > > > +- clock-frequency: must be present in the i2c controller node. > > > > That's a property of the controller and doesn't belong here. > > > > Both comments apply equally to the ECC508 above it, which I > duplicated. Okay, I only quickly scanned it. The problem for this file will be when converting to schema, it's generally 1 binding per file. > Would you like me to move that one into > trivial-devices.yaml as well? (and drop the clock-freq property) If you want, but that can be a separate patch. Rob