Define Versal power domain value macros.
Signed-off-by: Gregory Williams <gregory.williams@amd.com>
---
include/dt-bindings/power/xlnx-versal-power.h | 55 +++++++++++++++++++
1 file changed, 55 insertions(+)
create mode 100644 include/dt-bindings/power/xlnx-versal-power.h
diff --git a/include/dt-bindings/power/xlnx-versal-power.h b/include/dt-bindings/power/xlnx-versal-power.h
new file mode 100644
index 000000000000..effbc70e5a12
--- /dev/null
+++ b/include/dt-bindings/power/xlnx-versal-power.h
@@ -0,0 +1,55 @@
+/* SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) */
+/*
+ * Copyright (C) 2019 - 2021 Xilinx, Inc.
+ * Copyright (C) 2024 Advanced Micro Devices, Inc.
+ */
+
+#ifndef _DT_BINDINGS_VERSAL_POWER_H
+#define _DT_BINDINGS_VERSAL_POWER_H
+
+#define PM_DEV_RPU0_0 (0x18110005U)
+#define PM_DEV_RPU0_1 (0x18110006U)
+#define PM_DEV_OCM_0 (0x18314007U)
+#define PM_DEV_OCM_1 (0x18314008U)
+#define PM_DEV_OCM_2 (0x18314009U)
+#define PM_DEV_OCM_3 (0x1831400aU)
+#define PM_DEV_TCM_0_A (0x1831800bU)
+#define PM_DEV_TCM_0_B (0x1831800cU)
+#define PM_DEV_TCM_1_A (0x1831800dU)
+#define PM_DEV_TCM_1_B (0x1831800eU)
+#define PM_DEV_USB_0 (0x18224018U)
+#define PM_DEV_GEM_0 (0x18224019U)
+#define PM_DEV_GEM_1 (0x1822401aU)
+#define PM_DEV_SPI_0 (0x1822401bU)
+#define PM_DEV_SPI_1 (0x1822401cU)
+#define PM_DEV_I2C_0 (0x1822401dU)
+#define PM_DEV_I2C_1 (0x1822401eU)
+#define PM_DEV_CAN_FD_0 (0x1822401fU)
+#define PM_DEV_CAN_FD_1 (0x18224020U)
+#define PM_DEV_UART_0 (0x18224021U)
+#define PM_DEV_UART_1 (0x18224022U)
+#define PM_DEV_GPIO (0x18224023U)
+#define PM_DEV_TTC_0 (0x18224024U)
+#define PM_DEV_TTC_1 (0x18224025U)
+#define PM_DEV_TTC_2 (0x18224026U)
+#define PM_DEV_TTC_3 (0x18224027U)
+#define PM_DEV_SWDT_LPD (0x18224028U)
+#define PM_DEV_SWDT_FPD (0x18224029U)
+#define PM_DEV_OSPI (0x1822402aU)
+#define PM_DEV_QSPI (0x1822402bU)
+#define PM_DEV_GPIO_PMC (0x1822402cU)
+#define PM_DEV_I2C_PMC (0x1822402dU)
+#define PM_DEV_SDIO_0 (0x1822402eU)
+#define PM_DEV_SDIO_1 (0x1822402fU)
+#define PM_DEV_RTC (0x18224034U)
+#define PM_DEV_ADMA_0 (0x18224035U)
+#define PM_DEV_ADMA_1 (0x18224036U)
+#define PM_DEV_ADMA_2 (0x18224037U)
+#define PM_DEV_ADMA_3 (0x18224038U)
+#define PM_DEV_ADMA_4 (0x18224039U)
+#define PM_DEV_ADMA_5 (0x1822403aU)
+#define PM_DEV_ADMA_6 (0x1822403bU)
+#define PM_DEV_ADMA_7 (0x1822403cU)
+#define PM_DEV_AI (0x18224072U)
+
+#endif
--
2.34.1
On 02/07/2025 17:56, Gregory Williams wrote: > Define Versal power domain value macros. > > Signed-off-by: Gregory Williams <gregory.williams@amd.com> > --- > include/dt-bindings/power/xlnx-versal-power.h | 55 +++++++++++++++++++ <form letter> Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument, so you will not CC people just because they made one commit years ago). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. Tools like b4 or scripts/get_maintainer.pl provide you proper list of people, so fix your workflow. Tools might also fail if you work on some ancient tree (don't, instead use mainline) or work on fork of kernel (don't, instead use mainline). Just use b4 and everything should be fine, although remember about `b4 prep --auto-to-cc` if you added new patches to the patchset. </form letter> > 1 file changed, 55 insertions(+) > create mode 100644 include/dt-bindings/power/xlnx-versal-power.h > > diff --git a/include/dt-bindings/power/xlnx-versal-power.h b/include/dt-bindings/power/xlnx-versal-power.h > new file mode 100644 > index 000000000000..effbc70e5a12 > --- /dev/null > +++ b/include/dt-bindings/power/xlnx-versal-power.h > @@ -0,0 +1,55 @@ > +/* SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) */ > +/* > + * Copyright (C) 2019 - 2021 Xilinx, Inc. > + * Copyright (C) 2024 Advanced Micro Devices, Inc. > + */ > + > +#ifndef _DT_BINDINGS_VERSAL_POWER_H > +#define _DT_BINDINGS_VERSAL_POWER_H > + > +#define PM_DEV_RPU0_0 (0x18110005U) > +#define PM_DEV_RPU0_1 (0x18110006U) Bindings ID start from 0 or 1 and are decimal numbers. None of these are bindings (and commit msg does not explain here anything). Also, where is the compatible using these? Why is this a separate patch? Best regards, Krzysztof
On 7/3/2025 12:43 AM, Krzysztof Kozlowski wrote: > > On 02/07/2025 17:56, Gregory Williams wrote: >> Define Versal power domain value macros. >> >> Signed-off-by: Gregory Williams <gregory.williams@amd.com> >> --- >> include/dt-bindings/power/xlnx-versal-power.h | 55 +++++++++++++++++++ > > <form letter> > Please use scripts/get_maintainers.pl to get a list of necessary people > and lists to CC (and consider --no-git-fallback argument, so you will > not CC people just because they made one commit years ago). It might > happen, that command when run on an older kernel, gives you outdated > entries. Therefore please be sure you base your patches on recent Linux > kernel. > > Tools like b4 or scripts/get_maintainer.pl provide you proper list of > people, so fix your workflow. Tools might also fail if you work on some > ancient tree (don't, instead use mainline) or work on fork of kernel > (don't, instead use mainline). Just use b4 and everything should be > fine, although remember about `b4 prep --auto-to-cc` if you added new > patches to the patchset. > </form letter> > > >> 1 file changed, 55 insertions(+) >> create mode 100644 include/dt-bindings/power/xlnx-versal-power.h >> >> diff --git a/include/dt-bindings/power/xlnx-versal-power.h b/include/dt-bindings/power/xlnx-versal-power.h >> new file mode 100644 >> index 000000000000..effbc70e5a12 >> --- /dev/null >> +++ b/include/dt-bindings/power/xlnx-versal-power.h >> @@ -0,0 +1,55 @@ >> +/* SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) */ >> +/* >> + * Copyright (C) 2019 - 2021 Xilinx, Inc. >> + * Copyright (C) 2024 Advanced Micro Devices, Inc. >> + */ >> + >> +#ifndef _DT_BINDINGS_VERSAL_POWER_H >> +#define _DT_BINDINGS_VERSAL_POWER_H >> + >> +#define PM_DEV_RPU0_0 (0x18110005U) >> +#define PM_DEV_RPU0_1 (0x18110006U) > > Bindings ID start from 0 or 1 and are decimal numbers. None of these are > bindings (and commit msg does not explain here anything). > > Also, where is the compatible using these? Why is this a separate patch? In 'Submitting DT binding patches' it says: "The Documentation/ and include/dt-bindings/ portion of the patch should be a separate patch". This define was only used in the device tree binding example, I see the issue with this and will remove for V2. Thanks, Greg > > > > Best regards, > Krzysztof
On 10/07/2025 20:53, Williams, Gregory wrote: >> >> >>> 1 file changed, 55 insertions(+) >>> create mode 100644 include/dt-bindings/power/xlnx-versal-power.h >>> >>> diff --git a/include/dt-bindings/power/xlnx-versal-power.h b/include/dt-bindings/power/xlnx-versal-power.h >>> new file mode 100644 >>> index 000000000000..effbc70e5a12 >>> --- /dev/null >>> +++ b/include/dt-bindings/power/xlnx-versal-power.h >>> @@ -0,0 +1,55 @@ >>> +/* SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) */ >>> +/* >>> + * Copyright (C) 2019 - 2021 Xilinx, Inc. >>> + * Copyright (C) 2024 Advanced Micro Devices, Inc. >>> + */ >>> + >>> +#ifndef _DT_BINDINGS_VERSAL_POWER_H >>> +#define _DT_BINDINGS_VERSAL_POWER_H >>> + >>> +#define PM_DEV_RPU0_0 (0x18110005U) >>> +#define PM_DEV_RPU0_1 (0x18110006U) >> >> Bindings ID start from 0 or 1 and are decimal numbers. None of these are >> bindings (and commit msg does not explain here anything). >> >> Also, where is the compatible using these? Why is this a separate patch? > In 'Submitting DT binding patches' it says: "The Documentation/ and include/dt-bindings/ portion of the patch should be a separate patch". Separate from the driver. But that's a single patch. Best regards, Krzysztof
© 2016 - 2025 Red Hat, Inc.