Skip to content

Commit

Permalink
BCM270X_DT: Add PaPiRus overlay
Browse files Browse the repository at this point in the history
Add Device Tree overlay for the PaPiRus ePaper Screens by Pi Supply.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
  • Loading branch information
notro committed Jul 15, 2017
1 parent 3a72b82 commit 4ca6f47
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
11 changes: 11 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -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,model=<val>
Params: model 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. ]


Expand Down
89 changes: 89 additions & 0 deletions arch/arm/boot/dts/overlays/papirus-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/* 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__ {
model = <&repaper>, "compatible";
speed = <&repaper>, "spi-max-frequency:0";
};
};

0 comments on commit 4ca6f47

Please sign in to comment.