ARM: dts: sun9i: Add GPIO LEDs for A80 Optimus board
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / sun9i-a80-optimus.dts
index 3a70fdf8877ec26c45cb6ab64d15952eb33989e1..87b1355e3cd7b866c675ac549e683c5b51693882 100644 (file)
        };
 
        soc {
+               pio: pinctrl@06000800 {
+                       i2c3_pins_a: i2c3@0 {
+                               /* Enable internal pull-up */
+                               allwinner,pull = <1>;
+                       };
+
+                       led_pins_optimus: led-pins@0 {
+                               allwinner,pins = "PH0", "PH1";
+                               allwinner,function = "gpio_out";
+                               allwinner,drive = <0>;
+                               allwinner,pull = <0>;
+                       };
+               };
+
                uart0: serial@07000000 {
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&uart0_pins_a>;
                        status = "okay";
                };
+
+               i2c3: i2c@07003400 {
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&i2c3_pins_a>;
+                       status = "okay";
+               };
+       };
+
+       leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&led_pins_optimus>;
+
+               /* The LED names match those found on the board */
+
+               led2 {
+                       label = "optimus:led2:usr";
+                       gpios = <&pio 7 1 0>;
+               };
+
+               /* led3 is on PM15, in R_PIO */
+
+               led4 {
+                       label = "optimus:led4:usr";
+                       gpios = <&pio 7 0 0>;
+               };
        };
 };