From patchwork Fri Feb 16 11:37:54 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: 202098 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp450262dyb; Fri, 16 Feb 2024 03:38:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXQ6QO+CQr5qWiMJp7s4ku/7J2CYmEHpZJ+QmV3mW4wlB6qwWjCXDBYpHqjNJ23/6NyVmkjx8L02uZGIyuFekN8Q5pELg== X-Google-Smtp-Source: AGHT+IHU0QkgCy+mietxSNEXwA21z5fo5N+vzP2o+IN2W2pULHsv9c4j8Kkgn8KBuZyaYx9TjYRO X-Received: by 2002:a0c:dd0a:0:b0:68f:2c18:3b8a with SMTP id u10-20020a0cdd0a000000b0068f2c183b8amr2860867qvk.61.1708083530331; Fri, 16 Feb 2024 03:38:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708083530; cv=pass; d=google.com; s=arc-20160816; b=WE4KQxGRdgVuN1ex/3ySSHLHijKLmQdVUalhGSJ224VRHPBT8QSc928u+JSVgh7z/E i0NcVCSUPAmOPc0iQpve2sS9qTjOB9SZRkRT7kGVn7ETNY6GRBw0z39kmeOij0gfi6DK KXJuGYn/84/s5etYlhgpMWoZvdukouneCcNkvxA9ovl4sxPPH4FHU44ZuFhp8ed9kxn4 HZ40eJzbYQ1JreoNLYulutw6tVW8HlSz8zAhfZUBzroAJw0WT3VDXW9hzIIlrYIChbO8 O0nQwiKqsKrBezugnI0BQFU/VmVRfiwgs5QUJski6uhS4Vg1GEbyjaH5b593/JW+4see i1GQ== 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=jcX0ATxL8B0/QdX/P4aGrunT1TqqVP13OdgUwxAqqKd8sLE+YhCVmFPFDDTPPYDHXE P76DzH5JqSmYDKJzV9mKT4duf55aXAbeKH/NK5h3BCjRw3ksbAJ2eEfNnp/r1Y3X6HnV gDdunfFb9Z4YzlQaez8KtwhlmP+ftzE6e0Ifx3U9NrkhOPJlv+zoucgGMB/9mFuPvb2+ NRnWOKgPO51WoShdgQv0DCiJFLDfI54YzuscP0AYuLHTQhYZdDt4hlOrpgRIVlX6Zn2l TKhMt7N6NTZ0pkpEjqiauoFeQG0s+MdVs4O/EvW5ghdh1ObkiNTkPhpKXMpqz9yoJlR6 BFCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XPBYIdpK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68535-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68535-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 f10-20020a0562141d2a00b0068cccd6088asi3919861qvd.247.2024.02.16.03.38.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 03:38:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68535-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=XPBYIdpK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68535-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68535-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 04AAE1C220A6 for ; Fri, 16 Feb 2024 11:38:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1815E7993F; Fri, 16 Feb 2024 11:37:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XPBYIdpK" 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 5BA0077F29; Fri, 16 Feb 2024 11:37:54 +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=1708083475; cv=none; b=IZDhRBSNOaDshjwveKK5GXbtwQ00gQiV3e/DjTiSOoy+WD5v8KmuORsDcelrin1t347w/c5tuLeW3bHG5DTWa+ogl4H68Iu8J0XlLWDav/ckK32ZEtlyq4F63EeKOSQUognhjFs+A4TBHaPLq3AFXA0dJtiWUGf8bVMRJh5wUY0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708083475; c=relaxed/simple; bh=gqPEFDQHpu81vXVsnhzolpglZWQoqj+GnvzWjY5MgHo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nXNVll2KGNbdQ4DEoMF+WLAWPtLsTfJqJPwtDYHC8GkSAFmJgaso7iftAEdyLBbANNnu7ZVY2M7e1T/O2rH3bHf3q2p8dY6TIh6bOCTavB2p6YG/9OB0tRtfVYVlgjkgrconJhl+gmtJnjGNKqbShL1Dri3o2Uy/u5XAzjFWKJY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XPBYIdpK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id BEB9FC433B2; Fri, 16 Feb 2024 11:37:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708083474; bh=gqPEFDQHpu81vXVsnhzolpglZWQoqj+GnvzWjY5MgHo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=XPBYIdpKGU+2ZmLx5+32gxHiCHvvO6IKmoSBmreMQZ1iorNrNEjj+efxAYMHb/F+g aHLtyI2Doop1MR9VU6VNI8wVfCuFHedyMU0e23dYMrJlk1R/A+u6MzZ2VT7CnWQ/pe iwySjZ5GHOjcwMuWgPlVzCKcZUFlbWHHLyBDziXElu8ym3WhTxcZt9fgGWmkTOH8/n EKcNDPD4jL3EMx13+n29GKw5lOBMhUX7Bb3TVrVIpIj6UiiLX6cYPrkpFaxP8tOxRZ a/rL3+3/I7DbYglyHpL2WJk/i7rbJU25BN6zVxjPAQ9zh3zAkhZxL0n3tRq0EctYKk DhOMPGKycjqtA== 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 A98E3C48BF5; Fri, 16 Feb 2024 11:37:54 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Fri, 16 Feb 2024 19:37:54 +0800 Subject: [PATCH RFC 4/4] dt-binding: 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: <20240216-clk-mv200-v1-4-a29ace29e636@outlook.com> References: <20240216-clk-mv200-v1-0-a29ace29e636@outlook.com> In-Reply-To: <20240216-clk-mv200-v1-0-a29ace29e636@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=1708083473; l=2294; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=RxQshU93zhdnmZ2d/Il86mfOujovTqohz/PSfKt9R1k=; b=HeGs7bkTJR06qX5l+QDDNsx44/mocS0/PjmA9206O/LAGsmCIJOVNyiaJ6TNDvBIk1wiN9xRl zwHj4z36O6dD6EujUb+qIUvEc4k3PI1Fqfdmb6Q9aTIrSEMq8aW6n47 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: 1791055396285535143 X-GMAIL-MSGID: 1791055396285535143 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>; + }; + };