Skip to contentSkip to conversation

include/dt-bindings: Remove functionally identical headers

PATCH In review Tom Rini 1 participant 3 messages May 27, 2025 – Jun 7, 2025

Subsystems (21)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/2 include/dt-bindings: Remove functionally identical headers

As part of moving to using OF_UPSTREAM and so the upstream dt-bindings headers we have a number of these headers that are in our include directory and differ only in combinations of spacing changes and/or switching to SPDX license tags. We can safely remove the copies under include/dt-bindings now to prevent future conflicts.

---
 include/dt-bindings/bus/ti-sysc.h             |  28 -
 include/dt-bindings/clock/bcm6328-clock.h     |  24 -
 include/dt-bindings/clock/maxim,max77802.h    |  22 -
 include/dt-bindings/clock/tegra124-car.h      |  19 -
 include/dt-bindings/clock/tegra186-clock.h    | 940 ------------------
 include/dt-bindings/dma/at91.h                |  51 -
 include/dt-bindings/gpio/aspeed-gpio.h        |  51 -
 include/dt-bindings/gpio/tegra-gpio.h         |  51 -
 include/dt-bindings/media/omap3-isp.h         |  22 -
 include/dt-bindings/mfd/st,stpmic1.h          |  50 -
 include/dt-bindings/net/ti-dp83867.h          |  53 -
 include/dt-bindings/pinctrl/dra.h             |  79 --
 include/dt-bindings/pinctrl/hisi.h            |  74 --
 include/dt-bindings/pinctrl/mt65xx.h          |  41 -
 include/dt-bindings/pinctrl/omap.h            |  91 --
 .../dt-bindings/pinctrl/pinctrl-tegra-xusb.h  |   7 -
 include/dt-bindings/pinctrl/pinctrl-tegra.h   |  37 -
 .../dt-bindings/pinctrl/r7s72100-pinctrl.h    |  18 -
 include/dt-bindings/power/raspberrypi-power.h |  41 -
 .../dt-bindings/power/tegra186-powergate.h    |  28 -
 .../dt-bindings/regulator/maxim,max77802.h    |  18 -
 include/dt-bindings/reset/altr,rst-mgr-a10.h  | 110 --
 include/dt-bindings/reset/altr,rst-mgr.h      |  82 --
 include/dt-bindings/reset/bcm6328-reset.h     |  23 -
 include/dt-bindings/reset/bcm6358-reset.h     |  20 -
 include/dt-bindings/reset/bcm6362-reset.h     |  27 -
 include/dt-bindings/reset/bcm6368-reset.h     |  21 -
 .../dt-bindings/reset/nuvoton,npcm7xx-reset.h |  91 --
 include/dt-bindings/reset/tegra124-car.h      |  12 -
 include/dt-bindings/reset/tegra186-reset.h    | 205 ----
 include/dt-bindings/reset/ti-syscon.h         |  38 -
 31 files changed, 2374 deletions(-)
 delete mode 100644 include/dt-bindings/bus/ti-sysc.h
 delete mode 100644 include/dt-bindings/clock/bcm6328-clock.h
 delete mode 100644 include/dt-bindings/clock/maxim,max77802.h
 delete mode 100644 include/dt-bindings/clock/tegra124-car.h
 delete mode 100644 include/dt-bindings/clock/tegra186-clock.h
 delete mode 100644 include/dt-bindings/dma/at91.h
 delete mode 100644 include/dt-bindings/gpio/aspeed-gpio.h
 delete mode 100644 include/dt-bindings/gpio/tegra-gpio.h
 delete mode 100644 include/dt-bindings/media/omap3-isp.h
 delete mode 100644 include/dt-bindings/mfd/st,stpmic1.h
 delete mode 100644 include/dt-bindings/net/ti-dp83867.h
 delete mode 100644 include/dt-bindings/pinctrl/dra.h
 delete mode 100644 include/dt-bindings/pinctrl/hisi.h
 delete mode 100644 include/dt-bindings/pinctrl/mt65xx.h
 delete mode 100644 include/dt-bindings/pinctrl/omap.h
 delete mode 100644 include/dt-bindings/pinctrl/pinctrl-tegra-xusb.h
 delete mode 100644 include/dt-bindings/pinctrl/pinctrl-tegra.h
 delete mode 100644 include/dt-bindings/pinctrl/r7s72100-pinctrl.h
 delete mode 100644 include/dt-bindings/power/raspberrypi-power.h
 delete mode 100644 include/dt-bindings/power/tegra186-powergate.h
 delete mode 100644 include/dt-bindings/regulator/maxim,max77802.h
 delete mode 100644 include/dt-bindings/reset/altr,rst-mgr-a10.h
 delete mode 100644 include/dt-bindings/reset/altr,rst-mgr.h
 delete mode 100644 include/dt-bindings/reset/bcm6328-reset.h
 delete mode 100644 include/dt-bindings/reset/bcm6358-reset.h
 delete mode 100644 include/dt-bindings/reset/bcm6362-reset.h
 delete mode 100644 include/dt-bindings/reset/bcm6368-reset.h
 delete mode 100644 include/dt-bindings/reset/nuvoton,npcm7xx-reset.h
 delete mode 100644 include/dt-bindings/reset/tegra124-car.h
 delete mode 100644 include/dt-bindings/reset/tegra186-reset.h
 delete mode 100644 include/dt-bindings/reset/ti-syscon.h
