From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7B6EDC433EF for ; Sat, 29 Jan 2022 02:06:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 733C383673; Sat, 29 Jan 2022 03:06:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 9F0198368F; Sat, 29 Jan 2022 03:06:09 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id A7EA883672 for ; Sat, 29 Jan 2022 03:06:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andre.przywara@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0A9BED6E; Fri, 28 Jan 2022 18:06:05 -0800 (PST) Received: from slackpad.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5619D3F7D7; Fri, 28 Jan 2022 18:06:02 -0800 (PST) Date: Sat, 29 Jan 2022 02:05:52 +0000 From: Andre Przywara To: Jesse Taube Cc: u-boot@lists.denx.de, jagan@amarulasolutions.com, hdegoede@redhat.com, sjg@chromium.org, icenowy@aosc.io, marek.behun@nic.cz, festevam@denx.de, narmstrong@baylibre.com, tharvey@gateworks.com, christianshewitt@gmail.com, pbrobinson@gmail.com, jernej.skrabec@gmail.com, hs@denx.de, samuel@sholland.org, arnaud.ferraris@gmail.com, giulio.benetti@benettiengineering.com, thirtythreeforty@gmail.com Subject: Re: [PATCH v2 04/12] dt-bindings: clock: Add initial suniv headers Message-ID: <20220129020552.76a26142@slackpad.fritz.box> In-Reply-To: <20220126135329.2997430-5-Mr.Bossman075@gmail.com> References: <20220126135329.2997430-1-Mr.Bossman075@gmail.com> <20220126135329.2997430-5-Mr.Bossman075@gmail.com> Organization: Arm Ltd. X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.31; x86_64-slackware-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On Wed, 26 Jan 2022 08:53:21 -0500 Jesse Taube wrote: > From: Icenowy Zheng > > This commit introduces suniv dt-bindings headers needed for > device tree files. Looks better, but please do a verbatim copy from a (recent) Linux tree, using the mainline file names, and noting the tag or commit hash in the commit message (just take 5.16.0, for instance). And please merge this with the next patch (the reset header), and actually also the device tree files from patch 11/12. I think the original series had clock driver support, for which we need the symbols from those headers earlier, but in this version here this is not the case. So to reduce the churn: One patch towards the end, with .h, .dtsi and .dts, all directly copied from Linux. Cheers, Andre > Signed-off-by: Icenowy Zheng > Signed-off-by: Jesse Taube > --- > V1->V2: > * Sync with Linux > --- > include/dt-bindings/clock/suniv-ccu.h | 69 +++++++++++++++++++++++++++ > 1 file changed, 69 insertions(+) > create mode 100644 include/dt-bindings/clock/suniv-ccu.h > > diff --git a/include/dt-bindings/clock/suniv-ccu.h b/include/dt-bindings/clock/suniv-ccu.h > new file mode 100644 > index 0000000000..1cbb23b5c5 > --- /dev/null > +++ b/include/dt-bindings/clock/suniv-ccu.h > @@ -0,0 +1,69 @@ > +/* SPDX-License-Identifier: (GPL-2.0+ or MIT) */ > +/* > + * Copyright (c) 2018 Icenowy Zheng > + */ > + > +#ifndef _DT_BINDINGS_CLK_SUNIV_H_ > +#define _DT_BINDINGS_CLK_SUNIV_H_ > + > +#define CLK_CPU 11 > + > +#define CLK_BUS_DMA 14 > +#define CLK_BUS_MMC0 15 > +#define CLK_BUS_MMC1 16 > +#define CLK_BUS_DRAM 17 > +#define CLK_BUS_SPI0 18 > +#define CLK_BUS_SPI1 19 > +#define CLK_BUS_OTG 20 > +#define CLK_BUS_VE 21 > +#define CLK_BUS_LCD 22 > +#define CLK_BUS_DEINTERLACE 23 > +#define CLK_BUS_CSI 24 > +#define CLK_BUS_TVD 25 > +#define CLK_BUS_TVE 26 > +#define CLK_BUS_DE_BE 27 > +#define CLK_BUS_DE_FE 28 > +#define CLK_BUS_CODEC 29 > +#define CLK_BUS_SPDIF 30 > +#define CLK_BUS_IR 31 > +#define CLK_BUS_RSB 32 > +#define CLK_BUS_I2S0 33 > +#define CLK_BUS_I2C0 34 > +#define CLK_BUS_I2C1 35 > +#define CLK_BUS_I2C2 36 > +#define CLK_BUS_PIO 37 > +#define CLK_BUS_UART0 38 > +#define CLK_BUS_UART1 39 > +#define CLK_BUS_UART2 40 > + > +#define CLK_MMC0 41 > +#define CLK_MMC0_SAMPLE 42 > +#define CLK_MMC0_OUTPUT 43 > +#define CLK_MMC1 44 > +#define CLK_MMC1_SAMPLE 45 > +#define CLK_MMC1_OUTPUT 46 > +#define CLK_I2S 47 > +#define CLK_SPDIF 48 > + > +#define CLK_USB_PHY0 49 > + > +#define CLK_DRAM_VE 50 > +#define CLK_DRAM_CSI 51 > +#define CLK_DRAM_DEINTERLACE 52 > +#define CLK_DRAM_TVD 53 > +#define CLK_DRAM_DE_FE 54 > +#define CLK_DRAM_DE_BE 55 > + > +#define CLK_DE_BE 56 > +#define CLK_DE_FE 57 > +#define CLK_TCON 58 > +#define CLK_DEINTERLACE 59 > +#define CLK_TVE2_CLK 60 > +#define CLK_TVE1_CLK 61 > +#define CLK_TVD 62 > +#define CLK_CSI 63 > +#define CLK_VE 64 > +#define CLK_CODEC 65 > +#define CLK_AVS 66 > + > +#endif