From patchwork Tue Feb 23 17:00:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= X-Patchwork-Id: 386339 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=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 0A85FC43381 for ; Tue, 23 Feb 2021 17:01:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D514D64E85 for ; Tue, 23 Feb 2021 17:01:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233633AbhBWRAz (ORCPT ); Tue, 23 Feb 2021 12:00:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233551AbhBWRAy (ORCPT ); Tue, 23 Feb 2021 12:00:54 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3673CC061786; Tue, 23 Feb 2021 09:00:13 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id n4so23331814wrx.1; Tue, 23 Feb 2021 09:00:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=OEwefO5s7q5tH8TqEcawfPCkw0BmTmIeA1fwlofl6+E=; b=Bvq5kq6G7MCxav6SCKRj9tVkSW2MxAaxSfktzpSeV0/O3T/obTjyqum3K1iDlWWgct 9mQZdnU3aioarFsdGaE3X+JrK+oMGiw08deIiIyeAeXVkQZOWLbi6SkORHSRJb1p3dDr jgPxkYRdGb6B5OvJHA7HV7TPM5DiciIPKAUoG0dr1hx3LfRAs7ZyslpT0buRQQRkUn5e OLctdS0KvBHXbhNVv3NG74BEZ+HftDSqtPkB+JhWG/56xeOTiKlJqW50sOstCqqOqMos cZKfq02U6vyRINuBwxANrC621kkx6V6jXumyLuZskLPen2rbsOCziVdyVSRs591haCby 4t0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OEwefO5s7q5tH8TqEcawfPCkw0BmTmIeA1fwlofl6+E=; b=Oo/iTp/Pe47A6LIgJvbGoimQvxOIJ47UtvmbbcjmyyaifKmb6hFzApv6qsB8SsFrNA hsGGqFWly0ci/cKWnYjd2a+yf9lzo4ehFs/ie1tUMdzpUjHRPwOyJNKN5f5Rq16SZUgW Xt1Af5LgYWg+IZNtmJh0Zw7CEVv1YScUimSAnH1dp6aw45kgbNFGfSPby9tFCA8kH51U CSPzkrUhOoYTw+OySXBNKhYg8uK7CHuzzzbd9Wq5qZ9WhBrkCzGvbuRnlqTJ7346Sxzb pCr64ySrdrHdrmwg0t7jEkhrG9sINKegnOSv+dxpY8jEb2n6oXMLT6PYfIZWf/m0rpuA +CTw== X-Gm-Message-State: AOAM533eg+R/URqH3XwTz3MyB5p3OAsAby9ppl/Cbbj4aRKNw+bEU+2R Auf3kRX+9CodBdWJJHB6x4EsU5kLrBtUsYUY X-Google-Smtp-Source: ABdhPJxzcvsA9J78p039E9gaxjTRycu1+O26r/KZPd+kCOMtGAsEnxNg6N9CcEyvyOY3R0lUAHANeg== X-Received: by 2002:a5d:58fb:: with SMTP id f27mr26949829wrd.119.1614099611881; Tue, 23 Feb 2021 09:00:11 -0800 (PST) Received: from skynet.lan (170.red-88-1-105.dynamicip.rima-tde.net. [88.1.105.170]) by smtp.gmail.com with ESMTPSA id u12sm3057190wmq.38.2021.02.23.09.00.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Feb 2021 09:00:11 -0800 (PST) From: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= To: Matt Mackall , Herbert Xu , Rob Herring , Nicolas Saenz Julienne , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Philipp Zabel , Mark Brown , =?utf-8?q?=C3=81lvaro_Fern?= =?utf-8?q?=C3=A1ndez_Rojas?= , Guenter Roeck , Bjorn Andersson , =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJh?= =?utf-8?q?do?= , Rikard Falkeborn , Stefan Wahren , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: rng: bcm2835: document reset support Date: Tue, 23 Feb 2021 18:00:05 +0100 Message-Id: <20210223170006.29558-2-noltari@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210223170006.29558-1-noltari@gmail.com> References: <20210222194510.14004-1-noltari@gmail.com> <20210223170006.29558-1-noltari@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Some devices may need to perform a reset before using the RNG, such as the BCM6368. Signed-off-by: Álvaro Fernández Rojas --- v3: make resets required if brcm,bcm6368-rng. v2: document reset support. .../devicetree/bindings/rng/brcm,bcm2835.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml b/Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml index c147900f9041..11c23e1f6988 100644 --- a/Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml +++ b/Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml @@ -37,6 +37,21 @@ required: additionalProperties: false +if: + properties: + compatible: + enum: + - brcm,bcm6368-rng +then: + properties: + resets: + maxItems: 1 + required: + - resets +else: + properties: + resets: false + examples: - | rng@7e104000 { @@ -58,4 +73,6 @@ examples: clocks = <&periph_clk 18>; clock-names = "ipsec"; + + resets = <&periph_rst 4>; };