include/dt-bindings/bus/ti-sysc.h deleted +0 -28
deleted file mode 100644
index eae427454374..000000000000
@@ -1,28 +0,0 @@
-/* TI sysc interconnect target module defines */
-
-/* Generic sysc found on omap2 and later, also known as type1 */
-#define SYSC_OMAP2_CLOCKACTIVITY	(3 << 8)
-#define SYSC_OMAP2_EMUFREE		(1 << 5)
-#define SYSC_OMAP2_ENAWAKEUP		(1 << 2)
-#define SYSC_OMAP2_SOFTRESET		(1 << 1)
-#define SYSC_OMAP2_AUTOIDLE		(1 << 0)
-
-/* Generic sysc found on omap4 and later, also known as type2 */
-#define SYSC_OMAP4_DMADISABLE		(1 << 16)
-#define SYSC_OMAP4_FREEEMU		(1 << 1)	/* Also known as EMUFREE */
-#define SYSC_OMAP4_SOFTRESET		(1 << 0)
-
-/* SmartReflex sysc found on 36xx and later */
-#define SYSC_OMAP3_SR_ENAWAKEUP		(1 << 26)
-
-#define SYSC_DRA7_MCAN_ENAWAKEUP	(1 << 4)
-
-/* PRUSS sysc found on AM33xx/AM43xx/AM57xx */
-#define SYSC_PRUSS_SUB_MWAIT		(1 << 5)
-#define SYSC_PRUSS_STANDBY_INIT		(1 << 4)
-
-/* SYSCONFIG STANDBYMODE/MIDLEMODE/SIDLEMODE supported by hardware */
-#define SYSC_IDLE_FORCE			0
-#define SYSC_IDLE_NO			1
-#define SYSC_IDLE_SMART			2
-#define SYSC_IDLE_SMART_WKUP		3
include/dt-bindings/clock/bcm6328-clock.h deleted +0 -24
deleted file mode 100644
index 6f1e018a74bb..000000000000
@@ -1,24 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]>
- *
- * Derived from linux/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
- */
-
-#ifndef __DT_BINDINGS_CLOCK_BCM6328_H
-#define __DT_BINDINGS_CLOCK_BCM6328_H
-
-#define BCM6328_CLK_PHYMIPS	0
-#define BCM6328_CLK_ADSL_QPROC	1
-#define BCM6328_CLK_ADSL_AFE	2
-#define BCM6328_CLK_ADSL	3
-#define BCM6328_CLK_MIPS	4
-#define BCM6328_CLK_SAR		5
-#define BCM6328_CLK_PCM		6
-#define BCM6328_CLK_USBD	7
-#define BCM6328_CLK_USBH	8
-#define BCM6328_CLK_HSSPI	9
-#define BCM6328_CLK_PCIE	10
-#define BCM6328_CLK_ROBOSW	11
-
-#endif /* __DT_BINDINGS_CLOCK_BCM6328_H */
include/dt-bindings/clock/maxim,max77802.h deleted +0 -22
deleted file mode 100644
index 997312edcbb5..000000000000
@@ -1,22 +0,0 @@
-/*
- * Copyright (C) 2014 Google, Inc
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * Device Tree binding constants clocks for the Maxim 77802 PMIC.
- */
-
-#ifndef _DT_BINDINGS_CLOCK_MAXIM_MAX77802_CLOCK_H
-#define _DT_BINDINGS_CLOCK_MAXIM_MAX77802_CLOCK_H
-
-/* Fixed rate clocks. */
-
-#define MAX77802_CLK_32K_AP		0
-#define MAX77802_CLK_32K_CP		1
-
-/* Total number of clocks. */
-#define MAX77802_CLKS_NUM		(MAX77802_CLK_32K_CP + 1)
-
-#endif /* _DT_BINDINGS_CLOCK_MAXIM_MAX77802_CLOCK_H */
include/dt-bindings/clock/tegra124-car.h deleted +0 -19
deleted file mode 100644
index 2860737f0443..000000000000
@@ -1,19 +0,0 @@
-/*
- * This header provides Tegra124-specific constants for binding
- * nvidia,tegra124-car.
- */
-
-#include <dt-bindings/clock/tegra124-car-common.h>
-
-#ifndef _DT_BINDINGS_CLOCK_TEGRA124_CAR_H
-#define _DT_BINDINGS_CLOCK_TEGRA124_CAR_H
-
-#define TEGRA124_CLK_PLL_X		227
-#define TEGRA124_CLK_PLL_X_OUT0		228
-
-#define TEGRA124_CLK_CCLK_G		262
-#define TEGRA124_CLK_CCLK_LP		263
-
-#define TEGRA124_CLK_CLK_MAX		315
-
-#endif	/* _DT_BINDINGS_CLOCK_TEGRA124_CAR_H */
include/dt-bindings/clock/tegra186-clock.h deleted +0 -940

