From patchwork Thu Mar 4 07:33:07 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: 12115617 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 549A2C433E0 for ; Thu, 4 Mar 2021 07:39:25 +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 E8D646023B for ; Thu, 4 Mar 2021 07:39:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E8D646023B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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=81ZIrcMwjg3BcPK/xa3micsLQpEOt7e6BnpFDfA1elE=; b=NXcczeZXktbmwviQERQ2k/8Vx CUE1ucA1D98ViQJIFCMVMgL/d3CH07KKXjexejnylMpMwedlBbJxspIhnCBuNLv0a/4hY4cJHGkxJ CUkuTyXfzT9Ctabc6lySm+pcQRiZIYBORHfzuwNo+w7dHFCbOrxLubUtscZvjr3LovcYVhwRucp68 6UuzaLn+l/05rbzH5/Ya6ZVJCY9xjdLXreCzCVJUAQxQLduU8y6GEE+sVSbct22Afoegk38AXhBQQ 2XjT+9B+hUp6YHOy3HM7tZ63wiCIQbbtDT1aSkkYJHwbuo8nn5M8QiIURomQXs8Op/LCWy0dGSrVw 6jD4GNK3A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lHiWJ-0084te-9k; Thu, 04 Mar 2021 07:35:39 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lHiTw-0084R2-Ji; Thu, 04 Mar 2021 07:33:25 +0000 Received: by mail-wr1-x42b.google.com with SMTP id h98so26436101wrh.11; Wed, 03 Mar 2021 23:33:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZDWFW4D59r4xarZoIxLa/j/vBnqICsduu7IM4/DSrf4=; b=b2ZwyOBTI2YssCewCnmYBoM+ta8EIaOI8ht+SRQgxIsdSrNm/NBzk1zzDMKzMjnW1O kDyhfUVeN+v427rGi4HCgP5KBSyAnhcFDluRLQEsZPBVwhegQyyD9Gt711JOSIsylEF6 HwJYbAPa8MkakkgKPk6eqzyxiRthDQDjmSFfKkse33cRIfsUoo3LzFyHUXdqfdtaC9cj 3aE/Vo2NYQw0pTi+XLlr0DriMUCWabXDFGUKowsAu2s30IYO1Esto9PEdV6ik2M7ixoU W6hB6mWB80SofCUIKMVLTS8EE1UFVeuYU9CJzqnY8wclg9iNNtxTpOAO1ySNGZmjQeGe +Hbw== 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=ZDWFW4D59r4xarZoIxLa/j/vBnqICsduu7IM4/DSrf4=; b=DS+8s93muyrAwQZY5v2IGzUfpCd2IV2i7BaxWlVITEiPh8sXvh3jzMrNtniQSPFzxi NwlWZz5bPZNkPjRD/GvWiDKjIG8FAHGG2z6M+okMQMekvsrmnucS2EIzQ+LrcEcZKdKO Q/sBwcGobspV1D/dTaI6/m6yfDdaSbwFIcHSwACA+UEe0UhGHhEfzlyNWLGh4mPSulq9 jL3Pf3W6fxqweKyhfk6N9GWyttCW3lXYidHOMilFEQo/YjTBbuDr8fSgGSC+faqdxqpI 9Fa2APcD6FYMXW4j1rn5NIXJonmaQlSm8icvV0zbGtGfSAHGLptkxCmhY6FkAgGqg7Lb ZSfQ== X-Gm-Message-State: AOAM531g5fWREwRUcn761s8FERrzslKy5qn4FmIDPgmr+pcE5TX0d+Mj e7Oan+VyETFX4VdmyYsz4jJS5fn+BlaoOBAf X-Google-Smtp-Source: ABdhPJwNam8gkxsOGlHGUb71EYTwmyUes8Yz141STO80JOn+6iaAdcFmh4IpCO1CNfA71CRk0VfYZA== X-Received: by 2002:adf:f512:: with SMTP id q18mr2475250wro.61.1614843192006; Wed, 03 Mar 2021 23:33:12 -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 j30sm18328811wrj.62.2021.03.03.23.33.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 23:33: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 , Neil Armstrong , Alexandru Ardelean , Bjorn Andersson , Guenter Roeck , 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 Cc: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= Subject: [PATCH v5 1/2] dt-bindings: rng: bcm2835: document reset support Date: Thu, 4 Mar 2021 08:33:07 +0100 Message-Id: <20210304073308.25906-2-noltari@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210304073308.25906-1-noltari@gmail.com> References: <20210304073308.25906-1-noltari@gmail.com> MIME-Version: 1.0 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 Some devices may need to perform a reset before using the RNG, such as the BCM6368. Signed-off-by: Álvaro Fernández Rojas --- v5: no changes. v4: pass dt_binding_check. 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>; };