arm64: dts: freescale: add initial support for Google i.MX 8MQ Phanbell
Subsystems (2)
PATCH 1/1 arm64: dts: freescale: add initial support for Google i.MX 8MQ Phanbell
This patch adds the device tree to support Google Coral Edge TPU, historicaly named as fsl-imx8mq-phanbell, a computer on module which can be used for AI/ML propose.
It introduces a minimal enablement support for this module and was totally based on the NXP i.MX 8MQ EVK board and i.MX 8MQ Phanbell Google Source Code for Coral Edge TPU Mendel release:
https://coral.googlesource.com/linux-imx/
This patch was tested using the U-Boot 2017-03-1-release-chef, which is supported by the Coral Edge TPU Mendel release:
https://coral.googlesource.com/uboot-imx/
--- arch/arm64/boot/dts/freescale/Makefile | 1 + .../dts/freescale/fsl-imx8mq-phanbell.dts | 467 ++++++++++++++++++ 2 files changed, 468 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/fsl-imx8mq-phanbell.dts
arch/arm64/boot/dts/freescale/Makefile +1 -0
@@ -21,6 +21,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-rdb.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-rdb.dtb +dtb-$(CONFIG_ARCH_MXC) += fsl-imx8mq-phanbell.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mn-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mn-ddr4-evk.dtb
arch/arm64/boot/dts/freescale/fsl-imx8mq-phanbell.dts new file +467 -0
467 lines not on this page · raw message
Signature · 1 line
2.17.1
Fabio Estevam
reviewerHi Marco,
Quoted 6 lines · Marco Antonio Franchi
This patch adds the device tree to support Google Coral Edge TPU, historicaly named as fsl-imx8mq-phanbell, a computer on module which can be used for AI/ML propose.
It introduces a minimal enablement support for this module and
What are the features that have been tested?
Also, is the schematics available?
Quoted 7 lines
was totally based on the NXP i.MX 8MQ EVK board and i.MX 8MQ Phanbell Google Source Code for Coral Edge TPU Mendel release:
https://coral.googlesource.com/linux-imx/This patch was tested using the U-Boot 2017-03-1-release-chef, which is supported by the Coral Edge TPU Mendel release:
https://coral.googlesource.com/uboot-imx/
I would suggest removing this paragraph from the commit log as it is not relevant to the dts itself.
arch/arm64/boot/dts/freescale/Makefile dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-rdb.dtb · line 24
Quoted 9 lines
arch/arm64/boot/dts/freescale/Makefile +1
-0@@ -21,6 +21,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-rdb.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-rdb.dtb +dtb-$(CONFIG_ARCH_MXC) += fsl-imx8mq-phanbell.dtb
Please remove the fsl prefix and call it mx8mq-phanbell.dtb instead to align with the other imx8mq dtbs.
arch/arm64/boot/dts/freescale/Makefile dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-rdb.dtb
Quoted 11 lines
arch/arm64/boot/dts/freescale/Makefile +11
-0+&i2c1 { + clock-frequency = <400000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1>; + status = "okay"; + + pmic: pmic@4b { + reg = <0x4b>; + compatible = "rohm,bd71837"; + pinctrl-0 = <&pinctrl_pmic>; + gpio_intr = <&gpio1 3 GPIO_ACTIVE_LOW>;
This property does not exist upstream.
You should describe the interrupt like this instead:
interrupt-parent = <&gpio1>;
interrupts = <3 GPIO_ACTIVE_LOW>;
arch/arm64/boot/dts/freescale/Makefile
Quoted 3 lines
arch/arm64/boot/dts/freescale/Makefile +3
-0+ + gpo { + rohm,drv = <0x0C>;
This property does not exist upstream.
arch/arm64/boot/dts/freescale/Makefile
Quoted 5 lines
+&sai2 {
arch/arm64/boot/dts/freescale/Makefile +4
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai2>; + assigned-clocks = + <&clk IMX8MQ_AUDIO_PLL1_BYPASS>, <&clk IMX8MQ_CLK_SAI2>;
Please don't split the lines as it gets harder to read.
arch/arm64/boot/dts/freescale/Makefile
Quoted 2 lines
arch/arm64/boot/dts/freescale/Makefile +2
-0+ assigned-clock-parents = + <&clk IMX8MQ_AUDIO_PLL1>, <&clk IMX8MQ_AUDIO_PLL1_OUT>;
Same here.
Quoted 5 lines
arch/arm64/boot/dts/freescale/Makefile +5
-0+ assigned-clock-rates = <0>, <24576000>; + status = "okay"; +}; + +&wdog1 {
arch/arm64/boot/dts/freescale/Makefile
Quoted 10 lines
arch/arm64/boot/dts/freescale/Makefile +10
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wdog>; + fsl,ext-reset-output; + status = "okay"; +}; + +&iomuxc { + pinctrl-names = "default"; + + imx8mq-evk {
No need for this imx8mq-evk container.
arch/arm64/boot/dts/freescale/Makefile
Quoted 3 lines
arch/arm64/boot/dts/freescale/Makefile +3
-0+ pinctrl_pmic: pmicirq { + fsl,pins = < + MX8MQ_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x41 /*0x17059*/
This comment looks confusing. I would suggest removing it.
Regards,
Fabio Estevam
Hi Fabio,
Thank you for your comments. I have some points to discuss inline:
Em qui., 14 de nov. de 2019 às 18:13, Fabio Estevam <[email protected]> escreveu:
Quoted 6 lines
Hi Marco,
Quoted 1 line · Marco Antonio Franchi
Quoted 7 lines
Quoted 5 lines
This patch adds the device tree to support Google Coral Edge TPU, historicaly named as fsl-imx8mq-phanbell, a computer on module which can be used for AI/ML propose.
It introduces a minimal enablement support for this module and
What are the features that have been tested?
I can include one list at the v2.
Quoted 2 lines
Also, is the schematics available?
Quoted 11 lines
Quoted 8 lines
was totally based on the NXP i.MX 8MQ EVK board and i.MX 8MQ Phanbell Google Source Code for Coral Edge TPU Mendel release:
https://coral.googlesource.com/linux-imx/This patch was tested using the U-Boot 2017-03-1-release-chef, which is supported by the Coral Edge TPU Mendel release:
https://coral.googlesource.com/uboot-imx/I would suggest removing this paragraph from the commit log as it is not relevant to the dts itself.
This U-Boot is the unique available for the Coral Edge TPU, and it does not provides the fdt_file settup, so I cannot change the Device Tree name and I thought it was important to put this information somehow here.
Quoted 9 lines
Quoted 9 lines
arch/arm64/boot/dts/freescale/Makefile +0
-0@@ -21,6 +21,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-rdb.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-rdb.dtb
Quoted 4 lines
arch/arm64/boot/dts/freescale/Makefile dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-rdb.dtb · line 24
Quoted 1 line
arch/arm64/boot/dts/freescale/Makefile +1
-0+dtb-$(CONFIG_ARCH_MXC) += fsl-imx8mq-phanbell.dtbPlease remove the fsl prefix and call it mx8mq-phanbell.dtb instead to align with the other imx8mq dtbs.
If I applied this change, I won't be able to boot the board, due to the U-Boot dependence.
Should I try to apply the U-Boot mainline support first?
Quoted 13 lines
arch/arm64/boot/dts/freescale/Makefile dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-rdb.dtb
Quoted 12 lines
arch/arm64/boot/dts/freescale/Makefile +11
-0+&i2c1 { + clock-frequency = <400000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1>; + status = "okay"; + + pmic: pmic@4b { + reg = <0x4b>; + compatible = "rohm,bd71837"; + pinctrl-0 = <&pinctrl_pmic>; + gpio_intr = <&gpio1 3 GPIO_ACTIVE_LOW>;
Quoted 7 lines
This property does not exist upstream.
You should describe the interrupt like this instead:
interrupt-parent = <&gpio1>;
interrupts = <3GPIO_ACTIVE_LOW>;
Sure, I will!
Quoted 41 lines
arch/arm64/boot/dts/freescale/Makefile
Quoted 3 lines
arch/arm64/boot/dts/freescale/Makefile +3
-0+ + gpo { + rohm,drv = <0x0C>;This property does not exist upstream.
arch/arm64/boot/dts/freescale/Makefile
Quoted 5 lines
+&sai2 {
arch/arm64/boot/dts/freescale/Makefile +4
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai2>; + assigned-clocks = + <&clk IMX8MQ_AUDIO_PLL1_BYPASS>, <&clk IMX8MQ_CLK_SAI2>;Please don't split the lines as it gets harder to read.
arch/arm64/boot/dts/freescale/Makefile
Quoted 2 lines
arch/arm64/boot/dts/freescale/Makefile +2
-0+ assigned-clock-parents = + <&clk IMX8MQ_AUDIO_PLL1>, <&clk IMX8MQ_AUDIO_PLL1_OUT>;Same here.
Quoted 5 lines
arch/arm64/boot/dts/freescale/Makefile +5
-0+ assigned-clock-rates = <0>, <24576000>; + status = "okay"; +}; + +&wdog1 {arch/arm64/boot/dts/freescale/Makefile
Quoted 10 lines
arch/arm64/boot/dts/freescale/Makefile +10
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wdog>; + fsl,ext-reset-output; + status = "okay"; +}; + +&iomuxc { + pinctrl-names = "default"; + + imx8mq-evk {No need for this imx8mq-evk container.
arch/arm64/boot/dts/freescale/Makefile
Quoted 3 lines
arch/arm64/boot/dts/freescale/Makefile +3
-0+ pinctrl_pmic: pmicirq { + fsl,pins = < + MX8MQ_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x41 /*0x17059*/
Quoted 5 lines
This comment looks confusing. I would suggest removing it.
Regards,
Fabio Estevam
Ok for all the other comments.
Thanks for your suggestion Fabio.
Please, just check the comments regarding the Device Tree name and I will send the v2 with the required changes.
BR,
Marco
Fabio Estevam
reviewerHi Marco,
Quoted 2 lines · Marco Franchi
Quoted 1 line
Also, is the schematics available?
Thanks. Would you also have the schematics for the SOM board?
I tooked a quick look and I see a ALC5635 codec, but the dts shows WM8524 instead.
Which one is correct?
Quoted 3 lines
If I applied this change, I won't be able to boot the board, due to the U-Boot dependence.
Should I try to apply the U-Boot mainline support first?
You could build the mainline dtb and rename it with the fsl prefix locally so you could boot test it.
Forgot to mention, but you also need to add a separate patch that adds this board entry into Documentation/devicetree/bindings/arm/fsl.yaml
Regards,
Fabio Estevam
Hello Fabio,
Em seg., 18 de nov. de 2019 às 17:29, Fabio Estevam <[email protected]> escreveu:
Quoted 9 lines
Hi Marco,
Quoted 2 lines · Marco Franchi
Quoted 1 line
Also, is the schematics available?
Thanks. Would you also have the schematics for the SOM board?
I could not find the schematic, but at this page you will find a lot of information regarding it:
https://coral.withgoogle.com/docs/som/datasheet/
Quoted 5 lines
I tooked a quick look and I see a ALC5635 codec, but the dts shows WM8524 instead.
Which one is correct?
Internally they are using WM8524, but I will confirm and test it again.
Quoted 7 lines
Quoted 4 lines
If I applied this change, I won't be able to boot the board, due to the U-Boot dependence.
Should I try to apply the U-Boot mainline support first?You could build the mainline dtb and rename it with the fsl prefix locally so you could boot test it.
Cool! Thanks.
Quoted 3 lines
Forgot to mention, but you also need to add a separate patch that adds this board entry into
Documentation/devicetree/bindings/arm/fsl.yaml
Ok.
Quoted 4 lines
Regards,
Fabio Estevam
Thanks Fabio, I will apply these points too.
BR,
Marco