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