Horatiu Vultur | 6dfdd0c | 2019-01-12 18:56:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * Copyright (c) 2018 Microsemi Corporation |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | #include "mscc,jr2.dtsi" |
| 8 | |
| 9 | / { |
| 10 | model = "Jaguar2 Cu8-Sfp16 PCB110 Reference Board"; |
| 11 | compatible = "mscc,jr2-pcb110", "mscc,jr2"; |
| 12 | |
| 13 | aliases { |
| 14 | spi0 = &spi0; |
| 15 | serial0 = &uart0; |
| 16 | }; |
| 17 | |
| 18 | chosen { |
| 19 | stdout-path = "serial0:115200n8"; |
| 20 | }; |
| 21 | |
| 22 | gpio-leds { |
| 23 | compatible = "gpio-leds"; |
| 24 | |
| 25 | status_green { |
| 26 | label = "pcb110:green:status"; |
| 27 | gpios = <&gpio 12 0>; |
| 28 | default-state = "on"; |
| 29 | }; |
| 30 | |
| 31 | status_red { |
| 32 | label = "pcb110:red:status"; |
| 33 | gpios = <&gpio 13 0>; |
| 34 | default-state = "off"; |
| 35 | }; |
| 36 | }; |
| 37 | }; |
| 38 | |
| 39 | &uart0 { |
| 40 | status = "okay"; |
| 41 | }; |
| 42 | |
| 43 | &spi0 { |
| 44 | status = "okay"; |
| 45 | spi-flash@0 { |
| 46 | compatible = "spi-flash"; |
| 47 | spi-max-frequency = <18000000>; /* input clock */ |
| 48 | reg = <0>; /* CS0 */ |
| 49 | }; |
| 50 | }; |
| 51 | |
| 52 | &gpio { |
| 53 | /* SPIO only use DO, CLK, no inputs */ |
| 54 | sgpio1_pins: sgpio1-pins { |
| 55 | pins = "GPIO_4", "GPIO_5"; |
| 56 | function = "sg1"; |
| 57 | }; |
| 58 | }; |
| 59 | |
| 60 | &sgpio { |
| 61 | status = "okay"; |
| 62 | sgpio-ports = <0x00ffffff>; |
| 63 | }; |
| 64 | |
| 65 | &sgpio1 { |
| 66 | status = "okay"; |
| 67 | sgpio-ports = <0x00ff0000>; |
| 68 | }; |
| 69 | |
| 70 | &sgpio2 { |
| 71 | status = "okay"; |
| 72 | sgpio-ports = <0x3f00ffff>; |
| 73 | gpio-ranges = <&sgpio2 0 0 96>; |
| 74 | }; |