From patchwork Fri Feb 11 09:39:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 12743099 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3A315C433EF for ; Fri, 11 Feb 2022 09:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=UCpR359XhxcY4kd82aT1hJuDE1w8dtzMSJGJEm6l6xE=; b=bvcKWylvc3lUQW x1avuuKNBS2tXM0HaTAu4eeFyj04PdMWLVGzQ/6kx92O+nPlJ6Pjw/JWbFD7SV4/rJq1ktuK0rWm9 k7jc28Uig07V8Jl9VY/XpWV+00uN/q0hEByc1W+1vMkNbHcNVniiAyghoC1IcAQleMZQa4MEwNBvg 4oThcZ/eD1fqLVyJU+AVHtOOOvE8PkVgvfvb8z/P06L43rJsDlX7qO9nZNpOiiBEkPuwsn2uJqkPA HjbHzq4SVGAmQ64jqzHc/idij4+jWOqiMLLQwmiwRdnouYhB6g4pZEaCeaJLCW52sQh0MUB48XKhC CpVC0M2b/072oUn+QBDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nISOv-006QdA-GK; Fri, 11 Feb 2022 09:39:37 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nISOn-006QaU-85 for linux-arm-kernel@lists.infradead.org; Fri, 11 Feb 2022 09:39:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1644572368; x=1676108368; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=uab3V4+bIdpYnckUfKm5nPvtJZjxdW5mFoAh+fvhJOc=; b=iIjHRyZJ7VAwLjGnAE0lpG2ck4xXYI7uWP+2lvGYi6WimGv2am7KPCAY KBFI7jAhhoGJ78OSN1UurJ8Gk4rCaPLztP+CIAUbVnWWFmSw/DX4+ZZWg 44xZxVTWh84nHcB2DQArN/wAvm7c1aPEeNsdWdqlslNiSTts8goAItYFU vn+xnNCTmadnF5AuoxWKlZ7BJ/1cK4jj8rDVv96zQ7FAMKc0WnQh7kECQ PVFvBGvRv7HB06uhwKUslYgsuPK2OAidzcAoXK8QCa57i6wYhYBHmDbIE XUGBQ5T42yDx7BITHTTha+WGXOuEkNPiEqccIXk/hJFqHtOLXf51STKZs w==; IronPort-SDR: MM7bv+IEic80mkET68rgWi5jjnpph61TewMllFa1kTvIW0yuH3AV3h6BVJ14UDZtFsW8j4FP6L ODVUxC7QHCpGYCkWnERSWaLdKfYORgyCWtcCiJNm/0RlmZsbhNRCOeGJxc8f0XnefZojZMLg0m OIIpZQW1Vl7W2wax8QHqYcM2f3OOx763febGHsj7XvXU6Lw7sqWjVq6SxItElmORPw5DZ8YltX mSU/Gkpm3rk3xH90dRLHv682OjZo8mF+1/Zvs4JWler3l8C/V784IdVJ5D46R3qf70Z5YTWtAC G8Ixfxb22zFYksC5u5jhok5k X-IronPort-AV: E=Sophos;i="5.88,360,1635231600"; d="scan'208";a="153263758" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Feb 2022 02:39:28 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 11 Feb 2022 02:39:27 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 11 Feb 2022 02:39:24 -0700 From: Tudor Ambarus To: , , Subject: [PACTH v4 0/3] dt-bindings: crypto: Convert atmel-crypto to YAML Date: Fri, 11 Feb 2022 11:39:19 +0200 Message-ID: <20220211093922.456634-1-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220211_013929_351529_F909ACD8 X-CRM114-Status: GOOD ( 10.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, alexandre.belloni@bootlin.com, Tudor Ambarus , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, kavyasree.kotagiri@microchip.com, claudiu.beznea@microchip.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert Atmel AES, TDES and SHA documentation to yaml format. There is one binding defined per file. Keeping all bindings under the same yaml does not make sense, as these are individual IPs. With the conversion the clock and clock-names properties are made mandatory, to reflect how the drivers treat them: when these properties are not provided, the drivers return error. v4: - fix the AES example: match the node's address with the reg's address - collect Krzysztof's R-b tags v3: - update license to (GPL-2.0-only OR BSD-2-Clause) - add "Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries" - add Krzysztof's R-b tag on patch 3/3. Chose to keep "maxItems: 1" instead of "items" and "description" because that's what the guide at [1] suggests: "# Cases that have only a single entry just need to express that with maxItems" [1] https://www.kernel.org/doc/html/latest/devicetree/bindings/writing-schema.html#annotated-example-schema v2: - use generic "crypto" node name - drop redundant status = "okay" - it's the default state anyway - introduce empty line for readability - be specific and rename the bindings to let room for future possible lines of architectures. Tudor Ambarus (3): dt-bindings: crypto: Convert Atmel AES to yaml dt-bindings: crypto: Convert Atmel TDES to yaml dt-bindings: crypto: Convert Atmel SHA to yaml .../crypto/atmel,at91sam9g46-aes.yaml | 66 ++++++++++++++++++ .../crypto/atmel,at91sam9g46-sha.yaml | 60 ++++++++++++++++ .../crypto/atmel,at91sam9g46-tdes.yaml | 64 +++++++++++++++++ .../bindings/crypto/atmel-crypto.txt | 68 ------------------- 4 files changed, 190 insertions(+), 68 deletions(-) create mode 100644 Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-aes.yaml create mode 100644 Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-sha.yaml create mode 100644 Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-tdes.yaml delete mode 100644 Documentation/devicetree/bindings/crypto/atmel-crypto.txt Reviewed-by: Claudiu Beznea