940 lines not on this page · raw message

include/dt-bindings/dma/at91.h deleted +0 -51

51 lines not on this page · raw message

include/dt-bindings/gpio/aspeed-gpio.h deleted +0 -51

51 lines not on this page · raw message

include/dt-bindings/gpio/tegra-gpio.h deleted +0 -51

51 lines not on this page · raw message

include/dt-bindings/media/omap3-isp.h deleted +0 -22
deleted file mode 100644
index 4e4208462142..000000000000
@@ -1,22 +0,0 @@
-/*
- * include/dt-bindings/media/omap3-isp.h
- *
- * Copyright (C) 2015 Sakari Ailus
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation.
- *
- * 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_OMAP3_ISP_H__
-#define __DT_BINDINGS_OMAP3_ISP_H__
-
-#define OMAP3ISP_PHY_TYPE_COMPLEX_IO   0
-#define OMAP3ISP_PHY_TYPE_CSIPHY       1
-
-#endif /* __DT_BINDINGS_OMAP3_ISP_H__ */
include/dt-bindings/mfd/st,stpmic1.h deleted +0 -50

50 lines not on this page · raw message

include/dt-bindings/net/ti-dp83867.h deleted +0 -53

53 lines not on this page · raw message

include/dt-bindings/pinctrl/dra.h deleted +0 -79

79 lines not on this page · raw message

include/dt-bindings/pinctrl/hisi.h deleted +0 -74

74 lines not on this page · raw message

include/dt-bindings/pinctrl/mt65xx.h deleted +0 -41

41 lines not on this page · raw message

include/dt-bindings/pinctrl/omap.h deleted +0 -91

91 lines not on this page · raw message

include/dt-bindings/pinctrl/pinctrl-tegra-xusb.h deleted +0 -7
deleted file mode 100644
index 914d56da9324..000000000000
@@ -1,7 +0,0 @@
-#ifndef _DT_BINDINGS_PINCTRL_TEGRA_XUSB_H
-#define _DT_BINDINGS_PINCTRL_TEGRA_XUSB_H 1
-
-#define TEGRA_XUSB_PADCTL_PCIE 0
-#define TEGRA_XUSB_PADCTL_SATA 1
-
-#endif /* _DT_BINDINGS_PINCTRL_TEGRA_XUSB_H */
include/dt-bindings/pinctrl/pinctrl-tegra.h deleted +0 -37
deleted file mode 100644
index c9b57408de68..000000000000
@@ -1,37 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * This header provides constants for Tegra pinctrl bindings.
- *
- * Copyright (c) 2013, NVIDIA CORPORATION.  All rights reserved.
- *
- * Author: Laxman Dewangan <[email protected]>
- */
-
-#ifndef _DT_BINDINGS_PINCTRL_TEGRA_H
-#define _DT_BINDINGS_PINCTRL_TEGRA_H
-
-/*
- * Enable/disable for diffeent dt properties. This is applicable for
- * properties nvidia,enable-input, nvidia,tristate, nvidia,open-drain,
- * nvidia,lock, nvidia,rcv-sel, nvidia,high-speed-mode, nvidia,schmitt.
- */
-#define TEGRA_PIN_DISABLE				0
-#define TEGRA_PIN_ENABLE				1
-
-#define TEGRA_PIN_PULL_NONE				0
-#define TEGRA_PIN_PULL_DOWN				1
-#define TEGRA_PIN_PULL_UP				2
-
-/* Low power mode driver */
-#define TEGRA_PIN_LP_DRIVE_DIV_8			0
-#define TEGRA_PIN_LP_DRIVE_DIV_4			1
-#define TEGRA_PIN_LP_DRIVE_DIV_2			2
-#define TEGRA_PIN_LP_DRIVE_DIV_1			3
-
-/* Rising/Falling slew rate */
-#define TEGRA_PIN_SLEW_RATE_FASTEST			0
-#define TEGRA_PIN_SLEW_RATE_FAST			1
-#define TEGRA_PIN_SLEW_RATE_SLOW			2
-#define TEGRA_PIN_SLEW_RATE_SLOWEST			3
-
-#endif
include/dt-bindings/pinctrl/r7s72100-pinctrl.h deleted +0 -18
deleted file mode 100644
index 31ee37610eb2..000000000000
@@ -1,18 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Defines macros and constants for Renesas RZ/A1 pin controller pin
- * muxing functions.
- */
-#ifndef __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H
-#define __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H
-
-#define RZA1_PINS_PER_PORT	16
-
-/*
- * Create the pin index from its bank and position numbers and store in
- * the upper 16 bits the alternate function identifier
- */
-#define RZA1_PINMUX(b, p, f)	\
-	((b) * RZA1_PINS_PER_PORT + (p) | ((f) << 16))
-
-#endif /* __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H */
include/dt-bindings/power/raspberrypi-power.h deleted +0 -41

