Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Álvaro Fernández Rojas | 0118857 | 2017-05-16 18:46:59 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com> |
Álvaro Fernández Rojas | 0118857 | 2017-05-16 18:46:59 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "brcm,bcm6338.dtsi" |
| 9 | |
| 10 | / { |
| 11 | model = "Sagem F@ST1704"; |
| 12 | compatible = "sagem,f@st1704", "brcm,bcm6338"; |
| 13 | |
| 14 | aliases { |
| 15 | serial0 = &uart0; |
| 16 | }; |
| 17 | |
| 18 | chosen { |
| 19 | stdout-path = "serial0:115200n8"; |
| 20 | }; |
| 21 | |
| 22 | gpio-leds { |
| 23 | compatible = "gpio-leds"; |
| 24 | |
| 25 | inet_green { |
| 26 | label = "F@ST1704:green:inet"; |
| 27 | gpios = <&gpio 0 GPIO_ACTIVE_LOW>; |
| 28 | }; |
| 29 | |
| 30 | power_green { |
| 31 | label = "F@ST1704:green:power"; |
| 32 | gpios = <&gpio 1 GPIO_ACTIVE_LOW>; |
| 33 | }; |
| 34 | |
| 35 | inet_red { |
| 36 | label = "F@ST1704:red:inet"; |
| 37 | gpios = <&gpio 2 GPIO_ACTIVE_LOW>; |
| 38 | }; |
| 39 | }; |
| 40 | }; |
| 41 | |
Álvaro Fernández Rojas | 5e87b30 | 2018-12-01 19:00:26 +0100 | [diff] [blame] | 42 | &enet { |
| 43 | status = "okay"; |
| 44 | phy = <&enetphy>; |
| 45 | phy-mode = "mii"; |
| 46 | |
| 47 | enetphy: fixed-link { |
| 48 | reg = <1>; |
| 49 | speed = <100>; |
| 50 | full-duplex; |
| 51 | }; |
| 52 | }; |
| 53 | |
Álvaro Fernández Rojas | 0118857 | 2017-05-16 18:46:59 +0200 | [diff] [blame] | 54 | &gpio { |
| 55 | status = "okay"; |
| 56 | }; |
| 57 | |
Álvaro Fernández Rojas | afcf081 | 2018-01-23 17:15:04 +0100 | [diff] [blame] | 58 | &spi { |
| 59 | status = "okay"; |
| 60 | |
| 61 | spi-flash@0 { |
Neil Armstrong | a009fa7 | 2019-02-10 10:16:20 +0000 | [diff] [blame^] | 62 | compatible = "jedec,spi-nor"; |
Álvaro Fernández Rojas | afcf081 | 2018-01-23 17:15:04 +0100 | [diff] [blame] | 63 | reg = <0>; |
| 64 | #address-cells = <1>; |
| 65 | #size-cells = <1>; |
| 66 | spi-max-frequency = <20000000>; |
| 67 | }; |
| 68 | }; |
| 69 | |
Álvaro Fernández Rojas | 0118857 | 2017-05-16 18:46:59 +0200 | [diff] [blame] | 70 | &uart0 { |
| 71 | u-boot,dm-pre-reloc; |
| 72 | status = "okay"; |
| 73 | }; |