1*c66ec88fSEmmanuel Vadot* Altera Arria10 Development Kit System Resource Chip 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired parent device properties: 4*c66ec88fSEmmanuel Vadot- compatible : "altr,a10sr" 5*c66ec88fSEmmanuel Vadot- spi-max-frequency : Maximum SPI frequency. 6*c66ec88fSEmmanuel Vadot- reg : The SPI Chip Select address for the Arria10 7*c66ec88fSEmmanuel Vadot System Resource chip 8*c66ec88fSEmmanuel Vadot- interrupts : The interrupt line the device is connected to. 9*c66ec88fSEmmanuel Vadot- interrupt-controller : Marks the device node as an interrupt controller. 10*c66ec88fSEmmanuel Vadot- #interrupt-cells : The number of cells to describe an IRQ, should be 2. 11*c66ec88fSEmmanuel Vadot The first cell is the IRQ number. 12*c66ec88fSEmmanuel Vadot The second cell is the flags, encoded as trigger 13*c66ec88fSEmmanuel Vadot masks from ../interrupt-controller/interrupts.txt. 14*c66ec88fSEmmanuel Vadot 15*c66ec88fSEmmanuel VadotThe A10SR consists of these sub-devices: 16*c66ec88fSEmmanuel Vadot 17*c66ec88fSEmmanuel VadotDevice Description 18*c66ec88fSEmmanuel Vadot------ ---------- 19*c66ec88fSEmmanuel Vadota10sr_gpio GPIO Controller 20*c66ec88fSEmmanuel Vadota10sr_rst Reset Controller 21*c66ec88fSEmmanuel Vadot 22*c66ec88fSEmmanuel VadotArria10 GPIO 23*c66ec88fSEmmanuel VadotRequired Properties: 24*c66ec88fSEmmanuel Vadot- compatible : Should be "altr,a10sr-gpio" 25*c66ec88fSEmmanuel Vadot- gpio-controller : Marks the device node as a GPIO Controller. 26*c66ec88fSEmmanuel Vadot- #gpio-cells : Should be two. The first cell is the pin number and 27*c66ec88fSEmmanuel Vadot the second cell is used to specify flags. 28*c66ec88fSEmmanuel Vadot See ../gpio/gpio.txt for more information. 29*c66ec88fSEmmanuel Vadot 30*c66ec88fSEmmanuel VadotArria10 Peripheral PHY Reset 31*c66ec88fSEmmanuel VadotRequired Properties: 32*c66ec88fSEmmanuel Vadot- compatible : Should be "altr,a10sr-reset" 33*c66ec88fSEmmanuel Vadot- #reset-cells : Should be one. 34*c66ec88fSEmmanuel Vadot 35*c66ec88fSEmmanuel VadotExample: 36*c66ec88fSEmmanuel Vadot 37*c66ec88fSEmmanuel Vadot resource-manager@0 { 38*c66ec88fSEmmanuel Vadot compatible = "altr,a10sr"; 39*c66ec88fSEmmanuel Vadot reg = <0>; 40*c66ec88fSEmmanuel Vadot spi-max-frequency = <100000>; 41*c66ec88fSEmmanuel Vadot interrupt-parent = <&portb>; 42*c66ec88fSEmmanuel Vadot interrupts = <5 IRQ_TYPE_LEVEL_LOW>; 43*c66ec88fSEmmanuel Vadot interrupt-controller; 44*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 45*c66ec88fSEmmanuel Vadot 46*c66ec88fSEmmanuel Vadot a10sr_gpio: gpio-controller { 47*c66ec88fSEmmanuel Vadot compatible = "altr,a10sr-gpio"; 48*c66ec88fSEmmanuel Vadot gpio-controller; 49*c66ec88fSEmmanuel Vadot #gpio-cells = <2>; 50*c66ec88fSEmmanuel Vadot }; 51*c66ec88fSEmmanuel Vadot 52*c66ec88fSEmmanuel Vadot a10sr_rst: reset-controller { 53*c66ec88fSEmmanuel Vadot compatible = "altr,a10sr-reset"; 54*c66ec88fSEmmanuel Vadot #reset-cells = <1>; 55*c66ec88fSEmmanuel Vadot }; 56*c66ec88fSEmmanuel Vadot }; 57