41 lines not on this page · raw message

include/dt-bindings/power/tegra186-powergate.h deleted +0 -28
deleted file mode 100644
index 17e75498563c..000000000000
@@ -1,28 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright (c) 2015-2016, NVIDIA CORPORATION.
- */
-
-#ifndef _DT_BINDINGS_POWER_TEGRA186_POWERGATE_H
-#define _DT_BINDINGS_POWER_TEGRA186_POWERGATE_H
-
-#define TEGRA186_POWER_DOMAIN_AUD	0
-#define TEGRA186_POWER_DOMAIN_DFD	1
-#define TEGRA186_POWER_DOMAIN_DISP	2
-#define TEGRA186_POWER_DOMAIN_DISPB	3
-#define TEGRA186_POWER_DOMAIN_DISPC	4
-#define TEGRA186_POWER_DOMAIN_ISPA	5
-#define TEGRA186_POWER_DOMAIN_NVDEC	6
-#define TEGRA186_POWER_DOMAIN_NVJPG	7
-#define TEGRA186_POWER_DOMAIN_MPE	8
-#define TEGRA186_POWER_DOMAIN_PCX	9
-#define TEGRA186_POWER_DOMAIN_SAX	10
-#define TEGRA186_POWER_DOMAIN_VE	11
-#define TEGRA186_POWER_DOMAIN_VIC	12
-#define TEGRA186_POWER_DOMAIN_XUSBA	13
-#define TEGRA186_POWER_DOMAIN_XUSBB	14
-#define TEGRA186_POWER_DOMAIN_XUSBC	15
-#define TEGRA186_POWER_DOMAIN_GPU	43
-#define TEGRA186_POWER_DOMAIN_MAX	44
-
-#endif
include/dt-bindings/regulator/maxim,max77802.h deleted +0 -18
deleted file mode 100644
index cf28631d7109..000000000000
@@ -1,18 +0,0 @@
-/*
- * Copyright (C) 2014 Google, Inc
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * Device Tree binding constants for the Maxim 77802 PMIC regulators
- */
-
-#ifndef _DT_BINDINGS_REGULATOR_MAXIM_MAX77802_H
-#define _DT_BINDINGS_REGULATOR_MAXIM_MAX77802_H
-
-/* Regulator operating modes */
-#define MAX77802_OPMODE_LP	1
-#define MAX77802_OPMODE_NORMAL	3
-
-#endif /* _DT_BINDINGS_REGULATOR_MAXIM_MAX77802_H */
include/dt-bindings/reset/altr,rst-mgr-a10.h deleted +0 -110

110 lines not on this page · raw message

include/dt-bindings/reset/altr,rst-mgr.h deleted +0 -82

82 lines not on this page · raw message

