Commit 469a22e6 authored by Marcus Cooper's avatar Marcus Cooper Committed by Maxime Ripard

ARM: sunxi: dts: split IR pins for A10 and A20

Currently none of the target boards nor the driver supports
IR TX. However this pin is used in a few instances as a GPIO.
Split the pin ctrl descriptions so that only the IR RX is
configured to be used.
Signed-off-by: default avatarMarcus Cooper <codekipper@gmail.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 94a3e0c4
......@@ -130,7 +130,7 @@ axp209: pmic@34 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -96,7 +96,7 @@ axp209: pmic@34 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -126,7 +126,7 @@ &i2c1 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -93,7 +93,7 @@ &emac {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -126,7 +126,7 @@ axp209: pmic@34 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -92,11 +92,11 @@ axp209: pmic@34 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
&ir0_pins_a {
&ir0_rx_pins_a {
/* The ir receiver is not always populated */
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
};
......
......@@ -797,15 +797,29 @@ mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
};
ir0_pins_a: ir0@0 {
allwinner,pins = "PB3","PB4";
ir0_rx_pins_a: ir0@0 {
allwinner,pins = "PB4";
allwinner,function = "ir0";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
ir1_pins_a: ir1@0 {
allwinner,pins = "PB22","PB23";
ir0_tx_pins_a: ir0@1 {
allwinner,pins = "PB3";
allwinner,function = "ir0";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
ir1_rx_pins_a: ir1@0 {
allwinner,pins = "PB23";
allwinner,function = "ir1";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
ir1_tx_pins_a: ir1@1 {
allwinner,pins = "PB22";
allwinner,function = "ir1";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
......
......@@ -142,7 +142,7 @@ &i2c2 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -154,7 +154,7 @@ &i2c2 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -133,7 +133,7 @@ &i2c1 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -160,7 +160,7 @@ &i2c2 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -160,7 +160,7 @@ &i2c3 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -157,7 +157,7 @@ axp209: pmic@34 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -117,7 +117,7 @@ axp209: pmic@34 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -137,7 +137,7 @@ axp209: pmic@34 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -132,7 +132,7 @@ axp209: pmic@34 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -125,7 +125,7 @@ axp209: pmic@34 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -154,7 +154,7 @@ axp209: pmic@34 {
&ir0 {
pinctrl-names = "default";
pinctrl-0 = <&ir0_pins_a>;
pinctrl-0 = <&ir0_rx_pins_a>;
status = "okay";
};
......
......@@ -1000,15 +1000,29 @@ mmc3_pins_a: mmc3@0 {
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
ir0_pins_a: ir0@0 {
allwinner,pins = "PB3","PB4";
ir0_rx_pins_a: ir0@0 {
allwinner,pins = "PB4";
allwinner,function = "ir0";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
ir1_pins_a: ir1@0 {
allwinner,pins = "PB22","PB23";
ir0_tx_pins_a: ir0@1 {
allwinner,pins = "PB3";
allwinner,function = "ir0";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
ir1_rx_pins_a: ir1@0 {
allwinner,pins = "PB23";
allwinner,function = "ir1";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
ir1_tx_pins_a: ir1@1 {
allwinner,pins = "PB22";
allwinner,function = "ir1";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment