summaryrefslogtreecommitdiff
path: root/arch/arm/dts/imx7d-sdb.dts
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2017-04-13 06:09:51 (GMT)
committerStefano Babic <sbabic@denx.de>2017-05-18 09:24:34 (GMT)
commit9880eed8bd51207ffab44411106ed5cfd235f7c8 (patch)
treefba324dc6043b063fd2a1e31dd65ae8c09082802 /arch/arm/dts/imx7d-sdb.dts
parent896d2e82e6d408f6885ae000b707710e0f1a17fc (diff)
downloadu-boot-9880eed8bd51207ffab44411106ed5cfd235f7c8.tar.xz
arm: dts: imx7d-sdb: add spi gpio node
Add spi gpio node for 74LV595. Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/dts/imx7d-sdb.dts')
-rw-r--r--arch/arm/dts/imx7d-sdb.dts35
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/dts/imx7d-sdb.dts b/arch/arm/dts/imx7d-sdb.dts
index 0378897..3b8f1cb 100644
--- a/arch/arm/dts/imx7d-sdb.dts
+++ b/arch/arm/dts/imx7d-sdb.dts
@@ -16,4 +16,39 @@
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
+ >;
+ };
+ };
+
};