include/dt-bindings/reset/bcm6328-reset.h deleted +0 -23
deleted file mode 100644
index f2dd4f79cc61..000000000000
@@ -1,23 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]>
- *
- * Derived from linux/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
- */
-
-#ifndef __DT_BINDINGS_RESET_BCM6328_H
-#define __DT_BINDINGS_RESET_BCM6328_H
-
-#define BCM6328_RST_SPI		0
-#define BCM6328_RST_EPHY	1
-#define BCM6328_RST_SAR		2
-#define BCM6328_RST_ENETSW	3
-#define BCM6328_RST_USBS	4
-#define BCM6328_RST_USBH	5
-#define BCM6328_RST_PCM		6
-#define BCM6328_RST_PCIE_CORE	7
-#define BCM6328_RST_PCIE	8
-#define BCM6328_RST_PCIE_EXT	9
-#define BCM6328_RST_PCIE_HARD	10
-
-#endif /* __DT_BINDINGS_RESET_BCM6328_H */
include/dt-bindings/reset/bcm6358-reset.h deleted +0 -20
deleted file mode 100644
index 075706eff7ad..000000000000
@@ -1,20 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]>
- *
- * Derived from linux/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
- */
-
-#ifndef __DT_BINDINGS_RESET_BCM6358_H
-#define __DT_BINDINGS_RESET_BCM6358_H
-
-#define BCM6358_RST_SPI		0
-#define BCM6358_RST_ENET	2
-#define BCM6358_RST_MPI		3
-#define BCM6358_RST_EPHY	6
-#define BCM6358_RST_SAR		7
-#define BCM6358_RST_USBH	12
-#define BCM6358_RST_PCM		13
-#define BCM6358_RST_ADSL	14
-
-#endif /* __DT_BINDINGS_RESET_BCM6358_H */
include/dt-bindings/reset/bcm6362-reset.h deleted +0 -27
deleted file mode 100644
index 8202e4991905..000000000000
@@ -1,27 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2018 Álvaro Fernández Rojas <[email protected]>
- *
- * Derived from linux/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
- */
-
-#ifndef __DT_BINDINGS_RESET_BCM6362_H
-#define __DT_BINDINGS_RESET_BCM6362_H
-
-#define BCM6362_RST_SPI		0
-#define BCM6362_RST_IPSEC	1
-#define BCM6362_RST_EPHY	2
-#define BCM6362_RST_SAR		3
-#define BCM6362_RST_ENETSW	4
-#define BCM6362_RST_USBD	5
-#define BCM6362_RST_USBH	6
-#define BCM6362_RST_PCM		7
-#define BCM6362_RST_PCIE_CORE	8
-#define BCM6362_RST_PCIE	9
-#define BCM6362_RST_PCIE_EXT	10
-#define BCM6362_RST_WLAN_SHIM	11
-#define BCM6362_RST_DDR_PHY	12
-#define BCM6362_RST_FAP		13
-#define BCM6362_RST_WLAN_UBUS	14
-
-#endif /* __DT_BINDINGS_RESET_BCM6362_H */
include/dt-bindings/reset/bcm6368-reset.h deleted +0 -21
deleted file mode 100644
index 0038a7ccf5c6..000000000000
@@ -1,21 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]>
- *
- * Derived from linux/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
- */
-
-#ifndef __DT_BINDINGS_RESET_BCM6368_H
-#define __DT_BINDINGS_RESET_BCM6368_H
-
-#define BCM6368_RST_SPI		0
-#define BCM6368_RST_MPI		3
-#define BCM6368_RST_IPSEC	4
-#define BCM6368_RST_EPHY	6
-#define BCM6368_RST_SAR		7
-#define BCM6368_RST_SWITCH	10
-#define BCM6368_RST_USBD	11
-#define BCM6368_RST_USBH	12
-#define BCM6368_RST_PCM		13
-
-#endif /* __DT_BINDINGS_RESET_BCM6368_H */
include/dt-bindings/reset/nuvoton,npcm7xx-reset.h deleted +0 -91

91 lines not on this page · raw message

include/dt-bindings/reset/tegra124-car.h deleted +0 -12
deleted file mode 100644
index 070e4f6e7486..000000000000
@@ -1,12 +0,0 @@
-/*
- * This header provides Tegra124-specific constants for binding
- * nvidia,tegra124-car.
- */
-
-#ifndef _DT_BINDINGS_RESET_TEGRA124_CAR_H
-#define _DT_BINDINGS_RESET_TEGRA124_CAR_H
-
-#define TEGRA124_RESET(x)		(6 * 32 + (x))
-#define TEGRA124_RST_DFLL_DVCO		TEGRA124_RESET(0)
-
-#endif	/* _DT_BINDINGS_RESET_TEGRA124_CAR_H */
include/dt-bindings/reset/tegra186-reset.h deleted +0 -205

205 lines not on this page · raw message

include/dt-bindings/reset/ti-syscon.h deleted +0 -38
deleted file mode 100644
index 1427ff140f11..000000000000
@@ -1,38 +0,0 @@
-/*
- * TI Syscon Reset definitions
- *
- * Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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_RESET_TI_SYSCON_H__
-#define __DT_BINDINGS_RESET_TI_SYSCON_H__
-
-/*
- * The reset does not support the feature and corresponding
- * values are not valid
- */
-#define ASSERT_NONE	(1 << 0)
-#define DEASSERT_NONE	(1 << 1)
-#define STATUS_NONE	(1 << 2)
-
-/* When set this function is activated by setting(vs clearing) this bit */
-#define ASSERT_SET	(1 << 3)
-#define DEASSERT_SET	(1 << 4)
-#define STATUS_SET	(1 << 5)
-
-/* The following are the inverse of the above and are added for consistency */
-#define ASSERT_CLEAR	(0 << 3)
-#define DEASSERT_CLEAR	(0 << 4)
-#define STATUS_CLEAR	(0 << 5)
-
-#endif
Signature · 1 line
2.43.0
author
#1 lore raw

PATCH 2/2 include/dt-bindings: Remove strict subset headers

