Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: TS-4800: use weim IP to map the FPGA

Previously, the device tree mapped the FPGA like any other IPs inside
the SoC, but it is actually mapped through the WEIM (Wireless External
Interface Module). This patch updates the device tree to make use of it.

About the timings: in the image provided by the manufacturer, only
CS0GCR1 is changed. The other values are the default ones, but the WEIM
bindings expect them to be all explicitly set in the device tree, so I
just put the default values in the dt.

Signed-off-by: Damien Riegel <damien.riegel@savoirfairelinux.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Damien Riegel and committed by
Shawn Guo
ef41e4c5 6989cc8f

+39 -21
+39 -21
arch/arm/boot/dts/imx51-ts4800.dts
··· 21 21 reg = <0x90000000 0x10000000>; 22 22 }; 23 23 24 - soc { 25 - fpga { 26 - compatible = "simple-bus"; 27 - reg = <0xb0000000 0x1d000>; 28 - #address-cells = <1>; 29 - #size-cells = <1>; 30 - ranges; 31 - 32 - syscon: syscon@b0010000 { 33 - compatible = "syscon", "simple-mfd"; 34 - reg = <0xb0010000 0x3d>; 35 - reg-io-width = <2>; 36 - 37 - wdt@e { 38 - compatible = "technologic,ts4800-wdt"; 39 - syscon = <&syscon 0xe>; 40 - }; 41 - }; 42 - }; 43 - }; 44 - 45 24 clocks { 46 25 ckih1 { 47 26 clock-frequency = <22579200>; ··· 76 97 pinctrl-names = "default"; 77 98 pinctrl-0 = <&pinctrl_uart3>; 78 99 status = "okay"; 100 + }; 101 + 102 + &weim { 103 + pinctrl-names = "default"; 104 + pinctrl-0 = <&pinctrl_weim>; 105 + status = "okay"; 106 + 107 + fpga@0 { 108 + compatible = "simple-bus"; 109 + fsl,weim-cs-timing = <0x0061008F 0x00000002 0x1c022000 110 + 0x00000000 0x1c092480 0x00000000>; 111 + reg = <0 0x0000000 0x1d000>; 112 + #address-cells = <1>; 113 + #size-cells = <1>; 114 + ranges = <0 0 0 0x1d000>; 115 + 116 + syscon: syscon@b0010000 { 117 + compatible = "syscon", "simple-mfd"; 118 + reg = <0x10000 0x3d>; 119 + reg-io-width = <2>; 120 + 121 + wdt@e { 122 + compatible = "technologic,ts4800-wdt"; 123 + syscon = <&syscon 0xe>; 124 + }; 125 + }; 126 + }; 79 127 }; 80 128 81 129 &iomuxc { ··· 177 171 fsl,pins = < 178 172 MX51_PAD_EIM_D25__UART3_RXD 0x1c5 179 173 MX51_PAD_EIM_D26__UART3_TXD 0x1c5 174 + >; 175 + }; 176 + 177 + pinctrl_weim: weimgrp { 178 + fsl,pins = < 179 + MX51_PAD_EIM_DTACK__EIM_DTACK 0x85 180 + MX51_PAD_EIM_CS0__EIM_CS0 0x0 181 + MX51_PAD_EIM_CS1__EIM_CS1 0x0 182 + MX51_PAD_EIM_EB0__EIM_EB0 0x85 183 + MX51_PAD_EIM_EB1__EIM_EB1 0x85 184 + MX51_PAD_EIM_OE__EIM_OE 0x85 185 + MX51_PAD_EIM_LBA__EIM_LBA 0x85 180 186 >; 181 187 }; 182 188 };