From patchwork Wed Oct 6 06:12:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Paracuellos X-Patchwork-Id: 12538677 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14D58C4332F for ; Wed, 6 Oct 2021 06:12:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 007FC610C8 for ; Wed, 6 Oct 2021 06:12:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235604AbhJFGOG (ORCPT ); Wed, 6 Oct 2021 02:14:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236878AbhJFGOC (ORCPT ); Wed, 6 Oct 2021 02:14:02 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AD91C061755; Tue, 5 Oct 2021 23:12:11 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id j8so5207077wro.7; Tue, 05 Oct 2021 23:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nNzJU9Y0TN+qNE5qJcuFSRHdr3qJUmf5dCSvTeevenI=; b=ANdB3oFZnXCafq+MQbhJNlRkccq1wVIELxjMlYiX2ZU+wsa/0SDckhCa28iFKISyDO b6aK+IxalKhIZnCeMIXYON9LbmPpSicfaD1i7rO4z0UeF0HqHM/JG+OMWvhmlrwVhhZI ZY4mU+sMEOPIA4aaQHMbMs14KiVZOPwi/AhM/nhveMT4kgIF9sBaiPtsg0cNTsPFcdqq IVvTxtQBCHxqpqBB0wn1C/LS2/2lOM4kVeDgWha6fPcDOF0mWcxwqL2wmp5zv//GsDmS hzgqimSCw5tSa+vC2Gt2KPZI9CjQqHX6aqgxEa42KBlDvTOtyfjlb7ubzM25TjGd+SPQ zCLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nNzJU9Y0TN+qNE5qJcuFSRHdr3qJUmf5dCSvTeevenI=; b=eihGqcalGlXNOmHiP4stBf9JcnAnJTb0dhFRUdrt1XBDj3+23sucSTud8g9LIsox0S zRO5jKvp/A9wokm0XHTsMvnEb5E+SfPj85mYTaDRp/U91W71uWNR0qacjJi+VhVaLIJY ZGC94DlZY3kTccuM7+/hNM1CUVOf5ET1FZm5uO+50Daq2tu72T1pvTT8Zdxmqo5DFQyb M0wZYzRYhQg75AGO5tqMmiMj6Vzj34Pm2ZTRDTOWrsHvIp/FVmL6Hp+jKJ2lsVAxClUE 2HtXhVRxR48cjaYo/AXMHRpRvyVxoA2ejjosupszbj7qdALiVhiUuqTRBTb85RR+c1a/ UEjQ== X-Gm-Message-State: AOAM532hhkMhp58ptGowDyXdmffEgITCVitR0SgQZ0jZtsUqYRPoeLd3 2jK1itLXFsB96L7dCHBzv9w= X-Google-Smtp-Source: ABdhPJzvpHh7Kg9/PSeVa1E2N4RIAT/2jC9jWEdRpAWXy/1jh8Pzr4PTphK0flBGavRG4TUxUC4XXQ== X-Received: by 2002:a7b:cc18:: with SMTP id f24mr7914179wmh.8.1633500728703; Tue, 05 Oct 2021 23:12:08 -0700 (PDT) Received: from localhost.localdomain (252.red-83-54-181.dynamicip.rima-tde.net. [83.54.181.252]) by smtp.gmail.com with ESMTPSA id e8sm3893071wme.46.2021.10.05.23.12.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Oct 2021 23:12:08 -0700 (PDT) From: Sergio Paracuellos To: sboyd@kernel.org Cc: linux-clk@vger.kernel.org, gregkh@linuxfoundation.org, devicetree@vger.kernel.org, robh+dt@kernel.org, linux-staging@lists.linux.dev, neil@brown.name, linux-kernel@vger.kernel.org, john@phrozen.org Subject: [PATCH 2/4] dt-bindings: clock: mediatek,mt7621-sysc: add '#reset-cells' property Date: Wed, 6 Oct 2021 08:12:02 +0200 Message-Id: <20211006061204.2854-3-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211006061204.2854-1-sergio.paracuellos@gmail.com> References: <20211006061204.2854-1-sergio.paracuellos@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Make system controller a reset provider for all the peripherals in the MT7621 SoC adding '#reset-cells' property. Signed-off-by: Sergio Paracuellos --- .../bindings/clock/mediatek,mt7621-sysc.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt7621-sysc.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt7621-sysc.yaml index 915f84efd763..0c0b0ae5e2ac 100644 --- a/Documentation/devicetree/bindings/clock/mediatek,mt7621-sysc.yaml +++ b/Documentation/devicetree/bindings/clock/mediatek,mt7621-sysc.yaml @@ -22,6 +22,11 @@ description: | The clocks are provided inside a system controller node. + This node is also a reset provider for all the peripherals. + + Reset related bits are defined in: + [2]: . + properties: compatible: items: @@ -37,6 +42,12 @@ properties: clocks. const: 1 + "#reset-cells": + description: + The first cell indicates the reset bit within the register, see + [2] for available resets. + const: 1 + ralink,memctl: $ref: /schemas/types.yaml#/definitions/phandle description: @@ -61,6 +72,7 @@ examples: compatible = "mediatek,mt7621-sysc", "syscon"; reg = <0x0 0x100>; #clock-cells = <1>; + #reset-cells = <1>; ralink,memctl = <&memc>; clock-output-names = "xtal", "cpu", "bus", "50m", "125m", "150m",