]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: sun8i: Add SPI pinctrl node in H3
authorMilo Kim <woogyom.kim@gmail.com>
Fri, 28 Oct 2016 06:54:09 +0000 (15:54 +0900)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 22 Nov 2016 14:34:01 +0000 (15:34 +0100)
H3 supports two SPI controllers. Four pins (MOSI, MISO, SCLK, SS) are
configured through the pinctrl subsystem.

Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Milo Kim <woogyom.kim@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-h3.dtsi

index 75a865406d3ef54c1579b4f558560aaf90567d1c..8a59d8dbeabd686a808ed0f6222248651ff38f87 100644 (file)
                                allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
                        };
 
+                       spi0_pins: spi0 {
+                               allwinner,pins = "PC0", "PC1", "PC2", "PC3";
+                               allwinner,function = "spi0";
+                               allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+                               allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+                       };
+
+                       spi1_pins: spi1 {
+                               allwinner,pins = "PA15", "PA16", "PA14", "PA13";
+                               allwinner,function = "spi1";
+                               allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+                               allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+                       };
+
                        uart0_pins_a: uart0@0 {
                                allwinner,pins = "PA4", "PA5";
                                allwinner,function = "uart0";