From patchwork Sat Feb 17 12:52:10 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: 202610 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp303129dyc; Sat, 17 Feb 2024 04:53:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW8SkmYxZYvsg+gwE8jvvdTjhxXwSe3QxcOME7GfjUTlDRQLndMDlKxKr1UO1H6x8TIxYwxU44ysHpc2yD25D7ylCzulg== X-Google-Smtp-Source: AGHT+IEpnWNdooz0+43BtjtrVuHKtIIK7u4wbMZU+Md+279svQes0ieNOCDit8aW+sCI0/mB1+6w X-Received: by 2002:a05:6a20:c702:b0:19e:b9a8:bc7a with SMTP id hi2-20020a056a20c70200b0019eb9a8bc7amr11423148pzb.60.1708174392605; Sat, 17 Feb 2024 04:53:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708174392; cv=pass; d=google.com; s=arc-20160816; b=Slgcj0FQDwu5qCbkYlJmVhO91m/HrosEwiq6SwL1AqMHJdiGuxsF1hf0c+HJGwH4RH t2wIPmWoZCARQ51LBrUrbC+48IgO0GJ0DDfgqi7XVZas4gWWxaa/61abEjWUnO66tkoj 1P9a1t18MnNrA4aaw9FfnOpiwV8IjUSQVPVvV2zjw50cG+oULZ9yBlehctFqVu1EVGVE XDxx+9om68jeUax5DzoOAbhv1nwUB+ECrbp90yvtW6jgFKcQ5eD8aL/m139WyUgcuo0J ee7vG59dJbX1acuNVPRxe5gLi2ZLi237IxN3MrEldpQDqChi4jMAAtZBSlrQ5+v2u2sG cEFQ== 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=gkr9rzcXoDmvFp5xqda7OUFPgSR4Oz9FjPk59Hwd6Y4=; fh=61jQp11ptjJt97TUxWe8+hyuLMCiql6kVojnsyhWm9A=; b=b1j6t1jvqyllg9puz4gM1jCEcY/AkjoTDnFrnIdHgNNLg356DbUjppVnwVBByqBEJ9 YzMsT28WDdZg3cFVmwQnTpzSpgpfqHh9GGFrPTjYqjvddfLxQtTS/Em9ymU5XpuwWhSS DlM9ugyvW+KDOUckyvGzML7HaXo23oyXaziTRwyDb5Rch07N2ZGXpQVBs16Wrvfvrovr wLqgLvW378mhsb3m7huGbQ4ed70AeZCMNg55zG7qrPV/XR7udbB/uC3NQQFglUN4bjWS wATce5eAspl/lgYjOlajf8rqjS+AVTVz9VYRX4fdyBbGUEY/2sdW2/fv/MK03TMnLauL 9k6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FZJ+9uQ+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69848-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69848-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s5-20020a637705000000b005dc9a3fa409si1499291pgc.197.2024.02.17.04.53.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 04:53:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69848-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FZJ+9uQ+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69848-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69848-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9F2BEB21CDD for ; Sat, 17 Feb 2024 12:53:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E7B0A7C08C; Sat, 17 Feb 2024 12:52:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FZJ+9uQ+" 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 37C007A737; Sat, 17 Feb 2024 12:52:16 +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=1708174337; cv=none; b=pF7E3XPC3ocd1kHgpXTPdJDobaAL66txtGwME2wHcpXKmzLoDJmrEe2bo6ul5HqB4kFAV50Y5A/m20JqBr4he5gMT/QOauqzIDlaloJfuCEJuDo93RWlzZ9o4qw7E3WMNk9T8WjnofrnLuR5EGufXcm/lhHfk1VbM2LWTrF9VvE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708174337; c=relaxed/simple; bh=gqPEFDQHpu81vXVsnhzolpglZWQoqj+GnvzWjY5MgHo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KKrtr5i89Vp/INBK63TFlqsm1WDGaBNzrJyZRtracMmfOkJBDYxbZqU1Y3aPvgkgsOYagwrMvCgAVbYwrIufutf5sPGed/mfpEw3E99axZVHo04mnLLwl0RlstS9XXO7jn8shmB9G2C7qVE2jX1X+oyQYeqMgEIxcWDb5zu9FtI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FZJ+9uQ+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id B28E5C43394; Sat, 17 Feb 2024 12:52:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708174336; bh=gqPEFDQHpu81vXVsnhzolpglZWQoqj+GnvzWjY5MgHo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=FZJ+9uQ+7mduduqlyUzNdetaZJQAwkDv2IsPAyhtUynbAipwbbgzDZ0zM+rxREyuC 8xpHW21PzohXzdF+ksjr/TSRhhzzmhw8ev69DhA8VAFXTMVzx/lMphv4TorrUuZZVv WmKwz8WJ8mixF2Dkpax6+EuT7zC9C5mx8XREHI9ydZfvAMjOlrTn23AjkXhD0NqD1k 3j42uiD10QFRTyBBYpl/9SminzXu5fbUaE4xBL7yUHJEHz3v1yLgux3oHDWdxY9x2k /Frc7jRgzJ5wTQfxs61Z74DjmSL/84JtdC6Zu3H0GMkq1VUwopibvWAFkfZ5ktxNWD Mp1/Vg/QoyIpw== 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 A4031C54766; Sat, 17 Feb 2024 12:52:16 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Sat, 17 Feb 2024 20:52:10 +0800 Subject: [PATCH RFC v2 5/5] dt-bindings: clock: hisilicon,clock-reset-controller: add Hi3798MV200 SoC support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240217-clk-mv200-v2-5-b782e4eb66f7@outlook.com> References: <20240217-clk-mv200-v2-0-b782e4eb66f7@outlook.com> In-Reply-To: <20240217-clk-mv200-v2-0-b782e4eb66f7@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=1708174332; l=2294; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=RxQshU93zhdnmZ2d/Il86mfOujovTqohz/PSfKt9R1k=; b=7dvRZcX3d6TSDhTJY4jp42UE2R0R3snYsUTJH3/tG8XNPt5ikHJjKMOziv2tFvJ4R9hTbKM4q GQyyF4aZsqOCjILRXexRS0iLS2kn1yNPw4/PcGWx86lN269nJnWHk9g 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: 1791150672048819664 X-GMAIL-MSGID: 1791150672048819664 From: Yang Xiwen This SoC is similar to Hi3798CV200. Also document the specific DLL regs and add an example for it. Signed-off-by: Yang Xiwen --- .../clock/hisilicon,clock-reset-generator.yaml | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/hisilicon,clock-reset-generator.yaml b/Documentation/devicetree/bindings/clock/hisilicon,clock-reset-generator.yaml index d37cd892473e..8ee844574eda 100644 --- a/Documentation/devicetree/bindings/clock/hisilicon,clock-reset-generator.yaml +++ b/Documentation/devicetree/bindings/clock/hisilicon,clock-reset-generator.yaml @@ -44,12 +44,17 @@ properties: - hisilicon,hi3519-crg - hisilicon,hi3798cv200-crg - hisilicon,hi3798cv200-sysctrl + - hisilicon,hi3798mv200-crg + - hisilicon,hi3798mv200-sysctrl - const: syscon - const: simple-mfd reg: maxItems: 1 + ranges: + maxItems: 1 + '#clock-cells': const: 1 @@ -87,6 +92,12 @@ properties: description: | Reset controller for Hi3798CV200 GMAC module +patternProperties: + '.*-dll@[0-9a-f]+': + type: object + description: | + eMMC/SD delay-locked-loop (DLL) register subnode + required: - compatible - '#clock-cells' @@ -137,3 +148,28 @@ examples: #clock-cells = <1>; }; }; + - | + crg: clock-reset-controller@8a22000 { + compatible = "hisilicon,hi3798mv200-crg", "syscon", "simple-mfd"; + reg = <0x8a22000 0x1000>; + ranges = <0x0 0x8a22000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + #clock-cells = <1>; + #reset-cells = <2>; + + emmc_sap_dll: sap-dll@39c { + compatible = "hisilicon,sdmmc-sap-dll", "syscon", "simple-mfd"; + reg = <0x39c 0x8>; + }; + + sdio0_sap_dll: sap-dll@3a4 { + compatible = "hisilicon,sdmmc-sap-dll", "syscon", "simple-mfd"; + reg = <0x3a4 0x8>; + }; + + sdio1_sap_dll: sap-dll@3ac { + compatible = "hisilicon,sdmmc-sap-dll", "syscon", "simple-mfd"; + reg = <0x3ac 0x8>; + }; + };