diff options
author | Lukasz Majewski <lukma@denx.de> | 2018-12-09 22:50:56 +0100 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2019-01-10 14:21:44 +0100 |
commit | cf91ce9696a019de74135b7a2ee21466c680ff4e (patch) | |
tree | 5fa0f1f3946c8e615d64bfe74f33b06c69797a7c /arch/arm | |
parent | ARM: dts: imx6q-tbs2910: Switch to SPDX identifier (diff) | |
download | linux-cf91ce9696a019de74135b7a2ee21466c680ff4e.tar.xz linux-cf91ce9696a019de74135b7a2ee21466c680ff4e.zip |
ARM: dts: vf610-bk4: Provide support for reading ID code from MVB device
The procedure to read this ID value is as follows:
rmmod spi_fsl_dspi
insmod spi-gpio.ko
echo 504 > /sys/class/gpio/export
cat /sys/class/gpio/gpio504/value
...
echo 511 > /sys/class/gpio/export
cat /sys/class/gpio/gpio511/value
rmmod spi-gpio.ko
insmod spi_fsl_dspi
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/dts/vf610-bk4.dts | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/vf610-bk4.dts b/arch/arm/boot/dts/vf610-bk4.dts index 689c8930dce3..fe496f220871 100644 --- a/arch/arm/boot/dts/vf610-bk4.dts +++ b/arch/arm/boot/dts/vf610-bk4.dts @@ -60,6 +60,29 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; + + spi-gpio { + compatible = "spi-gpio"; + pinctrl-0 = <&pinctrl_gpio_spi>; + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + /* PTD12 ->RPIO[91] */ + sck-gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; + /* PTD10 ->RPIO[89] */ + miso-gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>; + num-chipselects = <0>; + + gpio@0 { + compatible = "pisosr-gpio"; + reg = <0>; + gpio-controller; + #gpio-cells = <2>; + /* PTB18 -> RGPIO[40] */ + load-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + spi-max-frequency = <100000>; + }; + }; }; &adc0 { @@ -431,6 +454,14 @@ >; }; + pinctrl_gpio_spi: pinctrl-gpio-spi { + fsl,pins = < + VF610_PAD_PTB18__GPIO_40 0x1183 + VF610_PAD_PTD10__GPIO_89 0x1183 + VF610_PAD_PTD12__GPIO_91 0x1183 + >; + }; + pinctrl_i2c2: i2c2grp { fsl,pins = < VF610_PAD_PTA22__I2C2_SCL 0x34df |