forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bits/230-touchbar' into asahi-wip
- Loading branch information
Showing
11 changed files
with
1,534 additions
and
0 deletions.
There are no files selected for viewing
87 changes: 87 additions & 0 deletions
87
Documentation/devicetree/bindings/input/touchscreen/apple,z2-touchscreen.yaml
This file contains 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,87 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/input/touchscreen/apple,z2-touchscreen.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Apple touchscreens attached using the Z2 protocol. | ||
|
||
maintainers: | ||
- [email protected] | ||
- Sasha Finkelstein <[email protected]> | ||
|
||
description: A series of touschscreen controllers used in Apple products. | ||
|
||
allOf: | ||
- $ref: touchscreen.yaml# | ||
- $ref: /schemas/spi/spi-peripheral-props.yaml# | ||
|
||
properties: | ||
compatible: | ||
items: | ||
- enum: | ||
- apple,j293-touchbar | ||
- apple,j493-touchbar | ||
- const: apple,z2-touchbar | ||
- const: apple,z2-multitouch | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
reset-gpios: | ||
maxItems: 1 | ||
|
||
cs-gpios: | ||
maxItems: 1 | ||
|
||
firmware-name: | ||
maxItems: 1 | ||
|
||
label: | ||
maxItems: 1 | ||
|
||
touchscreen-size-x: true | ||
touchscreen-size-y: true | ||
spi-max-frequency: true | ||
spi-cs-hold-delay-ns: true | ||
spi-cs-setup-delay-ns: true | ||
|
||
required: | ||
- compatible | ||
- interrupts | ||
- reset-gpios | ||
- firmware-name | ||
- label | ||
- touchscreen-size-x | ||
- touchscreen-size-y | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
spi { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
touchscreen@0 { | ||
compatible = "apple,j293-touchbar", "apple,z2-touchbar", | ||
"apple,z2-multitouch"; | ||
reg = <0>; | ||
spi-max-frequency = <11500000>; | ||
reset-gpios = <&pinctrl_ap 139 0>; | ||
cs-gpios = <&pinctrl_ap 109 0>; | ||
interrupts-extended = <&pinctrl_ap 194 IRQ_TYPE_EDGE_FALLING>; | ||
firmware-name = "apple/dfrmtfw-j293.bin"; | ||
touchscreen-size-x = <23045>; | ||
touchscreen-size-y = <640>; | ||
label = "MacBookPro17,1 Touch Bar"; | ||
}; | ||
}; | ||
... |
This file contains 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 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 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 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,12 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR MIT | ||
config DRM_ADP | ||
tristate "DRM Support for pre-DCP Apple display controllers" | ||
depends on DRM && OF && ARM64 | ||
depends on ARCH_APPLE || COMPILE_TEST | ||
select DRM_KMS_HELPER | ||
select DRM_KMS_DMA_HELPER | ||
select DRM_GEM_DMA_HELPER | ||
select VIDEOMODE_HELPERS | ||
select DRM_MIPI_DSI | ||
help | ||
Say Y if you have an Apple Arm laptop with a touchbar. |
This file contains 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,5 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR MIT | ||
|
||
adpdrm-y := adp_drv.o | ||
obj-$(CONFIG_DRM_ADP) += adpdrm.o | ||
obj-$(CONFIG_DRM_ADP) += panel-summit.o |
Oops, something went wrong.