diff options
-rw-r--r-- | arch/arm/boot/dts/kirkwood-openrd.dtsi | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/kirkwood-openrd.dtsi b/arch/arm/boot/dts/kirkwood-openrd.dtsi index f65b7273bb0a..24f1d30970a0 100644 --- a/arch/arm/boot/dts/kirkwood-openrd.dtsi +++ b/arch/arm/boot/dts/kirkwood-openrd.dtsi | |||
@@ -40,7 +40,7 @@ | |||
40 | pinctrl-0 = <&pmx_select28 &pmx_sdio_cd &pmx_select34>; | 40 | pinctrl-0 = <&pmx_select28 &pmx_sdio_cd &pmx_select34>; |
41 | pinctrl-names = "default"; | 41 | pinctrl-names = "default"; |
42 | 42 | ||
43 | pmx_select28: pmx-select-rs232-rs484 { | 43 | pmx_select28: pmx-select-rs232-rs485 { |
44 | marvell,pins = "mpp28"; | 44 | marvell,pins = "mpp28"; |
45 | marvell,function = "gpio"; | 45 | marvell,function = "gpio"; |
46 | }; | 46 | }; |
@@ -65,10 +65,39 @@ | |||
65 | status = "okay"; | 65 | status = "okay"; |
66 | cd-gpios = <&gpio0 29 9>; | 66 | cd-gpios = <&gpio0 29 9>; |
67 | }; | 67 | }; |
68 | gpio@10100 { | ||
69 | p28 { | ||
70 | gpio-hog; | ||
71 | gpios = <28 GPIO_ACTIVE_HIGH>; | ||
72 | /* | ||
73 | * SelRS232or485 selects between RS-232 or RS-485 | ||
74 | * mode for the second UART. | ||
75 | * | ||
76 | * Low: RS-232 | ||
77 | * High: RS-485 | ||
78 | * | ||
79 | * To use the second UART, you need to change also | ||
80 | * the SelUARTorSD. | ||
81 | */ | ||
82 | output-low; | ||
83 | line-name = "SelRS232or485"; | ||
84 | }; | ||
85 | }; | ||
68 | gpio@10140 { | 86 | gpio@10140 { |
69 | p2 { | 87 | p2 { |
70 | gpio-hog; | 88 | gpio-hog; |
71 | gpios = <2 GPIO_ACTIVE_HIGH>; | 89 | gpios = <2 GPIO_ACTIVE_HIGH>; |
90 | /* | ||
91 | * SelUARTorSD selects between the second UART | ||
92 | * (serial@12100) and SD (mvsdio@90000). | ||
93 | * | ||
94 | * Low: UART | ||
95 | * High: SD | ||
96 | * | ||
97 | * When changing this line make sure the newly | ||
98 | * selected device node is enabled and the | ||
99 | * previously selected device node is disabled. | ||
100 | */ | ||
72 | output-high; /* Select SD by default */ | 101 | output-high; /* Select SD by default */ |
73 | line-name = "SelUARTorSD"; | 102 | line-name = "SelUARTorSD"; |
74 | }; | 103 | }; |