Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp894076lqh; Thu, 28 Mar 2024 23:20:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhY7myJDvU1dE9Hkj19dLbSXI+0KcB/LL793cM/D5WDpIs4j4XT9HqIdiSgRldDc/r7GnJkAnFdl6aIB8Y/vWD9aMPr07ZbbHKfw5Qmw== X-Google-Smtp-Source: AGHT+IEFJftzJgXybQNT9NreQrQxL6N92VyxLbPRrK4N5SpbK27xJc7VTzhbWVpAsM5G81XanmaF X-Received: by 2002:a4a:d555:0:b0:5a1:1639:97aa with SMTP id q21-20020a4ad555000000b005a1163997aamr1110679oos.6.1711693255014; Thu, 28 Mar 2024 23:20:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711693254; cv=pass; d=google.com; s=arc-20160816; b=ZI4aoaqhDaHDc1GNjnNzJRQRpMaGkxGmN11W9ovJL9jh/HnnkOaS6VkVz8bdQnYOij dkWD3ZmvxOE8ERn2pG7hUnJlqhhIYH9wf1ijE6CLCNWxS6wNOD59Dz6Yrw3F2+FxisBk mNbWZvQDWmtqZyr3aeB+abgYiEz44sRVDO4wZMtmiydRm/i3zKvBvi3qUnvG1RbeMx5I 4ynQ+VHVBGtT5IiUiKszw2VyLEqY61BMC8c7EcFrw2zamE1eTrc5QtO6m/HI7Pxx2aML 9/ca2Vg47z6bo+aD/YHt4hPn/gMRVz1X4kxj4YrTssqaVXXWJwQWUJHOtXMvZej0DAE/ Y+aQ== 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=S6rgs+KXX1XE60m5F3Ur5SeA+zm1mrJFMkiO9WF4gfE=; b=GR3K9IOmS0zFNDViUMQzL4JG/atiiRD5rORMvma2woN1QzotgKw2wrnqBPyvgpgOIG grB2ZKL+T67nechulhp1Lvq8irBUMJWM1kLeRakZ3RUvnY8o2mfTryQdtruO65SKDkPH c9yf6hYh8UVL7qposlpM30NkFpUdQQMo3Y+eazcJ5PtyfMrbTUrz1Fz/+ddn54zCvrIM 9FDI154x3Ng49yEsrEE+bw1Ot1nhPAACeBqAFvOiLJeFTRhwOUAcRukMfsjud4J3dbld xKptrBA+2QyqtXnWFoqDcC0aYd2PpiPOehtYUL3sm9fRJhigtUPlzZVSszb80dHdGf87 y7Cg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=awM3v684; 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-124190-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124190-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. [147.75.199.223]) by mx.google.com with ESMTPS id v16-20020a05622a131000b004313ae19b00si3020104qtk.388.2024.03.28.23.20.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 23:20:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124190-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=awM3v684; 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-124190-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124190-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 A772C1C238D3 for ; Fri, 29 Mar 2024 06:20:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9232A3FB35; Fri, 29 Mar 2024 06:20:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="awM3v684" Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (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 4871B3BBFD; Fri, 29 Mar 2024 06:20:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711693245; cv=none; b=MQhuBvC/B6M2zDVr8TW6MPiVSjcx/80iOTFKhPjHPiLQnMH0tTSWB6AHDdSc3Kf2/W1zRI09ZvFUqYCnERh/tQHu6rutTVspWAjwwOtoXxfvsyKAMnWv26swZQMoQ+sxmZHg8sC3ohw3w1tix/OowPY6my3DBHn/CXsioXeM6V0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711693245; c=relaxed/simple; bh=1z2DjnnEUQ8VRVOOj7bX9GFcbA+wqEyxADFf3p99mzE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=sDqcv0JyRWMAg2gMRx+GXVdNzZ9HPg5uVTxexI4lPW137T0QxNYQuqHfpEFN5HSSJoPu+2qUGo5IE1S26bs7dppKzWX12zjPlwVKr80lSuvdbU2GsAIKZfOMPfuzczfgtou7j6Yy3Qde0BG3+mhY6S5G96Kb1LHbvHss0Fs1Hos= 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=awM3v684; arc=none smtp.client-ip=209.85.210.50 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-ot1-f50.google.com with SMTP id 46e09a7af769-6e6b01c3dc3so970077a34.2; Thu, 28 Mar 2024 23:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711693243; x=1712298043; 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=awM3v6843pF2QbyZNYEya13y+UK2ZK0g+Z6AAwB7j/39dD8IvLODXm6lBzTT2cKyQp 9zmvfg+2I84tdXwc9nlpegQ0TNLRiUE7Iq1mWlij8w6ljE3FofrG842R56A/F9UNP39C OKZlh9R6ddJGCZIp10cnxryxdUZGK5EMCYTnr8psvyov3Dq9uBox2zslYEzdgIW0ZFCm m/mfvS5fG6XkSDrfGEUiMEbtJbh8dkGJ3JVHf+tqG/xGcxSjfHDP73GiyUftR/168Ltb VUyjhdSWiEYyB5fZiyPkd4La8IoEdH45Oxa/2SaxK8W0RCTT9v09N21uXRrYII7hz3Rr nydA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711693243; x=1712298043; 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=hqn2vG6vZMeKxJjH7SLgj0DkeEAEaIjxP+/TgcwIQm1mc6GUG+UDrceOBwwRwFPu43 JSrxEX/3GYhZVPW+albPjUd4dkR3MX2uXXAG14IPFepSRvPYenEkMkNXUOeBURu+fW0W Rdic2FnT845iVr8s71CZrdoNoTdWW5s4hwUsI3sNN2dyLd1KJ1KMQd1lILViwr3ahBz9 K5tUnL+O7ECI4ue8IB3gkQhWYdsWGk/uCog1M1zMzJ7kNnZya1PrtKZwcQKLKOw9hOz3 F3oceZ9vh1AyyHkca6vV0KGMUxGn3OHEnMVBs99695iQzcU6bGajS8pvfrUatNR92Vc9 W6YA== X-Forwarded-Encrypted: i=1; AJvYcCVYD5qGp1Lg2fu2E7CaZJOrc6DcYAid0wxXP9ZPIgKm0/Hu3GnPGiDqoHAdagHdEdwYBG8DG/dpYZ41iK4zFoAqDlGh/YIBR7TUOVp+zljWWM8VTJgc+IWsGTcLl0sv99BgUjLWmXwLkyKHHUk+VeVVkzwkfI14UEDn7wHAqkZ9JoT0Yg== X-Gm-Message-State: AOJu0YzshkTWZLvYzAPFBe8DbbCYSF1xUbf/1RziSj0xlVLgC2pwTCnH y1Pn3ftpfGhu948Q3V/5Rqzk4zgAYGnCa0+n6+TQJSo+F6JmVBBI X-Received: by 2002:a05:6830:12ca:b0:6e6:c3f3:a9a9 with SMTP id a10-20020a05683012ca00b006e6c3f3a9a9mr1441289otq.11.1711693243275; Thu, 28 Mar 2024 23:20:43 -0700 (PDT) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id a12-20020a056830008c00b006e739aea9dfsm173130oto.29.2024.03.28.23.20.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 23:20:42 -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 v13 1/5] dt-bindings: clock: sophgo: add pll clocks for SG2042 Date: Fri, 29 Mar 2024 14:20:35 +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