dt-bindings: arm: fsl: Add support for ZII i.MX7 RPU2 board
Subsystems (3)
PATCH 1/2 dt-bindings: arm: fsl: Add support for ZII i.MX7 RPU2 board
Add support for ZII i.MX7 RPU2 board.
--- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/fsl.yaml +1 -0
@@ -141,6 +141,7 @@ properties: items: - enum: - fsl,imx7d-sdb # i.MX7 SabreSD Board + - zii,imx7d-rpu2 # ZII RPU2 Board - const: fsl,imx7d - description:
Signature · 1 line
2.20.1
PATCH 2/2 ARM: dts: Add support for ZII i.MX7 RPU2 board
Add support for ZII's i.MX7 based Remote Peripheral Unit 2 (RPU2) board.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx7d-zii-rpu2.dts | 936 +++++++++++++++++++++++++++ 2 files changed, 937 insertions(+) create mode 100644 arch/arm/boot/dts/imx7d-zii-rpu2.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -586,6 +586,7 @@ dtb-$(CONFIG_SOC_IMX7D) += \ imx7d-sdb.dtb \ imx7d-sdb-reva.dtb \ imx7d-sdb-sht11.dtb \ + imx7d-zii-rpu2.dtb \ imx7s-colibri-eval-v3.dtb \ imx7s-warp.dtb dtb-$(CONFIG_SOC_IMX7ULP) += \
arch/arm/boot/dts/imx7d-zii-rpu2.dts new file +936 -0
936 lines not on this page · raw message
Signature · 1 line
2.20.1
Re: [PATCH 2/2] ARM: dts: Add support for ZII i.MX7 RPU2 board
Quoted 202 lines · Andrey Smirnov
Add support for ZII's i.MX7 based Remote Peripheral Unit 2 (RPU2) board.
Signed-off-by Andrey Smirnov <[email protected]>Cc Shawn Guo <[email protected]>Cc Chris Healy <[email protected]>Cc Andrew Lunn <[email protected]>Cc Fabio Estevam <[email protected]>Cc Rob Herring <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx7d-zii-rpu2.dts | 936 +++++++++++++++++++++++++++ 2 files changed, 937 insertions(+) create mode 100644 arch/arm/boot/dts/imx7d-zii-rpu2.dtsarch/arm/boot/dts/Makefile +1
-0@@ -586,6 +586,7 @@ dtb-$(CONFIG_SOC_IMX7D) += \ imx7d-sdb.dtb \ imx7d-sdb-reva.dtb \ imx7d-sdb-sht11.dtb \ + imx7d-zii-rpu2.dtb \ imx7s-colibri-eval-v3.dtb \ imx7s-warp.dtb dtb-$(CONFIG_SOC_IMX7ULP) += \arch/arm/boot/dts/imx7d-zii-rpu2.dts new file +166
-0@@ -0,0 +1,936 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) + +/* + * Device tree file for ZII's RPU2 board + * + * RPU - Remote Peripheral Unit + * + * Copyright (C) 2019 Zodiac Inflight Innovations + */ + +/dts-v1/; +#include "imx7d.dtsi" + +/ { + model = "ZII RPU2 Board"; + compatible = "zii,imx7d-rpu2", "fsl,imx7d"; + + chosen { + stdout-path = &uart1; + }; + + gpio-leds { + compatible = "gpio-leds"; + pinctrl-0 = <&pinctrl_leds_debug>; + pinctrl-names = "default"; + + debug { + label = "zii:green:debug1"; + gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + }; + + reg_can1_stby: regulator-can1-stby { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan1_stby>; + regulator-name = "can1-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + reg_can2_stby: regulator-can2-stby { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan2_stby>; + regulator-name = "can2-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio1 8 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + reg_vref_1v8: regulator-vref-1v8 { + compatible = "regulator-fixed"; + regulator-name = "vref-1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + reg_3p3v: regulator-3p3v { + compatible = "regulator-fixed"; + regulator-name = "GEN_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + reg_5p0v_main: regulator-5p0v-main { + compatible = "regulator-fixed"; + regulator-name = "5V_MAIN"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + sound1 { + compatible = "simple-audio-card"; + simple-audio-card,name = "Audio Output 1"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&sound1_codec>; + simple-audio-card,frame-master = <&sound1_codec>; + simple-audio-card,widgets = + "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "Headphone Jack", "HPLEFT", + "Headphone Jack", "HPRIGHT", + "LEFTIN", "HPL", + "RIGHTIN", "HPR"; + simple-audio-card,aux-devs = <&hpa1>; + + simple-audio-card,cpu { + sound-dai = <&sai1>; + }; + + sound1_codec: simple-audio-card,codec { + sound-dai = <&codec1>; + clocks = <&cs2000>; + }; + }; + + sound2 { + compatible = "simple-audio-card"; + simple-audio-card,name = "Audio Output 2"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&sound2_codec>; + simple-audio-card,frame-master = <&sound2_codec>; + simple-audio-card,widgets = + "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "Headphone Jack", "HPLEFT", + "Headphone Jack", "HPRIGHT", + "LEFTIN", "HPL", + "RIGHTIN", "HPR"; + simple-audio-card,aux-devs = <&hpa2>; + + simple-audio-card,cpu { + sound-dai = <&sai2>; + }; + + sound2_codec: simple-audio-card,codec { + sound-dai = <&codec2>; + clocks = <&cs2000>; + }; + }; + + sound3 { + compatible = "simple-audio-card"; + simple-audio-card,name = "Audio Output 3"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&sound3_codec>; + simple-audio-card,frame-master = <&sound3_codec>; + simple-audio-card,widgets = + "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "Headphone Jack", "HPLEFT", + "Headphone Jack", "HPRIGHT", + "LEFTIN", "HPL", + "RIGHTIN", "HPR"; + simple-audio-card,aux-devs = <&hpa3>; + + simple-audio-card,cpu { + sound-dai = <&sai3>; + }; + + sound3_codec: simple-audio-card,codec { + sound-dai = <&codec3>; + clocks = <&cs2000>; + }; + }; + + cs2000_ref: cs2000-ref { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24576000>; + }; + + cs2000_in_dummy: cs2000-in-dummy { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; +};
arch/arm/boot/dts/imx7d-zii-rpu2.dts line 176
Quoted 10 lines
arch/arm/boot/dts/imx7d-zii-rpu2.dts new file +10
-0+ +&adc1 { + vref-supply = <®_vref_1v8>; + status = "okay"; +}; + +&adc2 { + vref-supply = <®_vref_1v8>; + status = "okay"; +};
Tested this patch more and realized that these two above need to be properly exposed via HWMON. Will submit an update v2 of this set.
Thanks,
Andrey Smirnov
Re: [PATCH 2/2] ARM: dts: Add support for ZII i.MX7 RPU2 board
In reply to Andrey SmirnovHi Andrey,
This looks good. Only some minor comments:
arch/arm/boot/dts/imx7d-zii-rpu2.dts line 2
Quoted 5 lines · Andrey Smirnov
arch/arm/boot/dts/imx7d-zii-rpu2.dts new file +2
-0@@ -0,0 +1,936 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +
Shawn mentioned on a prior submission of mine that this empty line is not needed.
arch/arm/boot/dts/imx7d-zii-rpu2.dts line 155
Quoted 1 line
arch/arm/boot/dts/imx7d-zii-rpu2.dts new file +1
-0+ cs2000_ref: cs2000-ref {
generic node name, please.
arch/arm/boot/dts/imx7d-zii-rpu2.dts line 161
Quoted 6 lines
arch/arm/boot/dts/imx7d-zii-rpu2.dts new file +6
-0+ compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24576000>; + }; + + cs2000_in_dummy: cs2000-in-dummy {
generic node name, please.
arch/arm/boot/dts/imx7d-zii-rpu2.dts line 192
Quoted 6 lines
arch/arm/boot/dts/imx7d-zii-rpu2.dts new file +6
-0+&ecspi1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ecspi1>; + status = "okay"; + + cs-gpios = <&gpio4 19 GPIO_ACTIVE_HIGH>;
status property usually is the last one. So please move cs-gpios prior to status.
Quoted 8 lines
arch/arm/boot/dts/imx7d-zii-rpu2.dts new file +8
-0+ + flash@0 { + compatible = "jedec,spi-nor"; + spi-max-frequency = <20000000>; + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + };
arch/arm/boot/dts/imx7d-zii-rpu2.dts
Quoted 10 lines
arch/arm/boot/dts/imx7d-zii-rpu2.dts new file +9
-0+}; + +&i2c1 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1>; + status = "okay"; + + pmic: pfuze3000@8 {
pmic@8
Quoted 11 lines · Andrey Smirnov
Add support for ZII i.MX7 RPU2 board.
Signed-off-by Andrey Smirnov <[email protected]>Cc Shawn Guo <[email protected]>Cc Chris Healy <[email protected]>Cc Andrew Lunn <[email protected]>Cc Fabio Estevam <[email protected]>Cc Rob Herring <[email protected]>
Quoted 3 lines
--- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+)