Lines Matching +full:spi +full:- +full:compatible

1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/mfd/google,cros-ec.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Benson Leung <bleung@chromium.org>
11 - Guenter Roeck <groeck@chromium.org>
16 The EC can be connected through various interfaces (I2C, SPI, and others)
17 and the compatible string specifies which interface is being used.
20 compatible:
22 - description:
24 const: google,cros-ec-i2c
25 - description:
26 For implementations of the EC is connected through SPI.
27 const: google,cros-ec-spi
28 - description:
30 const: google,cros-ec-rpmsg
32 controller-data:
34 SPI controller data, see bindings/spi/samsung,spi-peripheral-props.yaml
37 google,cros-ec-spi-pre-delay:
44 google,cros-ec-spi-msg-delay:
50 google,has-vbc-nvram:
57 mediatek,rpmsg-name:
59 Must be defined if the cros-ec is a rpmsg device for a Mediatek
60 ARM Cortex M4 Co-processor. Contains the name of the rpmsg
65 spi-max-frequency:
66 description: Maximum SPI frequency of the device in Hz.
74 wakeup-source:
75 description: Button can wake-up the system.
77 '#address-cells':
80 '#size-cells':
84 $ref: "/schemas/chrome/google,cros-ec-typec.yaml#"
86 ec-pwm:
87 $ref: "/schemas/pwm/google,cros-ec-pwm.yaml#"
91 $ref: "/schemas/pwm/google,cros-ec-pwm.yaml#"
93 kbd-led-backlight:
94 $ref: "/schemas/chrome/google,cros-kbd-led-backlight.yaml#"
96 keyboard-controller:
97 $ref: "/schemas/input/google,cros-ec-keyb.yaml#"
100 $ref: "/schemas/iio/proximity/google,cros-ec-mkbp-proximity.yaml#"
107 '#address-cells':
110 '#size-cells':
114 "^ec-codec@[a-f0-9]+$":
116 $ref: "/schemas/sound/google,cros-ec-codec.yaml#"
119 - "#address-cells"
120 - "#size-cells"
130 compatible:
131 const: google,cros-cbas
134 - compatible
139 "^i2c-tunnel[0-9]*$":
141 $ref: "/schemas/i2c/google,cros-ec-i2c-tunnel.yaml#"
143 "^regulator@[0-9]+$":
145 $ref: "/schemas/regulator/google,cros-ec-regulator.yaml#"
147 "^extcon[0-9]*$":
149 $ref: "/schemas/extcon/extcon-usbc-cros-ec.yaml#"
152 - compatible
155 - if:
157 compatible:
160 - google,cros-ec-i2c
161 - google,cros-ec-rpmsg
164 google,cros-ec-spi-pre-delay: false
165 google,cros-ec-spi-msg-delay: false
166 spi-max-frequency: false
168 $ref: /schemas/spi/spi-peripheral-props.yaml
174 - |
175 #include <dt-bindings/gpio/gpio.h>
176 #include <dt-bindings/interrupt-controller/irq.h>
179 #address-cells = <1>;
180 #size-cells = <0>;
182 cros-ec@1e {
183 compatible = "google,cros-ec-i2c";
186 interrupt-parent = <&gpio0>;
190 # Example for SPI
191 - |
192 #include <dt-bindings/gpio/gpio.h>
193 #include <dt-bindings/interrupt-controller/irq.h>
196 #address-cells = <1>;
197 #size-cells = <0>;
199 cros-ec@0 {
200 compatible = "google,cros-ec-spi";
202 google,cros-ec-spi-msg-delay = <30>;
203 google,cros-ec-spi-pre-delay = <10>;
205 interrupt-parent = <&gpio7>;
206 spi-max-frequency = <5000000>;
209 compatible = "google,cros-ec-mkbp-proximity";
213 compatible = "google,cros-cbas";
219 - |
221 cros-ec {
222 compatible = "google,cros-ec-rpmsg";