ARM: dts: imx: Add support for Advantech DMS-BA16
Subsystems (3)
PATCH 1/1 ARM: dts: imx: Add support for Advantech DMS-BA16
Add support for Advantech DMS-BA16 board, which use the Advantech BA-16 module.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-dms-ba16.dts | 154 +++++++++++++++++++++++++++++++++++ 2 files changed, 155 insertions(+) create mode 100644 arch/arm/boot/dts/imx6q-dms-ba16.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -428,6 +428,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6q-b450v3.dtb \ imx6q-b650v3.dtb \ imx6q-b850v3.dtb \ + imx6q-dms-ba16.dtb \ imx6q-cm-fx6.dtb \ imx6q-cubox-i.dtb \ imx6q-cubox-i-emmc-som-v15.dtb \
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +154 -0
154 lines not on this page · raw message
Signature · 1 line
2.11.0
Quoted 15 lines · Ken Lin
Add support for Advantech DMS-BA16 board, which use the Advantech BA-16 module.
Signed-off-by Ken Lin <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-dms-ba16.dts | 154 +++++++++++++++++++++++++++++++++++ 2 files changed, 155 insertions(+) create mode 100644 arch/arm/boot/dts/imx6q-dms-ba16.dtsarch/arm/boot/dts/Makefile +0
-0
arch/arm/boot/dts/Makefile dtb-$(CONFIG_SOC_IMX6Q) += \ · line 434
Quoted 7 lines
arch/arm/boot/dts/Makefile +1
-0@@ -428,6 +428,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6q-b450v3.dtb \ imx6q-b650v3.dtb \ imx6q-b850v3.dtb \ + imx6q-dms-ba16.dtb \ imx6q-cm-fx6.dtb \ imx6q-cubox-i.dtb \ imx6q-cubox-i-emmc-som-v15.dtb \
Hi Ken
I think the intention is to keep this list sorted. So dms puts it later, after cubox.
Quoted 10 lines
arch/arm/boot/dts/Makefile +9
-0@@ -0,0 +1,154 @@ +/* + * Copyright 2018 Advantech Corporation + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html
arch/arm/boot/dts/Makefile line 19
Quoted 10 lines
arch/arm/boot/dts/Makefile +10
-0+ */ + +/dts-v1/; + +#include <dt-bindings/gpio/gpio.h> +#include "imx6q-ba16.dtsi" + +/ { + model = "Advantech DMS-BA16"; + compatible = "fsl,imx6q-dms-ba16", "fsl,imx6q";
This looks wrong. I would expect "advantech,imx6q-dms-ba16".
Andrew
Hi Andrew,
Will provide the v2 for all the fixes.
Thank you for the comments.
Quoted 26 lines · Andrew Lunn
Quoted 15 lines · Ken Lin
Add support for Advantech DMS-BA16 board, which use the Advantech BA-16 module.
Signed-off-by Ken Lin <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-dms-ba16.dts | 154 +++++++++++++++++++++++++++++++++++ 2 files changed, 155 insertions(+) create mode 100644 arch/arm/boot/dts/imx6q-dms-ba16.dtsarch/arm/boot/dts/Makefile +0
-0arch/arm/boot/dts/Makefile dtb-$(CONFIG_SOC_IMX6Q) += \ · line 434
Quoted 7 lines
arch/arm/boot/dts/Makefile +1
-0@@ -428,6 +428,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6q-b450v3.dtb \ imx6q-b650v3.dtb \ imx6q-b850v3.dtb \ + imx6q-dms-ba16.dtb \ imx6q-cm-fx6.dtb \ imx6q-cubox-i.dtb \ imx6q-cubox-i-emmc-som-v15.dtb \Hi Ken
Quoted 3 lines
I think the intention is to keep this list sorted. So dms puts it later, after cubox.
Thanks. will fix the order issue in the v2.
Quoted 23 lines
Quoted 10 lines
arch/arm/boot/dts/Makefile +9
-0@@ -0,0 +1,154 @@ +/* + * Copyright 2018 Advantech Corporation + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.htmlarch/arm/boot/dts/Makefile line 19
Quoted 10 lines
arch/arm/boot/dts/Makefile +10
-0+ */ + +/dts-v1/; + +#include <dt-bindings/gpio/gpio.h> +#include "imx6q-ba16.dtsi" + +/ { + model = "Advantech DMS-BA16"; + compatible = "fsl,imx6q-dms-ba16", "fsl,imx6q";This looks wrong. I would expect "advantech,imx6q-dms-ba16".
Quoted 1 line
Andrew
Thanks. will fix the board comptability issue in the v2.
Quoted 28 lines · Ken Lin
Add support for Advantech DMS-BA16 board, which use the Advantech BA-16 module.
Signed-off-by Ken Lin <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-dms-ba16.dts | 154 +++++++++++++++++++++++++++++++++++ 2 files changed, 155 insertions(+) create mode 100644 arch/arm/boot/dts/imx6q-dms-ba16.dtsarch/arm/boot/dts/Makefile +1
-0@@ -428,6 +428,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6q-b450v3.dtb \ imx6q-b650v3.dtb \ imx6q-b850v3.dtb \ + imx6q-dms-ba16.dtb \ imx6q-cm-fx6.dtb \ imx6q-cubox-i.dtb \ imx6q-cubox-i-emmc-som-v15.dtb \arch/arm/boot/dts/imx6q-dms-ba16.dts new file +0
-0
arch/arm/boot/dts/imx6q-dms-ba16.dts line 10
Quoted 10 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +10
-0@@ -0,0 +1,154 @@ +/* + * Copyright 2018 Advantech Corporation + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */
Please use SPDX tag.
arch/arm/boot/dts/imx6q-dms-ba16.dts line 22
Quoted 12 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +12
-0+ +/dts-v1/; + +#include <dt-bindings/gpio/gpio.h> +#include "imx6q-ba16.dtsi" + +/ { + model = "Advantech DMS-BA16"; + compatible = "fsl,imx6q-dms-ba16", "fsl,imx6q"; + + clocks { + mclk: clock at 0 {
Please give it an unique name like clock-xxx and put it directly under root, and drop unit-address and 'reg' property.
Quoted 26 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +26
-0+ compatible = "fixed-clock"; + reg = <0>; + #clock-cells = <0>; + clock-frequency = <22000000>; + }; + }; + + sound { + compatible = "fsl,imx6q-ba16-sgtl5000", + "fsl,imx-audio-sgtl5000"; + model = "imx6q-ba16-sgtl5000"; + ssi-controller = <&ssi1>; + audio-codec = <&sgtl5000>; + audio-routing = + "MIC_IN", "Mic Jack", + "Mic Jack", "Mic Bias", + "Headphone Jack", "HP_OUT"; + mux-int-port = <1>; + mux-ext-port = <4>; + }; + + reg_usb_otg_vbus: regulator-usbotgvbus { + compatible = "regulator-fixed"; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>;
arch/arm/boot/dts/imx6q-dms-ba16.dts line 58
Quoted 10 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +10
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotgvbus>; + gpio = <&gpio4 15 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +}; + +&iomuxc { + + pinctrl_usbotgvbus: usbotgvbusgrp {
Please sort pinctrl entries alphabetically.
Quoted 20 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +20
-0+ fsl,pins = < + MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x000b0 + MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059 + >; + }; + + pinctrl_i2c1_gpio: i2c1gpiogrp { + fsl,pins = < + MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26 0x1b0b0 + MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27 0x1b0b0 + >; + }; + + pinctrl_i2c2_gpio: i2c2gpiogrp { + fsl,pins = < + MX6QDL_PAD_KEY_COL3__GPIO4_IO12 0x1b0b0 + MX6QDL_PAD_KEY_ROW3__GPIO4_IO13 0x1b0b0 + >; + }; +
arch/arm/boot/dts/imx6q-dms-ba16.dts line 88
Quoted 10 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +10
-0+ pinctrl_i2c3_gpio: i2c3gpiogrp { + fsl,pins = < + MX6QDL_PAD_GPIO_3__GPIO1_IO03 0x1b0b0 + MX6QDL_PAD_GPIO_6__GPIO1_IO06 0x1b0b0 + >; + }; +}; + +&ecspi5 { + fsl,spi-num-chipselects = <1>;
The property is obsoleted, and shouldn't be needed any more.
arch/arm/boot/dts/imx6q-dms-ba16.dts line 89
Quoted 1 line
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +1
-0+ cs-gpios = <&gpio1 17 0>;
Use polarity defines in dt-bindings/gpio/gpio.h.
Quoted 11 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +11
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ecspi5>; + status = "okay"; + + m25_eeprom: m25p80 at 0 { + compatible = "atmel,at25"; + spi-max-frequency = <20000000>; + size = <0x8000>; + pagesize = <64>; + reg = <0>; + address-width = <16>;
arch/arm/boot/dts/imx6q-dms-ba16.dts line 110
Quoted 10 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +10
-0+ }; +}; + +&i2c1 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1>; + status = "okay"; + + sgtl5000: codec at 0a {
Drop the leading zeros in unit-address.
Quoted 22 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +22
-0+ compatible = "fsl,sgtl5000"; + reg = <0x0a>; + clocks = <&mclk>; + lrclk-strength = <0x3>; + VDDA-supply = <®_1p8v>; + VDDIO-supply = <®_3p3v>; + }; +}; + +&usbotg { + vbus-supply = <®_usb_otg_vbus>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotg>; + dr_mode = "otg"; + disable-over-current; + status = "okay"; +}; + +&sata { + fsl,no-spread-spectrum; + fsl,transmit-atten-16ths = <12>; + fsl,transmit-boost-mdB = <3330>;
arch/arm/boot/dts/imx6q-dms-ba16.dts line 142
Quoted 10 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +10
-0+ fsl,transmit-level-mV = <1133>; + fsl,receive-dpll-mode = <1>; + status = "okay"; +}; + +&usdhc4 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc4>; + bus-width = <8>; + cd-gpios = <&gpio6 11 1>;
Polarity defines.
arch/arm/boot/dts/imx6q-dms-ba16.dts line 145
Quoted 3 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +3
-0+ no-1-8-v; + keep-power-in-suspend; + enable-sdio-wakeup;
Use property 'wakeup-source' instead.
arch/arm/boot/dts/imx6q-dms-ba16.dts line 153
Quoted 8 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +8
-0+ status = "okay"; +}; + +&pwm2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm2>; + status = "okay"; +};
Please sort these labelled nodes alphabetically.
Shawn
Quoted 3 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +1
-0+Signature · 1 line
2.11.0
Hi Shawn,
Will apply all the changes required to the v2.
Thank you for your comments and detailed reviews.
Quoted 215 lines · Shawn Guo
Quoted 28 lines · Ken Lin
Add support for Advantech DMS-BA16 board, which use the Advantech BA-16 module.
Signed-off-by Ken Lin <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-dms-ba16.dts | 154 +++++++++++++++++++++++++++++++++++ 2 files changed, 155 insertions(+) create mode 100644 arch/arm/boot/dts/imx6q-dms-ba16.dtsarch/arm/boot/dts/Makefile +1
-0@@ -428,6 +428,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6q-b450v3.dtb \ imx6q-b650v3.dtb \ imx6q-b850v3.dtb \ + imx6q-dms-ba16.dtb \ imx6q-cm-fx6.dtb \ imx6q-cubox-i.dtb \ imx6q-cubox-i-emmc-som-v15.dtb \arch/arm/boot/dts/imx6q-dms-ba16.dts new file +0
-0arch/arm/boot/dts/imx6q-dms-ba16.dts line 10
Quoted 10 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +10
-0@@ -0,0 +1,154 @@ +/* + * Copyright 2018 Advantech Corporation + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */Please use SPDX tag.
arch/arm/boot/dts/imx6q-dms-ba16.dts line 22
Quoted 12 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +12
-0+ +/dts-v1/; + +#include <dt-bindings/gpio/gpio.h> +#include "imx6q-ba16.dtsi" + +/ { + model = "Advantech DMS-BA16"; + compatible = "fsl,imx6q-dms-ba16", "fsl,imx6q"; + + clocks { + mclk: clock at 0 {Please give it an unique name like clock-xxx and put it directly under root, and drop unit-address and 'reg' property.
Quoted 26 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +26
-0+ compatible = "fixed-clock"; + reg = <0>; + #clock-cells = <0>; + clock-frequency = <22000000>; + }; + }; + + sound { + compatible = "fsl,imx6q-ba16-sgtl5000", + "fsl,imx-audio-sgtl5000"; + model = "imx6q-ba16-sgtl5000"; + ssi-controller = <&ssi1>; + audio-codec = <&sgtl5000>; + audio-routing = + "MIC_IN", "Mic Jack", + "Mic Jack", "Mic Bias", + "Headphone Jack", "HP_OUT"; + mux-int-port = <1>; + mux-ext-port = <4>; + }; + + reg_usb_otg_vbus: regulator-usbotgvbus { + compatible = "regulator-fixed"; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>;arch/arm/boot/dts/imx6q-dms-ba16.dts line 58
Quoted 10 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +10
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotgvbus>; + gpio = <&gpio4 15 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +}; + +&iomuxc { + + pinctrl_usbotgvbus: usbotgvbusgrp {Please sort pinctrl entries alphabetically.
Quoted 20 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +20
-0+ fsl,pins = < + MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x000b0 + MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059 + >; + }; + + pinctrl_i2c1_gpio: i2c1gpiogrp { + fsl,pins = < + MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26 0x1b0b0 + MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27 0x1b0b0 + >; + }; + + pinctrl_i2c2_gpio: i2c2gpiogrp { + fsl,pins = < + MX6QDL_PAD_KEY_COL3__GPIO4_IO12 0x1b0b0 + MX6QDL_PAD_KEY_ROW3__GPIO4_IO13 0x1b0b0 + >; + }; +arch/arm/boot/dts/imx6q-dms-ba16.dts line 88
Quoted 10 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +10
-0+ pinctrl_i2c3_gpio: i2c3gpiogrp { + fsl,pins = < + MX6QDL_PAD_GPIO_3__GPIO1_IO03 0x1b0b0 + MX6QDL_PAD_GPIO_6__GPIO1_IO06 0x1b0b0 + >; + }; +}; + +&ecspi5 { + fsl,spi-num-chipselects = <1>;The property is obsoleted, and shouldn't be needed any more.
arch/arm/boot/dts/imx6q-dms-ba16.dts line 89
Quoted 1 line
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +1
-0+ cs-gpios = <&gpio1 17 0>;Use polarity defines in
dt-bindings/gpio/gpio.h.Quoted 11 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +11
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ecspi5>; + status = "okay"; + + m25_eeprom: m25p80 at 0 { + compatible = "atmel,at25"; + spi-max-frequency = <20000000>; + size = <0x8000>; + pagesize = <64>; + reg = <0>; + address-width = <16>;arch/arm/boot/dts/imx6q-dms-ba16.dts line 110
Quoted 10 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +10
-0+ }; +}; + +&i2c1 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1>; + status = "okay"; + + sgtl5000: codec at 0a {Drop the leading zeros in unit-address.
Quoted 22 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +22
-0+ compatible = "fsl,sgtl5000"; + reg = <0x0a>; + clocks = <&mclk>; + lrclk-strength = <0x3>; + VDDA-supply = <®_1p8v>; + VDDIO-supply = <®_3p3v>; + }; +}; + +&usbotg { + vbus-supply = <®_usb_otg_vbus>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotg>; + dr_mode = "otg"; + disable-over-current; + status = "okay"; +}; + +&sata { + fsl,no-spread-spectrum; + fsl,transmit-atten-16ths = <12>; + fsl,transmit-boost-mdB = <3330>;arch/arm/boot/dts/imx6q-dms-ba16.dts line 142
Quoted 10 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +10
-0+ fsl,transmit-level-mV = <1133>; + fsl,receive-dpll-mode = <1>; + status = "okay"; +}; + +&usdhc4 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc4>; + bus-width = <8>; + cd-gpios = <&gpio6 11 1>;Polarity defines.
arch/arm/boot/dts/imx6q-dms-ba16.dts line 145
Quoted 3 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +3
-0+ no-1-8-v; + keep-power-in-suspend; + enable-sdio-wakeup;Use property 'wakeup-source' instead.
arch/arm/boot/dts/imx6q-dms-ba16.dts line 153
Quoted 8 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +8
-0+ status = "okay"; +}; + +&pwm2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm2>; + status = "okay"; +};Please sort these labelled nodes alphabetically.
Shawn
Quoted 3 lines
arch/arm/boot/dts/imx6q-dms-ba16.dts new file +1
-1+ --2.11.0