ARM: dts: Add omap3-echo
PATCH 1/1 ARM: dts: Add omap3-echo
This is the first generation Amazon Echo from 2016. Audio support is not yet implemented.
---
I have local patches for the microphone array, but cleaning that up will take some time. Audio output seems to be even harder work...
You can find a tutorial on how to boot the Echo here:
https://labs.f-secure.com/archive/alexa-are-you-listening/
arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omap3-echo.dts | 466 +++++++++++++++++++++++++++++++ 2 files changed, 467 insertions(+) create mode 100644 arch/arm/boot/dts/omap3-echo.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -685,6 +685,7 @@ dtb-$(CONFIG_ARCH_OMAP3) += \ omap3-devkit8000.dtb \ omap3-devkit8000-lcd43.dtb \ omap3-devkit8000-lcd70.dtb \ + omap3-echo.dtb \ omap3-evm.dtb \ omap3-evm-37xx.dtb \ omap3-gta04a3.dtb \
arch/arm/boot/dts/omap3-echo.dts new file +466 -0
466 lines not on this page · raw message
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 2 lines · André Hentschel
This is the first generation Amazon Echo from 2016. Audio support is not yet implemented.
OK looks good to me, just worried about one part:
arch/arm/boot/dts/omap3-echo.dts line 466
Quoted 3 lines
+&sgx_module {
arch/arm/boot/dts/omap3-echo.dts new file +2
-0+ status = "disabled"; +};
We should have a separate am3703.dtsi or whatever the SoC model disabling sgx if not there on the SoC. That way board specific dts files can just include it without having to debug this issue over and over.
Regards,
Tony
Am 24.12.19 um 19:45 schrieb Tony Lindgren:
Quoted 6 lines · André Hentschel
Quoted 2 lines
This is the first generation Amazon Echo from 2016. Audio support is not yet implemented.
OK looks good to me, just worried about one part:
Quoted 8 lines
arch/arm/boot/dts/omap3-echo.dts line 466
Quoted 3 lines
+&sgx_module {
arch/arm/boot/dts/omap3-echo.dts new file +2
-0+ status = "disabled"; +};We should have a separate
am3703.dtsior whatever the SoC model disabling sgx if not there on the SoC. That way board specific dts files can just include it without having to debug this issue over and over.
Thanks for the quick review in that time of the year!
The sgx issue came up in newer kernels and I had to bisect it to 3b72fc895a2e57f70276b46f386f35d752adf555 The device just wasn't booting without a message, so yes, we should make it easier for others to figure it out. SoC is DM3725 and only DM3730 has sgx support. And it's hard to say if the base is am37xx or omap36xx. But I see the reasons you picked am3703, so I would move everything from omap36xx.dtsi to am3703.dtsi except sgx? And then include am3703.dtsi in omap36xx.dtsi before sgx support?
Or would it be better to have sgx support in a separate dtsi?
Quoted 17 lines · André Hentschel
Am 24.12.19 um 19:45 schrieb Tony Lindgren:
Quoted 6 lines · André Hentschel
Quoted 2 lines
This is the first generation Amazon Echo from 2016. Audio support is not yet implemented.
OK looks good to me, just worried about one part:
Quoted 8 lines
arch/arm/boot/dts/omap3-echo.dts line 466
Quoted 3 lines
+&sgx_module {
arch/arm/boot/dts/omap3-echo.dts new file +2
-0+ status = "disabled"; +};We should have a separate
am3703.dtsior whatever the SoC model disabling sgx if not there on the SoC. That way board specific dts files can just include it without having to debug this issue over and over.
Quoted 7 lines
Thanks for the quick review in that time of the year!
The sgx issue came up in newer kernels and I had to bisect it to3b72fc895a2e57f70276b46f386f35d752adf555The device just wasn't booting without a message, so yes, we should make it easier for others to figure it out. SoC is DM3725 and only DM3730 has sgx support. And it's hard to say if the base is am37xx or omap36xx. But I see the reasons you picked am3703, so I would move everything fromomap36xx.dtsitoam3703.dtsiexcept sgx?And then include
am3703.dtsiinomap36xx.dtsibefore sgx support?
I can see value in having a 3703 base and including that in the 36xx with SGX and DSP nodes, but why not jus make SGX disabled by default. Those who want/need it can enable it on a per-board basis.
Quoted 1 line
Or would it be better to have sgx support in a separate dtsi?
I am not sure how much DSP stuff is in there, but the DM3730 is the AM3703 + DSP and 3D.
adam
Quoted 5 lines
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Hi,
Quoted 6 lines
Am 24.12.2019 um 19:45 schrieb Tony Lindgren <[email protected]>:
Quoted 2 lines · André Hentschel
This is the first generation Amazon Echo from 2016. Audio support is not yet implemented.
Quoted 8 lines
OK looks good to me, just worried about one part:
arch/arm/boot/dts/omap3-echo.dts line 466
Quoted 3 lines
+&sgx_module {
arch/arm/boot/dts/omap3-echo.dts new file +2
-0+ status = "disabled"; +};We should have a separate
am3703.dtsior whatever the SoC model disabling sgx if not there on the SoC.
I think the am3703 is a dm3730 (omap3630) where the SGX and the DSP have not passed production test and are "disabled" by eFuses. This is a common procedure in silicon production to increase yield.
Therefore, there is a register which allows to dynamically determine what components (SGX and DSP) are available on a specific SoC chip. See "Table 1-6. Chip Identification" in the common "AM/DM37x Multimedia Device TRM".
Such bits exists for omap34xx and for omap36xx (aka am37xx/dm37xx).
That way there is no need to disable/enable sgx through device tree variations and introducing more complexity by introducing more and more DTS for variants (am3703.dtsi, am3715.dtsi, dm3720.dtsi, dm3730.dtsi?).
BTW: what about a board that is/was produced in either am3703 or dm3730 variants? Can they still share an omap36xx.dtsi based DTB?
So IMHO if there is an issue with sgx enabled on am3703 but no SGX hardware available on a specific SoC, the sysc setup should somehow read the bits and effectively disable all SGX related setup if it is not available on the SoC. If I remember correctly, some older hwmods did such things by checking SoC variant bits.
BR and thanks,
Nikolaus
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Am 25.12.19 um 18:01 schrieb H. Nikolaus Schaller:
Quoted 15 lines
I think the am3703 is a dm3730 (omap3630) where the SGX and the DSP have not passed production test and are "disabled" by eFuses. This is a common procedure in silicon production to increase yield.
Therefore, there is a register which allows to dynamically determine what components (SGX and DSP) are available on a specific SoC chip. See "Table 1-6. Chip Identification" in the common "AM/DM37x Multimedia Device TRM".
Such bits exists for omap34xx and for omap36xx (aka am37xx/dm37xx).
That way there is no need to disable/enable sgx through device tree variations and introducing more complexity by introducing more and more DTS for variants (
am3703.dtsi,am3715.dtsi,dm3720.dtsi,dm3730.dtsi?).
Quoted 8 lines
BTW: what about a board that is/was produced in either am3703 or dm3730 variants? Can they still share an
omap36xx.dtsibased DTB?So IMHO if there is an issue with sgx enabled on am3703 but no SGX hardware available on a specific SoC, the sysc setup should somehow read the bits and effectively disable all SGX related setup if it is not available on the SoC. If I remember correctly, some older hwmods did such things by checking SoC variant bits.
I like the idea, but I'm not in the position to vote for it and I don't understand the sysc code enough to implement that.
Am 25.12.19 um 13:53 schrieb Adam Ford:
Quoted 9 lines · André Hentschel
Quoted 1 line
And then include
am3703.dtsiinomap36xx.dtsibefore sgx support?I can see value in having a 3703 base and including that in the 36xx with SGX and DSP nodes, but why not jus make SGX disabled by default. Those who want/need it can enable it on a per-board basis.
Quoted 1 line
Or would it be better to have sgx support in a separate dtsi?
I am not sure how much DSP stuff is in there, but the DM3730 is the AM3703 + DSP and 3D.
For clarification this reduced table should help:
DM3730 | DM3725 | AM3715 | AM3703 DSP X | X | | SGX X | | X |
Where X is "supported"
Quoted 19 lines · André Hentschel
Am 25.12.19 um 18:01 schrieb H. Nikolaus Schaller:
Quoted 18 lines
I think the am3703 is a dm3730 (omap3630) where the SGX and the DSP have not passed production test and are "disabled" by eFuses. This is a common procedure in silicon production to increase yield.
Therefore, there is a register which allows to dynamically determine what components (SGX and DSP) are available on a specific SoC chip. See "Table 1-6. Chip Identification" in the common "AM/DM37x Multimedia Device TRM".
Such bits exists for omap34xx and for omap36xx (aka am37xx/dm37xx).
That way there is no need to disable/enable sgx through device tree variations and introducing more complexity by introducing more and more DTS for variants (
am3703.dtsi,am3715.dtsi,dm3720.dtsi,dm3730.dtsi?).BTW: what about a board that is/was produced in either am3703 or dm3730 variants? Can they still share an
omap36xx.dtsibased DTB?
Quoted 8 lines
Quoted 5 lines
So IMHO if there is an issue with sgx enabled on am3703 but no SGX hardware available on a specific SoC, the sysc setup should somehow read the bits and effectively disable all SGX related setup if it is not available on the SoC. If I remember correctly, some older hwmods did such things by checking SoC variant bits.
I like the idea, but I'm not in the position to vote for it and I don't understand the sysc code enough to implement that.
We can easily do both. So no worries, I can easily add SoC capabilites support at some point.
Quoted 11 lines
Am 25.12.19 um 13:53 schrieb Adam Ford:
Quoted 9 lines · André Hentschel
Quoted 1 line
And then include
am3703.dtsiinomap36xx.dtsibefore sgx support?I can see value in having a 3703 base and including that in the 36xx with SGX and DSP nodes, but why not jus make SGX disabled by default. Those who want/need it can enable it on a per-board basis.
Quoted 1 line
Or would it be better to have sgx support in a separate dtsi?
I am not sure how much DSP stuff is in there, but the DM3730 is the AM3703 + DSP and 3D.
Quoted 6 lines
For clarification this reduced table should help:
DM3730 | DM3725 | AM3715 | AM3703 DSP X | X | | SGX X | | X |Where X is "supported"
And let's also add minimal dm3725.dtsi, am3715.dtsi and am3703.dtsi to make things simple. The device tree is supposed to describe the hardware, and in most cases the SoC version is fixed and need no dynamic detection.
André, can you please add those three dtsi files since you have at least one test case? :)
Regards,
Tony
Am 30.12.19 um 18:29 schrieb Tony Lindgren:
Quoted 8 lines · André Hentschel
Quoted 6 lines
For clarification this reduced table should help:
DM3730 | DM3725 | AM3715 | AM3703 DSP X | X | | SGX X | | X |Where X is "supported"
Quoted 7 lines
And let's also add minimal
dm3725.dtsi,am3715.dtsiandam3703.dtsito make things simple. The device tree is supposed to describe the hardware, and in most cases the SoC version is fixed and need no dynamic detection.André, can you please add those three dtsi files since you have at least one test case? :)
Done, but I'm not sure how to handle the DSP stuff, so I only sent the SGX changes as I understood you want them to be
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Hi Tony,
Quoted 50 lines
Am 30.12.2019 um 18:29 schrieb Tony Lindgren <[email protected]>:
Quoted 19 lines · André Hentschel
Am 25.12.19 um 18:01 schrieb H. Nikolaus Schaller:
Quoted 18 lines
I think the am3703 is a dm3730 (omap3630) where the SGX and the DSP have not passed production test and are "disabled" by eFuses. This is a common procedure in silicon production to increase yield.
Therefore, there is a register which allows to dynamically determine what components (SGX and DSP) are available on a specific SoC chip. See "Table 1-6. Chip Identification" in the common "AM/DM37x Multimedia Device TRM".
Such bits exists for omap34xx and for omap36xx (aka am37xx/dm37xx).
That way there is no need to disable/enable sgx through device tree variations and introducing more complexity by introducing more and more DTS for variants (
am3703.dtsi,am3715.dtsi,dm3720.dtsi,dm3730.dtsi?).BTW: what about a board that is/was produced in either am3703 or dm3730 variants? Can they still share an
omap36xx.dtsibased DTB?Quoted 8 lines
Quoted 5 lines
So IMHO if there is an issue with sgx enabled on am3703 but no SGX hardware available on a specific SoC, the sysc setup should somehow read the bits and effectively disable all SGX related setup if it is not available on the SoC. If I remember correctly, some older hwmods did such things by checking SoC variant bits.
I like the idea, but I'm not in the position to vote for it and I don't understand the sysc code enough to implement that.
We can easily do both. So no worries, I can easily add SoC capabilites support at some point.
Quoted 16 lines
Am 25.12.19 um 13:53 schrieb Adam Ford:
Quoted 9 lines · André Hentschel
Quoted 1 line
And then include
am3703.dtsiinomap36xx.dtsibefore sgx support?I can see value in having a 3703 base and including that in the 36xx with SGX and DSP nodes, but why not jus make SGX disabled by default. Those who want/need it can enable it on a per-board basis.
Quoted 1 line
Or would it be better to have sgx support in a separate dtsi?
I am not sure how much DSP stuff is in there, but the DM3730 is the AM3703 + DSP and 3D.
For clarification this reduced table should help:
DM3730 | DM3725 | AM3715 | AM3703 DSP X | X | | SGX X | | X |
Quoted 4 lines
Quoted 1 line
Where X is "supported"
And let's also add minimal
dm3725.dtsi,am3715.dtsiandam3703.dtsito make things simple.
Well, is that "simple"?
We also have to add omap3503, omap3515, omap3520, omap3530.dtsi. And probably am3351,2,4,6,7,8,9 variants with different capabilities (PRU, SGX, CAN, ZCZ ports to name some).
And to be correct, there should be a different "compatible".
Rob asked me when reviewing the pvrsgx bindings if the img,5xx variants can be autodetected to reduce bindings complexity.
Quoted 3 lines
The device tree is supposed to describe the
hardware, and in most cases the SoC version is fixed and need no dynamic detection.
There may be exactly the same board populated with either one since they are drop-in pin compatible. So this may proliferate to the board.dts files and u-boot can have to load different .dtb.
Quoted 7 lines
André, can you please add those three dtsi files since you have at least one test case? :)
Regards,
Tony
BR,
Nikolaus
Quoted 5 lines · H. Nikolaus Schaller
Quoted 3 lines
Am 30.12.2019 um 18:29 schrieb Tony Lindgren <[email protected]>:
And let's also add minimaldm3725.dtsi,am3715.dtsiandam3703.dtsito make things simple.Well, is that "simple"?
Well simple from "adding support for a new device in most case" point of view yes..
Quoted 5 lines
We also have to add omap3503, omap3515, omap3520,
omap3530.dtsi. And probably am3351,2,4,6,7,8,9 variants with different capabilities (PRU, SGX, CAN, ZCZ ports to name some).And to be correct, there should be a different "compatible".
..and yes the number of permutations quickly gets out of control :)
The SoC specific compatibles should be there though. So everybody, please keep adding them as we encounter the missing ones.
Note that we don't seem to have much any feature detection for the newer TI parts. At least am4 and dra7 already rely on of_machine_is_compatible() checks for omap_hwmod_43xx_data.c and omap_hwmod_7xx_data.c.
Quoted 2 lines
Rob asked me when reviewing the pvrsgx bindings if the img,5xx variants can be autodetected to reduce bindings complexity.
Yes also dynamic detection is needed, and we do have that working for many SoCs. The use in ti-sysc driver is still missing though, and newer SoCs never had feature detection added.
Quoted 7 lines
Quoted 3 lines
The device tree is supposed to describe the
hardware, and in most cases the SoC version is fixed and need no dynamic detection.There may be exactly the same board populated with either one since they are drop-in pin compatible. So this may proliferate to the
board.dtsfiles and u-boot can have to load different .dtb.
Yeah. I'm afraid we're already depending for bootloader picking the right dtb for many cases, such as capes etc.
Regards,
Tony