aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts')
-rw-r--r--arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts24
1 files changed, 14 insertions, 10 deletions
diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts
index 3f3ff9693992..12ded69d61eb 100644
--- a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts
+++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts
@@ -49,8 +49,12 @@
49 */ 49 */
50 50
51/dts-v1/; 51/dts-v1/;
52/include/ "sun7i-a20.dtsi" 52#include "sun7i-a20.dtsi"
53/include/ "sunxi-common-regulators.dtsi" 53#include "sunxi-common-regulators.dtsi"
54
55#include <dt-bindings/gpio/gpio.h>
56#include <dt-bindings/interrupt-controller/irq.h>
57#include <dt-bindings/pinctrl/sun4i-a10.h>
54 58
55/ { 59/ {
56 model = "Olimex A20-OLinuXino-LIME"; 60 model = "Olimex A20-OLinuXino-LIME";
@@ -62,7 +66,7 @@
62 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; 66 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
63 vmmc-supply = <&reg_vcc3v3>; 67 vmmc-supply = <&reg_vcc3v3>;
64 bus-width = <4>; 68 bus-width = <4>;
65 cd-gpios = <&pio 7 1 0>; /* PH1 */ 69 cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
66 cd-inverted; 70 cd-inverted;
67 status = "okay"; 71 status = "okay";
68 }; 72 };
@@ -98,15 +102,15 @@
98 ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 { 102 ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 {
99 allwinner,pins = "PC3"; 103 allwinner,pins = "PC3";
100 allwinner,function = "gpio_out"; 104 allwinner,function = "gpio_out";
101 allwinner,drive = <0>; 105 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
102 allwinner,pull = <0>; 106 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
103 }; 107 };
104 108
105 led_pins_olinuxinolime: led_pins@0 { 109 led_pins_olinuxinolime: led_pins@0 {
106 allwinner,pins = "PH2"; 110 allwinner,pins = "PH2";
107 allwinner,function = "gpio_out"; 111 allwinner,function = "gpio_out";
108 allwinner,drive = <1>; 112 allwinner,drive = <SUN4I_PINCTRL_20_MA>;
109 allwinner,pull = <0>; 113 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
110 }; 114 };
111 }; 115 };
112 116
@@ -125,7 +129,7 @@
125 compatible = "x-powers,axp209"; 129 compatible = "x-powers,axp209";
126 reg = <0x34>; 130 reg = <0x34>;
127 interrupt-parent = <&nmi_intc>; 131 interrupt-parent = <&nmi_intc>;
128 interrupts = <0 8>; 132 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
129 133
130 interrupt-controller; 134 interrupt-controller;
131 #interrupt-cells = <1>; 135 #interrupt-cells = <1>;
@@ -152,14 +156,14 @@
152 156
153 green { 157 green {
154 label = "a20-olinuxino-lime:green:usr"; 158 label = "a20-olinuxino-lime:green:usr";
155 gpios = <&pio 7 2 0>; 159 gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>;
156 default-state = "on"; 160 default-state = "on";
157 }; 161 };
158 }; 162 };
159 163
160 reg_ahci_5v: ahci-5v { 164 reg_ahci_5v: ahci-5v {
161 pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>; 165 pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
162 gpio = <&pio 2 3 0>; 166 gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
163 status = "okay"; 167 status = "okay";
164 }; 168 };
165 169