MLK-13618 arm: dts: enable lpspi3 in imx7ulp-evk.dts
authorGao Pan <pandy.gao@nxp.com>
Thu, 15 Dec 2016 06:34:15 +0000 (14:34 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:58:00 +0000 (14:58 -0500)
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
arch/arm/boot/dts/imx7ulp-evk.dts

index e63ffbb..2d46da2 100644 (file)
                        >;
                };
 
+               pinctrl_lpspi3: lpspi3grp {
+                       fsl,pins = <
+                               ULP1_PAD_PTF16__LPSPI3_SIN      0x300
+                               ULP1_PAD_PTF17__LPSPI3_SOUT     0x300
+                               ULP1_PAD_PTF18__LPSPI3_SCK      0x300
+                               ULP1_PAD_PTF19__LPSPI3_PCS0     0x300
+                       >;
+               };
+
                pinctrl_usb_otg1: usbotg1grp {
                        fsl,pins = <
                                ULP1_PAD_PTC0__PTC0             0x30100
        };
 };
 
+&lpspi3 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_lpspi3>;
+       status = "okay";
+
+       spidev0: spi@0 {
+               reg = <0>;
+               compatible = "rohm,dh2228fv";
+               spi-max-frequency = <1000000>;
+       };
+};
+
 &lpuart4 { /* console */
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_lpuart4>;