Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Marek Vasut | 34df58a | 2018-01-10 11:47:03 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Device Tree Source extras for U-Boot for the Eagle board |
| 4 | * |
| 5 | * Copyright (C) 2018 Marek Vasut <marek.vasut@gmail.com> |
Marek Vasut | 34df58a | 2018-01-10 11:47:03 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include "r8a77970-eagle.dts" |
| 9 | #include "r8a77970-u-boot.dtsi" |
Marek Vasut | 1172ade | 2018-12-03 20:45:22 +0100 | [diff] [blame] | 10 | #include <dt-bindings/gpio/gpio.h> |
Marek Vasut | 8c7d9e1 | 2018-12-03 20:17:50 +0100 | [diff] [blame] | 11 | |
| 12 | / { |
| 13 | aliases { |
| 14 | spi0 = &rpc; |
| 15 | }; |
| 16 | }; |
| 17 | |
Marek Vasut | 1172ade | 2018-12-03 20:45:22 +0100 | [diff] [blame] | 18 | &avb { |
| 19 | pinctrl-0 = <&avb0_pins>; |
| 20 | pinctrl-names = "default"; |
| 21 | |
| 22 | }; |
| 23 | |
| 24 | &phy0 { |
| 25 | reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; |
| 26 | }; |
| 27 | |
| 28 | &pfc { |
| 29 | avb0_pins: avb { |
| 30 | mux { |
| 31 | groups = "avb0_link", "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk"; |
| 32 | function = "avb0"; |
| 33 | }; |
| 34 | }; |
| 35 | }; |
| 36 | |
Marek Vasut | 8c7d9e1 | 2018-12-03 20:17:50 +0100 | [diff] [blame] | 37 | &rpc { |
| 38 | num-cs = <1>; |
| 39 | status = "okay"; |
| 40 | spi-max-frequency = <50000000>; |
| 41 | #address-cells = <1>; |
| 42 | #size-cells = <0>; |
| 43 | |
| 44 | flash0: spi-flash@0 { |
| 45 | #address-cells = <1>; |
| 46 | #size-cells = <1>; |
Neil Armstrong | ffd4c7c | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 47 | compatible = "s25fs512s", "jedec,spi-nor"; |
Marek Vasut | 8c7d9e1 | 2018-12-03 20:17:50 +0100 | [diff] [blame] | 48 | spi-max-frequency = <50000000>; |
| 49 | spi-tx-bus-width = <1>; |
| 50 | spi-rx-bus-width = <1>; |
| 51 | reg = <0>; |
| 52 | status = "okay"; |
| 53 | }; |
| 54 | }; |