Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5017198ybc; Tue, 26 Nov 2019 19:36:25 -0800 (PST) X-Google-Smtp-Source: APXvYqxkxEUOwJWn4whlz7gpVAUyVt2JOQeyMdTRyfHlZK7qRNTkycGfhqlAze0odbMf4c8MH1vC X-Received: by 2002:a50:9b43:: with SMTP id a3mr29377188edj.73.1574825785603; Tue, 26 Nov 2019 19:36:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574825785; cv=pass; d=google.com; s=arc-20160816; b=rpuKBwbbvMWDb7JCIge7S6VYrnzipoAxn35nefPWDAQueYRloSo6InVF8wTrLlEBHq 2zZ7JzYLPjW6xFd2Geo9yZkKCqqzzUDRLJzVCdRMEpvNLs6wyxu2UTvvot/v8AnjZor5 knRU/1IMBCyTvlPlI5rnzpNEygdtqy7BzBFvZtC98L967rac4KYiOVqrso6b4K9TG4Ek tb5knJ0usJ+9MniU9GqP+mVfbODPmp69ab03btkrBrbyDYpKCm/MwdlMvVxyaEqkz2iQ ZKPa3OYgkeaLoFScejWvY55bmx91Tx9zq7SA1JEoS6x8HGbV0Ud/7oIP7w0a5ALXA5Q9 n94Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:domainkey-signature; bh=RgmfTfKwoYXw8kf5jEJ7b6HWPMYg4f37CM1yKIrzA2g=; b=bFBJ+jlISPcOzthjiYGEvjM+FbaW9eqLQJjzGHD5edBePByGldHCJxaSs4YmrUKBxm hAXSwVAbgRyOaUk2qnlTnaoyAODAQ71WnfYe7z2itAFBInVqi1kwbGucBK53fE9vjJ6e 7Nr8OhxVugchcR2oRtzuVSAMb8/ZnxqU8i+a9EhHE51CPjF67lPUBvCSkq3kwe9W1Jus IIaNzs9UDNSDnN198vARrSCGO0/SHz8fLR1V7mBbJhgE/6mgkVvXqIjszH0vDZiv8RAt NwMmmvKN/2aSy7Lr0zLYJxena+dEspyKZvfb+G8DLb+lrpQyWTSdQijuCPcGaBm0ckXE Izvw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zoho.com header.s=zm2019 header.b=lDeI+uJ3; arc=pass (i=1 spf=pass spfdomain=zoho.com dkim=pass dkdomain=zoho.com dmarc=pass fromdomain=zoho.com>); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=zoho.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si9081789ejj.367.2019.11.26.19.36.01; Tue, 26 Nov 2019 19:36:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@zoho.com header.s=zm2019 header.b=lDeI+uJ3; arc=pass (i=1 spf=pass spfdomain=zoho.com dkim=pass dkdomain=zoho.com dmarc=pass fromdomain=zoho.com>); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=zoho.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727022AbfK0De0 (ORCPT + 99 others); Tue, 26 Nov 2019 22:34:26 -0500 Received: from sender4-pp-o98.zoho.com ([136.143.188.98]:25805 "EHLO sender4-pp-o98.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726304AbfK0De0 (ORCPT ); Tue, 26 Nov 2019 22:34:26 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1574825632; cv=none; d=zohomail.com; s=zohoarc; b=IA0hdkIK8miRg+J1FPY0GKqX9KiUSKPWJ6ezvAxAxhT115SVkkeQMZvPGkPlpEmxU2k2ZfBiy1ijP5p8bI8GF+JbVfO+dBBZXwx3mqZxFWHb8sUeibuPs2zJ1fdJJ6+4BTvOI5uZDGloOfw2YTw9GIY/4oVZh3ZTvV+H+i3m4BI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574825632; h=Cc:Date:From:In-Reply-To:Message-ID:References:Subject:To; bh=RgmfTfKwoYXw8kf5jEJ7b6HWPMYg4f37CM1yKIrzA2g=; b=fTJKYKeRdPmuW6KGzYUqlyeasyUB8m9hbjQFmc8ICJGIeRaErpQtAd/1pxF0hKtEhiZq9s576JgyW5yUIQa2Jh21XU2sPwjkoF1BmleLeWRgysMBfnM+B9FN5vOp+sPePnx9pf2daNNlyM+X9h5HMD0ERvDZ2UBiS1T50uL6ZN0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=zhouyanjie@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id:in-reply-to:references; b=F9QpSSzPxy2q5NcJxQMrn4mCo/R7KIrlDFnHr58zP6nx0+7gzVJdo1mzlQ2GIe9RVA2tnO+6VE3l H5hY955pVW8It7Sr0YpZ6jMsuVt0ROgN6BPo6ur4aH7JcRx24udJ DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1574825632; s=zm2019; d=zoho.com; i=zhouyanjie@zoho.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; bh=RgmfTfKwoYXw8kf5jEJ7b6HWPMYg4f37CM1yKIrzA2g=; b=lDeI+uJ34GT2H/XNNumsLzS6MgPRQ+joEJ112rdoW511dx3ZH0UoMO2LEoxECxCp dl+wGoQ0IDmo6aI3QX7qOR3DyUuxKG1hf0Ez91C1hUkfcdI09f6eIHmWsN3L8OXQl6h ochf7MZ1vviJaD3ZXow8uYhXwhbNEFln8Ejku4fI= Received: from zhouyanjie-virtual-machine.localdomain (139.207.174.158 [139.207.174.158]) by mx.zohomail.com with SMTPS id 1574825630972581.4125167303802; Tue, 26 Nov 2019 19:33:50 -0800 (PST) From: Zhou Yanjie To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, paul.burton@mips.com, paulburton@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, mark.rutland@arm.com, syq@debian.org, paul@crapouillou.net, sernia.zhou@foxmail.com, zhenwenjin@gmail.com Subject: [PATCH 2/5] dt-bindings: clock: Add X1830 bindings. Date: Wed, 27 Nov 2019 11:32:53 +0800 Message-Id: <1574825576-91028-3-git-send-email-zhouyanjie@zoho.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1574825576-91028-1-git-send-email-zhouyanjie@zoho.com> References: <1574825576-91028-1-git-send-email-zhouyanjie@zoho.com> X-ZohoMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the clock bindings for the X1830 Soc from Ingenic. Signed-off-by: Zhou Yanjie --- .../devicetree/bindings/clock/ingenic,cgu.txt | 1 + include/dt-bindings/clock/x1830-cgu.h | 46 ++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 include/dt-bindings/clock/x1830-cgu.h diff --git a/Documentation/devicetree/bindings/clock/ingenic,cgu.txt b/Documentation/devicetree/bindings/clock/ingenic,cgu.txt index 75598e6..74bfc57 100644 --- a/Documentation/devicetree/bindings/clock/ingenic,cgu.txt +++ b/Documentation/devicetree/bindings/clock/ingenic,cgu.txt @@ -12,6 +12,7 @@ Required properties: * ingenic,jz4770-cgu * ingenic,jz4780-cgu * ingenic,x1000-cgu + * ingenic,x1830-cgu - reg : The address & length of the CGU registers. - clocks : List of phandle & clock specifiers for clocks external to the CGU. Two such external clocks should be specified - first the external crystal diff --git a/include/dt-bindings/clock/x1830-cgu.h b/include/dt-bindings/clock/x1830-cgu.h new file mode 100644 index 00000000..6499170 --- /dev/null +++ b/include/dt-bindings/clock/x1830-cgu.h @@ -0,0 +1,46 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * This header provides clock numbers for the ingenic,x1830-cgu DT binding. + * + * They are roughly ordered as: + * - external clocks + * - PLLs + * - muxes/dividers in the order they appear in the x1830 programmers manual + * - gates in order of their bit in the CLKGR* registers + */ + +#ifndef __DT_BINDINGS_CLOCK_X1830_CGU_H__ +#define __DT_BINDINGS_CLOCK_X1830_CGU_H__ + +#define X1830_CLK_EXCLK 0 +#define X1830_CLK_RTCLK 1 +#define X1830_CLK_APLL 2 +#define X1830_CLK_MPLL 3 +#define X1830_CLK_EPLL 4 +#define X1830_CLK_VPLL 5 +#define X1830_CLK_SCLKA 6 +#define X1830_CLK_CPUMUX 7 +#define X1830_CLK_CPU 8 +#define X1830_CLK_L2CACHE 9 +#define X1830_CLK_AHB0 10 +#define X1830_CLK_AHB2PMUX 11 +#define X1830_CLK_AHB2 12 +#define X1830_CLK_PCLK 13 +#define X1830_CLK_DDR 14 +#define X1830_CLK_MAC 15 +#define X1830_CLK_MSCMUX 16 +#define X1830_CLK_MSC0 17 +#define X1830_CLK_MSC1 18 +#define X1830_CLK_SSIPLL 19 +#define X1830_CLK_SSIMUX 20 +#define X1830_CLK_SSI0 21 +#define X1830_CLK_SMB0 22 +#define X1830_CLK_SMB1 23 +#define X1830_CLK_SMB2 24 +#define X1830_CLK_UART0 25 +#define X1830_CLK_UART1 26 +#define X1830_CLK_SSI1 27 +#define X1830_CLK_SFC 28 +#define X1830_CLK_PDMA 29 + +#endif /* __DT_BINDINGS_CLOCK_X1830_CGU_H__ */ -- 2.7.4