Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp43960rdb; Mon, 18 Sep 2023 07:53:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IETzz2eu2vlMEI4yRINQ1XzKEHcqIYmSiQWjr5yDl4btzUK9xAMIPncMBTh1WlY2RYKcryg X-Received: by 2002:aca:2b08:0:b0:3a7:6f16:b549 with SMTP id i8-20020aca2b08000000b003a76f16b549mr11129590oik.49.1695048807988; Mon, 18 Sep 2023 07:53:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695048807; cv=none; d=google.com; s=arc-20160816; b=iXAzoHuJX6YpWmMuZT4DFGtvqYFEuMeWSCpuusmnN0iDDr9EWL5Rd3wGea021Ry1sO Q/I3MW4Fdex7yczCmbAHtDWtHhQXHXMs04HoaPdugzhNkJNpS/PmdJucarqLCKf3njD0 8p9J4HW6Qm9JMJDQX+f9FPMNeeChxqr3qrJusLliFx4qKNookKPAsvEw1CNxAthDQ86Y SQYy1lge5G2M3/IxZWrIrZ6JwY2li/pAasYSLocg0xtdr7Th15mPywYLa/dKAu0I9Sm9 AmUFhtugTmk5ykuZHP/Ktgmb+/ZMS1kkOnl7rGdEV8ai9yupfpL7s9TuYGilYotTu+bq iVMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=g5oaDh0Uv1CkUcrELplZoNLFxDnPPigO99UnJx9kJDc=; fh=29lA8WrtUpXDmabD44HUNFwzgih+ikyNXPzwrBEaDHE=; b=PaxoLPq+U9tFQeBP2A+y3nFLxCvLR92wbWboLM7kF7rQTqIy0mvpUZlqjpHfsTNpyo DxFO+67zmq+oWweN4Ltbn4CKvvbuKCTL5Ymto/QAdmdXwjJwNGhOgK7/mhXszo1dRDMg h6zTCB9jI7TETHe+uk8nhfVTcP0IVRQvZgumYUROJrrJZz8WNJ9nJURH1mJmJS2WM+l0 b72wayNnOT6UnJ6TjKgsmibGUiZ4uFaR/Bvql7/ZaT3xSc9EbQ0afFYeEfeexJd6+MnV shy52cD8Fokw+/GrRGDc+HLeZ2cPGcMEabXWjMEDLeSQbqfqJCF4tVhQuTe3froRBxeA h09g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Pyz4GGSs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l62-20020a633e41000000b0056a8dc222f1si490830pga.259.2023.09.18.07.53.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 07:53:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Pyz4GGSs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6D20C801B41E; Sun, 17 Sep 2023 21:52:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239509AbjIREvv (ORCPT + 99 others); Mon, 18 Sep 2023 00:51:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239541AbjIREvr (ORCPT ); Mon, 18 Sep 2023 00:51:47 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B04C811A for ; Sun, 17 Sep 2023 21:51:40 -0700 (PDT) Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20230918045136epoutp03330b761ba8ff3bc51c118e841d4204cd~F5REc_eKz2963229632epoutp03P for ; Mon, 18 Sep 2023 04:51:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20230918045136epoutp03330b761ba8ff3bc51c118e841d4204cd~F5REc_eKz2963229632epoutp03P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1695012696; bh=g5oaDh0Uv1CkUcrELplZoNLFxDnPPigO99UnJx9kJDc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pyz4GGSsCkBMoWEU3pBhIGsclF4qse+mWIMXcxOYOf/69lNzHEmc7sso5bjZ7O+1V K+qDt1TKTsrBEfyUKk2O/CwQviPoqACkm/BnCMOIC+6uLNcFz3UkNq6GnLWt89ynbU dlAxRxXjzW3hnJuGmrl12d+ckzOt/tD6T5GS7xMg= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20230918045135epcas1p1659ed5fa554b51528dcd6557bab97e38~F5RD91N9H0405204052epcas1p11; Mon, 18 Sep 2023 04:51:35 +0000 (GMT) Received: from epsmges1p5.samsung.com (unknown [182.195.38.235]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Rpsny45h1z4x9Pp; Mon, 18 Sep 2023 04:51:34 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id A3.84.09567.657D7056; Mon, 18 Sep 2023 13:51:34 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20230918045134epcas1p1b80b338b66512a976c3783cd0e51da50~F5RCU3sxW0410204102epcas1p1H; Mon, 18 Sep 2023 04:51:34 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230918045134epsmtrp1cd3b3cde5ec76d00910563cc24961421~F5RCT_gz71969519695epsmtrp1h; Mon, 18 Sep 2023 04:51:34 +0000 (GMT) X-AuditID: b6c32a39-6ffff7000000255f-af-6507d7561ea6 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id C0.94.08788.557D7056; Mon, 18 Sep 2023 13:51:33 +0900 (KST) Received: from mediaserver.. (unknown [10.113.111.131]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230918045133epsmtip1ce5b0b263b40cc2b6612f1be498e1f91~F5RB96QLb1742617426epsmtip1h; Mon, 18 Sep 2023 04:51:33 +0000 (GMT) From: Kwanghoon Son To: 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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v3 1/3] dt-bindings: reset: Document th1520 reset control Date: Mon, 18 Sep 2023 04:51:23 +0000 Message-Id: <20230918045125.4000083-2-k.son@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230918045125.4000083-1-k.son@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEJsWRmVeSWpSXmKPExsWy7bCmrm7Yd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fMr4k//rOqhbKNX/Li6M8j/c6/Uw6zqF3UF /xiNv7CdtOfodHTimH+d6dzGlZdWaX87WxyjN8es8Oa1myXPMpN0LgVdnCJYK6zRUdEy/0mD 0HXDvQUvp755pBwndLUtQ+VYTmLywUNOT4NuqS4wXnLvoMX7E2+vNyqxFGckGmoxFxUnAgBC hs+NEAMAAA== X-CMS-MailID: 20230918045134epcas1p1b80b338b66512a976c3783cd0e51da50 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230918045134epcas1p1b80b338b66512a976c3783cd0e51da50 References: <20230918045125.4000083-1-k.son@samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sun, 17 Sep 2023 21:52:29 -0700 (PDT) Add documentation to describe th1520 reset device 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 diff --git a/Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml 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 + + reg: + maxItems: 1 + + '#reset-cells': + const: 1 + +required: + - compatible + - reg + - '#reset-cells' + +additionalProperties: false + +examples: + - | + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + reset-controller@ffef014000 { + compatible = "thead,th1520-reset", "syscon"; + reg = <0xff 0xef014000 0x0 0x1000>; + #reset-cells = <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 + +#endif -- 2.34.1