Skip to content

Commit 6b4896e

Browse files
passgatdtor
authored andcommitted
dt-bindings: arm: bcm: raspberrypi,bcm2835-firmware: Add touchscreen child node
Convert Raspberry Pi firmware 7" touchscreen controller device tree binding to json-schema. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250925153144.4082786-2-dario.binacchi@amarulasolutions.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent b0b255d commit 6b4896e

2 files changed

Lines changed: 28 additions & 26 deletions

File tree

Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,28 @@ properties:
103103
- compatible
104104
- "#pwm-cells"
105105

106+
touchscreen:
107+
type: object
108+
$ref: /schemas/input/touchscreen/touchscreen.yaml#
109+
additionalProperties: false
110+
111+
properties:
112+
compatible:
113+
const: raspberrypi,firmware-ts
114+
115+
firmware:
116+
deprecated: true
117+
description: Phandle to RPi's firmware device node.
118+
119+
touchscreen-size-x: true
120+
touchscreen-size-y: true
121+
touchscreen-inverted-x: true
122+
touchscreen-inverted-y: true
123+
touchscreen-swapped-x-y: true
124+
125+
required:
126+
- compatible
127+
106128
required:
107129
- compatible
108130
- mboxes
@@ -135,5 +157,11 @@ examples:
135157
compatible = "raspberrypi,firmware-poe-pwm";
136158
#pwm-cells = <2>;
137159
};
160+
161+
ts: touchscreen {
162+
compatible = "raspberrypi,firmware-ts";
163+
touchscreen-size-x = <800>;
164+
touchscreen-size-y = <480>;
165+
};
138166
};
139167
...

Documentation/devicetree/bindings/input/touchscreen/raspberrypi,firmware-ts.txt

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)