Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp229969lqt; Thu, 6 Jun 2024 01:38:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV2vmXV3PbZ2BVQaaAiRAfu6JAX0rLO2XSbCJGjW7MEVq4wDWT8f8qQHjS9Wr7rKDlu4XCpZ20Ag6b40rnERO2DEpNYB5qHayXyilztAQ== X-Google-Smtp-Source: AGHT+IEG26kNlH3YqnmBAx+Yw3LH+RaU0vCgyTV15+66en3I6RILilpqf+G62Ab0WsNZOCOg6X4W X-Received: by 2002:a05:622a:2c5:b0:43f:f4b2:58c9 with SMTP id d75a77b69052e-4402b6e6edcmr60903341cf.65.1717663109723; Thu, 06 Jun 2024 01:38:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717663109; cv=pass; d=google.com; s=arc-20160816; b=YGVLVFYIXZUsaSGkeT4yBaova+f/zqxFdwS9nr/XGUeBPSfd263tkDbN/TmNc6JSoL VIE6L5dofVn+orgKguAne9K0duoJndxlO6D6OdPQ/dlQvTyeZNR1mje2Pk4Kjd3petAd 6BbuFUMUFOuIr35qQdTeJkP91QADUesUF5RDl+o/IIwm7xLS4SaS6Y42v1caR/NdBRsu GN1EF1YD/V+mDG/TWxYAuMj01dCB06B+I4XuWPCb1lonqlSc1DjyqFDjHahD63r/hVBx MeJFnjC+UBTRXmqBBy+WMoPyTD/lyHjKyh8cCkT8zGzEMMRjniW3A2d5+kYjGjjUsrvM Fr9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PN8Ys2aOQntChQ4GtaoxJ/3s2pQju6kNm6fRZuDzLwA=; fh=t9ZCMHeYo2fak6cP9q76cqVEkDEFcZuceHkpfuXX12U=; b=tXKzHO14NjDHdAMKqDYw6OkOaBVNP4u64Qa9qHtZ5nzyg1t88DCAu7UQ1wdwwYcHam IXIXrVIn5QP+7mfZiZQElKOH58bVBbWyeRt7Zrh6gayPkEcaGV3ZTDpyCVZR7u38e7Th SzV9PNFVP7gW2Z3bbfI/ynL0JnYzvqGiVIX43Z9UtFF1YJezKtbQOh4t/DB93OPfgOUX AgmpHVFsJI4tV/IhWs0TWc/jjrCBK8rc6J/aIkcmqnd27tSXSv53tfOw7xHDx2Ouvs32 SyHaPog7a9srDCvhu0t90mgCIot4eFll1oeRiBggFCpmoXitok5MiVTOK5wzRHXC6BM4 reCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=R3SBD04A; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-203844-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038b16928si1647181cf.366.2024.06.06.01.38.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 01:38:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203844-linux.lists.archive=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=@gmail.com header.s=20230601 header.b=R3SBD04A; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-203844-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 7B83B1C25185 for ; Thu, 6 Jun 2024 08:38:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACCD713DDD2; Thu, 6 Jun 2024 08:36:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="R3SBD04A" Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 575E313A418; Thu, 6 Jun 2024 08:36:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717662996; cv=none; b=IxIb0Jg/rFwCo7Gto9BdvI6AzPwYbnjHC9UU1DS9cL4V1csfnzuC0G726K3BtXX6wxfTqC/EbVTiXUDxo8RIjj3zRqWuYvad8ZdBDKNachyL20D0Ewlj7EKc1RYdvyavD2DUsy5oqPITWFUUESYsWQobWSH7S+Rb0Om0MKuATjM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717662996; c=relaxed/simple; bh=epuSjPaOnZBTy0eZREg1ERtEbtPRRgAf/3MDZ+G7/RE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=QQYJ7WRp6OSrXGGkQgOgnZgdJXcjGvrS/2MVxG7tIFiQxaOrHQYrhUWh4Q2h+Acn7y8p2S5eBVUS9ZJNcK14lPwIxQ9XModwhnWhs/lThYmncma14X4m4ZUFl1BoLPY/1NtGfFqIBSrtxP2gwooi9a9sZYScooKgAEi8GNXLJ+A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=R3SBD04A; arc=none smtp.client-ip=209.85.167.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f175.google.com with SMTP id 5614622812f47-3d20b201179so261525b6e.3; Thu, 06 Jun 2024 01:36:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717662994; x=1718267794; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PN8Ys2aOQntChQ4GtaoxJ/3s2pQju6kNm6fRZuDzLwA=; b=R3SBD04A+Td676MwNw8FdHm4bQbC4mxPvynCcB7I9+1aI/V080B/PDskk/fPTCxnF2 sykzieS/g3w5RY1OUGwv7TAFh7oE+GBM759FPMQhOV/tYI8MTpLgjTI6qvva9e7tXMAO sV+gD6WmvAyRn8NwFeOersc+Btm0qojYvfpC3QMuAZFA5nDKn0+wnrII6MFe830qZe7b g4nE1CrKL5nST/OEBMtnyeaU5lokn0UHuAG3YtON/pVHN/ZUBGY8wquEWGrPjNMLO3sY 9bcsoFmEr0SJ+attYd6Sa8P4aQFkjH3b1pKpVGE/Pgznn257wl7b93qHvcfOgsAfNsU3 v3qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717662994; x=1718267794; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PN8Ys2aOQntChQ4GtaoxJ/3s2pQju6kNm6fRZuDzLwA=; b=HPx8Lh9PmLoDzry9ownlnCV5syZSyI8e94i/b96d59VCva9FpJvWXzR9uCQwFUn0ja r2RefDJs5ItIvemnHjUPni0EfAn9sqlNNIxt+voi4rqCAFHp6wqiICf4ZJX7Ggt++yqj zIPlgejp1msF5CvHy/1Sa+oPsyA/QelOqR04q9zP0O2ZyI1AGXEO09bvgfNUVujJhorb lUGhujQJqyni79r3has7rpvfxzbcCr3lsoSzga96RMTdO4kGoanNZrQhfW5zBTHA8gor NHgGFirBHSoH5nlfSEBEEYvgyNMIGEusTl5D6PzRpGlXyUHodEcjn9dvai3uGsDvIFeq LuVQ== X-Forwarded-Encrypted: i=1; AJvYcCW2Z0icu5og2zNwsyWfiUOqaYs/0ONP/C+pCohSB1dRjVLri3CxbvwmW+qr7eGdbgrFGa0BfUTof4YPqenGQZ6Q2v1QXxVaLCIwYCHrCyhN2dgkDMGwSAJmtBOOB8xQH64TgKo9emsNrJ45ZpjN6FNR/ZjziYrI/sUDQXPeiTYZri76Uw== X-Gm-Message-State: AOJu0YxAF0ODBtcrfRmCkUPsMWQtu4SSwM07Ui0VLiwiUbf9ph+QzM03 3INbuteWaOMVLQpfNtyyU9CQF8T0ho8CBTTNdD8ecj+vnTXU/kQ/ X-Received: by 2002:a05:6808:484:b0:3d1:fdf5:a88e with SMTP id 5614622812f47-3d20429bfb1mr4902099b6e.21.1717662994256; Thu, 06 Jun 2024 01:36:34 -0700 (PDT) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3d20b69f240sm176572b6e.31.2024.06.06.01.36.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 01:36:33 -0700 (PDT) From: Chen Wang To: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, palmer@dabbelt.com, paul.walmsley@sifive.com, richardcochran@gmail.com, robh+dt@kernel.org, sboyd@kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, haijiao.liu@sophgo.com, xiaoguang.xing@sophgo.com, guoren@kernel.org, jszhang@kernel.org, inochiama@outlook.com, samuel.holland@sifive.com Cc: Chen Wang , Rob Herring Subject: [PATCH v16 1/5] dt-bindings: clock: sophgo: add pll clocks for SG2042 Date: Thu, 6 Jun 2024 16:36:25 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chen Wang Add bindings for the pll clocks for Sophgo SG2042. Signed-off-by: Chen Wang Reviewed-by: Rob Herring Reviewed-by: Guo Ren --- .../bindings/clock/sophgo,sg2042-pll.yaml | 53 +++++++++++++++++++ include/dt-bindings/clock/sophgo,sg2042-pll.h | 14 +++++ 2 files changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/sophgo,sg2042-pll.yaml create mode 100644 include/dt-bindings/clock/sophgo,sg2042-pll.h diff --git a/Documentation/devicetree/bindings/clock/sophgo,sg2042-pll.yaml b/Documentation/devicetree/bindings/clock/sophgo,sg2042-pll.yaml new file mode 100644 index 000000000000..1a417a627dd2 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/sophgo,sg2042-pll.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/sophgo,sg2042-pll.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sophgo SG2042 PLL Clock Generator + +maintainers: + - Chen Wang + +properties: + compatible: + const: sophgo,sg2042-pll + + reg: + maxItems: 1 + + clocks: + items: + - description: Oscillator(Clock Generation IC) for Main/Fixed PLL (25 MHz) + - description: Oscillator(Clock Generation IC) for DDR PLL 0 (25 MHz) + - description: Oscillator(Clock Generation IC) for DDR PLL 1 (25 MHz) + + clock-names: + items: + - const: cgi_main + - const: cgi_dpll0 + - const: cgi_dpll1 + + '#clock-cells': + const: 1 + description: + See for valid indices. + +required: + - compatible + - reg + - clocks + - clock-names + - '#clock-cells' + +additionalProperties: false + +examples: + - | + clock-controller@10000000 { + compatible = "sophgo,sg2042-pll"; + reg = <0x10000000 0x10000>; + clocks = <&cgi_main>, <&cgi_dpll0>, <&cgi_dpll1>; + clock-names = "cgi_main", "cgi_dpll0", "cgi_dpll1"; + #clock-cells = <1>; + }; diff --git a/include/dt-bindings/clock/sophgo,sg2042-pll.h b/include/dt-bindings/clock/sophgo,sg2042-pll.h new file mode 100644 index 000000000000..2d519b3bf51c --- /dev/null +++ b/include/dt-bindings/clock/sophgo,sg2042-pll.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ +/* + * Copyright (C) 2023 Sophgo Technology Inc. All rights reserved. + */ + +#ifndef __DT_BINDINGS_SOPHGO_SG2042_PLL_H__ +#define __DT_BINDINGS_SOPHGO_SG2042_PLL_H__ + +#define MPLL_CLK 0 +#define FPLL_CLK 1 +#define DPLL0_CLK 2 +#define DPLL1_CLK 3 + +#endif /* __DT_BINDINGS_SOPHGO_SG2042_PLL_H__ */ -- 2.25.1