Created
April 3, 2019 14:31
-
-
Save pklazy/487126caa6abf0d9ab52a94d00f37aa9 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
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709"; | |
fragment@0 { | |
target = <&spi0>; | |
__overlay__ { | |
status = "okay"; | |
spidev@0{ | |
status = "disabled"; | |
}; | |
spidev@1{ | |
status = "disabled"; | |
}; | |
}; | |
}; | |
fragment@1 { | |
target = <&gpio>; | |
__overlay__ { | |
pitft_pins: pitft_pins { | |
brcm,pins = <24 25>; | |
brcm,function = <1 1>; | |
brcm,pull = <0 0>; | |
}; | |
}; | |
}; | |
fragment@2 { | |
target = <&spi0>; | |
__overlay__ { | |
#address-cells = <1>; | |
#size-cells = <0>; | |
pitft: pitft@0{ | |
compatible = "sitronix,st7789vw"; | |
reg = <0>; | |
spi-max-frequency = <32000000>; | |
buswidth = <8>; | |
pinctrl-names = "default"; | |
pinctrl-0 = <&pitft_pins>; | |
dc-gpios = <&gpio 25 0>; | |
reset-gpios = <&gpio 24 0>; | |
fps = <25>; | |
debug = <0>; | |
}; | |
}; | |
}; | |
__overrides__ { | |
speed = <&pitft>,"spi-max-frequency:0"; | |
fps = <&pitft>,"fps:0"; | |
debug = <&pitft>,"debug:0"; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment