Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Device Tree file for the Kontron SMARC-sAL28 board. |
| 4 | * |
| 5 | * Copyright (C) 2019 Michael Walle <michael@walle.cc> |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
| 10 | #include "fsl-ls1028a.dtsi" |
| 11 | |
| 12 | / { |
| 13 | model = "Kontron SMARC-sAL28"; |
| 14 | compatible = "kontron,sl28", "fsl,ls1028a"; |
| 15 | |
| 16 | aliases { |
| 17 | serial0 = &serial0; |
| 18 | serial1 = &serial1; |
| 19 | serial2 = &lpuart1; |
| 20 | spi0 = &fspi; |
| 21 | spi1 = &dspi2; |
| 22 | }; |
| 23 | |
| 24 | chosen { |
| 25 | stdout-path = "serial0:115200n8"; |
| 26 | }; |
| 27 | }; |
| 28 | |
| 29 | &dspi2 { |
| 30 | status = "okay"; |
| 31 | }; |
| 32 | |
| 33 | &enetc0 { |
| 34 | phy-handle = <&phy0>; |
| 35 | phy-mode = "sgmii"; |
| 36 | status = "okay"; |
| 37 | }; |
| 38 | |
| 39 | &enetc2 { |
| 40 | status = "disabled"; |
| 41 | }; |
| 42 | |
| 43 | &enetc6 { |
| 44 | status = "disabled"; |
| 45 | }; |
| 46 | |
| 47 | &esdhc0 { |
| 48 | sd-uhs-sdr104; |
| 49 | sd-uhs-sdr50; |
| 50 | sd-uhs-sdr25; |
| 51 | sd-uhs-sdr12; |
| 52 | status = "okay"; |
| 53 | }; |
| 54 | |
| 55 | &esdhc1 { |
| 56 | mmc-hs200-1_8v; |
| 57 | mmc-hs400-1_8v; |
| 58 | bus-width = <8>; |
| 59 | status = "okay"; |
| 60 | }; |
| 61 | |
| 62 | &fspi { |
| 63 | status = "okay"; |
| 64 | |
| 65 | flash@0 { |
| 66 | #address-cells = <1>; |
| 67 | #size-cells = <1>; |
| 68 | compatible = "jedec,spi-nor"; |
| 69 | m25p,fast-read; |
| 70 | spi-max-frequency = <133000000>; |
| 71 | reg = <0>; |
| 72 | /* The following setting enables 1-1-2 (CMD-ADDR-DATA) mode */ |
| 73 | spi-rx-bus-width = <2>; /* 2 SPI Rx lines */ |
| 74 | spi-tx-bus-width = <1>; /* 1 SPI Tx line */ |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 75 | }; |
| 76 | }; |
| 77 | |
| 78 | &i2c0 { |
| 79 | status = "okay"; |
| 80 | |
| 81 | rtc@32 { |
| 82 | compatible = "microcrystal,rv8803"; |
| 83 | reg = <0x32>; |
| 84 | }; |
| 85 | |
| 86 | eeprom@50 { |
| 87 | compatible = "atmel,24c32"; |
| 88 | reg = <0x50>; |
| 89 | pagesize = <32>; |
| 90 | }; |
| 91 | }; |
| 92 | |
| 93 | &i2c3 { |
| 94 | status = "okay"; |
| 95 | }; |
| 96 | |
| 97 | &i2c4 { |
| 98 | status = "okay"; |
| 99 | |
| 100 | eeprom@50 { |
| 101 | compatible = "atmel,24c32"; |
| 102 | reg = <0x50>; |
| 103 | pagesize = <32>; |
| 104 | }; |
| 105 | }; |
| 106 | |
| 107 | &lpuart1 { |
| 108 | status = "okay"; |
| 109 | }; |
| 110 | |
| 111 | &mdio0 { |
| 112 | status = "okay"; |
| 113 | phy0: ethernet-phy@5 { |
| 114 | reg = <0x5>; |
| 115 | eee-broken-1000t; |
| 116 | eee-broken-100tx; |
| 117 | }; |
| 118 | }; |
| 119 | |
Michael Walle | 101410e | 2021-01-08 00:08:59 +0100 | [diff] [blame] | 120 | &sata { |
| 121 | status = "okay"; |
| 122 | }; |
| 123 | |
Michael Walle | 36ba764 | 2020-10-15 23:08:57 +0200 | [diff] [blame] | 124 | &serial0 { |
| 125 | status = "okay"; |
| 126 | }; |
| 127 | |
| 128 | &serial1 { |
| 129 | status = "okay"; |
| 130 | }; |
| 131 | |
| 132 | &usb1 { |
| 133 | status = "okay"; |
| 134 | }; |
| 135 | |
| 136 | &usb2 { |
| 137 | status = "okay"; |
| 138 | }; |