From patchwork Mon Oct 30 13:04:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 117477 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2564901qgn; Mon, 30 Oct 2017 06:06:26 -0700 (PDT) X-Google-Smtp-Source: ABhQp+T6zZtF+aEOLgKJWQIunQ3kH7k9vEEvQDDkmvi70AHwTZUS4wsYXHGA5FyPEW4EUYusRkaa X-Received: by 10.98.32.206 with SMTP id m75mr8964137pfj.231.1509368786667; Mon, 30 Oct 2017 06:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509368786; cv=none; d=google.com; s=arc-20160816; b=xvw9+Fw6H5rTPybZhkt4nDSzdqCIGedQTlsHpFJ5Rts4kMAtEK2DziLqqXFdUZbOMJ GFA8BVbv1oJzYIfAefgGSzr1U5gv/BS2cZGEHbrjhWjhv4OfEwJJKSp0LTC6WpBALZLf Sn7uCHzk3ozaYXZEk5r334+8i0enZLVW0ek8XxfZ75rtd6k2JlJNaOrSybRIJRjMY0Y9 kKtQn8/+OyiAh3p0S3Pa1FxgVur25SOlWl0xtjj3iz7PjnmGjrFX3hF1InfXkPQMTN6Z CYXPFlS6/tSvH05NDbnrgz6Mx+3Mp5WyMj65/1MmDO3Bi47CwcitPqaDibhsgnLJAB84 cvOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=72sXLMWX2s6TolzZPUjuw1f9j1igQ6SS+sVRJIMPZXk=; b=tuD3v7H6MGiZaSGrEqdajhiXzuByFgjBr9v2H0oh4CR1yf9r7nf/iaZp5oOUPEBmTG vPsd3Eo5eYh8+mvFwHVsSOPA05FQ5JwWn9OzXkrXHmWqBeT6WC8B+fau8U1UQiQmr5EN xPS9fhLEEND6zkvgfnbRId+h6/zoWfEXNs+M48w5Gpjrsi3oAWehbesVhQ9Hgau3/UPl HG92EXNU5Btxwl+js4dh/DStYAQarRaMb7g+qxQLpcmASgvyaG3fQEisd9wiTJB9maHZ /rQmX8EpBVZ7znly7iB1XkiHmdsDY57DNMfIQPhq4b7aiL8q3im98tYYFuJGkmu+ysKR yPig== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=tNO2Bt2V; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21si2466642plr.463.2017.10.30.06.06.26; Mon, 30 Oct 2017 06:06:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=tNO2Bt2V; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752203AbdJ3NGY (ORCPT + 4 others); Mon, 30 Oct 2017 09:06:24 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:21671 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752074AbdJ3NGX (ORCPT ); Mon, 30 Oct 2017 09:06:23 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v9UD6KQH013388; Mon, 30 Oct 2017 08:06:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1509368780; bh=cTMJbCXu5+k9O78NhvXoG88kqe5z1MuuXax90d2niO0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=tNO2Bt2VyJXbbEI++GnK1ivhHzxIuvwVvcnIjNNmeRDeT7mgcysFj03GUsRSJmidM IOfsKUwuoClJPXR6/eFqM3qG48C81UbA5jEH3ZUB0YxCJRKaXJiIufWENYpyJd/6js bKvTplAcfGPFW6qAbTHvqA3z4jUcEWD488RITO58= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v9UD6Kwu006528; Mon, 30 Oct 2017 08:06:20 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Mon, 30 Oct 2017 08:06:19 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Mon, 30 Oct 2017 08:06:19 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v9UD54xE005221; Mon, 30 Oct 2017 08:06:18 -0500 From: Tero Kristo To: , , CC: , Subject: [PATCH 23/27] dt-bindings: clk: add dm814 clkctrl definitions Date: Mon, 30 Oct 2017 15:04:41 +0200 Message-ID: <1509368685-29112-24-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1509368685-29112-1-git-send-email-t-kristo@ti.com> References: <1509368685-29112-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Contains offsets for all dm814 clkctrl main and optional clocks. Signed-off-by: Tero Kristo --- include/dt-bindings/clock/dm814.h | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 include/dt-bindings/clock/dm814.h -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/dt-bindings/clock/dm814.h b/include/dt-bindings/clock/dm814.h new file mode 100644 index 0000000..0e7099a --- /dev/null +++ b/include/dt-bindings/clock/dm814.h @@ -0,0 +1,45 @@ +/* + * Copyright 2017 Texas Instruments, Inc. + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#ifndef __DT_BINDINGS_CLK_DM814_H +#define __DT_BINDINGS_CLK_DM814_H + +#define DM814_CLKCTRL_OFFSET 0x0 +#define DM814_CLKCTRL_INDEX(offset) ((offset) - DM814_CLKCTRL_OFFSET) + +/* default clocks */ +#define DM814_USB_OTG_HS_CLKCTRL DM814_CLKCTRL_INDEX(0x58) + +/* alwon clocks */ +#define DM814_UART1_CLKCTRL DM814_CLKCTRL_INDEX(0x150) +#define DM814_UART2_CLKCTRL DM814_CLKCTRL_INDEX(0x154) +#define DM814_UART3_CLKCTRL DM814_CLKCTRL_INDEX(0x158) +#define DM814_GPIO1_CLKCTRL DM814_CLKCTRL_INDEX(0x15c) +#define DM814_GPIO2_CLKCTRL DM814_CLKCTRL_INDEX(0x160) +#define DM814_I2C1_CLKCTRL DM814_CLKCTRL_INDEX(0x164) +#define DM814_I2C2_CLKCTRL DM814_CLKCTRL_INDEX(0x168) +#define DM814_WD_TIMER_CLKCTRL DM814_CLKCTRL_INDEX(0x18c) +#define DM814_MCSPI1_CLKCTRL DM814_CLKCTRL_INDEX(0x190) +#define DM814_GPMC_CLKCTRL DM814_CLKCTRL_INDEX(0x1d0) +#define DM814_CPGMAC0_CLKCTRL DM814_CLKCTRL_INDEX(0x1d4) +#define DM814_MPU_CLKCTRL DM814_CLKCTRL_INDEX(0x1dc) +#define DM814_RTC_CLKCTRL DM814_CLKCTRL_INDEX(0x1f0) +#define DM814_TPCC_CLKCTRL DM814_CLKCTRL_INDEX(0x1f4) +#define DM814_TPTC0_CLKCTRL DM814_CLKCTRL_INDEX(0x1f8) +#define DM814_TPTC1_CLKCTRL DM814_CLKCTRL_INDEX(0x1fc) +#define DM814_TPTC2_CLKCTRL DM814_CLKCTRL_INDEX(0x200) +#define DM814_TPTC3_CLKCTRL DM814_CLKCTRL_INDEX(0x204) +#define DM814_MMC1_CLKCTRL DM814_CLKCTRL_INDEX(0x21c) +#define DM814_MMC2_CLKCTRL DM814_CLKCTRL_INDEX(0x220) +#define DM814_MMC3_CLKCTRL DM814_CLKCTRL_INDEX(0x224) + +#endif