]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: da850-lego-ev3: Add node for LCD display
authorDavid Lechner <david@lechnology.com>
Mon, 7 Aug 2017 17:39:40 +0000 (12:39 -0500)
committerSekhar Nori <nsekhar@ti.com>
Mon, 21 Aug 2017 11:15:11 +0000 (16:45 +0530)
This adds a new node for the LEGO MINDSTORMS EV3 LCD display.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/boot/dts/da850-lego-ev3.dts

index 45983c04a8a71e7967fb99b54e1a02a8602080d0..413dbd5d9f6442b8dae4b7f132b35e5f816cf798 100644 (file)
@@ -249,6 +249,15 @@ battery_pins: pinmux_battery_pins {
                        0x4c 0x00000080 0x000000f0
                >;
        };
+
+       ev3_lcd_pins: pinmux_lcd {
+               pinctrl-single,bits = <
+                       /* SIMO, GP2[11], GP2[12], CLK */
+                       0x14 0x00188100 0x00ffff00
+                       /* GP5[0] */
+                       0x30 0x80000000 0xf0000000
+               >;
+       };
 };
 
 &pinconf {
@@ -357,6 +366,21 @@ adc: adc@3 {
        };
 };
 
+&spi1 {
+       status = "okay";
+       pinctrl-0 = <&ev3_lcd_pins>;
+       pinctrl-names = "default";
+       cs-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
+
+       display@0{
+               compatible = "lego,ev3-lcd";
+               reg = <0>;
+               spi-max-frequency = <10000000>;
+               a0-gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
+               reset-gpios = <&gpio 80 GPIO_ACTIVE_HIGH>;
+       };
+};
+
 &ehrpwm0 {
        status = "okay";
 };