^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) %YAML 1.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) ---
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) $id: http://devicetree.org/schemas/mfd/iqs62x.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) $schema: http://devicetree.org/meta-schemas/core.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) title: Azoteq IQS620A/621/622/624/625 Multi-Function Sensors
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) maintainers:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - Jeff LaBundy <jeff@labundy.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) description: |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) The Azoteq IQS620A, IQS621, IQS622, IQS624 and IQS625 multi-function sensors
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) integrate multiple sensing technologies in a single package.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Link to datasheets: https://www.azoteq.com/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) enum:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) - azoteq,iqs620a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) - azoteq,iqs621
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) - azoteq,iqs622
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) - azoteq,iqs624
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) - azoteq,iqs625
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) reg:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) interrupts:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) firmware-name:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) $ref: /schemas/types.yaml#/definitions/string
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) Specifies the name of the calibration and configuration file selected by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) the driver. If this property is omitted, the name is chosen based on the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) device name with ".bin" as the extension (e.g. iqs620a.bin for IQS620A).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) keys:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) $ref: ../input/iqs62x-keys.yaml
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) pwm:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) $ref: ../pwm/iqs620a-pwm.yaml
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) - compatible
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) - reg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) - interrupts
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) additionalProperties: false
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) * Dual capacitive buttons with proximity-activated function, unipolar lid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) * switch and panel-mounted LED.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #include <dt-bindings/input/input.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) #include <dt-bindings/interrupt-controller/irq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) i2c {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) iqs620a@44 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) compatible = "azoteq,iqs620a";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) reg = <0x44>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) interrupt-parent = <&gpio>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) keys {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) compatible = "azoteq,iqs620a-keys";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) linux,keycodes = <KEY_SELECT>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) <KEY_MENU>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) <KEY_OK>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) <KEY_MENU>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) hall-switch-south {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) linux,code = <SW_LID>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) azoteq,use-prox;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) iqs620a_pwm: pwm {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) compatible = "azoteq,iqs620a-pwm";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) #pwm-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) pwmleds {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) compatible = "pwm-leds";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) panel {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) pwms = <&iqs620a_pwm 0 1000000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) max-brightness = <255>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) /* Single inductive button with bipolar dock/tablet-mode switch. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) #include <dt-bindings/input/input.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) #include <dt-bindings/interrupt-controller/irq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) i2c {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) iqs620a@44 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) compatible = "azoteq,iqs620a";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) reg = <0x44>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) interrupt-parent = <&gpio>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) firmware-name = "iqs620a_coil.bin";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) keys {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) compatible = "azoteq,iqs620a-keys";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) linux,keycodes = <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) <KEY_MUTE>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) hall-switch-north {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) linux,code = <SW_DOCK>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) hall-switch-south {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) linux,code = <SW_TABLET_MODE>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) /* Dual capacitive buttons with volume knob. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) #include <dt-bindings/input/input.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) #include <dt-bindings/interrupt-controller/irq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) i2c {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) iqs624@44 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) compatible = "azoteq,iqs624";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) reg = <0x44>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) interrupt-parent = <&gpio>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) keys {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) compatible = "azoteq,iqs624-keys";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) linux,keycodes = <BTN_0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) <BTN_1>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) <0>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) <KEY_VOLUMEUP>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) <KEY_VOLUMEDOWN>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) ...