From patchwork Mon Oct 30 13:04:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 117482 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2565066qgn; Mon, 30 Oct 2017 06:06:33 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Ta/SJ2MF4i+3VC0CjS8o7nJQSYNCYeOsq1aRav90xB1pg7BHn3P2l9O17czBmdi3/nVpfm X-Received: by 10.84.236.12 with SMTP id q12mr7304769plk.314.1509368793149; Mon, 30 Oct 2017 06:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509368793; cv=none; d=google.com; s=arc-20160816; b=xJUa60dYtOJV1Dt7r3XKonOpmpzJxl9HRizAjha0bXdxrsQrr8mfDBnv0w8gbjYHIZ LRhQucmWN3ZoEXICDIvSvXrkqreWZEtG6N77xGskqeUcAg4sNdMt6eXNr6GhxjZGLNWc Tn/7HIc2h1pZEe18OSMoTzZbkqtYkYjGMmwQ5WvT9h883xMd8860iS4spv0XZgdCtZeZ dEDWwA4si/mdQKX2T/ACPgy9q8mwf/9uSrAXFMDPZFNj0PgWdsIdtsJs+SVo9qYZx4ey hEEY4Ncps9znsm4sHAav+Uc+B5M+ydtpgD8lyly0c6MsiGoXZOBAeMYfSz6gK5tu/Vp2 U1jw== 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=D5Hv9bplExcrT3vOBP+Omab4c7BSLB7SlK8m2fMYS+s=; b=FKJHaGavdUBzTJtT1oLXMgrIO108/E6CoiQLcI6wVssDQMWexUMsbpAveqOemS9EbF aXCC7ptFwGfIsfaj2k9+DJpZ30243ZNwOZwYYOUd88QXJeC3UuO33EEijsjnaw16WiU3 bbpaeYzt6v/qvUlkkVz9LlQkUNBRvPJxC1dXMZyYgdZNlRmTxZo0aX5CbA3gJYWO5iOg 9Fo+lxp7NgcMWrmvJiiGGXGDavvxYbMq4li1JRpW+sCDQCTzsbu9MGwljIHwWWnxwSif Q9zSfS+x6qaoTUCMdgsCL1xp78qdBgUWgiVfHUXynMhUKcSfXBPEe75m2GfgAf/F0TcR 4Xvw== 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=mBXdoFOV; 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.32; Mon, 30 Oct 2017 06:06:33 -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=mBXdoFOV; 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 S1752411AbdJ3NGb (ORCPT + 4 others); Mon, 30 Oct 2017 09:06:31 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:53114 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752386AbdJ3NGa (ORCPT ); Mon, 30 Oct 2017 09:06:30 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v9UD6ORo011467; Mon, 30 Oct 2017 08:06:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1509368784; bh=twT89DnriQv1EMuTxs9kBLyO41rJBpukDGD2/TQ4HfE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=mBXdoFOVrGnF0ZXrY/e8Ents+9Ch7CMu/DkOM9/0B90i+6p/xS96E6+3HfoZ0OBcj /5Mc/QLGQSgdqpk0mbczPMUuZjgE743r9pK1HqUVagOffaU88DEabLva0WCBQmHzEX YEEH5IQcDhCNE3RUeYEpjm0dUXF5j56SCWMr6ZWs= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v9UD6ObL006612; Mon, 30 Oct 2017 08:06:24 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE114.ent.ti.com (157.170.170.25) 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:24 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE115.ent.ti.com (157.170.170.26) 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:23 -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 v9UD54xG005221; Mon, 30 Oct 2017 08:06:22 -0500 From: Tero Kristo To: , , CC: , Subject: [PATCH 25/27] dt-bindings: clk: add dm816 clkctrl definitions Date: Mon, 30 Oct 2017 15:04:43 +0200 Message-ID: <1509368685-29112-26-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 dm816 clkctrl main and optional clocks. Signed-off-by: Tero Kristo --- include/dt-bindings/clock/dm816.h | 53 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 include/dt-bindings/clock/dm816.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/dm816.h b/include/dt-bindings/clock/dm816.h new file mode 100644 index 0000000..69e8a36 --- /dev/null +++ b/include/dt-bindings/clock/dm816.h @@ -0,0 +1,53 @@ +/* + * 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_DM816_H +#define __DT_BINDINGS_CLK_DM816_H + +#define DM816_CLKCTRL_OFFSET 0x0 +#define DM816_CLKCTRL_INDEX(offset) ((offset) - DM816_CLKCTRL_OFFSET) + +/* default clocks */ +#define DM816_USB_OTG_HS_CLKCTRL DM816_CLKCTRL_INDEX(0x58) + +/* alwon clocks */ +#define DM816_UART1_CLKCTRL DM816_CLKCTRL_INDEX(0x150) +#define DM816_UART2_CLKCTRL DM816_CLKCTRL_INDEX(0x154) +#define DM816_UART3_CLKCTRL DM816_CLKCTRL_INDEX(0x158) +#define DM816_GPIO1_CLKCTRL DM816_CLKCTRL_INDEX(0x15c) +#define DM816_GPIO2_CLKCTRL DM816_CLKCTRL_INDEX(0x160) +#define DM816_I2C1_CLKCTRL DM816_CLKCTRL_INDEX(0x164) +#define DM816_I2C2_CLKCTRL DM816_CLKCTRL_INDEX(0x168) +#define DM816_TIMER1_CLKCTRL DM816_CLKCTRL_INDEX(0x170) +#define DM816_TIMER2_CLKCTRL DM816_CLKCTRL_INDEX(0x174) +#define DM816_TIMER3_CLKCTRL DM816_CLKCTRL_INDEX(0x178) +#define DM816_TIMER4_CLKCTRL DM816_CLKCTRL_INDEX(0x17c) +#define DM816_TIMER5_CLKCTRL DM816_CLKCTRL_INDEX(0x180) +#define DM816_TIMER6_CLKCTRL DM816_CLKCTRL_INDEX(0x184) +#define DM816_TIMER7_CLKCTRL DM816_CLKCTRL_INDEX(0x188) +#define DM816_WD_TIMER_CLKCTRL DM816_CLKCTRL_INDEX(0x18c) +#define DM816_MCSPI1_CLKCTRL DM816_CLKCTRL_INDEX(0x190) +#define DM816_MAILBOX_CLKCTRL DM816_CLKCTRL_INDEX(0x194) +#define DM816_SPINBOX_CLKCTRL DM816_CLKCTRL_INDEX(0x198) +#define DM816_MMC1_CLKCTRL DM816_CLKCTRL_INDEX(0x1b0) +#define DM816_GPMC_CLKCTRL DM816_CLKCTRL_INDEX(0x1d0) +#define DM816_DAVINCI_MDIO_CLKCTRL DM816_CLKCTRL_INDEX(0x1d4) +#define DM816_EMAC1_CLKCTRL DM816_CLKCTRL_INDEX(0x1d8) +#define DM816_MPU_CLKCTRL DM816_CLKCTRL_INDEX(0x1dc) +#define DM816_RTC_CLKCTRL DM816_CLKCTRL_INDEX(0x1f0) +#define DM816_TPCC_CLKCTRL DM816_CLKCTRL_INDEX(0x1f4) +#define DM816_TPTC0_CLKCTRL DM816_CLKCTRL_INDEX(0x1f8) +#define DM816_TPTC1_CLKCTRL DM816_CLKCTRL_INDEX(0x1fc) +#define DM816_TPTC2_CLKCTRL DM816_CLKCTRL_INDEX(0x200) +#define DM816_TPTC3_CLKCTRL DM816_CLKCTRL_INDEX(0x204) + +#endif