From patchwork Fri Dec 15 06:24:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10113947 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 61F2B60327 for ; Fri, 15 Dec 2017 06:26:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53923291BB for ; Fri, 15 Dec 2017 06:26:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46E8F2953B; Fri, 15 Dec 2017 06:26:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D211F291BB for ; Fri, 15 Dec 2017 06:26:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=PM1DEXCblpwdxKJaDHhohiuFuelW7cCeKW90QmX1sQw=; b=fgwv8jmlKZpJkQOpum6NxMit6x dfYVi1HW/0X5vNDmBZy4HpNICFvT0+MBdTcr2i28Ncyeq8tKLOS2/eoFmWQUpA/1zuVYauuG2eKH/ JntpKZPe5Ha7AE6eCHm0CMlrFJEGdjmNd5M6tyj4YYRKmG8KJf21+HLM7ekXg0op0lezuyVQzLzkR lA77u9r2B+VAGBfKyCoD22Ytia3i5k2ZHxf/bilTHWRRFW2fHc4cIRTDM6ZGgyvN+1ZNP6S8twPBs U6/R0TwU1jWw3p52FdZ2gPSq7le+kRZFkhe+JE7Zs4h+gFhDTW5fQhuAFdzjFQ2VyxgmP0FortIRD 7MCTZpvQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ePjRf-000750-9h; Fri, 15 Dec 2017 06:26:07 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePjRA-0006Gm-4j for linux-arm-kernel@lists.infradead.org; Fri, 15 Dec 2017 06:25:46 +0000 Received: by mail-pf0-x243.google.com with SMTP id j28so5484184pfk.8 for ; Thu, 14 Dec 2017 22:25:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=shjmyMylXZHOqCOBFulA4kCeoeosK1EP6VqEWYDZ7gw=; b=tPlFAFiZpghbKd+KqezhLcFJWzW6y7gH6gnBuqYzjYZW0zaIO2QayEzVhdyB3YdzDO BxIcIxMqkkTTV52wAAAMJ6AcmDmjj4dc12shkboASeNTe26AaKCmKBFMbEyUOlITbOYM WLz+aYEAKwLuhEWLWcUlg3yKgwjL0fNz54a+OfXa64MqBg5D7bkfZEtocY+i47TuL9vE J6BXpukENOYk8BhtVpdky0yIDE1atFyh7H4cngt9RyFdW8v+qToruyNiVtH3qybckQgv NoEV43wfILbjQX+5sgjarl4e23EbkQro7hweG1tjSC2xz2rNvyyRqDcNk9K2jkCip+Tj A83g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=shjmyMylXZHOqCOBFulA4kCeoeosK1EP6VqEWYDZ7gw=; b=XGTr8ZJzv+DxePNnx2soZE0+oBWVGlR7adGdGliQWogDllcbPyRkx1e9mKDepB5MCW o3OvWG3NRM2RXVZUzIWuAD/ZrmJ0ogGLo1LSoYfyGqijk0wx0jetZHMpw+h1FcBy4sye xofh46rOLRc2b+G1yJPbHETvy4JhKEc0fKrGmMyf/jVLMTAHpcmwRlbJI8f6qgkIDs+a wR7G4piAGkY9Mp0w4erlLKxuTtqvGUHuicpkIqtWhhGnHJWZ4L4V3R7F13FOI4jLc4ka RI2C10yfeBc7SkpgNkGls37dNejVZobFhCHyLf/+cgW7pv61DOIdTJDDByY9/HSCFUU6 X79Q== X-Gm-Message-State: AKGB3mKwkq1p29Qm2Lornu/QWv/zS17L3W0/kHi/f3zogESpTi+A66ip CtjLMV9UQRl7kVsPeW+FoDQ= X-Google-Smtp-Source: ACJfBotPUpXys867Ewz7fgmoj5QPWY6EIXn0rtkpYEhRXU0AX3eYmFwhm+8iMreVyheTmopwTGMZXg== X-Received: by 10.84.242.76 with SMTP id c12mr12284226pll.445.1513319115235; Thu, 14 Dec 2017 22:25:15 -0800 (PST) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id q9sm12224780pfl.116.2017.12.14.22.25.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Dec 2017 22:25:13 -0800 (PST) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Fri, 15 Dec 2017 16:55:05 +1030 From: Joel Stanley To: Rob Herring , Mark Rutland , Arnd Bergmann , Andrew Jeffery , Patrick Venture , Xo Wang , Lei YU Subject: [PATCH v2 01/19] dt-bindings: clock: Add ASPEED constants Date: Fri, 15 Dec 2017 16:54:25 +1030 Message-Id: <20171215062443.23059-2-joel@jms.id.au> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171215062443.23059-1-joel@jms.id.au> References: <20171215062443.23059-1-joel@jms.id.au> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171214_222536_709832_AD8D1A6A X-CRM114-Status: GOOD ( 11.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, Benjamin Herrenschmidt , linux-kernel@vger.kernel.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , linux-arm-kernel@lists.infradead.org, Jeremy Kerr MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP These will be merged as part of the clock driver. This commit is included so the tree will build without the clock series being applied. Signed-off-by: Joel Stanley Reviewed-by: Rob Herring --- v2: - remove NUM_CLKS define. There's no need for it to be part of ABI --- include/dt-bindings/clock/aspeed-clock.h | 52 ++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 include/dt-bindings/clock/aspeed-clock.h diff --git a/include/dt-bindings/clock/aspeed-clock.h b/include/dt-bindings/clock/aspeed-clock.h new file mode 100644 index 000000000000..d3558d897a4d --- /dev/null +++ b/include/dt-bindings/clock/aspeed-clock.h @@ -0,0 +1,52 @@ +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ + +#ifndef DT_BINDINGS_ASPEED_CLOCK_H +#define DT_BINDINGS_ASPEED_CLOCK_H + +#define ASPEED_CLK_GATE_ECLK 0 +#define ASPEED_CLK_GATE_GCLK 1 +#define ASPEED_CLK_GATE_MCLK 2 +#define ASPEED_CLK_GATE_VCLK 3 +#define ASPEED_CLK_GATE_BCLK 4 +#define ASPEED_CLK_GATE_DCLK 5 +#define ASPEED_CLK_GATE_REFCLK 6 +#define ASPEED_CLK_GATE_USBPORT2CLK 7 +#define ASPEED_CLK_GATE_LCLK 8 +#define ASPEED_CLK_GATE_USBUHCICLK 9 +#define ASPEED_CLK_GATE_D1CLK 10 +#define ASPEED_CLK_GATE_YCLK 11 +#define ASPEED_CLK_GATE_USBPORT1CLK 12 +#define ASPEED_CLK_GATE_UART1CLK 13 +#define ASPEED_CLK_GATE_UART2CLK 14 +#define ASPEED_CLK_GATE_UART5CLK 15 +#define ASPEED_CLK_GATE_ESPICLK 16 +#define ASPEED_CLK_GATE_MAC1CLK 17 +#define ASPEED_CLK_GATE_MAC2CLK 18 +#define ASPEED_CLK_GATE_RSACLK 19 +#define ASPEED_CLK_GATE_UART3CLK 20 +#define ASPEED_CLK_GATE_UART4CLK 21 +#define ASPEED_CLK_GATE_SDCLKCLK 22 +#define ASPEED_CLK_GATE_LHCCLK 23 +#define ASPEED_CLK_HPLL 24 +#define ASPEED_CLK_AHB 25 +#define ASPEED_CLK_APB 26 +#define ASPEED_CLK_UART 27 +#define ASPEED_CLK_SDIO 28 +#define ASPEED_CLK_ECLK 29 +#define ASPEED_CLK_ECLK_MUX 30 +#define ASPEED_CLK_LHCLK 31 +#define ASPEED_CLK_MAC 32 +#define ASPEED_CLK_BCLK 33 +#define ASPEED_CLK_MPLL 34 + +#define ASPEED_RESET_XDMA 0 +#define ASPEED_RESET_MCTP 1 +#define ASPEED_RESET_ADC 2 +#define ASPEED_RESET_JTAG_MASTER 3 +#define ASPEED_RESET_MIC 4 +#define ASPEED_RESET_PWM 5 +#define ASPEED_RESET_PCIVGA 6 +#define ASPEED_RESET_I2C 7 +#define ASPEED_RESET_AHB 8 + +#endif