1*8ccc0d23SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*8ccc0d23SEmmanuel Vadot%YAML 1.2 3*8ccc0d23SEmmanuel Vadot--- 4*8ccc0d23SEmmanuel Vadot$id: http://devicetree.org/schemas/connector/gocontroll,moduline-module-slot.yaml# 5*8ccc0d23SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*8ccc0d23SEmmanuel Vadot 7*8ccc0d23SEmmanuel Vadottitle: GOcontroll Moduline Module slot 8*8ccc0d23SEmmanuel Vadot 9*8ccc0d23SEmmanuel Vadotmaintainers: 10*8ccc0d23SEmmanuel Vadot - Maud Spierings <maudspierings@gocontroll.com> 11*8ccc0d23SEmmanuel Vadot 12*8ccc0d23SEmmanuel Vadotdescription: 13*8ccc0d23SEmmanuel Vadot The GOcontroll Moduline module slot represents a connector that fullfills the 14*8ccc0d23SEmmanuel Vadot Moduline slot specification, and can thus house any IO module that is also 15*8ccc0d23SEmmanuel Vadot built to this spec. 16*8ccc0d23SEmmanuel Vadot 17*8ccc0d23SEmmanuel Vadotproperties: 18*8ccc0d23SEmmanuel Vadot compatible: 19*8ccc0d23SEmmanuel Vadot const: gocontroll,moduline-module-slot 20*8ccc0d23SEmmanuel Vadot 21*8ccc0d23SEmmanuel Vadot reg: 22*8ccc0d23SEmmanuel Vadot maxItems: 1 23*8ccc0d23SEmmanuel Vadot 24*8ccc0d23SEmmanuel Vadot interrupts: 25*8ccc0d23SEmmanuel Vadot description: indicates readiness, high means busy. 26*8ccc0d23SEmmanuel Vadot maxItems: 1 27*8ccc0d23SEmmanuel Vadot reset-gpios: 28*8ccc0d23SEmmanuel Vadot description: resets the module, active low. 29*8ccc0d23SEmmanuel Vadot maxItems: 1 30*8ccc0d23SEmmanuel Vadot sync-gpios: 31*8ccc0d23SEmmanuel Vadot description: sync line between all module slots. 32*8ccc0d23SEmmanuel Vadot maxItems: 1 33*8ccc0d23SEmmanuel Vadot 34*8ccc0d23SEmmanuel Vadot vdd-supply: 35*8ccc0d23SEmmanuel Vadot description: low power 3v3 supply generally for the microcontroller. 36*8ccc0d23SEmmanuel Vadot vddp-supply: 37*8ccc0d23SEmmanuel Vadot description: medium power 5v0 supply for on module low power peripherals. 38*8ccc0d23SEmmanuel Vadot vddhpp-supply: 39*8ccc0d23SEmmanuel Vadot description: high power 6v-8v supply for on module high power peripherals. 40*8ccc0d23SEmmanuel Vadot power-supply: 41*8ccc0d23SEmmanuel Vadot description: high power 6v-30v supply for high power module circuits. 42*8ccc0d23SEmmanuel Vadot 43*8ccc0d23SEmmanuel Vadot i2c-bus: 44*8ccc0d23SEmmanuel Vadot description: i2c bus shared between module slots and the SoC 45*8ccc0d23SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 46*8ccc0d23SEmmanuel Vadot 47*8ccc0d23SEmmanuel Vadot slot-number: 48*8ccc0d23SEmmanuel Vadot description: 49*8ccc0d23SEmmanuel Vadot The number of the module slot representing the location of on the pcb. 50*8ccc0d23SEmmanuel Vadot This enables access to the modules based on slot location. 51*8ccc0d23SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 52*8ccc0d23SEmmanuel Vadot 53*8ccc0d23SEmmanuel Vadot spi-max-frequency: true 54*8ccc0d23SEmmanuel Vadot 55*8ccc0d23SEmmanuel Vadotrequired: 56*8ccc0d23SEmmanuel Vadot - compatible 57*8ccc0d23SEmmanuel Vadot - reg 58*8ccc0d23SEmmanuel Vadot - reset-gpios 59*8ccc0d23SEmmanuel Vadot - interrupts 60*8ccc0d23SEmmanuel Vadot - sync-gpios 61*8ccc0d23SEmmanuel Vadot - i2c-bus 62*8ccc0d23SEmmanuel Vadot - slot-number 63*8ccc0d23SEmmanuel Vadot 64*8ccc0d23SEmmanuel VadotadditionalProperties: false 65*8ccc0d23SEmmanuel Vadot 66*8ccc0d23SEmmanuel Vadotexamples: 67*8ccc0d23SEmmanuel Vadot - | 68*8ccc0d23SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 69*8ccc0d23SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 70*8ccc0d23SEmmanuel Vadot 71*8ccc0d23SEmmanuel Vadot spi { 72*8ccc0d23SEmmanuel Vadot #address-cells = <1>; 73*8ccc0d23SEmmanuel Vadot #size-cells = <0>; 74*8ccc0d23SEmmanuel Vadot 75*8ccc0d23SEmmanuel Vadot connector@0 { 76*8ccc0d23SEmmanuel Vadot reg = <0>; 77*8ccc0d23SEmmanuel Vadot compatible = "gocontroll,moduline-module-slot"; 78*8ccc0d23SEmmanuel Vadot reset-gpios = <&gpio5 10 GPIO_ACTIVE_LOW>; 79*8ccc0d23SEmmanuel Vadot sync-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>; 80*8ccc0d23SEmmanuel Vadot interrupt-parent = <&gpio4>; 81*8ccc0d23SEmmanuel Vadot interrupts = <5 IRQ_TYPE_EDGE_FALLING>; 82*8ccc0d23SEmmanuel Vadot vdd-supply = <®_3v3_per>; 83*8ccc0d23SEmmanuel Vadot vddp-supply = <®_5v0>; 84*8ccc0d23SEmmanuel Vadot vddhpp-supply = <®_6v4>; 85*8ccc0d23SEmmanuel Vadot i2c-bus = <&i2c2>; 86*8ccc0d23SEmmanuel Vadot slot-number = <1>; 87*8ccc0d23SEmmanuel Vadot }; 88*8ccc0d23SEmmanuel Vadot }; 89