As part of moving to using OF_UPSTREAM and so the upstream dt-bindings headers we have a number of these headers that are in our include directory and differ in being a strict subset of what is found upstream. We can safely remove the copies under include/dt-bindings now to prevent future conflicts.

---
 include/dt-bindings/clock/at91.h              |  23 --
 include/dt-bindings/clock/mt7622-clk.h        | 276 ------------------
 include/dt-bindings/clock/sun50i-a64-ccu.h    | 138 ---------
 .../interrupt-controller/apple-aic.h          |  15 -
 include/dt-bindings/memory/tegra114-mc.h      |  25 --
 include/dt-bindings/memory/tegra124-mc.h      |  31 --
 include/dt-bindings/memory/tegra210-mc.h      |  36 ---
 include/dt-bindings/memory/tegra30-mc.h       |  24 --
 include/dt-bindings/reset/altr,rst-mgr-s10.h  |  96 ------
 include/dt-bindings/reset/bcm63268-reset.h    |  31 --
 .../dt-bindings/thermal/tegra124-soctherm.h   |  14 -
 11 files changed, 709 deletions(-)
 delete mode 100644 include/dt-bindings/clock/at91.h
 delete mode 100644 include/dt-bindings/clock/mt7622-clk.h
 delete mode 100644 include/dt-bindings/clock/sun50i-a64-ccu.h
 delete mode 100644 include/dt-bindings/interrupt-controller/apple-aic.h
 delete mode 100644 include/dt-bindings/memory/tegra114-mc.h
 delete mode 100644 include/dt-bindings/memory/tegra124-mc.h
 delete mode 100644 include/dt-bindings/memory/tegra210-mc.h
 delete mode 100644 include/dt-bindings/memory/tegra30-mc.h
 delete mode 100644 include/dt-bindings/reset/altr,rst-mgr-s10.h
 delete mode 100644 include/dt-bindings/reset/bcm63268-reset.h
 delete mode 100644 include/dt-bindings/thermal/tegra124-soctherm.h
include/dt-bindings/clock/at91.h deleted +0 -23
deleted file mode 100644
index ab3ee241d10c..000000000000
@@ -1,23 +0,0 @@
-/*
- * This header provides constants for AT91 pmc status.
- *
- * The constants defined in this header are being used in dts.
- *
- * Licensed under GPLv2 or later.
- */
-
-#ifndef _DT_BINDINGS_CLK_AT91_H
-#define _DT_BINDINGS_CLK_AT91_H
-
-#define AT91_PMC_MOSCS		0		/* MOSCS Flag */
-#define AT91_PMC_LOCKA		1		/* PLLA Lock */
-#define AT91_PMC_LOCKB		2		/* PLLB Lock */
-#define AT91_PMC_MCKRDY		3		/* Master Clock */
-#define AT91_PMC_LOCKU		6		/* UPLL Lock */
-#define AT91_PMC_PCKRDY(id)	(8 + (id))	/* Programmable Clock */
-#define AT91_PMC_MOSCSELS	16		/* Main Oscillator Selection */
-#define AT91_PMC_MOSCRCS	17		/* Main On-Chip RC */
-#define AT91_PMC_CFDEV		18		/* Clock Failure Detector Event */
-#define AT91_PMC_GCKRDY		24		/* Generated Clocks */
-
-#endif
include/dt-bindings/clock/mt7622-clk.h deleted +0 -276

276 lines not on this page · raw message

include/dt-bindings/clock/sun50i-a64-ccu.h deleted +0 -138

138 lines not on this page · raw message

