From mboxrd@z Thu Jan 1 00:00:00 1970 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=-8.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 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 7FF6DC43603 for ; Thu, 5 Dec 2019 19:08:48 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 51BB220659 for ; Thu, 5 Dec 2019 19:08:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LqRAkF6i" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 51BB220659 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/pEYHAI2FgJJ07GlI6OTPzem/AHHcdWbAiGH+4A0E0E=; b=LqRAkF6i5YIrlP 8mFTXpioNcmLd7zR55rOwzn2rD5BSX2seDGUn8Hln0peDztQgpWR2Z6TlHSuHauCU8HTf0/HOEVJi mK7du7nZ67ocYcO0sI1jNjY6L8wgAX18s5YvJQSYtdeHLzWws9tUxbZGt3at8mmx8OOFav9vF1W/Y UWjifKmqK1+dRh+yeVKuS8gm/MBaPKPZIGY2QMqHW0mrCPFghpNeUErVl0Twt5JAeCKEXSxbVCi0c /K/6+U4ekDQLEOwJ7QAcPd1wXfnpu7lGxXc9b7mCTy0o8WAzwsQlaIqSb5VZZSKKwUAFTrP1PnujX b0R+b1mDCkRGfB7GTkwQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1icwUO-0002a4-Hv; Thu, 05 Dec 2019 19:08:36 +0000 Received: from mail-ot1-f66.google.com ([209.85.210.66]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1icwUD-0002SI-Kr; Thu, 05 Dec 2019 19:08:27 +0000 Received: by mail-ot1-f66.google.com with SMTP id d17so3627671otc.0; Thu, 05 Dec 2019 11:08:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GhI01COZ1PM4IuNCQYroNt43ak9q+ZJEl+5PK/vzrwc=; b=da90rYJW72p+cQlcwzPnMf/8ReZ/RueeUiCGDyIESdQ9SfTyzU6P2+T9sM+4Qtgn72 IO/u7ln+ieTl8s674LExH+AT97spgKkkZu2z4rzJKR93R5ToY+liQdr/BscdNojFC6l7 rxSyrIsEW3aq4g+pv01oVziSjmL1C/j7t+K6GAzqt5DjthkvDPrlQzBox7f3rtgEGDLs A+ydtXqIXzppwWJXLpM6JAS9ZeyIqplpVrhTojqEumHPDiWA1x372l1UMOcU5V7vlmEN 4/yCDJo8PfKLDbkUs8pvaNYOcPBz7OgOkc5TWlsD+ksmd6onsizHMe5hc+ntO2vMV1m1 QkgQ== X-Gm-Message-State: APjAAAUc5bWJb1lLPLIS+T6CBejbWcW6Dm2ap6kNpoBL3Zakk6O0FCw1 9vIBhsbHWJLDRl7M0Qg1t/OVrwo= X-Google-Smtp-Source: APXvYqyrDf3SjBOgDwQzOa4/THONdCOmBohqUk4Y5DGydGiSs0Q8JEOerKtxomNcothMl7/fKTTrlA== X-Received: by 2002:a9d:7357:: with SMTP id l23mr7568607otk.10.1575572903777; Thu, 05 Dec 2019 11:08:23 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id w8sm2157401ote.80.2019.12.05.11.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 11:08:22 -0800 (PST) Date: Thu, 5 Dec 2019 13:08:21 -0600 From: Rob Herring To: freddy.hsin@mediatek.com Subject: Re: [PATCH v1 4/4] dt-binding: power: reset: Add documentation for MTK RGU (Reset Gernation Unit) reboot driver Message-ID: <20191205190821.GA25233@bogus> References: <1574746490-625-1-git-send-email-freddy.hsin@mediatek.com> <1574746490-625-5-git-send-email-freddy.hsin@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1574746490-625-5-git-send-email-freddy.hsin@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191205_110825_680108_1E9F9117 X-CRM114-Status: GOOD ( 16.15 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org, wsd_upstream@mediatek.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, sre@kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, matthias.bgg@gmail.com, Chang-An.Chen@mediatek.com, wim@linux-watchdog.org, linux@roeck-us.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Tue, Nov 26, 2019 at 01:34:50PM +0800, freddy.hsin@mediatek.com wrote: > From: Freddy Hsin > > Add documentation for MTK RGU (Reset Generation Unit) reboot driver. > > Signed-off-by: Freddy Hsin > --- > .../devicetree/bindings/power/reset/mtk-reboot.txt | 30 ++++++++++++++++++++ > 1 file changed, 30 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/reset/mtk-reboot.txt > > diff --git a/Documentation/devicetree/bindings/power/reset/mtk-reboot.txt b/Documentation/devicetree/bindings/power/reset/mtk-reboot.txt > new file mode 100644 > index 0000000..708d351 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/reset/mtk-reboot.txt > @@ -0,0 +1,30 @@ > +Generic MTK RGU mapped register reset driver > + > +This is a reset driver using toprgu to map its non-volatile register. > +The reset is generally performed with a write to the non-volatile register > +defined by the register map pointed by toprgu reference plus the offset > +with the mask defined in the reboot-mode node. > + > +Required properties: > +- compatible: should contain "toprgu-reboot-mode" What's wrong with syscon-reboot-mode? > +- regmap: this is phandle to the register map node Make this node a child node of the phandle and get rid of this. > +- offset: offset in the register map for the reboot-mode register (in bytes) > +- mask: the reset value written to the reboot register (32 bit access) > + > +Examples: > + reboot-mode { > + compatible = "toprgu-reboot-mode"; > + regmap = <&toprgu>; > + offset = <0x24>; > + mask = <0xF>; > + }; > + > +Optional properties - reboot mode value that will keep in toprgu nonrst RG: > +- mode-charger = ; > +- mode-recovery = ; > +- mode-bootloader = ; > +- mode-dm-verity-dev-corrupt = ; > +- mode-kpoc = ; > +- mode-ddr-reserve = ; > +- mode-meta = ; > +- mode-rpmbpk = ; > -- > 1.7.9.5 _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek