From patchwork Wed Dec 20 03:23:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10124869 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 D6B24603B5 for ; Wed, 20 Dec 2017 03:25:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2E78296C4 for ; Wed, 20 Dec 2017 03:25:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B7A4D296C7; Wed, 20 Dec 2017 03:25:43 +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 4B5A1296C4 for ; Wed, 20 Dec 2017 03:25:43 +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=mjlyvycjTm/CG8dx3XLZLupoqqjzmx7Gayhzka1BPC8=; b=pIppcJvtOgUq8j7+kulgClzPFE 5Db9ItE7AU1UvPgIj8lW0Jr1PmBiPQhZNQNUANPyzIRT7rAiugW274Xme5bfRtgtuwRKiYXtbkpCA +kdF0VJ1Y/gVg7K230Ta8PH58XcrAcaDuwzpIYDdT+0keCu8IkF7PuFaErlLyyvJO+NO3vhHw4sPB YpmY1r58YdMKQsadSFROvl6Km9tBUobkmn7fHpWwKMli/B/H9ofcD0ygXYSlYMdlxYKKtDGImdPGu FlnRLKl3Lve8p4lBhmqcrXqb2NLRoa1aDXc3cyeLDXWF8xNw9Lfp3ljKe9gvb/6i+6RIOKZDQFvgN ANFcsmmg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eRV0j-0003k6-QH; Wed, 20 Dec 2017 03:25:37 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eRUzF-0002g9-V0 for linux-arm-kernel@lists.infradead.org; Wed, 20 Dec 2017 03:24:27 +0000 Received: by mail-pf0-x243.google.com with SMTP id y89so12047883pfk.0 for ; Tue, 19 Dec 2017 19:23:55 -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=qVQjG69OVGroY4sMhtMvjqc4NJ8LxXjPbh0xVWvmdE8=; b=HaX8jmkfEtqXzRs+rWKaJ2SK1DAT0/po5yJjKpMmLJA0VDkmiOCiIrC5+VS86FEt3J OFST8smdM2R24YJ63Jr0UWRAEN8NUpoQ7Go4KFGIF5Um84SBOfK+aPUuO+nX6fie5jy5 zhzTuZ+cpAMfnC4h/LaXJjb57KHJSQ2p0yy7gwxxfgmZGEx2+aIkm7lR+wFEnbECVlHl TLzt9G0v0B68QLGbTBJgUj8GSBrCKUmqMiSQgYNUmv7BkInyOC90c7GPBw4a3abS3HtT bwT0C+9/09Gks7VK8Cx8H1lJYkZlARRo4FchHKp7BS+lrOhbYhagQIKc3X4soUP0HoIp mhcA== 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=qVQjG69OVGroY4sMhtMvjqc4NJ8LxXjPbh0xVWvmdE8=; b=WQ4OvXr4jtKUOF7pwNAaiUAnWfnb+OXchz+3Fco0k9DfAyi/ob5uW3rFvVAmSKbSxH 3VC5x5LqJQADrgpx7F1GDfHK3nlcjHTCPqIhfcvizBLHid0q3jY5gyB2bu68w+tyEKH3 kOb+CORNBLVj6mZPSC/11qqb6KnIqn5C4N5DLBezYR4B6vzYkfOaEhNhZfMaDBANCC4S GmH3wbEtvKxfx+V/5HPTFv1MD0rJPvrg3FZQqwLNjo30XoctyOimiGasnGdQK8XYB9MN 7j3++ORnVI9dGr6K1RAP1927klFlNQnOAEwga3Hba9uPQEBDaMqU9rmtA+ZLA757Kjtp 6a0w== X-Gm-Message-State: AKGB3mLlVmG7RRDysV+m+hrYXc4nfpG0eLGxuKIXIVb1i98VDN9ohbXX rcrg+EOwDFLPaLyjoLA3hLs= X-Google-Smtp-Source: ACJfBosbQ/0iEos01N0St43i6/npHDmR5Axtox1lldHrk6VvMzD4DmA616KsXp3lROeETM9u01P08A== X-Received: by 10.99.95.13 with SMTP id t13mr5044073pgb.235.1513740235014; Tue, 19 Dec 2017 19:23:55 -0800 (PST) Received: from aurora.jms.id.au ([45.124.203.15]) by smtp.gmail.com with ESMTPSA id m25sm35179465pfk.37.2017.12.19.19.23.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Dec 2017 19:23:53 -0800 (PST) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Wed, 20 Dec 2017 13:53:43 +1030 From: Joel Stanley To: Rob Herring , Mark Rutland , Arnd Bergmann , Andrew Jeffery , Patrick Venture , Xo Wang , Lei YU Subject: [PATCH v3 01/20] dt-bindings: clock: Add ASPEED constants Date: Wed, 20 Dec 2017 13:53:09 +1030 Message-Id: <20171220032328.30584-2-joel@jms.id.au> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171220032328.30584-1-joel@jms.id.au> References: <20171220032328.30584-1-joel@jms.id.au> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171219_192406_794759_E5BAEAD0 X-CRM114-Status: GOOD ( 13.58 ) 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 used by the clock driver. This commit is included so the tree will build without the clock series being applied. Reviewed-by: Rob Herring Signed-off-by: Joel Stanley --- v3: - Clarify that the clock defines will be merged as part of the dt changes, so that the device tree merge will not depend on the clock tree 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