include/dt-bindings/interrupt-controller/apple-aic.h deleted +0 -15
deleted file mode 100644
index 9ac56a7e6d3f..000000000000
@@ -1,15 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
-#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_APPLE_AIC_H
-#define _DT_BINDINGS_INTERRUPT_CONTROLLER_APPLE_AIC_H
-
-#include <dt-bindings/interrupt-controller/irq.h>
-
-#define AIC_IRQ	0
-#define AIC_FIQ	1
-
-#define AIC_TMR_HV_PHYS		0
-#define AIC_TMR_HV_VIRT		1
-#define AIC_TMR_GUEST_PHYS	2
-#define AIC_TMR_GUEST_VIRT	3
-
-#endif
include/dt-bindings/memory/tegra114-mc.h deleted +0 -25
deleted file mode 100644
index 8f48985a3139..000000000000
@@ -1,25 +0,0 @@
-#ifndef DT_BINDINGS_MEMORY_TEGRA114_MC_H
-#define DT_BINDINGS_MEMORY_TEGRA114_MC_H
-
-#define TEGRA_SWGROUP_PTC	0
-#define TEGRA_SWGROUP_DC	1
-#define TEGRA_SWGROUP_DCB	2
-#define TEGRA_SWGROUP_EPP	3
-#define TEGRA_SWGROUP_G2	4
-#define TEGRA_SWGROUP_AVPC	5
-#define TEGRA_SWGROUP_NV	6
-#define TEGRA_SWGROUP_HDA	7
-#define TEGRA_SWGROUP_HC	8
-#define TEGRA_SWGROUP_MSENC	9
-#define TEGRA_SWGROUP_PPCS	10
-#define TEGRA_SWGROUP_VDE	11
-#define TEGRA_SWGROUP_MPCORELP	12
-#define TEGRA_SWGROUP_MPCORE	13
-#define TEGRA_SWGROUP_VI	14
-#define TEGRA_SWGROUP_ISP	15
-#define TEGRA_SWGROUP_XUSB_HOST	16
-#define TEGRA_SWGROUP_XUSB_DEV	17
-#define TEGRA_SWGROUP_EMUCIF	18
-#define TEGRA_SWGROUP_TSEC	19
-
-#endif
include/dt-bindings/memory/tegra124-mc.h deleted +0 -31
deleted file mode 100644
index 7d8ee798f34e..000000000000
@@ -1,31 +0,0 @@
-#ifndef DT_BINDINGS_MEMORY_TEGRA124_MC_H
-#define DT_BINDINGS_MEMORY_TEGRA124_MC_H
-
-#define TEGRA_SWGROUP_PTC	0
-#define TEGRA_SWGROUP_DC	1
-#define TEGRA_SWGROUP_DCB	2
-#define TEGRA_SWGROUP_AFI	3
-#define TEGRA_SWGROUP_AVPC	4
-#define TEGRA_SWGROUP_HDA	5
-#define TEGRA_SWGROUP_HC	6
-#define TEGRA_SWGROUP_MSENC	7
-#define TEGRA_SWGROUP_PPCS	8
-#define TEGRA_SWGROUP_SATA	9
-#define TEGRA_SWGROUP_VDE	10
-#define TEGRA_SWGROUP_MPCORELP	11
-#define TEGRA_SWGROUP_MPCORE	12
-#define TEGRA_SWGROUP_ISP2	13
-#define TEGRA_SWGROUP_XUSB_HOST	14
-#define TEGRA_SWGROUP_XUSB_DEV	15
-#define TEGRA_SWGROUP_ISP2B	16
-#define TEGRA_SWGROUP_TSEC	17
-#define TEGRA_SWGROUP_A9AVP	18
-#define TEGRA_SWGROUP_GPU	19
-#define TEGRA_SWGROUP_SDMMC1A	20
-#define TEGRA_SWGROUP_SDMMC2A	21
-#define TEGRA_SWGROUP_SDMMC3A	22
-#define TEGRA_SWGROUP_SDMMC4A	23
-#define TEGRA_SWGROUP_VIC	24
-#define TEGRA_SWGROUP_VI	25
-
-#endif
include/dt-bindings/memory/tegra210-mc.h deleted +0 -36
deleted file mode 100644
index d1731bc14dbc..000000000000
@@ -1,36 +0,0 @@
-#ifndef DT_BINDINGS_MEMORY_TEGRA210_MC_H
-#define DT_BINDINGS_MEMORY_TEGRA210_MC_H
-
-#define TEGRA_SWGROUP_PTC	0
-#define TEGRA_SWGROUP_DC	1
-#define TEGRA_SWGROUP_DCB	2
-#define TEGRA_SWGROUP_AFI	3
-#define TEGRA_SWGROUP_AVPC	4
-#define TEGRA_SWGROUP_HDA	5
-#define TEGRA_SWGROUP_HC	6
-#define TEGRA_SWGROUP_NVENC	7
-#define TEGRA_SWGROUP_PPCS	8
-#define TEGRA_SWGROUP_SATA	9
-#define TEGRA_SWGROUP_MPCORE	10
-#define TEGRA_SWGROUP_ISP2	11
-#define TEGRA_SWGROUP_XUSB_HOST	12
-#define TEGRA_SWGROUP_XUSB_DEV	13
-#define TEGRA_SWGROUP_ISP2B	14
-#define TEGRA_SWGROUP_TSEC	15
-#define TEGRA_SWGROUP_A9AVP	16
-#define TEGRA_SWGROUP_GPU	17
-#define TEGRA_SWGROUP_SDMMC1A	18
-#define TEGRA_SWGROUP_SDMMC2A	19
-#define TEGRA_SWGROUP_SDMMC3A	20
-#define TEGRA_SWGROUP_SDMMC4A	21
-#define TEGRA_SWGROUP_VIC	22
-#define TEGRA_SWGROUP_VI	23
-#define TEGRA_SWGROUP_NVDEC	24
-#define TEGRA_SWGROUP_APE	25
-#define TEGRA_SWGROUP_NVJPG	26
-#define TEGRA_SWGROUP_SE	27
-#define TEGRA_SWGROUP_AXIAP	28
-#define TEGRA_SWGROUP_ETR	29
-#define TEGRA_SWGROUP_TSECB	30
-
-#endif
include/dt-bindings/memory/tegra30-mc.h deleted +0 -24
deleted file mode 100644
index 502beb03d777..000000000000
@@ -1,24 +0,0 @@
-#ifndef DT_BINDINGS_MEMORY_TEGRA30_MC_H
-#define DT_BINDINGS_MEMORY_TEGRA30_MC_H
-
-#define TEGRA_SWGROUP_PTC	0
-#define TEGRA_SWGROUP_DC	1
-#define TEGRA_SWGROUP_DCB	2
-#define TEGRA_SWGROUP_EPP	3
-#define TEGRA_SWGROUP_G2	4
-#define TEGRA_SWGROUP_MPE	5
-#define TEGRA_SWGROUP_VI	6
-#define TEGRA_SWGROUP_AFI	7
-#define TEGRA_SWGROUP_AVPC	8
-#define TEGRA_SWGROUP_NV	9
-#define TEGRA_SWGROUP_NV2	10
-#define TEGRA_SWGROUP_HDA	11
-#define TEGRA_SWGROUP_HC	12
-#define TEGRA_SWGROUP_PPCS	13
-#define TEGRA_SWGROUP_SATA	14
-#define TEGRA_SWGROUP_VDE	15
-#define TEGRA_SWGROUP_MPCORELP	16
-#define TEGRA_SWGROUP_MPCORE	17
-#define TEGRA_SWGROUP_ISP	18
-
-#endif
include/dt-bindings/reset/altr,rst-mgr-s10.h deleted +0 -96

