Repository navigation
DRM/KMS Pimoroni HyperPixel4 driver #4812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
63c18c2
drm/panel: Add panel driver for Ilitek ILI9806E panel
6by9 c528562
drm/panel: Add panel driver for TDO Y17B based panels
6by9 ff7626b
drm/panel/panel-sitronix-st7701: Support SPI config and RGB data
6by9 35a7872
defconfig: Enable Pimoroni HyperPixel drivers in Pi defconfigs
6by9 6b23138
bindings: Add sck-idle-input to spi-gpio
pelwell 45bed3d
spi: gpio: Add sck-idle-input property
pelwell 529eab7
dtoverlays: Add overlays for Pimoroni Hyperpixel displays
6by9 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| /* | ||
| * vc4-kms-dpi-hyperpixel4.dtsi | ||
| * Commmon initialisation for HyperPixel DPI displays | ||
| */ | ||
|
|
||
| #include <dt-bindings/gpio/gpio.h> | ||
| #include <dt-bindings/pinctrl/bcm2835.h> | ||
|
|
||
| / { | ||
| compatible = "brcm,bcm2835"; | ||
|
|
||
| fragment@0 { | ||
| target-path = "/"; | ||
| __overlay__ { | ||
| spi { | ||
| compatible = "spi-gpio"; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| pinctrl-0 = <&spi_pins>; | ||
| pinctrl-names = "default"; | ||
|
|
||
| sck-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>; | ||
| mosi-gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; | ||
| cs-gpios = <&gpio 18 GPIO_ACTIVE_LOW>; | ||
| num-chipselects = <1>; | ||
| sck-idle-input; | ||
|
|
||
| panel: display@0 { | ||
| reg = <0>; | ||
| /* 100 kHz */ | ||
| spi-max-frequency = <100000>; | ||
| backlight = <&backlight>; | ||
| rotation = <0>; | ||
|
|
||
| port { | ||
| panel_in: endpoint { | ||
| remote-endpoint = <&dpi_out>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| backlight: backlight { | ||
| compatible = "gpio-backlight"; | ||
| gpios = <&gpio 19 0>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@1 { | ||
| target = <&dpi>; | ||
| __overlay__ { | ||
| status = "okay"; | ||
|
|
||
| pinctrl-names = "default"; | ||
| pinctrl-0 = <&dpi_18bit_cpadhi_gpio0>; | ||
|
|
||
| port { | ||
| dpi_out: endpoint { | ||
| remote-endpoint = <&panel_in>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@2 { | ||
| target = <&gpio>; | ||
| __overlay__ { | ||
| spi_pins: hyperpixel4_spi_pins { | ||
| brcm,pins = <27 18 26>; | ||
| brcm,pull = <BCM2835_PUD_UP BCM2835_PUD_UP BCM2835_PUD_OFF>; | ||
| brcm,function = <0>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@3 { | ||
| target-path = "/"; | ||
| __overlay__ { | ||
| i2c_gpio: i2c@0 { | ||
| compatible = "i2c-gpio"; | ||
| gpios = <&gpio 10 0 /* sda */ | ||
| &gpio 11 0>; /* scl */ | ||
| i2c-gpio,delay-us = <4>; /* ~100 kHz */ | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| __overrides__ { | ||
| rotate = <&panel>, "rotation:0"; | ||
| }; | ||
| }; |
114 changes: 114 additions & 0 deletions
114
arch/arm/boot/dts/overlays/vc4-kms-dpi-hyperpixel2r-overlay.dts
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,114 @@ | ||
| /* | ||
| * vc4-kms-dpi-hyperpixel2r-overlay.dts | ||
| */ | ||
|
|
||
| #include <dt-bindings/gpio/gpio.h> | ||
| #include <dt-bindings/pinctrl/bcm2835.h> | ||
|
|
||
| /dts-v1/; | ||
| /plugin/; | ||
|
|
||
| / { | ||
| compatible = "brcm,bcm2835"; | ||
|
|
||
| fragment@0 { | ||
| target-path = "/"; | ||
| __overlay__ { | ||
| spi { | ||
| compatible = "spi-gpio"; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| pinctrl-0 = <&spi_pins>; | ||
| pinctrl-names = "default"; | ||
|
|
||
| sck-gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; | ||
| mosi-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>; | ||
| cs-gpios = <&gpio 18 GPIO_ACTIVE_LOW>; | ||
| num-chipselects = <1>; | ||
|
|
||
| panel: display@0 { | ||
| compatible = "pimoroni,hyperpixel2round"; | ||
| reg = <0>; | ||
| /* 100 kHz */ | ||
| spi-max-frequency = <100000>; | ||
| backlight = <&backlight>; | ||
| rotation = <0>; | ||
|
|
||
| port { | ||
| panel_in: endpoint { | ||
| remote-endpoint = <&dpi_out>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| backlight: backlight { | ||
| compatible = "gpio-backlight"; | ||
| gpios = <&gpio 19 0>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@1 { | ||
| target = <&dpi>; | ||
| __overlay__ { | ||
| status = "okay"; | ||
|
|
||
| pinctrl-names = "default"; | ||
| pinctrl-0 = <&dpi_18bit_cpadhi_gpio0>; | ||
|
|
||
| port { | ||
| dpi_out: endpoint { | ||
| remote-endpoint = <&panel_in>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@2 { | ||
| target = <&gpio>; | ||
| __overlay__ { | ||
| spi_pins: hyperpixel4_spi_pins { | ||
| brcm,pins = <27 18 26>; | ||
| brcm,pull = <BCM2835_PUD_UP BCM2835_PUD_UP BCM2835_PUD_OFF>; | ||
| brcm,function = <0>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| fragment@3 { | ||
| target-path = "/"; | ||
| __overlay__ { | ||
| i2c_gpio: i2c@0 { | ||
| compatible = "i2c-gpio"; | ||
| status = "disabled"; | ||
|
|
||
| gpios = <&gpio 10 GPIO_ACTIVE_HIGH /* sda */ | ||
| &gpio 11 GPIO_ACTIVE_HIGH>; /* scl */ | ||
| i2c-gpio,delay-us = <4>; /* ~100 kHz */ | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| polytouch: edt-ft5x06@15 { | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| compatible = "edt,edt-ft5406"; | ||
| reg = <0x15>; | ||
| interrupt-parent = <&gpio>; | ||
| interrupts = <27 0x02>; | ||
| touchscreen-size-x = <240>; | ||
| touchscreen-size-y = <240>; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| __overrides__ { | ||
| disable-touch = <0>,"-3"; | ||
| touchscreen-inverted-x = <&polytouch>,"touchscreen-inverted-x?"; | ||
| touchscreen-inverted-y = <&polytouch>,"touchscreen-inverted-y!"; | ||
| touchscreen-swapped-x-y = <&polytouch>,"touchscreen-swapped-x-y!"; | ||
| rotate = <&panel>, "rotation:0"; | ||
| }; | ||
|
|
||
| }; | ||
57 changes: 57 additions & 0 deletions
57
arch/arm/boot/dts/overlays/vc4-kms-dpi-hyperpixel4-overlay.dts
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| /* | ||
| * vc4-kms-dpi-hyperpixel4sq-overlay.dts | ||
| */ | ||
|
|
||
| /dts-v1/; | ||
| /plugin/; | ||
|
|
||
| #include "vc4-kms-dpi-hyperpixel.dtsi" | ||
|
|
||
| &panel { | ||
| compatible = "pimoroni,hyperpixel4"; | ||
| }; | ||
|
|
||
| / { | ||
| fragment@11 { | ||
| target = <&i2c_gpio>; | ||
| __overlay__ { | ||
| /* needed to avoid dtc warning */ | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| ft6236_14: ft6236@14 { | ||
| compatible = "goodix,gt911"; | ||
| reg = <0x14>; | ||
| interrupt-parent = <&gpio>; | ||
| interrupts = <27 2>; | ||
| touchscreen-size-x = <480>; | ||
| touchscreen-size-y = <800>; | ||
| touchscreen-x-mm = <51>; | ||
| touchscreen-y-mm = <85>; | ||
| touchscreen-inverted-y; | ||
| touchscreen-swapped-x-y; | ||
| }; | ||
| ft6236_5d: ft6236@5d { | ||
| compatible = "goodix,gt911"; | ||
| reg = <0x5d>; | ||
| interrupt-parent = <&gpio>; | ||
| interrupts = <27 2>; | ||
| touchscreen-size-x = <480>; | ||
| touchscreen-size-y = <800>; | ||
| touchscreen-x-mm = <51>; | ||
| touchscreen-y-mm = <85>; | ||
| touchscreen-inverted-y; | ||
| touchscreen-swapped-x-y; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| __overrides__ { | ||
| disable-touch = <0>,"-3-11"; | ||
| touchscreen-inverted-x = <&ft6236_14>,"touchscreen-inverted-x?", | ||
| <&ft6236_5d>,"touchscreen-inverted-x?"; | ||
| touchscreen-inverted-y = <&ft6236_14>,"touchscreen-inverted-y!", | ||
| <&ft6236_5d>,"touchscreen-inverted-y!"; | ||
| touchscreen-swapped-x-y = <&ft6236_14>,"touchscreen-swapped-x-y!", | ||
| <&ft6236_5d>,"touchscreen-swapped-x-y!"; | ||
| }; | ||
| }; |
36 changes: 36 additions & 0 deletions
36
arch/arm/boot/dts/overlays/vc4-kms-dpi-hyperpixel4sq-overlay.dts
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| /* | ||
| * vc4-kms-dpi-hyperpixel4-overlay.dts | ||
| */ | ||
|
|
||
| /dts-v1/; | ||
| /plugin/; | ||
|
|
||
| #include "vc4-kms-dpi-hyperpixel.dtsi" | ||
|
|
||
| &panel { | ||
| compatible = "pimoroni,hyperpixel4square"; | ||
| }; | ||
|
|
||
| / { | ||
| fragment@11 { | ||
| target = <&i2c_gpio>; | ||
| __overlay__ { | ||
| polytouch: edt-ft5x06@48 { | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| compatible = "edt,edt-ft5406"; | ||
| reg = <0x48>; | ||
| interrupt-parent = <&gpio>; | ||
| interrupts = <27 0x02>; | ||
| touchscreen-size-x = <720>; | ||
| touchscreen-size-y = <720>; | ||
| }; | ||
| }; | ||
| }; | ||
| __overrides__ { | ||
| disable-touch = <0>,"-3-11"; | ||
| touchscreen-inverted-x = <&polytouch>,"touchscreen-inverted-x?"; | ||
| touchscreen-inverted-y = <&polytouch>,"touchscreen-inverted-y!"; | ||
| touchscreen-swapped-x-y = <&polytouch>,"touchscreen-swapped-x-y!"; | ||
| }; | ||
| }; |
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.