ARM: STi: DT: add keyscan for stih416
authorGabriel FERNANDEZ <gabriel.fernandez@st.com>
Fri, 11 Apr 2014 15:07:00 +0000 (17:07 +0200)
committerMaxime Coquelin <maxime.coquelin@st.com>
Wed, 21 May 2014 12:27:07 +0000 (14:27 +0200)
Add keyscan support for stih416.
It is disabled by default given that it is not enabled on all boards.
Also there are PIOs conflict with already claimed lines.

Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Giuseppe Condorelli <giuseppe.condorelli@st.com>
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@linaro.org>
Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
arch/arm/boot/dts/stih416-pinctrl.dtsi
arch/arm/boot/dts/stih416.dtsi

index aeea304086eb3b57c5682539643f0d6ca4540c0d..6252188e9a77f370c750a680f0671e7bf5738ef0 100644 (file)
                                };
                        };
 
+                       keyscan {
+                               pinctrl_keyscan: keyscan {
+                                       st,pins {
+                                               keyin0 = <&PIO0 2 ALT2 IN>;
+                                               keyin1 = <&PIO0 3 ALT2 IN>;
+                                               keyin2 = <&PIO0 4 ALT2 IN>;
+                                               keyin3 = <&PIO2 6 ALT2 IN>;
+
+                                               keyout0 = <&PIO1 6 ALT2 OUT>;
+                                               keyout1 = <&PIO1 7 ALT2 OUT>;
+                                               keyout2 = <&PIO0 6 ALT2 OUT>;
+                                               keyout3 = <&PIO2 7 ALT2 OUT>;
+                                       };
+                               };
+                       };
+
                        sbc_i2c0 {
                                pinctrl_sbc_i2c0_default: sbc_i2c0-default {
                                        st,pins {
index 78746d20382e3b653a1489decaf94602007b6e21..d3bc26360072fb795f29a8f4eceb2f81e331cf26 100644 (file)
 
                        status = "disabled";
                };
+
+               keyscan: keyscan@fe4b0000 {
+                       compatible = "st,sti-keyscan";
+                       status = "disabled";
+                       reg = <0xfe4b0000 0x2000>;
+                       interrupts = <GIC_SPI 212 IRQ_TYPE_NONE>;
+                       clocks = <&CLK_SYSIN>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&pinctrl_keyscan>;
+                       resets  = <&powerdown STIH416_KEYSCAN_POWERDOWN>,
+                                 <&softreset STIH416_KEYSCAN_SOFTRESET>;
+               };
        };
 };