96 lines not on this page · raw message

include/dt-bindings/reset/bcm63268-reset.h deleted +0 -31
deleted file mode 100644
index a45abed1ceb7..000000000000
@@ -1,31 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]>
- *
- * Derived from linux/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
- */
-
-#ifndef __DT_BINDINGS_RESET_BCM63268_H
-#define __DT_BINDINGS_RESET_BCM63268_H
-
-#define BCM63268_RST_SPI	0
-#define BCM63268_RST_IPSEC	1
-#define BCM63268_RST_EPHY	2
-#define BCM63268_RST_SAR	3
-#define BCM63268_RST_ENETSW	4
-#define BCM63268_RST_USBS	5
-#define BCM63268_RST_USBH	6
-#define BCM63268_RST_PCM	7
-#define BCM63268_RST_PCIE_CORE	8
-#define BCM63268_RST_PCIE	9
-#define BCM63268_RST_PCIE_EXT	10
-#define BCM63268_RST_WLAN_SHIM	11
-#define BCM63268_RST_DDR_PHY	12
-#define BCM63268_RST_FAP0	13
-#define BCM63268_RST_WLAN_UBUS	14
-#define BCM63268_RST_DECT	15
-#define BCM63268_RST_FAP1	16
-#define BCM63268_RST_PCIE_HARD	17
-#define BCM63268_RST_GPHY	18
-
-#endif /* __DT_BINDINGS_RESET_BCM63268_H */
include/dt-bindings/thermal/tegra124-soctherm.h deleted +0 -14
deleted file mode 100644
index 729ab9fc325e..000000000000
@@ -1,14 +0,0 @@
-/*
- * This header provides constants for binding nvidia,tegra124-soctherm.
- */
-
-#ifndef _DT_BINDINGS_THERMAL_TEGRA124_SOCTHERM_H
-#define _DT_BINDINGS_THERMAL_TEGRA124_SOCTHERM_H
-
-#define TEGRA124_SOCTHERM_SENSOR_CPU 0
-#define TEGRA124_SOCTHERM_SENSOR_MEM 1
-#define TEGRA124_SOCTHERM_SENSOR_GPU 2
-#define TEGRA124_SOCTHERM_SENSOR_PLLX 3
-#define TEGRA124_SOCTHERM_SENSOR_NUM 4
-
-#endif
Signature · 1 line
2.43.0
author
#2 lore raw
In reply to Tom Rini
Quoted 8 lines · Tom Rini

As part of moving to using OF_UPSTREAM and so the upstream dt-bindings headers we have a number of these headers that are in our include directory and differ only in combinations of spacing changes and/or switching to SPDX license tags. We can safely remove the copies under include/dt-bindings now to prevent future conflicts.

[...]

Applied to u-boot/next, thanks!

[1/2] include/dt-bindings: Remove functionally identical headers

      commit: 9006969b6d402992e89dc2c2810aff08249b2e4a
[2/2] include/dt-bindings: Remove strict subset headers
      commit: d8ff4a06526816fcb463551dd0ed41c7f696b012
Signature · 1 line
Tom