Last active
January 13, 2019 21:24
-
-
Save dlech/4c91adb0e74b10dd6f44fcbe3fa720cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/arm/boot/dts/am335x-bonegreen-common.dtsi b/arch/arm/boot/dts/am335x-bonegreen-common.dtsi | |
index 853e6d3a028d..3cbe363d4fbf 100644 | |
--- a/arch/arm/boot/dts/am335x-bonegreen-common.dtsi | |
+++ b/arch/arm/boot/dts/am335x-bonegreen-common.dtsi | |
@@ -21,7 +21,7 @@ | |
pinctrl-names = "default"; | |
pinctrl-0 = <&emmc_pins>; | |
bus-width = <8>; | |
- status = "okay"; | |
+ status = "disabled"; | |
}; | |
&am33xx_pinmux { | |
diff --git a/arch/arm/boot/dts/am335x-bonegreen.dts b/arch/arm/boot/dts/am335x-bonegreen.dts | |
index a8b4d969ce2a..9d3c43e0830e 100644 | |
--- a/arch/arm/boot/dts/am335x-bonegreen.dts | |
+++ b/arch/arm/boot/dts/am335x-bonegreen.dts | |
@@ -15,3 +15,32 @@ | |
model = "TI AM335x BeagleBone Green"; | |
compatible = "ti,am335x-bone-green", "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx"; | |
}; | |
+ | |
+&am33xx_pinmux { | |
+ spi1_pins: pinmux_spi1_pins { | |
+ pinctrl-single,pins = < | |
+ AM33XX_IOPAD(0x990, PIN_OUTPUT_PULLUP | MUX_MODE3) /* spi1_sclk - FBCLK */ | |
+ AM33XX_IOPAD(0x998, PIN_OUTPUT_PULLUP | MUX_MODE3) /* spi1_d1 - FBMOSI */ | |
+ AM33XX_IOPAD(0x99c, PIN_OUTPUT_PULLUP | MUX_MODE3) /* spi1_cs0 - FBCS */ | |
+ AM33XX_IOPAD(0x8d4, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpio0[9] - FBDC */ | |
+ AM33XX_IOPAD(0x8d0, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpio0[8] - FBRST */ | |
+ >; | |
+ }; | |
+}; | |
+ | |
+&spi1 { | |
+ status = "okay"; | |
+ | |
+ display: display@0 { | |
+ pinctrl-names = "default"; | |
+ pinctrl-0 = <&spi1_pins>; | |
+ | |
+ compatible = "vot,v220hf01a-t", "ilitek,ili9225"; | |
+ reg = <0>; | |
+ spi-max-frequency = <12000000>; | |
+ | |
+ reset-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; | |
+ rs-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; | |
+ rotation = <270>; | |
+ }; | |
+}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment