^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: (GPL-2.0-only 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/gpio/gpio-pca9570.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: PCA9570 I2C GPO expander
^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) - Sungbo Eo <mans0n@gorani.run>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) enum:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) - nxp,pca9570
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) reg:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) maxItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) gpio-controller: true
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) '#gpio-cells':
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) const: 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) - compatible
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) - reg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) - gpio-controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) - "#gpio-cells"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) additionalProperties: false
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) i2c0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) gpio@24 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) compatible = "nxp,pca9570";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) reg = <0x24>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) gpio-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #gpio-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) ...