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: 122425 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5023172qgn; Tue, 19 Dec 2017 19:23:59 -0800 (PST) X-Google-Smtp-Source: ACJfBouuUlynfllJDxlNlgyd5joKwDA7ZhfONQvig61bkkZWcsiNrkLvFxUGIKNfbo2j8tZiI7ui X-Received: by 10.99.124.16 with SMTP id x16mr5038539pgc.124.1513740239156; Tue, 19 Dec 2017 19:23:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513740239; cv=none; d=google.com; s=arc-20160816; b=Akz3xbGYxt9WD/AiyIOpCGiPecHNtJXBvbCPJ2VAjWULE4wiZmmfGYkyrDxhWbVEot e4KpNfIfJDn9wTJwxxu7pmmWFuPxz+WNzCD8GiWNaRWA/qMQ6bMyqxudNPL2d2W+FYiF hMe6V933ssIaIxT1SifCDS+Spmkqn5LW8V4PBLsPEqOoHlD8MIcpIijZ3xffO3GgE4wm Ig8HtzEbnh/xyqE4a2HCK/y+XzMSjIihID+mYbgoycpVp1oTlLjEI3wXOxKad+onjM3l c0sFKTN+/fVHrV7hXH/d0qoPpvY4Hvcrn0DTfb4HZ0F5o3nY28Or2pW0KlYO05pvz4W9 LlLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ze+JuOa60vVGBhQnjigFdC6hHooPXhlwZbRqSD5pVzA=; b=xUREsD0SyboS7TJBWnC+lxbcx2Jc6p0ZJavB83cTBvN/5v8xWuiM27fdNxPR9Mb510 OV2g8r6TKWuaQuANTq77yKISFGvsRDzqXXwzc6pRcH7nlV2eLWQ6JFO5ffR+PxaJgpMZ iVgVQwfu5Xf6uSPewwF04RysIKHUjFAts/Gz+tL0PTglN4VL+BKQXc4Cte9CTh1jMekI DSaPjq1MLP5lkJZnu+ubMfOZ6e+QsQu3AXlem7PSVdDZbPKt4+C5PeCO1uChGcCCf1tT fyK1wXhPv2dtn0uHPHWmxlNm01A0izR4v/TvXIC30eBn4kHVmWTzyU3E+YpFoHt32YH8 a9vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=HaX8jmkf; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b16si12303840pff.393.2017.12.19.19.23.58; Tue, 19 Dec 2017 19:23:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@gmail.com header.s=20161025 header.b=HaX8jmkf; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754163AbdLTDX6 (ORCPT + 6 others); Tue, 19 Dec 2017 22:23:58 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34573 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754066AbdLTDXz (ORCPT ); Tue, 19 Dec 2017 22:23:55 -0500 Received: by mail-pf0-f193.google.com with SMTP id a90so12044556pfk.1; 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=H0FdK8oJXGBX2gFSSOUZc9Bg6/6M54Orjuua1tPv/Vno0ah4ut/EFgaKyWIoYcbmf2 jy7HGGvFC61LEtrn2dZbRywbF9orcq8oIND0DYa2fEB6lOqDXiWpjQ2+oe0daYaLn5D2 MJDIcw0jQ8L15jbc+OvHfe2eR/MCRVTPLGJFmwOL4GSD8+Qt1//PAnWEJ2z6Sy29iXLh s3Jc+3TLUXL8zGN6NYbNksfi26JQ0IhVbkmXknTGgLdUv6yF+PZq4SDB0SE39iEJBw5b glT2gzdhVqhySwUgmk1yzmVOkBj+1x2imC0vfbTPDTzmvQrdU3RZZMAVlo01CjwivZSO o3yQ== X-Gm-Message-State: AKGB3mJX18YIACuB7NMZar4Bpj2sHNjldcq7qVAX2BbxAD0ZPszg8bWw mp4qR/wA86Wrc1gglgKpRWM= 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 Cc: =?utf-8?q?C=C3=A9dric_Le_Goater?= , Benjamin Herrenschmidt , Jeremy Kerr , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-aspeed@lists.ozlabs.org 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> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 -- 2.15.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" 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/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