Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp471768imu; Fri, 25 Jan 2019 05:38:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN69siJoMlCC4gWBNMcKsu58B5fWOxsnbY1/NP1y1EWtdN/ddcXFAW9RaMr8xIvAZBvYiNmP X-Received: by 2002:a17:902:4624:: with SMTP id o33mr10838212pld.289.1548423493965; Fri, 25 Jan 2019 05:38:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548423493; cv=none; d=google.com; s=arc-20160816; b=xsI1wuTk3+X1KqGFkgcOesuW9mqroPIT38gHofFoeYMtoPUaZWPIPXNBJY8ZL15Msz VAtG+xujc7WM3D6kv9HG4Y+uo4gaPIjGKM+SWdDv03S5iqh3rhysXSfcbcWu1NKsXSjv fbVA9eU/Yb6UvwRp5ztqzdSHzkL7ugDCcNGq51ZniN0LSACslMtcACJ2sts6pW1VtYXd mTrslbPqFjf73Kl7WtHU/P+RiRbCb8PN/6OklaW76iafBZOJmSzzc8XcSu1ZhiHWgN7U 3oVQ9wpW3E2Qqeg4D3GsK24ZMA60xbvrFSmBzUdUxBEgjtJQ1CZF+ybd1r6Scia6N6Kj Halw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TuBMlX5/v7jXm2kI9MQ+sU2l18YHTG4NcoeL70x9Veg=; b=a4ASQ+ykx263mkDWnDV3axOz8BG6B/5UpoaLsyetsN2z9wZo+zmHX17Zbt6E3p1oV7 zcjP30dkvlx036y1vY2R08NS+dEJVgg3niHfKCZ8U3RO/pI6epzJJdHY/xocNqkSFcNR kZy5Ek2epNOTzE50hGTH29dSRZlYnec8WDA+6K3Qva2ogfbXcZbUbHHyG8JIS0NnRFB7 /mFSRoe7Xt7HwUpd6jh1ExtrznS7yeUh6RuGPCU4F4o2LbFXo0wTXa9U4nC6WK8VoGGd MSTZXyXD3nIXcomYBSTrAjQFqc7NSuVNVO7AVgGBmcP+9lMaPDXUZqjjSHjnOBdYc5Gk 0PVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=HMAolznC; 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=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c16si22626651pgn.222.2019.01.25.05.37.58; Fri, 25 Jan 2019 05:38:13 -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=@flygoat.com header.s=mail header.b=HMAolznC; 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=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728740AbfAYNhC (ORCPT + 99 others); Fri, 25 Jan 2019 08:37:02 -0500 Received: from forward104o.mail.yandex.net ([37.140.190.179]:37541 "EHLO forward104o.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727826AbfAYNhB (ORCPT ); Fri, 25 Jan 2019 08:37:01 -0500 Received: from mxback6j.mail.yandex.net (mxback6j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10f]) by forward104o.mail.yandex.net (Yandex) with ESMTP id 42DE2942F1A; Fri, 25 Jan 2019 16:36:49 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback6j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id eu2ssGKB7e-aniaXDOs; Fri, 25 Jan 2019 16:36:49 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1548423409; bh=TuBMlX5/v7jXm2kI9MQ+sU2l18YHTG4NcoeL70x9Veg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=HMAolznCH6oJIxCbOyqgt8yuRcGZVJpTs1TIvwqOIadEIGI9TyQGdPRh3pThLHeR1 El1w0US9KpnyPABaNv9+m9lZgkWEilfrj1PN+RLJj5QqOQWoEyYRdbPnguupYYVkyt z1rxdjGlK2MJsoqMhSAZkK+pxrHmlbUypC18lvHE= Authentication-Results: mxback6j.mail.yandex.net; dkim=pass header.i=@flygoat.com Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id XwuTEG9eza-aie0nwwf; Fri, 25 Jan 2019 16:36:47 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, Jiaxun Yang Subject: [PATCH 3/3] dt-bindings: clock: Add loongson-1 clock bindings Date: Fri, 25 Jan 2019 21:34:13 +0800 Message-Id: <20190125133413.4130-4-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190125133413.4130-1-jiaxun.yang@flygoat.com> References: <20190125133413.4130-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Loongson-1 is a series of MIPS MCUs. This patch add the clock bindings for loongson-1b and loongson-1c clock subsystem. Signed-off-by: Jiaxun Yang --- .../bindings/clock/loongson1-clock.txt | 11 ++++++++++ include/dt-bindings/clock/ls1b-clock.h | 20 +++++++++++++++++++ include/dt-bindings/clock/ls1c-clock.h | 17 ++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/loongson1-clock.txt create mode 100644 include/dt-bindings/clock/ls1b-clock.h create mode 100644 include/dt-bindings/clock/ls1c-clock.h diff --git a/Documentation/devicetree/bindings/clock/loongson1-clock.txt b/Documentation/devicetree/bindings/clock/loongson1-clock.txt new file mode 100644 index 000000000000..f0119fbd0851 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/loongson1-clock.txt @@ -0,0 +1,11 @@ +* Clock bindings for Loongson-1 MCUs + +Required properties: +- compatible: Should be "loongson,ls1c-clock" or "loongson,ls1b-clock" +- reg: Address and length of the register set +- #clock-cells: Should be <1> +- clocks: list of input clocks + +The clock consumer should specify the desired clock by having the clock +ID in its "clocks" phandle cell. See include/dt-bindings/clock/ls1c-clock.h +or include/dt-bindings/clock/ls1b-clock.h for the full list of clocks. diff --git a/include/dt-bindings/clock/ls1b-clock.h b/include/dt-bindings/clock/ls1b-clock.h new file mode 100644 index 000000000000..814227842ae0 --- /dev/null +++ b/include/dt-bindings/clock/ls1b-clock.h @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2019 Jiaxun Yang + * + */ + +#ifndef __DT_BINDINGS_CLOCK_LS1B_CLOCK_H__ +#define __DT_BINDINGS_CLOCK_LS1B_CLOCK_H__ + +#define LS1B_CLK_PLL 0 +#define LS1B_CLK_CPU_DIV 1 +#define LS1B_CLK_CPU 2 +#define LS1B_CLK_DC_DIV 3 +#define LS1B_CLK_DC 4 +#define LS1B_CLK_DDR_DIV 5 +#define LS1B_CLK_DDR 6 +#define LS1B_CLK_AHB 7 +#define LS1B_CLK_APB 8 + +#endif /* __DT_BINDINGS_CLOCK_LS1B_CLOCK_H__ */ diff --git a/include/dt-bindings/clock/ls1c-clock.h b/include/dt-bindings/clock/ls1c-clock.h new file mode 100644 index 000000000000..40f386cb92ce --- /dev/null +++ b/include/dt-bindings/clock/ls1c-clock.h @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2019 Jiaxun Yang + * + */ + +#ifndef __DT_BINDINGS_CLOCK_LS1C_CLOCK_H__ +#define __DT_BINDINGS_CLOCK_LS1C_CLOCK_H__ + +#define LS1C_CLK_PLL 0 +#define LS1C_CLK_CPU 1 +#define LS1C_CLK_DC 2 +#define LS1C_CLK_DDR 3 +#define LS1C_CLK_AHB 4 +#define LS1C_CLK_APB 5 + +#endif /* __DT_BINDINGS_CLOCK_LS1C_CLOCK_H__ */ -- 2.20.1