From patchwork Tue May 18 11:22:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12264599 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A4B2C433ED for ; Tue, 18 May 2021 11:25:12 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A7A426117A for ; Tue, 18 May 2021 11:25:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A7A426117A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc: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=eaKVZiiesgRZ6YnP4OTAkBIv7Y6FjXHpRJ1HWsmXZv4=; b=BvcWwLZHjAbt0BuxIPeCC1ybku CwJHASKFpr8OY2sACJrj2Ohqj3E8g6TleKtdwcQ0CPA9GOeHns3JWlj+UFzlt5bhEDf64FvnR8rb1 s9Gj//OH24T8C0Ry27Z1W0/hgN23OfDKlLUK7P7szGDAJgrMtkeJwf/9EvnncxaTG2gyBh5Yk135u mRPRR75jIuhyiGgKhx8SY1rIAEG4xX4pp3trENTAd8HOj2bELh7YxyxoFctI8nPEwiVnHUx+GQYVl WcCWX1l3b0rstup+26TX/Uxm79QI7EGCcpF1r5yRf6tdSlhtKyY2wQTH28lQCrpNj6GHR3gOpJzxD +7YJTCdQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lixoZ-000XBL-5M; Tue, 18 May 2021 11:23:07 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lixoW-000XAs-Py for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 11:23:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=DCCqrr8wK9Z3oX5rCaA/n2nKsKJmS6s8+5KqyY7fBB4=; b=J7/qh6arT1C0UuCMIYDhUkA1bJ j0Sr2CjSLm4dmtwkCZGknhAEjm6mleKPSCNi7thEFYhs12joqx6kdbc8dnnyhVxn0HDdZuJ2SoQpq ArjAcTIwAAACfraxZeaaC/of0d+SZOAagMtei8bagwirVUVkq5WUDiB2R3djZgBS3j3mLc4eAwabu HYKj9kiDlxF45CJer4zpQF6PJTx2jPufezYcsoQyySGmQZkZ6jG987jeJ9uhM8ZaULFYkbCS4zuDn XaaaWqjvaINDzfX/dNaJ533kLZISKIzyS7aqfw0jJDTdCTJ10XDD/4DnuZvIAO/y1jHDgkpPEguWV xSe0ZeUQ==; Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lixoT-00EbC4-B2 for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 11:23:03 +0000 Received: by mail-wr1-x42a.google.com with SMTP id d11so9778905wrw.8 for ; Tue, 18 May 2021 04:22:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DCCqrr8wK9Z3oX5rCaA/n2nKsKJmS6s8+5KqyY7fBB4=; b=ADRUVcjfyh7wZo3ai7Jq+kamkrpn1NhqE2Uw9xnl7FpO6NO3acOJ188VsHlZh4yXed aBMn0Mg9z1PGgva7uPUyTXObcFMPAL7XkomDwf1ygn6kCsZ2P/FqRF8QQE9LmKVEebBD BWdo60LPPy42Ak5WblviNwa40W0eUHs1VlDY8voDaWXGRP3rVnz68rAY5HfXXeHF97+c /hIYla5G5VSW6srZin6MsA4xVbPUY5D+lfKTanbB5tYkHmQq10mdAvHoH6YBefBOoCaX 1eKuuhHEdjbNcVuoQfAJkPCqwwHlsRi6W+7GPWVjU31bmXaatCxQe5qZmgCRaDwWNZ9h lIzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DCCqrr8wK9Z3oX5rCaA/n2nKsKJmS6s8+5KqyY7fBB4=; b=Jz+Zt9d5UbYbrxJLGJXHRYCJTYeox2s2WKMmWDpYd8JxX0jkeMHl57Y+n58TKOe/Pt ekywDSfm/brknsY7Q2wMJZbkXSCXJk+tT22QGuVueSSXWI6oYHMW5U/asB1OVc0rzJWu 1oX74w7HOmaZ3LWTO4qsHCoeeifN95qG08VrKtwEQLpk6xtkMy203tXWJ+MZHVHbaUIS G3NWVdUsY8itr0k/9szIuPWFVZspOQHLg4omNpuR1MtV/b2NWv8jjOdFJgOvAK8fsOBr kvFbzNtT7l5yIRd6jvLk2C3IoO4JF+P5H52EUpq3rV15OBuTQAoZROghJD4DGf1sOR6B wy4A== X-Gm-Message-State: AOAM5307qPPvCNy8pP5LBS4E+ZcWgGgaQAKoENUOhxcsGCnnBDSFqw+9 XmN5mR+brLe6GNcSw4FtVtYqOQ== X-Google-Smtp-Source: ABdhPJzWfBKWSIvh12WRInRFuIbcscfo06bwrlqRgQ6iVnYGxH1e0APjYYd/RYQzdnFUMzyG5/s2Zg== X-Received: by 2002:a5d:45c6:: with SMTP id b6mr6217248wrs.333.1621336978698; Tue, 18 May 2021 04:22:58 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id y20sm2881337wmi.0.2021.05.18.04.22.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 04:22:58 -0700 (PDT) From: Fabien Parent To: Matt Mackall , Herbert Xu , Rob Herring , Matthias Brugger , Sean Wang Cc: mkorpershoek@baylibre.com, Fabien Parent , 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 Subject: [PATCH 1/2] dt-bindings: rng: mediatek: convert to yaml schema Date: Tue, 18 May 2021 13:22:49 +0200 Message-Id: <20210518112250.2146819-1-fparent@baylibre.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_042301_468533_5AEA2647 X-CRM114-Status: GOOD ( 16.28 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the RNG binding for MediaTek to use YAML schema. Signed-off-by: Fabien Parent --- .../devicetree/bindings/rng/mtk-rng.txt | 22 -------- .../devicetree/bindings/rng/mtk-rng.yaml | 53 +++++++++++++++++++ 2 files changed, 53 insertions(+), 22 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rng/mtk-rng.txt create mode 100644 Documentation/devicetree/bindings/rng/mtk-rng.yaml diff --git a/Documentation/devicetree/bindings/rng/mtk-rng.txt b/Documentation/devicetree/bindings/rng/mtk-rng.txt deleted file mode 100644 index dfdcb5cd2ea8..000000000000 --- a/Documentation/devicetree/bindings/rng/mtk-rng.txt +++ /dev/null @@ -1,22 +0,0 @@ -Device-Tree bindings for Mediatek random number generator -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,mt8516-rng", "mediatek,mt7623-rng" : for MT8516 -- clocks : list of clock specifiers, corresponding to - entries in clock-names property; -- clock-names : Should contain "rng" entries; -- reg : Specifies base physical address and size of the registers - -Example: - -rng: rng@1020f000 { - compatible = "mediatek,mt7623-rng"; - reg = <0 0x1020f000 0 0x1000>; - clocks = <&infracfg CLK_INFRA_TRNG>; - clock-names = "rng"; -}; diff --git a/Documentation/devicetree/bindings/rng/mtk-rng.yaml b/Documentation/devicetree/bindings/rng/mtk-rng.yaml new file mode 100644 index 000000000000..d9731f0ae47d --- /dev/null +++ b/Documentation/devicetree/bindings/rng/mtk-rng.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/rng/mtk-rng.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: MediaTek Random number generator + +maintainers: + - Sean Wang + +properties: + compatible: + oneOf: + - enum: + - mediatek,mt7623-rng + - items: + - const: mediatek,mt7622-rng + - const: mediatek,mt7623-rng + - items: + - const: mediatek,mt7629-rng + - const: mediatek,mt7623-rng + - items: + - const: mediatek,mt8516-rng + - const: mediatek,mt7623-rng + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: rng + +required: + - compatible + - reg + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + rng: rng@1020f000 { + compatible = "mediatek,mt7623-rng"; + reg = <0x1020f000 0x1000>; + clocks = <&infracfg CLK_INFRA_TRNG>; + clock-names = "rng"; + }; From patchwork Tue May 18 11:22:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12264601 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 214AFC43461 for ; Tue, 18 May 2021 11:25:13 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9D1A76117A for ; Tue, 18 May 2021 11:25:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9D1A76117A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=DKKReFXG6o+Yc21UiXh/I17n9QWEAaQiVBp6RHg8J0A=; b=ifX6qg+4YhUhU54RbHH0kfDjU HicdAsQz4pv7z1y1rvVBXnufXj2hjvht741vP7e183rfkMYUhW88ybyy/SMFhZSwraY05EUfCqSdC L121k7WomdOaE1C5AUI3XN7wJeyXrIhGyPF3WQoqN0vFtQ5CSpH+fyGNuY7Gwf2+A+Zq5lPwvPzYd GUQEzECC4K4Q34iGVMuVsfHwTF8Xo4aOYI3WdTPog3LzuCVExfLJejSZME8yfmeKXLQ+K7wDeLvNI NP7NzYsQNLPNc0oN/9hnpGycAGXwTfbf8BHxYy9HO5Li1KRP3BIq7Tu6T1RrkhB1S8HGsP2/j22ld YJnu6NcUA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lixok-000XCu-Ic; Tue, 18 May 2021 11:23:18 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lixoY-000XB7-0p for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 11:23:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=oaLFELdmsSuj6jGUpLjdC3C6Wd7IWhp+KmWoppj+Ots=; b=0e8KI1fUcqnqRXqYodxurIfK67 W2npht8nBkP24DMzOEpnjkEnq2ntvuyjE30minTPG8GN+E4ZGglYkYfTfM66XHGcIsQVYf0XoZg6F Syyop61YMnKr0rRRvSQmMBQUamhOKp/lWNVXLTXJHa2wAlSnsws+U0L++QriXxtRJpGGOITJ7Fpdd 1s3hwabasJM75pZPgtJC9jau4TFkeLZpmXL+miqcQLh3ADZ4iaZx948Up28gOVmyl+p2XBgeJ1Vm9 BYEQFWLIxRJJW4ldsY8cj36sQmbVEv66KjhFzc0aJX4hXsGbYv1FVssclhPAW1J21yAB527gzai0m /he4+MLg==; Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lixoT-00EbC7-PL for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 11:23:04 +0000 Received: by mail-wm1-x32f.google.com with SMTP id o6-20020a05600c4fc6b029015ec06d5269so1281847wmq.0 for ; Tue, 18 May 2021 04:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oaLFELdmsSuj6jGUpLjdC3C6Wd7IWhp+KmWoppj+Ots=; b=VKSM0kO2iOln9CQUfzNDIsaTFKxbenOaoUvS60FBMhhB5nYExLkbpuY82iCC+ohbQX F7cHamO4ub1tlhjaLWntbt8A677LWvQxZWIWTWuKA2x6L9yFn+IFCd43RLTbl4mW3RhI whmFtFv3pH0pvFuKOKFL8HveAo1pQPXXjIB1/x54gENVkwDGlwCPT4H94WN3/B4dm0V0 U8iT7kCQ+m1pxzgvAYMYqIVbvl/I5vB22MaaAJnGZdczQh01NYNY6deiijmc6zJNcgcb 4fx66hXYMQzIfDyZ9mVjCtIh7T/bpJkidlDjcaiFvK1kVRsDxzK59s29Y7sfTYt7fpcu AObw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oaLFELdmsSuj6jGUpLjdC3C6Wd7IWhp+KmWoppj+Ots=; b=OSIVN0lp7rVNrcIh6RiaOB3weLOOTbhqAMGRPH/zjJK0Po5Vlpm9uyl/jUL6M2URnC kE7G1rq4d/HjmPCs5ohwZIb28hmfezJn3DK2TAku0bxa47uhbMtBWV17UpALjEvvmmH/ jIhf5JC/1UHX/RzJzRRUYOKide+aczWrsQcREs0tQpFuvOg9XaYGjo2RppwgYROAbGOb z7NmkRpxo5V4oOpC3RTBPQeGR/2s0GKUD2ZmKhjB10ysyxfMcOv2kzOCHuD5Fw/X29Nm qHC/XHMsVlclb3rJkYVjuqj06t99ux+YKPZTITdiXUFykHNr70yzBFJ6RAiwzusrJ6VK 5rBw== X-Gm-Message-State: AOAM5321AxTpvTWba+Zx24kVAh3XQ+Q2Nlucl93jL+Rc1+qjrd7fq9Cp QFgTvIdzwPh2ZfHw+cviOZOSAA== X-Google-Smtp-Source: ABdhPJzl2Utkm0LkpJMg42RFFaMV0xPUsR/PlhE1Hxe69g5OBNLG/XNR5HueBpJgHnFR0O56vHEiXg== X-Received: by 2002:a05:600c:4a23:: with SMTP id c35mr4408392wmp.130.1621336980047; Tue, 18 May 2021 04:23:00 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id y20sm2881337wmi.0.2021.05.18.04.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 04:22:59 -0700 (PDT) From: Fabien Parent To: Matt Mackall , Herbert Xu , Rob Herring , Matthias Brugger , Sean Wang Cc: mkorpershoek@baylibre.com, Fabien Parent , 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 Subject: [PATCH 2/2] dt-bindings: rng: mediatek: add mt8365 to mtk rng binding Date: Tue, 18 May 2021 13:22:50 +0200 Message-Id: <20210518112250.2146819-2-fparent@baylibre.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210518112250.2146819-1-fparent@baylibre.com> References: <20210518112250.2146819-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_042301_840302_E59D661C X-CRM114-Status: GOOD ( 11.36 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add RNG binding for MT8365 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/rng/mtk-rng.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/rng/mtk-rng.yaml b/Documentation/devicetree/bindings/rng/mtk-rng.yaml index d9731f0ae47d..ccff10b27f73 100644 --- a/Documentation/devicetree/bindings/rng/mtk-rng.yaml +++ b/Documentation/devicetree/bindings/rng/mtk-rng.yaml @@ -20,6 +20,9 @@ properties: - items: - const: mediatek,mt7629-rng - const: mediatek,mt7623-rng + - items: + - const: mediatek,mt8365-rng + - const: mediatek,mt7623-rng - items: - const: mediatek,mt8516-rng - const: mediatek,mt7623-rng