1*aa1a8ff2SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*aa1a8ff2SEmmanuel Vadot%YAML 1.2 3*aa1a8ff2SEmmanuel Vadot--- 4*aa1a8ff2SEmmanuel Vadot$id: http://devicetree.org/schemas/soc/tegra/nvidia,nvec.yaml# 5*aa1a8ff2SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*aa1a8ff2SEmmanuel Vadot 7*aa1a8ff2SEmmanuel Vadottitle: NVIDIA compliant embedded controller 8*aa1a8ff2SEmmanuel Vadot 9*aa1a8ff2SEmmanuel Vadotmaintainers: 10*aa1a8ff2SEmmanuel Vadot - Thierry Reding <thierry.reding@gmail.com> 11*aa1a8ff2SEmmanuel Vadot - Jon Hunter <jonathanh@nvidia.com> 12*aa1a8ff2SEmmanuel Vadot 13*aa1a8ff2SEmmanuel Vadotproperties: 14*aa1a8ff2SEmmanuel Vadot compatible: 15*aa1a8ff2SEmmanuel Vadot const: nvidia,nvec 16*aa1a8ff2SEmmanuel Vadot 17*aa1a8ff2SEmmanuel Vadot reg: 18*aa1a8ff2SEmmanuel Vadot maxItems: 1 19*aa1a8ff2SEmmanuel Vadot 20*aa1a8ff2SEmmanuel Vadot interrupts: 21*aa1a8ff2SEmmanuel Vadot maxItems: 1 22*aa1a8ff2SEmmanuel Vadot 23*aa1a8ff2SEmmanuel Vadot clocks: 24*aa1a8ff2SEmmanuel Vadot minItems: 1 25*aa1a8ff2SEmmanuel Vadot items: 26*aa1a8ff2SEmmanuel Vadot - description: divider clock 27*aa1a8ff2SEmmanuel Vadot - description: fast clock 28*aa1a8ff2SEmmanuel Vadot 29*aa1a8ff2SEmmanuel Vadot clock-names: 30*aa1a8ff2SEmmanuel Vadot minItems: 1 31*aa1a8ff2SEmmanuel Vadot items: 32*aa1a8ff2SEmmanuel Vadot - const: div-clk 33*aa1a8ff2SEmmanuel Vadot - const: fast-clk 34*aa1a8ff2SEmmanuel Vadot 35*aa1a8ff2SEmmanuel Vadot resets: 36*aa1a8ff2SEmmanuel Vadot items: 37*aa1a8ff2SEmmanuel Vadot - description: module reset 38*aa1a8ff2SEmmanuel Vadot 39*aa1a8ff2SEmmanuel Vadot reset-names: 40*aa1a8ff2SEmmanuel Vadot items: 41*aa1a8ff2SEmmanuel Vadot - const: i2c 42*aa1a8ff2SEmmanuel Vadot 43*aa1a8ff2SEmmanuel Vadot clock-frequency: true 44*aa1a8ff2SEmmanuel Vadot 45*aa1a8ff2SEmmanuel Vadot request-gpios: 46*aa1a8ff2SEmmanuel Vadot description: phandle to the GPIO used for EC request 47*aa1a8ff2SEmmanuel Vadot 48*aa1a8ff2SEmmanuel Vadot slave-addr: 49*aa1a8ff2SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 50*aa1a8ff2SEmmanuel Vadot description: I2C address of the slave controller 51*aa1a8ff2SEmmanuel Vadot 52*aa1a8ff2SEmmanuel VadotadditionalProperties: false 53*aa1a8ff2SEmmanuel Vadot 54*aa1a8ff2SEmmanuel Vadotrequired: 55*aa1a8ff2SEmmanuel Vadot - compatible 56*aa1a8ff2SEmmanuel Vadot - reg 57*aa1a8ff2SEmmanuel Vadot - interrupts 58*aa1a8ff2SEmmanuel Vadot - clocks 59*aa1a8ff2SEmmanuel Vadot - clock-names 60*aa1a8ff2SEmmanuel Vadot - resets 61*aa1a8ff2SEmmanuel Vadot - reset-names 62*aa1a8ff2SEmmanuel Vadot - clock-frequency 63*aa1a8ff2SEmmanuel Vadot - request-gpios 64*aa1a8ff2SEmmanuel Vadot - slave-addr 65*aa1a8ff2SEmmanuel Vadot 66*aa1a8ff2SEmmanuel Vadotexamples: 67*aa1a8ff2SEmmanuel Vadot - | 68*aa1a8ff2SEmmanuel Vadot #include <dt-bindings/clock/tegra20-car.h> 69*aa1a8ff2SEmmanuel Vadot #include <dt-bindings/gpio/tegra-gpio.h> 70*aa1a8ff2SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 71*aa1a8ff2SEmmanuel Vadot 72*aa1a8ff2SEmmanuel Vadot i2c@7000c500 { 73*aa1a8ff2SEmmanuel Vadot compatible = "nvidia,nvec"; 74*aa1a8ff2SEmmanuel Vadot reg = <0x7000c500 0x100>; 75*aa1a8ff2SEmmanuel Vadot interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>; 76*aa1a8ff2SEmmanuel Vadot clock-frequency = <80000>; 77*aa1a8ff2SEmmanuel Vadot request-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>; 78*aa1a8ff2SEmmanuel Vadot slave-addr = <138>; 79*aa1a8ff2SEmmanuel Vadot clocks = <&tegra_car TEGRA20_CLK_I2C3>, 80*aa1a8ff2SEmmanuel Vadot <&tegra_car TEGRA20_CLK_PLL_P_OUT3>; 81*aa1a8ff2SEmmanuel Vadot clock-names = "div-clk", "fast-clk"; 82*aa1a8ff2SEmmanuel Vadot resets = <&tegra_car 67>; 83*aa1a8ff2SEmmanuel Vadot reset-names = "i2c"; 84*aa1a8ff2SEmmanuel Vadot }; 85