Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp263766rdb; Mon, 18 Sep 2023 14:30:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHDLkCIgDhqTF38vJPbZt8hk8B6n6fBDSU8vqvYsKZI4089MMhrrSb9JeRE8O8lRZz8AJ2M X-Received: by 2002:a05:6a20:8f01:b0:136:faec:a7dc with SMTP id b1-20020a056a208f0100b00136faeca7dcmr13989869pzk.11.1695072629015; Mon, 18 Sep 2023 14:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695072629; cv=none; d=google.com; s=arc-20160816; b=Mg1IRc0BXGewQuU8rEeovT9J4vpUDk2l2mh2LcN2i4gYiXZGbJxHQ/BzdC5x3YIEoc c78LbiBkoTL+o3Q57YCyquTOJiUgTagaoPbQ/kiPbsPuZknGQNY/i/eOFRIS3TFlHUXr hBM+URNKthIbhBvSIHzIqBSudNzL0SCGXuogQvkNHybJ48TZO2t2e8sJQXqO46nhqKXx C0znMb2SksLcO96IHtShK0RmwLMuO+4hwS4DlQ/DFGvcT6NLQeOMXT0I8G2VtnOJbYIa MsLtPsLyF2DDbO6QB3m9LfmU2aLDf/Prxgc4qCuzZK7I/ccpYjSV6caLM/0vpcJW6qDV M+vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ln7pK0J43Q0T8X5q0xXdYrEHE9IsKP2Mq572v2OKqEM=; fh=SCyMJH5eELSWmmjTAD64vhazFGoM0rk81efSvLa8GgA=; b=T58BvjUGQNOGsXQ5+2cexuQQGf4G0tNQRm+QHhi/yLKMHklqRiSiUJORYnQ+jpz/i6 HpSnfAuN4rOBWQ8Qtae2FDPrBPKVk1zfKa7/8B1SxdL6Cr9TaMTBSXshhnwBOHZQQt0T Vr5b68+bTxuIaW/o4+8tM3x28oZXI6x1IcAHOqbeAxA1J4HzZnhEoPjQmLAzfAYkVKAP skpMmcU9KJl4wU3fOjTs8t69CJsC5Dt9FxRxELAlgjib5BEJUCAcnLDSWFLWI1q1POb8 SDmEh8ZOgMXYoK5RkCxwbzhBWzCxJcjfMwp7bG96/WXLVLnO0J9Nte+5o2bb22361nba i0KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NqgBdUlH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ce6-20020a056a002a0600b0068ff0bb7dcesi8497840pfb.228.2023.09.18.14.30.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 14:30:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NqgBdUlH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 64EC0807665B; Mon, 18 Sep 2023 14:26:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230168AbjIRV0Y (ORCPT + 99 others); Mon, 18 Sep 2023 17:26:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230132AbjIRV0X (ORCPT ); Mon, 18 Sep 2023 17:26:23 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29E828E for ; Mon, 18 Sep 2023 14:26:18 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDA42C433C8; Mon, 18 Sep 2023 21:26:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695072377; bh=lEN1ls2dQkgYbioyJtFPuLMXALUsRxPq6Ic/riPZ0ho=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NqgBdUlH+wSg9plu2Er1SzBhJU2wj9WSfxwhShNfKjOe9Cul0jpDI0hk/Cl1V6UQt 2PV2q+GfZjLlBLJguSRIuqd+qC0nmbnJIgSO2DC4u2zmLq7R9u6sN8y1mullDfZTm1 47tYhx3uPj0wmmaZV7ArWxgMhrgKh3jz/i3AucsqOGlQdsKIkt+LGVbDhA5eRzlrVX D2kQCfd54mO6pXJhqFiH3KqscVbnUj/oDJCrSBwTh4Oz+z6Ul6B6y81r88Vhu1A69P jeG0jQtFYwafrk/+TMtIyAEOttfVYJqQUEePKOdIlriH8KHrZ/0HxooyiY0OomwOAs tkd32TsQDs6GA== Date: Mon, 18 Sep 2023 22:26:11 +0100 From: Conor Dooley To: Kwanghoon Son Cc: p.zabel@pengutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jszhang@kernel.org, guoren@kernel.org, wefu@redhat.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, inki.dae@samsung.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v3 1/3] dt-bindings: reset: Document th1520 reset control Message-ID: <20230918-4ef7f52da269f3a7e4023bb3@fedora> References: <20230918045125.4000083-1-k.son@samsung.com> <20230918045125.4000083-2-k.son@samsung.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WE881O0NIJLSEjS/" Content-Disposition: inline In-Reply-To: <20230918045125.4000083-2-k.son@samsung.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 18 Sep 2023 14:26:28 -0700 (PDT) --WE881O0NIJLSEjS/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 18, 2023 at 04:51:23AM +0000, Kwanghoon Son wrote: > Add documentation to describe th1520 reset device I would appreciate if you could add some information here as to what is missing from this - the reset controller isn't just for two WDTs is it? >=20 > Signed-off-by: Kwanghoon Son > --- > .../bindings/reset/thead,th1520-reset.yaml | 44 +++++++++++++++++++ > .../dt-bindings/reset/thead,th1520-reset.h | 9 ++++ > 2 files changed, 53 insertions(+) > create mode 100644 Documentation/devicetree/bindings/reset/thead,th1520-= reset.yaml > create mode 100644 include/dt-bindings/reset/thead,th1520-reset.h >=20 > diff --git a/Documentation/devicetree/bindings/reset/thead,th1520-reset.y= aml b/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml > new file mode 100644 > index 000000000000..49ea8c6a331f > --- /dev/null > +++ b/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml > @@ -0,0 +1,44 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/reset/thead,th1520-reset.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: T-HEAD th1520 SoC Reset Controller > + > +maintainers: > + - Kwanghoon Son > + > +properties: > + compatible: > + items: > + - const: thead,th1520-reset > + - const: syscon iDumb question perhaps, but why is this a syscon? Cheers, Conor. > + > + reg: > + maxItems: 1 > + > + '#reset-cells': > + const: 1 > + > +required: > + - compatible > + - reg > + - '#reset-cells' > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + soc { > + #address-cells =3D <2>; > + #size-cells =3D <2>; > + > + reset-controller@ffef014000 { > + compatible =3D "thead,th1520-reset", "syscon"; > + reg =3D <0xff 0xef014000 0x0 0x1000>; > + #reset-cells =3D <1>; > + }; > + }; > diff --git a/include/dt-bindings/reset/thead,th1520-reset.h b/include/dt-= bindings/reset/thead,th1520-reset.h > new file mode 100644 > index 000000000000..ec10751814e5 > --- /dev/null > +++ b/include/dt-bindings/reset/thead,th1520-reset.h > @@ -0,0 +1,9 @@ > +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ > + > +#ifndef DT_BINDING_RESET_TH1520_H > +#define DT_BINDING_RESET_TH1520_H > + > +#define TH1520_RESET_WDT0 0 > +#define TH1520_RESET_WDT1 1 --WE881O0NIJLSEjS/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZQjAcAAKCRB4tDGHoIJi 0n1CAP4m0yajHLa/MSox0QSJHmD92CP5eFO1xINILg9LNE7KowD/edgItl4xdrao dBqNau3d679aFegrxyqICNRrYm8figQ= =9Hl8 -----END PGP SIGNATURE----- --WE881O0NIJLSEjS/--