arm: dts: imx7d-sdb: add spi gpio node
authorPeng Fan <peng.fan@nxp.com>
Thu, 13 Apr 2017 06:09:51 +0000 (14:09 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 18 May 2017 09:24:34 +0000 (11:24 +0200)
Add spi gpio node for 74LV595.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/dts/imx7d-sdb.dts

index 03788977bafc75e0c6a1116e9cfb9907a4720c9f..3b8f1cbef2a167113b3074c9006209cfa0ae0b0a 100644 (file)
                reg = <0x80000000 0x80000000>;
        };
 
+       spi4 {
+               compatible = "spi-gpio";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_spi1>;
+               status = "okay";
+               gpio-sck = <&gpio1 13 0>;
+               gpio-mosi = <&gpio1 9 0>;
+               cs-gpios = <&gpio1 12 0>;
+               num-chipselects = <1>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               gpio_spi: gpio_spi@0 {
+                       compatible = "fairchild,74hc595";
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       reg = <0>;
+                       registers-number = <1>;
+                       registers-default = /bits/ 8 <0x74>; /* Enable PERI_3V3, SENSOR_RST_B and HDMI_RST*/
+                       spi-max-frequency = <100000>;
+               };
+       };
+};
+
+&iomuxc {
+       imx7d-sdb {
+               pinctrl_spi1: spi1grp {
+                       fsl,pins = <
+                               MX7D_PAD_GPIO1_IO09__GPIO1_IO9  0x59
+                               MX7D_PAD_GPIO1_IO12__GPIO1_IO12 0x59
+                               MX7D_PAD_GPIO1_IO13__GPIO1_IO13 0x59
+                       >;
+               };
+       };
+
 };