Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lcd@0 {
- compatible = "adafruit,tft-lcd-1.8-green", "sitronix,st7735";
- spi-max-frequency = <8000000>;
- reg = <0>;
- spi-cpol;
- spi-cpha;
- pinctrl-names = "default";
- pinctrl-0 = <&lcd_pins>;
- fb-mode = <&landscape-mode> /* Use display h/w rotated in landscape */
- st7735-rst {
- gpios = <&gpio3 19 0>;
- };
- st7735-dc {
- gpios = <&gpio3 21 0>;
- };
- };
- /*
- * Subset of videomode DT binding/helper definition from:
- * https://patchwork.kernel.org/patch/1154741/
- */
- landscape-mode@0 {
- /* 160x128 landscape */
- xres = <160>;
- yres = <128>;
- }
- portrait-mode@0 {
- /* 128x160 portrait */
- xres = <128>;
- yres = <160>;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement