mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@amd.com>
To: Rob Herring <robh@kernel.org>
Cc: linux-kernel@vger.kernel.org, monstr@monstr.eu,
	michal.simek@xilinx.com, git@xilinx.com,
	Conor Dooley <conor+dt@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
	<devicetree@vger.kernel.org>,
	"moderated list:ARM/ZYNQ ARCHITECTURE"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 3/3] arm64: zynqmp: Add support for kd240 board
Date: Mon, 18 Aug 2025 09:35:00 +0200	[thread overview]
Message-ID: <bb1a2e00-aafe-4b2c-8c7c-93801afa3c89@amd.com> (raw)
In-Reply-To: <CAL_Jsq+=mnYipAN2q8gdcDF2pK7e8NTOazgq9V+rZSAs9O4PEg@mail.gmail.com>



On 8/12/25 16:24, Rob Herring wrote:
> On Fri, Jul 18, 2025 at 6:24 AM Michal Simek <michal.simek@amd.com> wrote:
>>
>> The kit is using k24 SOM by default and it is used for motor control and
>> DSP applications.
>>
>> K24 SOM is also possible to used with kv260 and kr260 CC which are also
>> wired in Makefile.
>>
>> Signed-off-by: Michal Simek <michal.simek@amd.com>
>> ---
>>
>> https://www.amd.com/en/products/system-on-modules/kria/k24/k24i-industrial.html
>> https://www.amd.com/en/products/system-on-modules/kria/k24/kd240-drives-starter-kit.html
>>
>> ---
>>   arch/arm64/boot/dts/xilinx/Makefile           |  15 +
>>   .../boot/dts/xilinx/zynqmp-sck-kd-g-revA.dtso | 390 ++++++++++++++++++
>>   .../boot/dts/xilinx/zynqmp-sm-k24-revA.dts    |  23 ++
>>   .../boot/dts/xilinx/zynqmp-smk-k24-revA.dts   |  21 +
>>   4 files changed, 449 insertions(+)
>>   create mode 100644 arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dtso
>>   create mode 100644 arch/arm64/boot/dts/xilinx/zynqmp-sm-k24-revA.dts
>>   create mode 100644 arch/arm64/boot/dts/xilinx/zynqmp-smk-k24-revA.dts
>>
>> diff --git a/arch/arm64/boot/dts/xilinx/Makefile b/arch/arm64/boot/dts/xilinx/Makefile
>> index 5e84e3c725e2..70fac0b276df 100644
>> --- a/arch/arm64/boot/dts/xilinx/Makefile
>> +++ b/arch/arm64/boot/dts/xilinx/Makefile
>> @@ -39,4 +39,19 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-smk-k26-revA-sck-kr-g-revA.dtb
>>   zynqmp-smk-k26-revA-sck-kr-g-revB-dtbs := zynqmp-smk-k26-revA.dtb zynqmp-sck-kr-g-revB.dtbo
>>   dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-smk-k26-revA-sck-kr-g-revB.dtb
>>
>> +zynqmp-sm-k24-revA-sck-kd-g-revA-dtbs := zynqmp-sm-k24-revA.dtb zynqmp-sck-kd-g-revA.dtbo
>> +dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-sm-k24-revA-sck-kd-g-revA.dtb
>> +zynqmp-smk-k24-revA-sck-kd-g-revA-dtbs := zynqmp-smk-k24-revA.dtb zynqmp-sck-kd-g-revA.dtbo
>> +dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-smk-k24-revA-sck-kd-g-revA.dtb
>> +
>> +zynqmp-sm-k24-revA-sck-kv-g-revB-dtbs := zynqmp-sm-k24-revA.dtb zynqmp-sck-kv-g-revB.dtbo
>> +dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-sm-k24-revA-sck-kv-g-revB.dtb
>> +zynqmp-smk-k24-revA-sck-kv-g-revB-dtbs := zynqmp-smk-k24-revA.dtb zynqmp-sck-kv-g-revB.dtbo
>> +dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-smk-k24-revA-sck-kv-g-revB.dtb
>> +
>> +zynqmp-sm-k24-revA-sck-kr-g-revB-dtbs := zynqmp-sm-k24-revA.dtb zynqmp-sck-kr-g-revB.dtbo
>> +dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-sm-k24-revA-sck-kr-g-revB.dtb
>> +zynqmp-smk-k24-revA-sck-kr-g-revB-dtbs := zynqmp-smk-k24-revA.dtb zynqmp-sck-kr-g-revB.dtbo
>> +dtb-$(CONFIG_ARCH_ZYNQMP) += zynqmp-smk-k24-revA-sck-kr-g-revB.dtb
>> +
>>   dtb-$(CONFIG_ARCH_ZYNQMP) += versal-net-vn-x-b2197-01-revA.dtb
>> diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dtso b/arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dtso
>> new file mode 100644
>> index 000000000000..02be5e1e8686
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/xilinx/zynqmp-sck-kd-g-revA.dtso
>> @@ -0,0 +1,390 @@
>> +// SPDX-License-Identifier: GPL-2.0
>> +/*
>> + * dts file for KD240 revA Carrier Card
>> + *
>> + * Copyright (C) 2021 - 2022, Xilinx, Inc.
>> + * Copyright (C) 2022 - 2023, Advanced Micro Devices, Inc.
>> + *
>> + * Michal Simek <michal.simek@amd.com>
>> + */
>> +
>> +#include <dt-bindings/gpio/gpio.h>
>> +#include <dt-bindings/phy/phy.h>
>> +#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
>> +
>> +/dts-v1/;
>> +/plugin/;
>> +
>> +&{/} {
>> +       compatible = "xlnx,zynqmp-sk-kd240-rev1",
>> +                    "xlnx,zynqmp-sk-kd240-revB",
>> +                    "xlnx,zynqmp-sk-kd240-revA",
>> +                    "xlnx,zynqmp-sk-kd240", "xlnx,zynqmp";
>> +       model = "ZynqMP KD240 revA/B/1";
>> +
>> +       aliases {
>> +               ethernet0 = "/axi/ethernet@ff0c0000"; /* &gem1 */
>> +       };
>> +
>> +       ina260-u3 {
>> +               compatible = "iio-hwmon";
>> +               io-channels = <&u3 0>, <&u3 1>, <&u3 2>;
>> +       };
>> +
>> +       clk_26: clock2 { /* u17 - USB */
>> +               compatible = "fixed-clock";
>> +               #clock-cells = <0>;
>> +               clock-frequency = <26000000>;
>> +       };
>> +
>> +       clk_25_0: clock4 { /* u92/u91 - GEM2 */
>> +               compatible = "fixed-clock";
>> +               #clock-cells = <0>;
>> +               clock-frequency = <25000000>;
>> +       };
>> +
>> +       clk_25_1: clock5 { /* u92/u91 - GEM3 */
>> +               compatible = "fixed-clock";
>> +               #clock-cells = <0>;
>> +               clock-frequency = <25000000>;
>> +       };
>> +};
>> +
>> +&can0 {
>> +       status = "okay";
>> +       pinctrl-names = "default";
>> +       pinctrl-0 = <&pinctrl_can0_default>;
>> +};
>> +
>> +&i2c1 { /* I2C_SCK C26/C27 - MIO from SOM */
>> +       #address-cells = <1>;
>> +       #size-cells = <0>;
>> +       pinctrl-names = "default", "gpio";
>> +       pinctrl-0 = <&pinctrl_i2c1_default>;
>> +       pinctrl-1 = <&pinctrl_i2c1_gpio>;
>> +       scl-gpios = <&gpio 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
>> +       sda-gpios = <&gpio 25 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
>> +
>> +       u3: ina260@40 { /* u3 */
>> +               compatible = "ti,ina260";
>> +               #io-channel-cells = <1>;
>> +               label = "ina260-u14";
>> +               reg = <0x40>;
>> +       };
>> +
>> +       slg7xl45106: gpio@11 { /* u13 - reset logic */
>> +               compatible = "dlg,slg7xl45106";
>> +               reg = <0x11>;
>> +               label = "resetchip";
> 
> 'label' is not a documented property for this binding. Please drop.
> "dtbs_check" reports this.
> 

I has been added by

commit fc449cefe69d19d3a56903ca7e0fbc91c48ca3f5
Author:     Michal Simek <michal.simek@amd.com>
AuthorDate: Thu Feb 1 11:24:20 2024 +0100
Commit:     Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
CommitDate: Mon Feb 5 09:29:20 2024 +0100

     dt-bindings: gpio: pca9570: Add label property

     Add a label property to allow a custom name to be used for identifying
     a device on the board. This is useful when multiple devices are present on
     the same board. Similar change was done by commit ffae65fb1ae4
     ("dt-bindings: spi: spi-cadence: Add label property") or by commit
     a53faa6bfa3b ("dt-bindings: hwmon: ina2xx: Add label property").

     Signed-off-by: Michal Simek <michal.simek@amd.com>
     Acked-by: Rob Herring <robh@kernel.org>
     Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

If it is not correct it should be fixed. I see the same description in
Documentation/devicetree/bindings/input/gpio-keys.yaml
or
Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml


label:
   description: Descriptive name of the key.


or different
Documentation/devicetree/bindings/input/adc-keys.yaml:41:      label: true


Documentation/devicetree/bindings/arm/vexpress-config.yaml:153:      label:
Documentation/devicetree/bindings/arm/vexpress-config.yaml-154-        maxItems: 1

Please let me know how you want me to fix it.

Thanks,
Michal


  reply	other threads:[~2025-08-18  7:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-18 11:24 [PATCH 0/3] arm64: zynqmp: Add support for kr260 and kd240 Michal Simek
2025-07-18 11:24 ` [PATCH 1/3] dt-bindings: soc: xilinx: Add support for K24, KR260 and KD240 CCs Michal Simek
2025-07-21  0:36   ` Rob Herring (Arm)
2025-07-18 11:24 ` [PATCH 2/3] arm64: zynqmp: Add support for kr260 board Michal Simek
2025-07-18 11:24 ` [PATCH 3/3] arm64: zynqmp: Add support for kd240 board Michal Simek
2025-08-12 14:24   ` Rob Herring
2025-08-18  7:35     ` Michal Simek [this message]
2025-08-01 11:24 ` [PATCH 0/3] arm64: zynqmp: Add support for kr260 and kd240 Michal Simek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bb1a2e00-aafe-4b2c-8c7c-93801afa3c89@amd.com \
    --to=michal.simek@amd.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=git@xilinx.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michal.simek@xilinx.com \
    --cc=monstr@monstr.eu \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®