arm64: Add TI AM65x-based IOT2050 boards
Subsystems (2)
v4 cover arm64: Add TI AM65x-based IOT2050 boards
Changes in v4:
- rebased over ti-k3-dts-next and resent completely (no changes)
- added ack and review tags
Jan
Jan Kiszka (3):
dt-bindings: Add Siemens vendor prefix
dt-bindings: arm: ti: Add bindings for Siemens IOT2050 boards
arm64: dts: ti: Add support for Siemens IOT2050 boards
.../devicetree/bindings/arm/ti/k3.yaml | 2 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm64/boot/dts/ti/Makefile | 2 + .../boot/dts/ti/k3-am65-iot2050-common.dtsi | 661 ++++++++++++++++++ .../boot/dts/ti/k3-am6528-iot2050-basic.dts | 61 ++ .../dts/ti/k3-am6548-iot2050-advanced.dts | 60 ++ 6 files changed, 788 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi create mode 100644 arch/arm64/boot/dts/ti/k3-am6528-iot2050-basic.dts create mode 100644 arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced.dts
Signature · 1 line
2.26.2
PATCH v4 2/3 dt-bindings: arm: ti: Add bindings for Siemens IOT2050 boards
From: Jan Kiszka <[email protected]>
These boards are based on AM6528 GP and AM6548 HS SOCs.
--- Documentation/devicetree/bindings/arm/ti/k3.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/arm/ti/k3.yaml +2 -0
@@ -23,6 +23,8 @@ properties: items: - enum: - ti,am654-evm + - siemens,iot2050-basic + - siemens,iot2050-advanced - const: ti,am654 - description: K3 J721E SoC
Signature · 1 line
2.26.2
PATCH v4 3/3 arm64: dts: ti: Add support for Siemens IOT2050 boards
In reply to Jan KiszkaFrom: Jan Kiszka <[email protected]>
Add support for two Siemens SIMATIC IOT2050 variants, Basic and Advanced. They are based on the TI AM6528 GP and AM6548 SOCs HS, thus differ in their number of cores and availability of security features. Furthermore the Advanced version comes with more RAM, an eMMC and a few internal differences.
Based on original version by Le Jin.
--- arch/arm64/boot/dts/ti/Makefile | 2 + .../boot/dts/ti/k3-am65-iot2050-common.dtsi | 661 ++++++++++++++++++ .../boot/dts/ti/k3-am6528-iot2050-basic.dts | 61 ++ .../dts/ti/k3-am6548-iot2050-advanced.dts | 60 ++ 4 files changed, 784 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi create mode 100644 arch/arm64/boot/dts/ti/k3-am6528-iot2050-basic.dts create mode 100644 arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced.dts
arch/arm64/boot/dts/ti/Makefile +2 -0
@@ -7,6 +7,8 @@ # dtb-$(CONFIG_ARCH_K3) += k3-am654-base-board.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced.dtb dtb-$(CONFIG_ARCH_K3) += k3-j721e-common-proc-board.dtb
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi new file +661 -0
661 lines not on this page · raw message
arch/arm64/boot/dts/ti/k3-am6528-iot2050-basic.dts new file +61 -0
61 lines not on this page · raw message
arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced.dts new file +60 -0
60 lines not on this page · raw message
Signature · 1 line
2.26.2
PATCH v4 1/3 dt-bindings: Add Siemens vendor prefix
In reply to Jan KiszkaFrom: Jan Kiszka <[email protected]>
Add prefix for Siemens AG.
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -1024,6 +1024,8 @@ patternProperties: description: Silex Insight "^siliconmitus,.*": description: Silicon Mitus, Inc. + "^siemens,.*": + description: Siemens AG "^simtek,.*": description: Cypress Semiconductor Corporation (Simtek Corporation) "^sinlinx,.*":
Signature · 7 lines
2.26.2 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Nishanth Menon
maintainerRe: [PATCH v4 3/3] arm64: dts: ti: Add support for Siemens IOT2050 boards
In reply to Jan Kiszkaarch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi line 583
Quoted 5 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi new file +4
-0+ spidev@0 { + compatible = "rohm,dh2228fv"; + spi-max-frequency = <20000000>; + reg = <0>;
Jan,
As part of my final sanity checks, I noticed that we missed this: is a checkpatch warning
WARNING: DT compatible string "rohm,dh2228fv" appears un-documented -- check ./Documentation/devicetree/bindings/ #629: FILE: arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi:581:
compatible = "rohm,dh2228fv";
I cannot pick up nodes that are'nt documented as yaml in
Documentation/devicetree
I know this is irritating to find such nodes that already have previous users and the person coming last gets to deal with "new rules".. but sorry for catching this so late.
Here are the options that come to mind:
option 1) - drop the node and resubmit.
option 2) - get the documentation into linux master tree and then submit the patches.
I think we should just drop the node and resubmit - since this is a more intrusive change and I don't have your platform handy, I am going to suggest you make a call :(
Additionally please install yamlint and dtbs_schema -> run dtbs_check. I see more than a few warnings there which may need some closer look.
A full log against linux-next is here: https://pastebin.ubuntu.com/p/qR69h28c5f/
PS: https://github.com/nmenon/kernel_patch_verify/blob/master/kpv
I have been using my script to verify with kpv -C -V -n num_patches and then digging through the logs.
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D)/Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
Re: [PATCH v4 3/3] arm64: dts: ti: Add support for Siemens IOT2050 boards
Quoted 22 lines · Nishanth Menon
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi line 583
Quoted 5 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi new file +4
-0+ spidev@0 { + compatible = "rohm,dh2228fv"; + spi-max-frequency = <20000000>; + reg = <0>;Jan,
As part of my final sanity checks, I noticed that we missed this: is a checkpatch warning
WARNING: DT compatible string "rohm,dh2228fv" appears un-documented -- check
./Documentation/devicetree/bindings/#629: FILE:arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi:581:compatible = "rohm,dh2228fv";I cannot pick up nodes that are'nt documented as yaml in
Documentation/devicetreeI know this is irritating to find such nodes that already have previous users and the person coming last gets to deal with "new rules".. but sorry for catching this so late.
Quoted 7 lines
Here are the options that come to mind:
option 1) - drop the node and resubmit.
option 2) - get the documentation into linux master tree and then submit the patches.
As you said, I'm not setting a precedence here:
arch/arm/boot/dts/imx28-cfa10049.dts: compatible = "rohm,dh2228fv";arch/arm/boot/dts/rv1108-elgin-r1.dts: compatible = "rohm,dh2228fv";arch/arm/boot/dts/socfpga_cyclone5_socdk.dts: compatible = "rohm,dh2228fv";drivers/spi/spidev.c: { .compatible = "rohm,dh2228fv" },
Was just just never documented as binding? Or why is no one allowed to use this anymore? What is to be used instead for spidev?
Quoted 4 lines
I think we should just drop the node and resubmit - since this is a more intrusive change and I don't have your platform handy, I am going to suggest you make a call :(
This breaks userspace here, and we would need to carry that node on top.
BTW, I already brought up the topic internally to get you some boards for testing.
Quoted 4 lines
Additionally please install yamlint and
dtbs_schema-> rundtbs_check. I see more than a few warnings there which may need some closer look.
I've done that and addressed all that I could (former patch 4). We import those from k3, and I don't feel confident how to resolve them. See also v1 of this patch.
Jan
Quoted 9 lines
A full log against linux-next is here: https://pastebin.ubuntu.com/p/qR69h28c5f/
PS: https://github.com/nmenon/kernel_patch_verify/blob/master/kpv
I have been using my script to verify with kpv -C -V -n
num_patchesand then digging through the logs.
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Nishanth Menon
maintainerRe: [PATCH v4 3/3] arm64: dts: ti: Add support for Siemens IOT2050 boards
Quoted 33 lines · Jan Kiszka
Quoted 22 lines · Nishanth Menon
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi line 583
Quoted 5 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi new file +4
-0+ spidev@0 { + compatible = "rohm,dh2228fv"; + spi-max-frequency = <20000000>; + reg = <0>;Jan,
As part of my final sanity checks, I noticed that we missed this: is a checkpatch warning
WARNING: DT compatible string "rohm,dh2228fv" appears un-documented -- check
./Documentation/devicetree/bindings/#629: FILE:arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi:581:compatible = "rohm,dh2228fv";I cannot pick up nodes that are'nt documented as yaml in
Documentation/devicetreeI know this is irritating to find such nodes that already have previous users and the person coming last gets to deal with "new rules".. but sorry for catching this so late.
Quoted 7 lines
Here are the options that come to mind:
option 1) - drop the node and resubmit.
option 2) - get the documentation into linux master tree and then submit the patches.
As you said, I'm not setting a precedence here:
Quoted 7 lines
arch/arm/boot/dts/imx28-cfa10049.dts: compatible = "rohm,dh2228fv";arch/arm/boot/dts/rv1108-elgin-r1.dts: compatible = "rohm,dh2228fv";arch/arm/boot/dts/socfpga_cyclone5_socdk.dts: compatible = "rohm,dh2228fv";drivers/spi/spidev.c: { .compatible = "rohm,dh2228fv" },Was just just never documented as binding? Or why is no one allowed to use this anymore? What is to be used instead for spidev?
See [1] compare the compatibles against Documentation/devicetree/bindings -> I think you should describe what your hardware really is though.
Unfortunately devicetree migration has been far from being smooth.. it was like chewing an elephant - linux community had to attack it in pieces..
Yes - it was unfortunately one of those cases where the driver support was introduced long back and no binding was introduced at that time (it was'nt mandatory then).. then we added a mandatory requirement that it be documented in txt.. over years realized things are'nt great with unstructured txt description of binding, now moving on converting existing txt files to yaml and schemas to static check the dts... evolution over the years, I guess.
I am on a fight internally as well to have all our legacy txt files converted over to yaml.. and am having to put up a stance - see [2]
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/spi/spidev.c#n678
[2] https://lore.kernel.org/linux-arm-kernel/20210311134908.jsh2lywtwzvlyvbc@finally/T/#u
Quoted 8 lines
Quoted 5 lines
I think we should just drop the node and resubmit - since this is a more intrusive change and I don't have your platform handy, I am going to suggest you make a call :(
This breaks userspace here, and we would need to carry that node on top.
Uggh... that sucks.. but I think that would be lower tradeoff to make than me (as it stands now) having to drop the patch series.
Quoted 2 lines
BTW, I already brought up the topic internally to get you some boards for testing.
Thanks.. While it might help me personally to get some on my internal farm, it might be good to get them on kernelci as well on the longer run.
Quoted 4 lines
I've done that and addressed all that I could (former patch 4). We import those from k3, and I don't feel confident how to resolve them. See also v1 of this patch.
Yeah - i noticed that upstream dt-schema has gotten even more stricter even though the dts has remained the same.. I need to spend time in digging at it.
At this point the only big kicker is the checkpatch stuff which I cant let through - if i do that arnd will probably kick everything from my PR out :( - which I cant do.
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D)/Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
Re: [PATCH v4 3/3] arm64: dts: ti: Add support for Siemens IOT2050 boards
Quoted 39 lines · Nishanth Menon
Quoted 38 lines · Jan Kiszka
Quoted 22 lines · Nishanth Menon
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi line 583
Quoted 5 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi new file +4
-0+ spidev@0 { + compatible = "rohm,dh2228fv"; + spi-max-frequency = <20000000>; + reg = <0>;Jan,
As part of my final sanity checks, I noticed that we missed this: is a checkpatch warning
WARNING: DT compatible string "rohm,dh2228fv" appears un-documented -- check
./Documentation/devicetree/bindings/#629: FILE:arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi:581:compatible = "rohm,dh2228fv";I cannot pick up nodes that are'nt documented as yaml in
Documentation/devicetreeI know this is irritating to find such nodes that already have previous users and the person coming last gets to deal with "new rules".. but sorry for catching this so late.
Quoted 7 lines
Here are the options that come to mind:
option 1) - drop the node and resubmit.
option 2) - get the documentation into linux master tree and then submit the patches.
As you said, I'm not setting a precedence here:
arch/arm/boot/dts/imx28-cfa10049.dts: compatible = "rohm,dh2228fv";arch/arm/boot/dts/rv1108-elgin-r1.dts: compatible = "rohm,dh2228fv";arch/arm/boot/dts/socfpga_cyclone5_socdk.dts: compatible = "rohm,dh2228fv";drivers/spi/spidev.c: { .compatible = "rohm,dh2228fv" },
Quoted 6 lines
Quoted 2 lines
Was just just never documented as binding? Or why is no one allowed to use this anymore? What is to be used instead for spidev?
See [1] compare the compatibles against
Documentation/devicetree/bindings-> I think you should describe what your hardware really is though.
This SPI bus is routed to an Arduino connector. By default, userspace (e.g. mraa) takes ownership and adds the desired logic for what is being connected. We have no idea what shield or other extension the user adds, though.
Quoted 13 lines
Unfortunately devicetree migration has been far from being smooth.. it was like chewing an elephant - linux community had to attack it in pieces..
Yes - it was unfortunately one of those cases where the driver support was introduced long back and no binding was introduced at that time (it was'nt mandatory then).. then we added a mandatory requirement that it be documented in txt.. over years realized things are'nt great with unstructured txt description of binding, now moving on converting existing txt files to yaml and schemas to static check the dts... evolution over the years, I guess.
Quoted 6 lines
I am on a fight internally as well to have all our legacy txt files converted over to yaml.. and am having to put up a stance - see [2]
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/spi/spidev.c#n678
[2] https://lore.kernel.org/linux-arm-kernel/20210311134908.jsh2lywtwzvlyvbc@finally/T/#u
The problem here is not simple txt->yml conversion: There is no official binding for spidev yet, just existing users and the driver waiting for them.
Quoted 12 lines
Quoted 8 lines
Quoted 5 lines
I think we should just drop the node and resubmit - since this is a more intrusive change and I don't have your platform handy, I am going to suggest you make a call :(
This breaks userspace here, and we would need to carry that node on top.
Uggh... that sucks.. but I think that would be lower tradeoff to make than me (as it stands now) having to drop the patch series.
Quoted 7 lines
Quoted 2 lines
BTW, I already brought up the topic internally to get you some boards for testing.
Thanks.. While it might help me personally to get some on my internal farm, it might be good to get them on kernelci as well on the longer run.
Will keep that on the radar. I definitely want to get it into the CIP LAVA lab which is testing LTS as well.
Quoted 5 lines
Quoted 4 lines
I've done that and addressed all that I could (former patch 4). We import those from k3, and I don't feel confident how to resolve them. See also v1 of this patch.
Quoted 8 lines
Yeah - i noticed that upstream dt-schema has gotten even more stricter even though the dts has remained the same.. I need to spend time in digging at it.
At this point the only big kicker is the checkpatch stuff which I cant let through - if i do that arnd will probably kick everything from my PR out :( - which I cant do.
Are we talking about spidev here? Then let's drop that node, but I do need to know how to describe spidev properly
Or is it about those other warnings coming from your dtsi files, now being surfaced? If you can tell me how to resolve them, I can write patches.
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Nishanth Menon
maintainerRe: [PATCH v4 3/3] arm64: dts: ti: Add support for Siemens IOT2050 boards
On 15:14-20210311, Jan Kiszka wrote:
[...]
Quoted 9 lines
Quoted 4 lines
See [1] compare the compatibles against
Documentation/devicetree/bindings-> I think you should describe what your hardware really is though.This SPI bus is routed to an Arduino connector. By default, userspace (e.g. mraa) takes ownership and adds the desired logic for what is being connected. We have no idea what shield or other extension the user adds, though.
overlays look like the right approach for variable systems like these. It is not exactly plug and play.. but it does provide a level of flexibility that is helpful.
[..]
Quoted 3 lines
The problem here is not simple
txt->ymlconversion: There is no official binding for spidev yet, just existing users and the driver waiting for them.
I think we should discuss in the spidev list to get it resolved.
Quoted 7 lines
Quoted 4 lines
Thanks.. While it might help me personally to get some on my internal farm, it might be good to get them on kernelci as well on the longer run.
Will keep that on the radar. I definitely want to get it into the CIP LAVA lab which is testing LTS as well.
Cool.
Quoted 2 lines
Are we talking about spidev here? Then let's drop that node, but I do need to know how to describe spidev properly
yes - the spidev is my problem. can you drop the node and repost? i cant locally modify and hope it works.
Quoted 3 lines
Or is it about those other warnings coming from your dtsi files, now being surfaced? If you can tell me how to resolve them, I can write patches.
I will look at the warnings later today.. I dont think they are triggered by the board dts.
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D)/Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
Re: [PATCH v4 3/3] arm64: dts: ti: Add support for Siemens IOT2050 boards
Quoted 9 lines · Nishanth Menon
On 15:14-20210311, Jan Kiszka wrote:
[...]
Quoted 5 lines
Quoted 4 lines
See [1] compare the compatibles against
Documentation/devicetree/bindings-> I think you should describe what your hardware really is though.
Quoted 8 lines
Quoted 4 lines
This SPI bus is routed to an Arduino connector. By default, userspace (e.g. mraa) takes ownership and adds the desired logic for what is being connected. We have no idea what shield or other extension the user adds, though.
overlays look like the right approach for variable systems like these. It is not exactly plug and play.. but it does provide a level of flexibility that is helpful.
Yes, that's for extensions which have kernel drivers. The default model here is userspace, though. Will add as a separate patch to our queue for now.
Quoted 16 lines
[..]
Quoted 3 lines
The problem here is not simple
txt->ymlconversion: There is no official binding for spidev yet, just existing users and the driver waiting for them.I think we should discuss in the spidev list to get it resolved.
Quoted 7 lines
Quoted 4 lines
Thanks.. While it might help me personally to get some on my internal farm, it might be good to get them on kernelci as well on the longer run.
Will keep that on the radar. I definitely want to get it into the CIP LAVA lab which is testing LTS as well.
Quoted 8 lines
Cool.
Quoted 2 lines
Are we talking about spidev here? Then let's drop that node, but I do need to know how to describe spidev properly
yes - the spidev is my problem. can you drop the node and repost? i cant locally modify and hope it works.
Done.
Quoted 7 lines
Quoted 3 lines
Or is it about those other warnings coming from your dtsi files, now being surfaced? If you can tell me how to resolve them, I can write patches.
I will look at the warnings later today.. I dont think they are triggered by the board dts.
That was also my interpretation of the results. Some are even just copies from what you get for the EVM boards.
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Nishanth Menon
maintainerRe: [PATCH v4 3/3] arm64: dts: ti: Add support for Siemens IOT2050 boards
Quoted 15 lines · Jan Kiszka
Quoted 14 lines · Nishanth Menon
On 15:14-20210311, Jan Kiszka wrote:
[...]
Quoted 9 lines
Quoted 4 lines
See [1] compare the compatibles against
Documentation/devicetree/bindings-> I think you should describe what your hardware really is though.This SPI bus is routed to an Arduino connector. By default, userspace (e.g. mraa) takes ownership and adds the desired logic for what is being connected. We have no idea what shield or other extension the user adds, though.
Quoted 7 lines
Quoted 3 lines
overlays look like the right approach for variable systems like these. It is not exactly plug and play.. but it does provide a level of flexibility that is helpful.
Yes, that's for extensions which have kernel drivers. The default model here is userspace, though. Will add as a separate patch to our queue for now.
My colleagues did some checkups and pulled up a few thread on spidev of potential interests..
See:
https://patchwork.kernel.org/project/spi-devel-general/patch/[email protected]/
https://yurovsky.github.io/2016/10/07/spidev-linux-devices.html
etc...
I'd split the spidev node alone as an addendum indicate the checkpatch warning, describe the details and loop in spidev list, Mark, et.al. to discuss the direction. I am hoping we can get this resolved or get a direction for .13-rc1
But that said, I see some examples such as
for i in git grep ".compatible" drivers/spi/spidev.c|grep =|cut -d '=' -f2|cut -d ' ' -f2; do git grep $i Documentation/devicetree/bindings/; done
Documentation/devicetree/bindings/spi/spi-mux.yaml: compatible = "lineartechnology,ltc2488";
Documentation/devicetree/bindings/misc/ge-achc.txt:- compatible : Should be "ge,achc"Documentation/devicetree/bindings/misc/ge-achc.txt: compatible = "ge,achc";
Documentation/devicetree/bindings/misc/lwn-bk4.txt:- compatible : Should be "lwn,bk4"Documentation/devicetree/bindings/misc/lwn-bk4.txt: compatible = "lwn,bk4";
So, the shield could be hosting one of those say
ge,achc or maybe lwn,bk4 ?- will probably be good to document the
dts is for such a configuration, though it is possible that such a configuration might work for others?
I agree with Mark that "dt should indicate specific hardware" and we should constraint the definition in such a scope?
[...]
Quoted 9 lines
Quoted 7 lines
Quoted 3 lines
Are we talking about spidev here? Then let's drop that node, but I do need to know how to describe spidev properly
yes - the spidev is my problem. can you drop the node and repost? i cant locally modify and hope it works.
Done.
Thanks, I will try and pick up the v5 later today - need to redo my sanity checkups.
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D