From patchwork Wed Feb 21 16:41:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen via B4 Relay X-Patchwork-Id: 204318 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1155706dyc; Wed, 21 Feb 2024 08:42:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUpQjzpYZ89lnzQkuxDdVSB0tbMjCH7J7ama+piDJOe2gHaq8LPM3z5cFiq9yBbIEOiDB4bTgJxvpM7T8KuY7piBMRwxg== X-Google-Smtp-Source: AGHT+IENyKwZKngaqpBEu7g9DMap2kduZ5wDE/pvPdk/TXFzeF/v/P4jh06fd+b3lML61sbG5BKP X-Received: by 2002:ae9:e909:0:b0:786:647f:26b6 with SMTP id x9-20020ae9e909000000b00786647f26b6mr18856079qkf.62.1708533774568; Wed, 21 Feb 2024 08:42:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708533774; cv=pass; d=google.com; s=arc-20160816; b=hT+eFpnQM8zcYRDlgc0Hcfj09IgxDMf/VGzZmS/uFKAD55pGSRG1iUs+NHHop4oYuV uYTxHlg2op8Pr2VQcfxq9QhxsBqqTnH+I0dSTT6cddSP90VcI/qa0vcADqYbvHXIkmWZ z9JaqJVgAQTq64HpdncyGV0o+Px5aYrMR4Xjs3njxhMi18qkZZrL0QtlTbB10AQFjby0 ZiEl89U5ONUwlopiWgN7WxjB8abD+qEeKet1Vz6Ec6SLiCbvDrnosEhE28kuhgUFPDEF bALTQyFKpVAv8aA8H4yCAxFZwzqUvsLWiNw4jxhMJkzS9xJvoVBq5voChd4XZxzj8Bfk f10w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=5A0XycIk19B39yemi+NfhcaUpb34Wj/V/GPpT8FzMCg=; fh=61jQp11ptjJt97TUxWe8+hyuLMCiql6kVojnsyhWm9A=; b=mBJyU+gfaw5KIb5Ct88EGgQc0slP4a6AZWYDzild06bk/lA13ru5B+kkRcS2x4e4sX GI3Y7+oX+DvdFDfrp1D/VkvbCqD52WVdzM9qVNTzoaa9OZr7kM9vVQT+dn3PrH4IzBpk RxYZl/p1rqIkxsmytMB3o0t+/noLuKD3FU7U7ZyDVMmjEbgQLYuAxg2dwC7f9PatcL2E amRd4Z8dcObCpWXdnMBYh6iWb8iABsrC39dTbrcQUDxG0hNnFz4UVlu3E+zpr+ZrJuyP F86Jbfubt7axJvrjrieikzpbkoAG8Ss7RPTDBSaVssrckAsWdG1vS4wZ5gXWd+pg0SmP tk4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="RP/ftiom"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-75124-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75124-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d2-20020a37c402000000b007873af533f2si10829401qki.508.2024.02.21.08.42.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 08:42:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75124-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="RP/ftiom"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-75124-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75124-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4BAC61C2146E for ; Wed, 21 Feb 2024 16:42:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7368185273; Wed, 21 Feb 2024 16:41:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RP/ftiom" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94D7E79DAE; Wed, 21 Feb 2024 16:41:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708533681; cv=none; b=G09L3rnymfBJ+QGK9YehSYfz6DRJbgGl1DVY/KLHWDNJ86djIZ0a6uTAR7r0DIsb3QcmCDNUnaJ5fk6liONsvfflUzZ6FA0STyROPhC1Ab60xvZ+I9lJHk/Yv1JO3Qdsw5fh7kv/+mRwpiiP7Ad1CoznfZFNQzx0CWhuXglp0Zk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708533681; c=relaxed/simple; bh=X+fk+3XslbjTnKyRgSxAmue6mFFlJmgxgQznW4Xq0rA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ba5jOdrsV0lhqm2ZPwk3TaimOXPR+qMah904Tv1rWGBam1X4/WMV28D8OeUiN92qFNTf42mHa7jzq7ygG2pi/Jk1HCUCe8gEQ2FFJe6maJWBpGQXfoj1ojFVUUkH/7OOfr4MdovreD9do1arPB9+yz4eKqz5Wea0nIka0CPl1L0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RP/ftiom; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 39F83C433C7; Wed, 21 Feb 2024 16:41:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708533681; bh=X+fk+3XslbjTnKyRgSxAmue6mFFlJmgxgQznW4Xq0rA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=RP/ftiomqnenfJJKvEKnXjwk+n89r33RqZ+GmIjqZGEWupqGtH40WAD1wVolJYPr0 voXiLHMRCaxx4xLolZwChucC0QugReyxuxxjk5r7OWavKrQPCIS2JrHujN7SJcor7C PR4jyKrWTjj8ULnHQCF/hNBPlZfvlPLgtNwaBBFXHP3lRjpDGMFee6de26vQIPdGJz HjqunMH6hDx5S+Cj/JbJQIDLOX0DY2rrVLfQDLXZVK+XTufqfRz5M557bF55kvIcsJ cL1Bxz6VO40PcBsY1UygcwtVWNluUEcq8GXUKbINtoF+nlm4YeEjxdKVAyak/fXi+P R0HIdzw7X7acw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 225A3C5478A; Wed, 21 Feb 2024 16:41:21 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Thu, 22 Feb 2024 00:41:04 +0800 Subject: [PATCH v3 1/8] dt-bindings: clock: convert hisi-crg.txt to YAML Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240222-clk-mv200-v3-1-f30795b50318@outlook.com> References: <20240222-clk-mv200-v3-0-f30795b50318@outlook.com> In-Reply-To: <20240222-clk-mv200-v3-0-f30795b50318@outlook.com> To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: David Yang , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Xiwen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708533664; l=2410; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=e4ZAxJ8Lbk3HDBssdHe1QUVePLSWlZsNs3s4SArOgJI=; b=o0WcTEzhdU8xHqE/WOiTDhMlymGeAJSbT0qbwwa5mbHfJSLvNwLBA6ccO8D9OH4BioeTEAAGN HxVrA4cSw0tBzTfglLHLXYj3jscBdrScWngkPryQiHRP/8l7zCccLUQ X-Developer-Key: i=forbidden405@outlook.com; a=ed25519; pk=qOD5jhp891/Xzc+H/PZ8LWVSWE3O/XCQnAg+5vdU2IU= X-Endpoint-Received: by B4 Relay for forbidden405@outlook.com/20230724 with auth_id=67 X-Original-From: Yang Xiwen Reply-To: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791527511183350821 X-GMAIL-MSGID: 1791527511183350821 From: Yang Xiwen Also rename to hisilicon,hisi-crg.yaml. While at it, add "syscon" and "simple-mfd" compatibles to match the existing dts. Add reset-controller subnode for hisilicon,hi3798cv200-crg to match the existing hi3798cv200.dtsi. Signed-off-by: Yang Xiwen --- .../bindings/clock/hisilicon,hisi-crg.yaml | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/hisilicon,hisi-crg.yaml b/Documentation/devicetree/bindings/clock/hisilicon,hisi-crg.yaml new file mode 100644 index 000000000000..2cf21cb5ff27 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/hisilicon,hisi-crg.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/hisilicon,hisi-crg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Hisilicon SOC Clock and Reset Generator (CRG) module + +maintainers: + - Yang Xiwen + +description: | + Hisilicon SOC clock control module which supports the clocks, resets and + power domains on various SoCs. + +properties: + compatible: + items: + - enum: + - hisilicon,hi3516cv300-crg + - hisilicon,hi3516cv300-sysctrl + - hisilicon,hi3519-crg + - hisilicon,hi3798cv200-crg + - hisilicon,hi3798cv200-sysctrl + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + '#clock-cells': + const: 1 + + '#reset-cells': + const: 2 + description: | + First cell is reset request register offset. + Second cell is bit offset in reset request register. + + reset-controller: + type: object + description: | + Reset controller for Hi3798CV200 GMAC module + +required: + - compatible + - '#clock-cells' + +allOf: + - if: + properties: + compatible: + not: + contains: + const: hisilicon,hi3798cv200-crg + then: + properties: + reset-controller: false + +additionalProperties: false + +examples: + - | + clock-reset-controller@12010000 { + compatible = "hisilicon,hi3519-crg", "syscon", "simple-mfd"; + reg = <0x12010000 0x10000>; + #clock-cells = <1>; + #reset-cells = <2>; + };