Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

spi ili9341 screen black after update to 5.10.60-sunxi ( fb fbtft )

Featured Replies

Hello, 

 

i update my OrangePiZero OS from Linux 5.10.43-sunxi to Linux 5.10.60-sunxi
my screen fbtft spi lcd stop working , the screen is black.

If there is a solution to this issue I would love to get help, thanks!
here my configuration (work on 5.10.43).

 

(Armbianmonitor link of 5.10.43 on top)

(Armbianmonitor link of 5.10.60 Attached as a file )

 

fbtft.dts

 

/dts-v1/;
/plugin/;

/ {
	compatible = "allwinner,sun8i-h3";

	fragment@0 {
		target = <&spi1>;
		__overlay__ {
			status = "okay";
		};
	};

	fragment@1 {
		target = <&pio>;
		__overlay__ {
			spi1_cs_pins: spi1_cs_pins {
					pins = "PA13";
					function = "gpio_out";
			};

			opiz_display_pins: opiz_display_pins {
                pins = "PA7", "PA2", "PA6";
                function = "gpio_out";
			};
		};
	};

	fragment@2 {
		target = <&spi1>;
		__overlay__ {
			/* needed to avoid dtc warning */
			#address-cells = <1>;
			#size-cells = <0>;
			pinctrl-0=<&spi1_pins &spi1_cs_pins>;
			cs-gpios=<&pio 0 13 1>;

			opizdisplay: opiz-display@0{
				compatible = "ilitek,ili9341";
				reg = <0>;
				pinctrl-names = "default";
				pinctrl-0 = <&opiz_display_pins>;
				spi-max-frequency = <32000000>;
				rotate = <270>;
				bgr;
				fps = <30>;
				buswidth = <8>;
				reset-gpios = <&pio 0 7 1>;
				dc-gpios = <&pio 0 2 0>;
				led-gpios= <&pio 0 6 0>;
				debug = <5>;
				status="okay";
			};
		};
	};
	__overrides__ {
		speed =   <&opizdisplay>,"spi-max-frequency:0";
		rotate =  <&opizdisplay>,"rotate:0";
		fps =     <&opizdisplay>,"fps:0";
		debug =   <&opizdisplay>,"debug:0";
        };
};

 

/boot/armbianEnv.txt  is:

 

verbosity=1
bootlogo=true
console=serial
overlay_prefix=sun8i-h3
overlays=analog-codec i2c0 uart1 uart2
user_overlays=fbtft mcp7940
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u


 

1.txt

  • Netanel changed the title to spi ili9341 screen black after update to 5.10.60-sunxi ( fb fbtft )
  • Author

Thanks to notro notro I solved the problem, changed the way the screen brightness was controlled.
Here is the configuration I have at the moment.

reset ---> PA7
led ---> PA6
dc ----> PA2

/dts-v1/;
/plugin/;

/ {
    compatible = "allwinner,sun8i-h3";

    fragment@0 {
        target-path = "/aliases";
        __overlay__ {
            spi1 = "/soc/spi@01c69000";
        };
    };

    fragment@1 {
        target = <&spi1>;
        __overlay__ {
            status = "okay";

            spidev@0{
                status = "disabled";
            };

            spidev@1{
                status = "disabled";
            };
        };
    };

    fragment@2 {
        target = <&pio>;
        __overlay__ {
            opiz_display_pins: opiz_display_pins {
                pins = "PA7", "PA2", "PA6";
                function = "gpio_out";
            };
        };
    };

    fragment@3 {
        target = <&spi1>;
        __overlay__ {
            /* needed to avoid dtc warning */
            #address-cells = <1>;
            #size-cells = <0>;
            opizdisplay: opiz-display@0{
                compatible = "ilitek,ili9341";
                reg = <0>;
                pinctrl-names = "default";
                pinctrl-0 = <&opiz_display_pins>;
                spi-max-frequency = <8000000>;
                rotate = <270>;
                bgr;
                fps = <30>;
                buswidth = <8>;
                reset-gpios = <&pio 0 7 1>;
                dc-gpios = <&pio 0 2 0>;
                led-gpios= <&pio 0 6 1>;
                debug = <3>;
                status="okay";
            };
        };
    };
    __overrides__ {
        speed =   <&opizdisplay>,"spi-max-frequency:0";
        rotate =  <&opizdisplay>,"rotate:0";
        fps =     <&opizdisplay>,"fps:0";
        debug =   <&opizdisplay>,"debug:0";
        };
};

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.