Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dario Binacchi and committed by
Dmitry Torokhov
6b4896e4 b0b255d6

+28 -26
+28
Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
··· 103 103 - compatible 104 104 - "#pwm-cells" 105 105 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 + 106 128 required: 107 129 - compatible 108 130 - mboxes ··· 156 134 pwm: pwm { 157 135 compatible = "raspberrypi,firmware-poe-pwm"; 158 136 #pwm-cells = <2>; 137 + }; 138 + 139 + ts: touchscreen { 140 + compatible = "raspberrypi,firmware-ts"; 141 + touchscreen-size-x = <800>; 142 + touchscreen-size-y = <480>; 159 143 }; 160 144 }; 161 145 ...
-26
Documentation/devicetree/bindings/input/touchscreen/raspberrypi,firmware-ts.txt
··· 1 - Raspberry Pi firmware based 7" touchscreen 2 - ===================================== 3 - 4 - Required properties: 5 - - compatible: "raspberrypi,firmware-ts" 6 - 7 - Optional properties: 8 - - firmware: Reference to RPi's firmware device node 9 - - touchscreen-size-x: See touchscreen.txt 10 - - touchscreen-size-y: See touchscreen.txt 11 - - touchscreen-inverted-x: See touchscreen.txt 12 - - touchscreen-inverted-y: See touchscreen.txt 13 - - touchscreen-swapped-x-y: See touchscreen.txt 14 - 15 - Example: 16 - 17 - firmware: firmware-rpi { 18 - compatible = "raspberrypi,bcm2835-firmware"; 19 - mboxes = <&mailbox>; 20 - 21 - ts: touchscreen { 22 - compatible = "raspberrypi,firmware-ts"; 23 - touchscreen-size-x = <800>; 24 - touchscreen-size-y = <480>; 25 - }; 26 - };