Commit 4d09c1d9 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'devicetree-fixes-for-5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux

Pull devicetree fixes from Rob Herring:

 - More binding additionalProperties/unevaluatedProperties additions

 - More yamllint fixes on additions in the merge window

 - CrOS embedded controller schema updates to fix warnings

 - LEDs schema update adding ID_RGB

 - A reserved-memory fix for regions starting at address 0x0

* tag 'devicetree-fixes-for-5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
  dt-bindings: Another round of adding missing 'additionalProperties/unevalutatedProperties'
  dt-bindings: Explicitly allow additional properties in board/SoC schemas
  dt-bindings: More whitespace clean-ups in schema files
  mfd: google,cros-ec: add missing properties
  dt-bindings: input: convert cros-ec-keyb to json-schema
  dt-bindings: i2c: convert i2c-cros-ec-tunnel to json-schema
  of: Fix reserved-memory overlap detection
  dt-bindings: mailbox: mtk-gce: fix incorrect mbox-cells value
  dt-bindings: leds: Update devicetree documents for ID_RGB
parents 38dc5079 f84e2c5c
...@@ -49,3 +49,5 @@ properties: ...@@ -49,3 +49,5 @@ properties:
- enum: - enum:
- ucrobotics,bubblegum-96 # uCRobotics Bubblegum-96 - ucrobotics,bubblegum-96 # uCRobotics Bubblegum-96
- const: actions,s900 - const: actions,s900
additionalProperties: true
...@@ -19,4 +19,7 @@ properties: ...@@ -19,4 +19,7 @@ properties:
- altr,socfpga-arria5 - altr,socfpga-arria5
- altr,socfpga-arria10 - altr,socfpga-arria10
- const: altr,socfpga - const: altr,socfpga
additionalProperties: true
... ...
...@@ -30,4 +30,6 @@ properties: ...@@ -30,4 +30,6 @@ properties:
- amazon,al-alpine-v3-evp - amazon,al-alpine-v3-evp
- const: amazon,al-alpine-v3 - const: amazon,al-alpine-v3
additionalProperties: true
... ...
...@@ -173,4 +173,7 @@ properties: ...@@ -173,4 +173,7 @@ properties:
- enum: - enum:
- amlogic,ad401 - amlogic,ad401
- const: amlogic,a1 - const: amlogic,a1
additionalProperties: true
... ...
...@@ -83,4 +83,6 @@ required: ...@@ -83,4 +83,6 @@ required:
- compatible - compatible
- core-module@10000000 - core-module@10000000
additionalProperties: true
... ...
...@@ -120,4 +120,6 @@ required: ...@@ -120,4 +120,6 @@ required:
- compatible - compatible
- soc - soc
additionalProperties: true
... ...
...@@ -68,4 +68,6 @@ required: ...@@ -68,4 +68,6 @@ required:
- compatible - compatible
- core-module@10000000 - core-module@10000000
additionalProperties: true
... ...
...@@ -216,4 +216,6 @@ allOf: ...@@ -216,4 +216,6 @@ allOf:
required: required:
- arm,hbi - arm,hbi
additionalProperties: true
... ...
...@@ -184,4 +184,6 @@ properties: ...@@ -184,4 +184,6 @@ properties:
- const: atmel,samv71 - const: atmel,samv71
- const: atmel,samv7 - const: atmel,samv7
additionalProperties: true
... ...
...@@ -18,4 +18,6 @@ properties: ...@@ -18,4 +18,6 @@ properties:
- const: lsi,axm5516-amarillo - const: lsi,axm5516-amarillo
- const: lsi,axm5516 - const: lsi,axm5516
additionalProperties: true
... ...
...@@ -51,4 +51,6 @@ properties: ...@@ -51,4 +51,6 @@ properties:
- raspberrypi,3-compute-module-lite - raspberrypi,3-compute-module-lite
- const: brcm,bcm2837 - const: brcm,bcm2837
additionalProperties: true
... ...
...@@ -18,4 +18,6 @@ properties: ...@@ -18,4 +18,6 @@ properties:
- brcm,bcm28155-ap - brcm,bcm28155-ap
- const: brcm,bcm11351 - const: brcm,bcm11351
additionalProperties: true
... ...
...@@ -18,4 +18,6 @@ properties: ...@@ -18,4 +18,6 @@ properties:
- brcm,bcm21664-garnet - brcm,bcm21664-garnet
- const: brcm,bcm21664 - const: brcm,bcm21664
additionalProperties: true
... ...
...@@ -18,4 +18,6 @@ properties: ...@@ -18,4 +18,6 @@ properties:
- brcm,bcm23550-sparrow - brcm,bcm23550-sparrow
- const: brcm,bcm23550 - const: brcm,bcm23550
additionalProperties: true
... ...
...@@ -87,4 +87,7 @@ properties: ...@@ -87,4 +87,7 @@ properties:
- const: brcm,brcm53012 - const: brcm,brcm53012
- const: brcm,brcm53016 - const: brcm,brcm53016
- const: brcm,bcm4708 - const: brcm,bcm4708
additionalProperties: true
... ...
...@@ -26,4 +26,6 @@ properties: ...@@ -26,4 +26,6 @@ properties:
- brcm,bcm58305 - brcm,bcm58305
- const: brcm,cygnus - const: brcm,cygnus
additionalProperties: true
... ...
...@@ -25,4 +25,6 @@ properties: ...@@ -25,4 +25,6 @@ properties:
- const: brcm,bcm53342 - const: brcm,bcm53342
- const: brcm,hr2 - const: brcm,hr2
additionalProperties: true
... ...
...@@ -20,4 +20,6 @@ properties: ...@@ -20,4 +20,6 @@ properties:
- brcm,ns2-xmc - brcm,ns2-xmc
- const: brcm,ns2 - const: brcm,ns2
additionalProperties: true
... ...
...@@ -33,4 +33,6 @@ properties: ...@@ -33,4 +33,6 @@ properties:
- brcm,bcm88312 - brcm,bcm88312
- const: brcm,nsp - const: brcm,nsp
additionalProperties: true
... ...
...@@ -21,4 +21,6 @@ properties: ...@@ -21,4 +21,6 @@ properties:
- brcm,bcm958802a802x - brcm,bcm958802a802x
- const: brcm,stingray - const: brcm,stingray
additionalProperties: true
... ...
...@@ -19,4 +19,6 @@ properties: ...@@ -19,4 +19,6 @@ properties:
- cavium,thunderx2-cn9900 - cavium,thunderx2-cn9900
- const: brcm,vulcan-soc - const: brcm,vulcan-soc
additionalProperties: true
... ...
...@@ -17,4 +17,7 @@ properties: ...@@ -17,4 +17,7 @@ properties:
- enum: - enum:
- bitmain,sophon-edge - bitmain,sophon-edge
- const: bitmain,bm1880 - const: bitmain,bm1880
additionalProperties: true
... ...
...@@ -20,3 +20,5 @@ properties: ...@@ -20,3 +20,5 @@ properties:
- enum: - enum:
- calxeda,highbank - calxeda,highbank
- calxeda,ecx-2000 - calxeda,ecx-2000
additionalProperties: true
...@@ -15,4 +15,6 @@ properties: ...@@ -15,4 +15,6 @@ properties:
compatible: compatible:
const: cnxt,cx92755 const: cnxt,cx92755
additionalProperties: true
... ...
...@@ -621,4 +621,6 @@ properties: ...@@ -621,4 +621,6 @@ properties:
- fsl,s32v234-evb # S32V234-EVB2 Customer Evaluation Board - fsl,s32v234-evb # S32V234-EVB2 Customer Evaluation Board
- const: fsl,s32v234 - const: fsl,s32v234
additionalProperties: true
... ...
...@@ -64,4 +64,7 @@ properties: ...@@ -64,4 +64,7 @@ properties:
items: items:
- const: H836ASDJ - const: H836ASDJ
- const: hisilicon,sd5203 - const: hisilicon,sd5203
additionalProperties: true
... ...
...@@ -16,4 +16,7 @@ properties: ...@@ -16,4 +16,7 @@ properties:
- enum: - enum:
- intel,keembay-evm - intel,keembay-evm
- const: intel,keembay - const: intel,keembay
additionalProperties: true
... ...
...@@ -22,3 +22,5 @@ properties: ...@@ -22,3 +22,5 @@ properties:
- enum: - enum:
- gateworks,gw2358 - gateworks,gw2358
- const: intel,ixp43x - const: intel,ixp43x
additionalProperties: true
...@@ -42,3 +42,5 @@ properties: ...@@ -42,3 +42,5 @@ properties:
- description: TI-SCI processor id for the remote processor device - description: TI-SCI processor id for the remote processor device
- description: TI-SCI host id to which processor control ownership - description: TI-SCI host id to which processor control ownership
should be transferred to should be transferred to
additionalProperties: true
...@@ -59,3 +59,5 @@ properties: ...@@ -59,3 +59,5 @@ properties:
- const: marvell,cn9130 - const: marvell,cn9130
- const: marvell,armada-ap807-quad - const: marvell,armada-ap807-quad
- const: marvell,armada-ap807 - const: marvell,armada-ap807
additionalProperties: true
...@@ -119,4 +119,7 @@ properties: ...@@ -119,4 +119,7 @@ properties:
- const: google,krane-sku176 - const: google,krane-sku176
- const: google,krane - const: google,krane
- const: mediatek,mt8183 - const: mediatek,mt8183
additionalProperties: true
... ...
...@@ -62,4 +62,6 @@ required: ...@@ -62,4 +62,6 @@ required:
- compatible - compatible
- axi@600000000 - axi@600000000
additionalProperties: true
... ...
...@@ -16,4 +16,5 @@ properties: ...@@ -16,4 +16,5 @@ properties:
- const: moxa,moxart-uc-7112-lx - const: moxa,moxart-uc-7112-lx
- const: moxa,moxart - const: moxa,moxart
additionalProperties: true
... ...
...@@ -35,4 +35,7 @@ properties: ...@@ -35,4 +35,7 @@ properties:
- enum: - enum:
- dell,wyse-ariel - dell,wyse-ariel
- const: marvell,mmp3 - const: marvell,mmp3
additionalProperties: true
... ...
...@@ -31,3 +31,5 @@ properties: ...@@ -31,3 +31,5 @@ properties:
- enum: - enum:
- 70mai,midrived08 # 70mai midrive d08 - 70mai,midrived08 # 70mai midrive d08
- const: mstar,mercury5 - const: mstar,mercury5
additionalProperties: true
...@@ -21,4 +21,6 @@ properties: ...@@ -21,4 +21,6 @@ properties:
- ea,ea3250 - ea,ea3250
- phytec,phy3250 - phytec,phy3250
- const: nxp,lpc3250 - const: nxp,lpc3250
additionalProperties: true
... ...
...@@ -178,4 +178,6 @@ properties: ...@@ -178,4 +178,6 @@ properties:
- qcom,sm8250-mtp - qcom,sm8250-mtp
- const: qcom,sm8250 - const: qcom,sm8250
additionalProperties: true
... ...
...@@ -19,4 +19,6 @@ properties: ...@@ -19,4 +19,6 @@ properties:
- xunlong,orangepi-i96 # Orange Pi i96 - xunlong,orangepi-i96 # Orange Pi i96
- const: rda,8810pl - const: rda,8810pl
additionalProperties: true
... ...
...@@ -54,4 +54,7 @@ properties: ...@@ -54,4 +54,7 @@ properties:
- enum: - enum:
- realtek,mjolnir # Realtek Mjolnir EVB - realtek,mjolnir # Realtek Mjolnir EVB
- const: realtek,rtd1619 - const: realtek,rtd1619
additionalProperties: true
... ...
...@@ -299,4 +299,6 @@ properties: ...@@ -299,4 +299,6 @@ properties:
- renesas,rzn1d400-db # RZN1D-DB (RZ/N1D Demo Board for the RZ/N1D 400 pins package) - renesas,rzn1d400-db # RZN1D-DB (RZ/N1D Demo Board for the RZ/N1D 400 pins package)
- const: renesas,r9a06g032 - const: renesas,r9a06g032
additionalProperties: true
... ...
...@@ -569,4 +569,7 @@ properties: ...@@ -569,4 +569,7 @@ properties:
items: items:
- const: zkmagic,a95x-z2 - const: zkmagic,a95x-z2
- const: rockchip,rk3318 - const: rockchip,rk3318
additionalProperties: true
... ...
...@@ -180,3 +180,5 @@ properties: ...@@ -180,3 +180,5 @@ properties:
required: required:
- compatible - compatible
additionalProperties: true
...@@ -24,4 +24,7 @@ properties: ...@@ -24,4 +24,7 @@ properties:
- items: - items:
- const: sirf,prima2-cb - const: sirf,prima2-cb
- const: sirf,prima2 - const: sirf,prima2
additionalProperties: true
... ...
...@@ -19,4 +19,7 @@ properties: ...@@ -19,4 +19,7 @@ properties:
- enum: - enum:
- socionext,milbeaut-m10v-evb - socionext,milbeaut-m10v-evb
- const: socionext,sc2000a - const: socionext,sc2000a
additionalProperties: true
... ...
...@@ -60,3 +60,5 @@ properties: ...@@ -60,3 +60,5 @@ properties:
- enum: - enum:
- socionext,uniphier-pxs3-ref - socionext,uniphier-pxs3-ref
- const: socionext,uniphier-pxs3 - const: socionext,uniphier-pxs3
additionalProperties: true
...@@ -22,4 +22,7 @@ properties: ...@@ -22,4 +22,7 @@ properties:
- st,spear320 - st,spear320
- st,spear1310 - st,spear1310
- st,spear1340 - st,spear1340
additionalProperties: true
... ...
...@@ -30,4 +30,6 @@ properties: ...@@ -30,4 +30,6 @@ properties:
- sprd,sp9863a-1h10 - sprd,sp9863a-1h10
- const: sprd,sc9863a - const: sprd,sc9863a
additionalProperties: true
... ...
...@@ -20,4 +20,7 @@ properties: ...@@ -20,4 +20,7 @@ properties:
- st,stih407 - st,stih407
- st,stih410 - st,stih410
- st,stih418 - st,stih418
additionalProperties: true
... ...
...@@ -58,4 +58,7 @@ properties: ...@@ -58,4 +58,7 @@ properties:
- seeed,stm32mp157c-odyssey - seeed,stm32mp157c-odyssey
- const: seeed,stm32mp157c-odyssey-som - const: seeed,stm32mp157c-odyssey-som
- const: st,stm32mp157 - const: st,stm32mp157
additionalProperties: true
... ...
...@@ -893,3 +893,5 @@ properties: ...@@ -893,3 +893,5 @@ properties:
items: items:
- const: xunlong,orangepi-zero-plus2-h3 - const: xunlong,orangepi-zero-plus2-h3
- const: allwinner,sun8i-h3 - const: allwinner,sun8i-h3
additionalProperties: true
...@@ -125,3 +125,5 @@ properties: ...@@ -125,3 +125,5 @@ properties:
- enum: - enum:
- nvidia,tegra234-vdk - nvidia,tegra234-vdk
- const: nvidia,tegra234 - const: nvidia,tegra234
additionalProperties: true
...@@ -32,4 +32,7 @@ properties: ...@@ -32,4 +32,7 @@ properties:
- description: K3 J7200 SoC - description: K3 J7200 SoC
items: items:
- const: ti,j7200 - const: ti,j7200
additionalProperties: true
... ...
...@@ -21,4 +21,7 @@ properties: ...@@ -21,4 +21,7 @@ properties:
- ti,nspire-tp - ti,nspire-tp
# Clickpad models # Clickpad models
- ti,nspire-clp - ti,nspire-clp
additionalProperties: true
... ...
...@@ -23,4 +23,7 @@ properties: ...@@ -23,4 +23,7 @@ properties:
- enbw,cmc # EnBW AM1808 based CMC board - enbw,cmc # EnBW AM1808 based CMC board
- lego,ev3 # LEGO MINDSTORMS EV3 (AM1808 based) - lego,ev3 # LEGO MINDSTORMS EV3 (AM1808 based)
- const: ti,da850 - const: ti,da850
additionalProperties: true
... ...
...@@ -19,4 +19,7 @@ properties: ...@@ -19,4 +19,7 @@ properties:
- enum: - enum:
- toshiba,tmpv7708-rm-mbrc # TMPV7708 RM main board - toshiba,tmpv7708-rm-mbrc # TMPV7708 RM main board
- const: toshiba,tmpv7708 - const: toshiba,tmpv7708
additionalProperties: true
... ...
...@@ -34,3 +34,5 @@ properties: ...@@ -34,3 +34,5 @@ properties:
items: items:
- const: samsung,golden - const: samsung,golden
- const: st-ericsson,u8500 - const: st-ericsson,u8500
additionalProperties: true
...@@ -21,3 +21,6 @@ properties: ...@@ -21,3 +21,6 @@ properties:
- wm,wm8650 - wm,wm8650
- wm,wm8750 - wm,wm8750
- wm,wm8850 - wm,wm8850
additionalProperties: true
...@@ -111,4 +111,6 @@ properties: ...@@ -111,4 +111,6 @@ properties:
- const: xlnx,zynqmp-zcu111 - const: xlnx,zynqmp-zcu111
- const: xlnx,zynqmp - const: xlnx,zynqmp
additionalProperties: true
... ...
...@@ -23,4 +23,6 @@ properties: ...@@ -23,4 +23,6 @@ properties:
- zte,zx296718-evb - zte,zx296718-evb
- const: zte,zx296718 - const: zte,zx296718
additionalProperties: true
... ...
...@@ -85,6 +85,8 @@ required: ...@@ -85,6 +85,8 @@ required:
- reset-gpios - reset-gpios
- ports - ports
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -15,7 +15,6 @@ properties: ...@@ -15,7 +15,6 @@ properties:
- enum: - enum:
- bananapi,lhr050h41 - bananapi,lhr050h41
- feixin,k101-im2byl02 - feixin,k101-im2byl02
- const: ilitek,ili9881c - const: ilitek,ili9881c
backlight: true backlight: true
......
...@@ -48,6 +48,7 @@ required: ...@@ -48,6 +48,7 @@ required:
- "#address-cells" - "#address-cells"
- "#size-cells" - "#size-cells"
additionalProperties: false
examples: examples:
- | - |
......
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/i2c/google,cros-ec-i2c-tunnel.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: I2C bus that tunnels through the ChromeOS EC (cros-ec)
maintainers:
- Doug Anderson <dianders@chromium.org>
- Benson Leung <bleung@chromium.org>
- Enric Balletbo i Serra <enric.balletbo@collabora.com>
description: |
On some ChromeOS board designs we've got a connection to the EC
(embedded controller) but no direct connection to some devices on the
other side of the EC (like a battery and PMIC). To get access to
those devices we need to tunnel our i2c commands through the EC.
The node for this device should be under a cros-ec node like
google,cros-ec-spi or google,cros-ec-i2c.
allOf:
- $ref: i2c-controller.yaml#
properties:
compatible:
const: google,cros-ec-i2c-tunnel
google,remote-bus:
description: The EC bus we'd like to talk to.
$ref: /schemas/types.yaml#/definitions/uint32
required:
- compatible
- google,remote-bus
unevaluatedProperties: false
examples:
- |
spi0 {
#address-cells = <1>;
#size-cells = <0>;
cros-ec@0 {
compatible = "google,cros-ec-spi";
reg = <0>;
spi-max-frequency = <5000000>;
i2c-tunnel {
compatible = "google,cros-ec-i2c-tunnel";
#address-cells = <1>;
#size-cells = <0>;
google,remote-bus = <0>;
battery: sbs-battery@b {
compatible = "sbs,sbs-battery";
reg = <0xb>;
sbs,poll-retry-count = <1>;
};
};
};
};
I2C bus that tunnels through the ChromeOS EC (cros-ec)
======================================================
On some ChromeOS board designs we've got a connection to the EC (embedded
controller) but no direct connection to some devices on the other side of
the EC (like a battery and PMIC). To get access to those devices we need
to tunnel our i2c commands through the EC.
The node for this device should be under a cros-ec node like google,cros-ec-spi
or google,cros-ec-i2c.
Required properties:
- compatible: google,cros-ec-i2c-tunnel
- google,remote-bus: The EC bus we'd like to talk to.
Optional child nodes:
- One node per I2C device connected to the tunnelled I2C bus.
Example:
cros-ec@0 {
compatible = "google,cros-ec-spi";
...
i2c-tunnel {
compatible = "google,cros-ec-i2c-tunnel";
#address-cells = <1>;
#size-cells = <0>;
google,remote-bus = <0>;
battery: sbs-battery@b {
compatible = "sbs,sbs-battery";
reg = <0xb>;
sbs,poll-retry-count = <1>;
};
};
}
...@@ -44,3 +44,4 @@ examples: ...@@ -44,3 +44,4 @@ examples:
}; };
}; };
... ...
...@@ -46,7 +46,8 @@ properties: ...@@ -46,7 +46,8 @@ properties:
spi-max-frequency: true spi-max-frequency: true
spi-cpol: true spi-cpol: true
spi-cpha : true
spi-cpha: true
"#io-channel-cells": "#io-channel-cells":
const: 1 const: 1
......
...@@ -28,6 +28,8 @@ required: ...@@ -28,6 +28,8 @@ required:
- reg - reg
- vref-supply - vref-supply
additionalProperties: false
examples: examples:
- | - |
i2c { i2c {
......
...@@ -32,6 +32,8 @@ required: ...@@ -32,6 +32,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
i2c0 { i2c0 {
......
ChromeOS EC Keyboard
Google's ChromeOS EC Keyboard is a simple matrix keyboard implemented on
a separate EC (Embedded Controller) device. It provides a message for reading
key scans from the EC. These are then converted into keycodes for processing
by the kernel.
This binding is based on matrix-keymap.txt and extends/modifies it as follows:
Required properties:
- compatible: "google,cros-ec-keyb"
Optional properties:
- google,needs-ghost-filter: True to enable a ghost filter for the matrix
keyboard. This is recommended if the EC does not have its own logic or
hardware for this.
Example:
cros-ec-keyb {
compatible = "google,cros-ec-keyb";
keypad,num-rows = <8>;
keypad,num-columns = <13>;
google,needs-ghost-filter;
/*
* Keymap entries take the form of 0xRRCCKKKK where
* RR=Row CC=Column KKKK=Key Code
* The values below are for a US keyboard layout and
* are taken from the Linux driver. Note that the
* 102ND key is not used for US keyboards.
*/
linux,keymap = <
/* CAPSLCK F1 B F10 */
0x0001003a 0x0002003b 0x00030030 0x00040044
/* N = R_ALT ESC */
0x00060031 0x0008000d 0x000a0064 0x01010001
/* F4 G F7 H */
0x0102003e 0x01030022 0x01040041 0x01060023
/* ' F9 BKSPACE L_CTRL */
0x01080028 0x01090043 0x010b000e 0x0200001d
/* TAB F3 T F6 */
0x0201000f 0x0202003d 0x02030014 0x02040040
/* ] Y 102ND [ */
0x0205001b 0x02060015 0x02070056 0x0208001a
/* F8 GRAVE F2 5 */
0x02090042 0x03010029 0x0302003c 0x03030006
/* F5 6 - \ */
0x0304003f 0x03060007 0x0308000c 0x030b002b
/* R_CTRL A D F */
0x04000061 0x0401001e 0x04020020 0x04030021
/* S K J ; */
0x0404001f 0x04050025 0x04060024 0x04080027
/* L ENTER Z C */
0x04090026 0x040b001c 0x0501002c 0x0502002e
/* V X , M */
0x0503002f 0x0504002d 0x05050033 0x05060032
/* L_SHIFT / . SPACE */
0x0507002a 0x05080035 0x05090034 0x050B0039
/* 1 3 4 2 */
0x06010002 0x06020004 0x06030005 0x06040003
/* 8 7 0 9 */
0x06050009 0x06060008 0x0608000b 0x0609000a
/* L_ALT DOWN RIGHT Q */
0x060a0038 0x060b006c 0x060c006a 0x07010010
/* E R W I */
0x07020012 0x07030013 0x07040011 0x07050017
/* U R_SHIFT P O */
0x07060016 0x07070036 0x07080019 0x07090018
/* UP LEFT */
0x070b0067 0x070c0069>;
};
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/input/google,cros-ec-keyb.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: ChromeOS EC Keyboard
maintainers:
- Simon Glass <sjg@chromium.org>
- Benson Leung <bleung@chromium.org>
- Enric Balletbo i Serra <enric.balletbo@collabora.com>
description: |
Google's ChromeOS EC Keyboard is a simple matrix keyboard
implemented on a separate EC (Embedded Controller) device. It provides
a message for reading key scans from the EC. These are then converted
into keycodes for processing by the kernel.
allOf:
- $ref: "/schemas/input/matrix-keymap.yaml#"
properties:
compatible:
const: google,cros-ec-keyb
google,needs-ghost-filter:
description:
Enable a ghost filter for the matrix keyboard. This is recommended
if the EC does not have its own logic or hardware for this.
type: boolean
required:
- compatible
unevaluatedProperties: false
examples:
- |
cros-ec-keyb {
compatible = "google,cros-ec-keyb";
keypad,num-rows = <8>;
keypad,num-columns = <13>;
google,needs-ghost-filter;
/*
* Keymap entries take the form of 0xRRCCKKKK where
* RR=Row CC=Column KKKK=Key Code
* The values below are for a US keyboard layout and
* are taken from the Linux driver. Note that the
* 102ND key is not used for US keyboards.
*/
linux,keymap = <
/* CAPSLCK F1 B F10 */
0x0001003a 0x0002003b 0x00030030 0x00040044
/* N = R_ALT ESC */
0x00060031 0x0008000d 0x000a0064 0x01010001
/* F4 G F7 H */
0x0102003e 0x01030022 0x01040041 0x01060023
/* ' F9 BKSPACE L_CTRL */
0x01080028 0x01090043 0x010b000e 0x0200001d
/* TAB F3 T F6 */
0x0201000f 0x0202003d 0x02030014 0x02040040
/* ] Y 102ND [ */
0x0205001b 0x02060015 0x02070056 0x0208001a
/* F8 GRAVE F2 5 */
0x02090042 0x03010029 0x0302003c 0x03030006
/* F5 6 - \ */
0x0304003f 0x03060007 0x0308000c 0x030b002b
/* R_CTRL A D F */
0x04000061 0x0401001e 0x04020020 0x04030021
/* S K J ; */
0x0404001f 0x04050025 0x04060024 0x04080027
/* L ENTER Z C */
0x04090026 0x040b001c 0x0501002c 0x0502002e
/* V X , M */
0x0503002f 0x0504002d 0x05050033 0x05060032
/* L_SHIFT / . SPACE */
0x0507002a 0x05080035 0x05090034 0x050B0039
/* 1 3 4 2 */
0x06010002 0x06020004 0x06030005 0x06040003
/* 8 7 0 9 */
0x06050009 0x06060008 0x0608000b 0x0609000a
/* L_ALT DOWN RIGHT Q */
0x060a0038 0x060b006c 0x060c006a 0x07010010
/* E R W I */
0x07020012 0x07030013 0x07040011 0x07050017
/* U R_SHIFT P O */
0x07060016 0x07070036 0x07080019 0x07090018
/* UP LEFT */
0x070b0067 0x070c0069>;
};
...@@ -79,6 +79,8 @@ required: ...@@ -79,6 +79,8 @@ required:
- ti,sci-dev-id - ti,sci-dev-id
- ti,interrupt-ranges - ti,interrupt-ranges
unevaluatedProperties: false
examples: examples:
- | - |
bus { bus {
......
...@@ -88,6 +88,8 @@ required: ...@@ -88,6 +88,8 @@ required:
- ti,sci-dev-id - ti,sci-dev-id
- ti,interrupt-ranges - ti,interrupt-ranges
unevaluatedProperties: false
examples: examples:
- | - |
main_gpio_intr: interrupt-controller0 { main_gpio_intr: interrupt-controller0 {
......
...@@ -32,3 +32,5 @@ properties: ...@@ -32,3 +32,5 @@ properties:
that a LED can be made so bright that it gets damaged or causes damage that a LED can be made so bright that it gets damaged or causes damage
due to restrictions in a specific system, such as mounting conditions. due to restrictions in a specific system, such as mounting conditions.
$ref: /schemas/types.yaml#definitions/uint32 $ref: /schemas/types.yaml#definitions/uint32
additionalProperties: true
...@@ -43,7 +43,7 @@ properties: ...@@ -43,7 +43,7 @@ properties:
LED_COLOR_ID available, add a new one. LED_COLOR_ID available, add a new one.
$ref: /schemas/types.yaml#definitions/uint32 $ref: /schemas/types.yaml#definitions/uint32
minimum: 0 minimum: 0
maximum: 8 maximum: 9
function-enumerator: function-enumerator:
description: description:
......
...@@ -16,7 +16,7 @@ description: | ...@@ -16,7 +16,7 @@ description: |
modules. This is achieved by adding multi-led nodes layer to the modules. This is achieved by adding multi-led nodes layer to the
monochrome LED bindings. monochrome LED bindings.
The nodes and properties defined in this document are unique to the multicolor The nodes and properties defined in this document are unique to the multicolor
LED class. Common LED nodes and properties are inherited from the common.txt LED class. Common LED nodes and properties are inherited from the common.yaml
within this documentation directory. within this documentation directory.
patternProperties: patternProperties:
...@@ -25,10 +25,11 @@ patternProperties: ...@@ -25,10 +25,11 @@ patternProperties:
description: Represents the LEDs that are to be grouped. description: Represents the LEDs that are to be grouped.
properties: properties:
color: color:
const: 8 # LED_COLOR_ID_MULTI
description: | description: |
For multicolor LED support this property should be defined as For multicolor LED support this property should be defined as either
LED_COLOR_ID_MULTI which can be found in include/linux/leds/common.h. LED_COLOR_ID_RGB or LED_COLOR_ID_MULTI which can be found in
include/linux/leds/common.h.
enum: [ 8, 9 ]
$ref: "common.yaml#" $ref: "common.yaml#"
......
...@@ -46,6 +46,12 @@ properties: ...@@ -46,6 +46,12 @@ properties:
vled-supply: vled-supply:
description: LED supply. description: LED supply.
'#address-cells':
const: 1
'#size-cells':
const: 0
patternProperties: patternProperties:
'^multi-led@[0-9a-f]$': '^multi-led@[0-9a-f]$':
type: object type: object
...@@ -69,6 +75,8 @@ required: ...@@ -69,6 +75,8 @@ required:
- compatible - compatible
- reg - reg
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
...@@ -47,7 +47,7 @@ Example: ...@@ -47,7 +47,7 @@ Example:
interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_LOW>; interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_LOW>;
clocks = <&infracfg CLK_INFRA_GCE>; clocks = <&infracfg CLK_INFRA_GCE>;
clock-names = "gce"; clock-names = "gce";
#mbox-cells = <3>; #mbox-cells = <2>;
}; };
Example for a client device: Example for a client device:
......
...@@ -59,6 +59,14 @@ properties: ...@@ -59,6 +59,14 @@ properties:
whether this nvram is present or not. whether this nvram is present or not.
type: boolean type: boolean
mtk,rpmsg-name:
description:
Must be defined if the cros-ec is a rpmsg device for a Mediatek
ARM Cortex M4 Co-processor. Contains the name pf the rpmsg
device. Used to match the subnode to the rpmsg device announced by
the SCP.
$ref: "/schemas/types.yaml#/definitions/string"
spi-max-frequency: spi-max-frequency:
description: Maximum SPI frequency of the device in Hz. description: Maximum SPI frequency of the device in Hz.
...@@ -71,6 +79,54 @@ properties: ...@@ -71,6 +79,54 @@ properties:
wakeup-source: wakeup-source:
description: Button can wake-up the system. description: Button can wake-up the system.
'#address-cells':
const: 1
'#size-cells':
const: 0
typec:
$ref: "/schemas/chrome/google,cros-ec-typec.yaml#"
ec-pwm:
$ref: "/schemas/pwm/google,cros-ec-pwm.yaml#"
keyboard-controller:
$ref: "/schemas/input/google,cros-ec-keyb.yaml#"
codecs:
type: object
additionalProperties: false
properties:
'#address-cells':
const: 2
'#size-cells':
const: 1
patternProperties:
"^ec-codec@[a-f0-9]+$":
type: object
$ref: "/schemas/sound/google,cros-ec-codec.yaml#"
required:
- "#address-cells"
- "#size-cells"
patternProperties:
"^i2c-tunnel[0-9]*$":
type: object
$ref: "/schemas/i2c/google,cros-ec-i2c-tunnel.yaml#"
"^regulator@[0-9]+$":
type: object
$ref: "/schemas/regulator/google,cros-ec-regulator.yaml#"
"^extcon[0-9]*$":
type: object
$ref: "/schemas/extcon/extcon-usbc-cros-ec.yaml#"
required: required:
- compatible - compatible
......
...@@ -52,4 +52,7 @@ properties: ...@@ -52,4 +52,7 @@ properties:
items: items:
- const: yna,cu2000-neo - const: yna,cu2000-neo
- const: ingenic,x2000e - const: ingenic,x2000e
additionalProperties: true
... ...
...@@ -36,4 +36,7 @@ properties: ...@@ -36,4 +36,7 @@ properties:
- description: Virtual Loongson64 Quad Core + VirtIO - description: Virtual Loongson64 Quad Core + VirtIO
items: items:
- const: loongson,loongson64v-4core-virtio - const: loongson,loongson64v-4core-virtio
additionalProperties: true
... ...
...@@ -46,6 +46,8 @@ required: ...@@ -46,6 +46,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
%YAML 1.2 %YAML 1.2
--- ---
$id: "http://devicetree.org/schemas/mmc/sdhci-am654.yaml#" $id: "http://devicetree.org/schemas/mmc/sdhci-am654.yaml#"
$schema : "http://devicetree.org/meta-schemas/core.yaml#" $schema: "http://devicetree.org/meta-schemas/core.yaml#"
title: TI AM654 MMC Controller title: TI AM654 MMC Controller
...@@ -163,8 +163,7 @@ properties: ...@@ -163,8 +163,7 @@ properties:
ti,driver-strength-ohm: ti,driver-strength-ohm:
description: DLL drive strength in ohms description: DLL drive strength in ohms
$ref: "/schemas/types.yaml#/definitions/uint32" $ref: "/schemas/types.yaml#/definitions/uint32"
oneOf: enum:
- enum:
- 33 - 33
- 40 - 40
- 50 - 50
...@@ -187,6 +186,8 @@ required: ...@@ -187,6 +186,8 @@ required:
- clock-names - clock-names
- ti,otap-del-sel-legacy - ti,otap-del-sel-legacy
unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
......
...@@ -46,6 +46,8 @@ required: ...@@ -46,6 +46,8 @@ required:
- clocks - clocks
- clock-names - clock-names
unevaluatedProperties: false
examples: examples:
# FIXME: Remove defines and include the correct header file # FIXME: Remove defines and include the correct header file
# once it is available in mainline. # once it is available in mainline.
......
...@@ -65,6 +65,8 @@ properties: ...@@ -65,6 +65,8 @@ properties:
required: required:
- reg - reg
unevaluatedProperties: false
examples: examples:
- | - |
mdio0 { mdio0 {
......
...@@ -62,6 +62,8 @@ required: ...@@ -62,6 +62,8 @@ required:
- clocks - clocks
- clock-names - clock-names
additionalProperties: false
examples: examples:
- | - |
usb0_phy: phy@4100000 { usb0_phy: phy@4100000 {
......
...@@ -29,13 +29,15 @@ description: | ...@@ -29,13 +29,15 @@ description: |
properties: properties:
mode-normal: mode-normal:
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
description: | description:
Default value to set on a reboot if no command was provided. Default value to set on a reboot if no command was provided.
patternProperties: patternProperties:
"^mode-.*$": "^mode-.*$":
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
additionalProperties: false
examples: examples:
- | - |
reboot-mode { reboot-mode {
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment