Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1270642lqp; Mon, 15 Apr 2024 00:38:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXwwzXL0Q9ZDVFtZpK1r59xeM/AJeCIY9bE06AR104cJwfOjLOKJuAUkqkWdinR/o0abwWT/2a+jesPlEbppr3Uri/5tqXD7bhF76qvKw== X-Google-Smtp-Source: AGHT+IEP6L83tSn3Wo5WbVak8TmjPZE80e1QJLquiJvwBncqohbtBTfcuHwb0+BjCNqGY92rpS1p X-Received: by 2002:a17:90b:249:b0:2a0:4495:1f3d with SMTP id fz9-20020a17090b024900b002a044951f3dmr10161149pjb.0.1713166692476; Mon, 15 Apr 2024 00:38:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713166692; cv=pass; d=google.com; s=arc-20160816; b=dGc9PUucCCFU8qMxs3BH+pKesSxHzYX6VyDJbTmbGx4Nb5daknJwv3TY0l/H+kwiKe d0oMZ3bN5AVZNZ37Zxn5HbFJIH/wsVeTilp41+dXH4hq9R3Jw9ewdSw/EW1lroJoNaBa Q/i8iFNIMojS0SBzaFaDEmbtCHLn1KYCG1FjEVosEXdINJ1+18HCarc1RQNGuXVmsBcl /bhj4kqKeK2cu7Z3r1fsoB6bKUoBPVVwP0t70aoG0di0DPMaYNGzZBLz1b9hV/jIgWXr Ep1Rhk9qomRTsdVLrclVW0J/jDWwx6mdCMVvNP+9Cya95TIO6jSKA8JoEXxr+sKiPtbb OqpQ== 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=FvyDKytI3LByIiwfwmYUFkoNWJX9ByqcE9gyEaLOuuM=; fh=lNlw9KpGF7CbdWFF7Es7c0iqSfBzkha1VObxzcjXQ1c=; b=CDwO+23OAN8VMpsWOgGmjattnb6BBmfnAzZWBRIYNNOrE5PN0LTzy++JrMcP0Ec/FF gNYYYNXiEFXAV/ciGFdED6OUcVIjCigsdzW14dXLpqce/mC+AnEDVzXwD6CYVmMPe6RI K0002SSB5RzvrY4toNeHoMhKYm1RymYFuE5PBAuQvYLRbt2N+hVtiyBPfCSgYwbaMDo1 cpGYN+Ob1aT7vWOPTq6YRQNt/UjSk8lkB1ngLPkIz/SuJpyne1tSP5AJpSJAJ3Giarrg O5CtIuTZHQGQzrLN9UbEyhpXY+Cls2j5WIoNCQJtiVVeDPSNit3AyocrQaZ3IPcVflbH AFCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OPZ73lmV; 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-144660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144660-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x15-20020a17090a1f8f00b002a2445b917bsi7614204pja.77.2024.04.15.00.38.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 00:38:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OPZ73lmV; 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-144660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144660-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F0817B251BC for ; Mon, 15 Apr 2024 07:22:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A21C322EE9; Mon, 15 Apr 2024 07:22:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OPZ73lmV" Received: from mail-oo1-f42.google.com (mail-oo1-f42.google.com [209.85.161.42]) (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 68D272E620; Mon, 15 Apr 2024 07:22:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713165751; cv=none; b=ku5ffH40SMB98ym7xh9X1+EDSS3XNibwxcpqz00UsvaPN5rWPE+M65melqwNnfgjqp5gTPB6YR4JoF0P6YZa2EfIIpCzCaxm5TEnT9Am11ACramRNp9EcCCdZiFHb5eBxdsH/Bp6mxSV4PuB1Fi4sXnezSqv2jo+ttEnu2PtLOQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713165751; c=relaxed/simple; bh=1z2DjnnEUQ8VRVOOj7bX9GFcbA+wqEyxADFf3p99mzE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WnU+AmS8ICw9+jKw99xbAC8nQoLeZXHbysqj3BSKT/+oEE54n6icghF053nKb+MAsryh0ypnn+APvvYcJciloLFZJIe7VpY0rISe47FlrIaM4GOraEBNsbp3W3Y8T+Gvlml4oIQHVJo1sxzXQ412pWAwGmWbr8FFJnZk5sAX9Uw= 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=OPZ73lmV; arc=none smtp.client-ip=209.85.161.42 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-oo1-f42.google.com with SMTP id 006d021491bc7-5aa1b7a37b5so1977439eaf.2; Mon, 15 Apr 2024 00:22:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713165749; x=1713770549; 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=FvyDKytI3LByIiwfwmYUFkoNWJX9ByqcE9gyEaLOuuM=; b=OPZ73lmVeDDHRsS6Dp1gPRpJvhrtD66t81yl/euZoCLacplKu7pj8iAVvMJoH4uIUo OI2BAZhhowh8k3R9BIY3AlHpOp+sCSXwF/X2SfSb/ZI2kI6Xb9bdlQWUtrZUQc5UXyP9 FbzBFHs4TSPbJDOhH35X3P9IQ1kKX6B54X6Wk6SNYba+aE3ndPzfT+0Z0olpyqRZHAFJ zZDvmqBGPjFwZ9wseYi0t8d4f+GODCd3dC42dWAqc5FtkJDDsZ4s4DPH33iHF9BrS3/p k+E8yAfqkC0MUQBOz1ODpKm8Rs8WZ8bGq3w6HUuQ8SXBQmdxckbqHJvHogp0juy9fPYM h9ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713165749; x=1713770549; 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=FvyDKytI3LByIiwfwmYUFkoNWJX9ByqcE9gyEaLOuuM=; b=P+Zze7vQc5dywOQM/wQ4tdtGqV2BMY5HQKNEbSit3rOXMo2Jey87DiV4pr2dQcpcrm YfzezZNNAqqsfz+KJuUlMiNTwkelnkmeiJIixbj5hbYcTxqNlqGksPLIx8ez4MOBzLjC pI3iVSh2GczTYO67DP4f0l/wienKp2R8qxLsq86Ctqn2y98nxsElPbX2wh/oSxbqWHjn shlEncvtUbJcb6hJR9SLdcPr3GXbwQKFGH7FqUVb3MDOmWIlQJ2mdcEGH8YCB4POTqGv tsX/p5t8UofB80RdtS2TbMltsEt1Pq0bDWAlr3Hw/w3FvTDypInGj1Kh5oJL/5CPZHuC Mckg== X-Forwarded-Encrypted: i=1; AJvYcCUTGZpsI+6heO2cbOzLnZTzychUKeh/xj0Nst5CLVm0Wp/dX8ON/3RIignmIgtQ70WMQopEdE2CjEdXgbAlP/79K3jbfHBujEOCBeb1KzlyLHO0yG3H/WV+diyXxjo2jp/M4QBHaLFG3CeqvBLGaREqMvYDyfINPnYSmwIEA1z97fAEPQ== X-Gm-Message-State: AOJu0YwQeGBX+kh8CMCB5d1oPgWaD7LX8Qe842vfdhiLlXAKmZbu7Yau eHECGrunZGpvWnvAsCxq9R5akLnes7OEFU3ctw+dK1IarIwzSapX X-Received: by 2002:a4a:8c0c:0:b0:5ac:bdbf:8a31 with SMTP id u12-20020a4a8c0c000000b005acbdbf8a31mr115405ooj.8.1713165749474; Mon, 15 Apr 2024 00:22:29 -0700 (PDT) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id bw16-20020a056820021000b005a588e72c3bsm1967615oob.9.2024.04.15.00.22.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 00:22:27 -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 v14 1/5] dt-bindings: clock: sophgo: add pll clocks for SG2042 Date: Mon, 15 Apr 2024 15:22:18 +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 | 45 +++++++++++++++++++ include/dt-bindings/clock/sophgo,sg2042-pll.h | 14 ++++++ 2 files changed, 59 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..b9af733e8a73 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/sophgo,sg2042-pll.yaml @@ -0,0 +1,45 @@ +# 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-cells': + const: 1 + description: + See for valid indices. + +required: + - compatible + - reg + - clocks + - '#clock-cells' + +additionalProperties: false + +examples: + - | + clock-controller@10000000 { + compatible = "sophgo,sg2042-pll"; + reg = <0x10000000 0x10000>; + clocks = <&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