Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp61237ima; Thu, 31 Jan 2019 23:01:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN4TM2V6mv3c0fnhrJJW+eMVYuHP9cWS2OOgmqEtZ+YSijYUIC0L9ukr8RSG8eXtlru1oh6W X-Received: by 2002:a17:902:aa82:: with SMTP id d2mr38338876plr.153.1549004461552; Thu, 31 Jan 2019 23:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549004461; cv=none; d=google.com; s=arc-20160816; b=w1S15JAiBBAbH5xEeOjrk2tjjrT/SQavncq7dWHm6a8KMPu5ncXuBhcCXmuUo+snRq jnWTDeJ8gG5wEbAx5BPUE3hpKQOHM5yoEcNFUKT9WC1+Iz8njl9CJfzOwVwLvRh6gIJR gbvUqnbQSLU6Q3lCTmbMgQz63HF6G6pcXjsCdObMNskan2RZhvlDiDYVqg7lt61Wz3n9 ew5EYvdI0RMQP9YXe/vf3alpIbC1v/L4UC0hMdZaUWd9bKGvxnua8W6Cc5gTEg+HXjiO Z4ivV+ih+/rwV6B+IXqzfT7EsFdK5ph5bCCLcJ5L8083osMr/3wDDDtoKxJN1jk4OG1L G5kw== 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=bw8o9PbShB3Y6hhdn7ifBb3eYe95FLWeMK5ModEQ+Iw=; b=dqU09nbM6OKG7y0DFTZd1JN1bYH8T6T0Yq+j3LXSuSGDQGMJ0iVeXlS5JnjSc1xdA+ Ev2m1rD3ekQZ9T9P77REAcfMrsLDrBhi7rbFYjdzXl83+M1ddHazTKLOXWpQOZp1dhbg 5OgwNtsQt1E+jwKIwSxOP+q/FG0w/7IERFJ/bbiOlSSXTZxhlGNbFekLCgjNlHSsa4xW 3Cg+29gVZvFc1yRoFejY6S/5gwcyOOUby51CCBpysocmwuWPDx5TModH2KeL6j8/WLNv KxO/DF3kdPkx61uCW6Dj6rPM8rj4+klkTXO+//610w8MbKLbPsxdIvnPGziIFLwSqQSw PasQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=Ca8nSz3C; 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 c10si6936030pla.173.2019.01.31.23.00.43; Thu, 31 Jan 2019 23:01:01 -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=Ca8nSz3C; 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 S1727882AbfBAGg2 (ORCPT + 99 others); Fri, 1 Feb 2019 01:36:28 -0500 Received: from forward100o.mail.yandex.net ([37.140.190.180]:41639 "EHLO forward100o.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbfBAGg0 (ORCPT ); Fri, 1 Feb 2019 01:36:26 -0500 Received: from mxback20j.mail.yandex.net (mxback20j.mail.yandex.net [IPv6:2a02:6b8:0:1619::114]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 3C9004AC2A57; Fri, 1 Feb 2019 09:36:22 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback20j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id qJCCBI1Fap-aLPKoXau; Fri, 01 Feb 2019 09:36:22 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1549002982; bh=bw8o9PbShB3Y6hhdn7ifBb3eYe95FLWeMK5ModEQ+Iw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=Ca8nSz3CbmINCn7RK5K7HSShpGhLu1UfjHmNCg/xD3WRYwKnROipuIPZpFTlOvL/H pLwpjg8rccTAeo6ib5ve3zzA9SvXNUJJxifcZSNH3AfeuSvmUM8aQ+ZNd9y58ovFS8 47kedHdd+RIR+YFmhfbzl0z0YrruuC/D57IEOl8Y= Authentication-Results: mxback20j.mail.yandex.net; dkim=pass header.i=@flygoat.com Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 5VfXSCstdQ-aHVCPGMI; Fri, 01 Feb 2019 09:36:20 +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 v3 3/3] dt-bindings: clock: Add loongson-1 clock bindings Date: Fri, 1 Feb 2019 14:35:40 +0800 Message-Id: <20190201063540.19636-4-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190201063540.19636-1-jiaxun.yang@flygoat.com> References: <20190128152052.3047-1-jiaxun.yang@flygoat.com> <20190201063540.19636-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 | 14 ++++++++++++++ include/dt-bindings/clock/ls1b-clock.h | 17 +++++++++++++++++ include/dt-bindings/clock/ls1c-clock.h | 14 ++++++++++++++ 3 files changed, 45 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..5afd13a98eaa --- /dev/null +++ b/Documentation/devicetree/bindings/clock/loongson1-clock.txt @@ -0,0 +1,14 @@ +* Clock bindings for Loongson-1 MCUs + +Required properties: +- compatible: must contain one of the following compatibles: + - "loongson,ls1b-clock" + - "loongson,ls1c-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..c7ae85bb4583 --- /dev/null +++ b/include/dt-bindings/clock/ls1b-clock.h @@ -0,0 +1,17 @@ +/* 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..9d01914f374e --- /dev/null +++ b/include/dt-bindings/clock/ls1c-clock.h @@ -0,0 +1,14 @@ +/* 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