Commit f4a6fb4d authored by Noralf Trønnes's avatar Noralf Trønnes Committed by popcornmix
Browse files

BCM270X_DT: Add PaPiRus overlay



Add Device Tree overlay for the PaPiRus ePaper Screens by Pi Supply.

Signed-off-by: default avatarNoralf Trønnes <noralf@tronnes.org>
parent 250c201c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
	mmc.dtbo \
	mpu6050.dtbo \
	mz61581.dtbo \
	papirus.dtbo \
	pi3-act-led.dtbo \
	pi3-disable-bt.dtbo \
	pi3-disable-wifi.dtbo \
+11 −0
Original line number Diff line number Diff line
@@ -1001,6 +1001,17 @@ Params: speed Display SPI bus speed
        xohms                   Touchpanel sensitivity (X-plate resistance)


Name:   papirus
Info:   PaPiRus ePaper Screen by Pi Supply (both HAT and pHAT)
Load:   dtoverlay=papirus,<param>=<val>
Params: panel                   Display panel (required):
                                1.44": e1144cs021
                                2.0":  e2200cs021
                                2.7":  e2271cs021

        speed                   Display SPI bus speed


[ The pcf2127-rtc overlay has been deleted. See i2c-rtc. ]


+89 −0
Original line number Diff line number Diff line
/* PaPiRus ePaper Screen by Pi Supply */

/dts-v1/;
/plugin/;

/ {
	compatible = "brcm,bcm2708";

	fragment@0 {
		target = <&i2c_arm>;
		__overlay__ {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";

			display_temp: lm75@48 {
				compatible = "lm75b";
				reg = <0x48>;
				status = "okay";
				#thermal-sensor-cells = <0>;
			};
		};
	};

	fragment@1 {
		target-path = "/";
		__overlay__ {
			thermal-zones {
				display {
					polling-delay-passive = <0>;
					polling-delay = <0>;
					thermal-sensors = <&display_temp>;
				};
			};
		};
	};

	fragment@2 {
		target = <&spi0>;
		__overlay__ {
			status = "okay";

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

	fragment@3 {
		target = <&gpio>;
		__overlay__ {
			repaper_pins: repaper_pins {
				brcm,pins = <14 15 23 24 25>;
				brcm,function = <1 1 1 1 0>; /* out out out out in */
			};
		};
	};

	fragment@4 {
		target = <&spi0>;
		__overlay__ {
			/* needed to avoid dtc warning */
			#address-cells = <1>;
			#size-cells = <0>;

			repaper: repaper@0{
				compatible = "not_set";
				reg = <0>;
				pinctrl-names = "default";
				pinctrl-0 = <&repaper_pins>;

				spi-max-frequency = <8000000>;

				panel-on-gpios = <&gpio 23 0>;
				border-gpios = <&gpio 14 0>;
				discharge-gpios = <&gpio 15 0>;
				reset-gpios = <&gpio 24 0>;
				busy-gpios = <&gpio 25 0>;

				repaper-thermal-zone = "display";
			};
		};
	};

	__overrides__ {
		panel = <&repaper>, "compatible";
		speed = <&repaper>, "spi-max-frequency:0";
	};
};