From patchwork Fri Feb 11 08:21:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 12743009 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 72A3FC4332F for ; Fri, 11 Feb 2022 08:23:02 +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=gg/Am/pg+cHWV1wXmC2fsKedFj39UL8FwBKXcLsOTf0=; b=x4/0nXsZlPT9MG xQdwnospSTwS/earu6/XxDRhAfD2jZK8tmeJN5IR8c/Y012VYmJu7EdLB3sEFH7lMY/KL+b5KzImL SxFHya2U13BLohARn/UrK7+jTsoKqanmOYOEzo7WVAGCxYS00Q74BW1i7Bjx3wIqFB/dVyYC1/Azm uTFyjuWSAnfPoCCnYd7aWp2hyc/qyLyxTTiTxMlnHTtNxsZbaGgJ63MMo/QzSofOdewmy3hEPdHLT s+MVFgKmQHkY/Wfbzo4bJK288FPZkanKsV7Relmr63+9W2JgOQ18FMQfuhl6K6EqB2A59b8BQGtSd gGwvL0nUqoWnda1Ypimw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIRBK-006A0h-Ed; Fri, 11 Feb 2022 08:21:30 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIRBG-0069zn-74 for linux-arm-kernel@lists.infradead.org; Fri, 11 Feb 2022 08:21:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1644567686; x=1676103686; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=1UsTRf6vAc8LZ7TbQ26bS4L3iuvgio5huOsqnR05FIQ=; b=F9SSwqo0cWw57kDBFmRwlU7XvkL8U4/7ICxGBC3IIEnWKcMVqjVpbWU/ 8elXrawfMwPhg8GhPZnldTTDcjuyTv5cE75HSZIzgO8FyjMEuu+yldZ55 N/j8SREe+G/qhg1WNvoimqNzb0pLxDTYnfr1F1cNHnc4MY7IEhq60jfvk cX4GS4zK5FJRX+uCHC8ityznlZMBDmvg5UKQF6cITtwwRiAZZKVbPfBpf i/QYkFa3AOViMVkFiZylDSvqs0E0FY2Hysqamu+n4Fj6d2QRPnUrqOhP5 vYYk4uq7igI2CIHc61CpuD4aq7q/8V6iYxWWB4zpQV2FGBO9O6cTBA02v w==; IronPort-SDR: bwmf1RwIFZKooVK5HAVj2uMcrzgwBV1imp6sYYobwCbo6DlxQc6CgeEKFzWG67Spwmcx1j0UsA ZAVfrCdrF9ZH5j3cOueG1MBNQeS55SIr6zPlwjJOdxM28wUucCf40igIfiPYamTnrMx+HflDKd bLI9alAjzyw9R5UfEjntJJyhuzFGydOwZlkSCNTLdGquxwhLNazujeLYAvFTkhrKcyX/5bvDiX 4I7qJRq1mrM5KpYI2BmiLp9rQLB26TJn7N82QSFA3Jn5ZJmI/WUn2jgXOSw9ac9Wa3wiedgFwB qY4GKw0qTJOXPwt0CHlby8RK X-IronPort-AV: E=Sophos;i="5.88,360,1635231600"; d="scan'208";a="148383285" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Feb 2022 01:21:23 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) 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 01:21:18 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 11 Feb 2022 01:21:15 -0700 From: Tudor Ambarus To: , , Subject: [PACTH v3 0/3] dt-bindings: crypto: Convert atmel-crypto to YAML Date: Fri, 11 Feb 2022 10:21:11 +0200 Message-ID: <20220211082114.452911-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_002126_362088_853B7530 X-CRM114-Status: GOOD ( 10.34 ) 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. 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