Valentine Barshak | e734fdd | 2019-04-23 23:44:57 +0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Device Tree Source extras for U-Boot for the V3MSK board |
| 4 | * |
| 5 | * Copyright (C) 2019 Cogent Embedded, Inc. |
| 6 | */ |
| 7 | |
Valentine Barshak | e734fdd | 2019-04-23 23:44:57 +0300 | [diff] [blame] | 8 | #include "r8a77970-u-boot.dtsi" |
| 9 | #include <dt-bindings/gpio/gpio.h> |
| 10 | |
| 11 | / { |
| 12 | aliases { |
| 13 | spi0 = &rpc; |
| 14 | }; |
| 15 | |
| 16 | cpld { |
| 17 | compatible = "renesas,v3msk-cpld"; |
| 18 | status = "okay"; |
| 19 | gpio-mdc = <&gpio1 21 0>; |
| 20 | gpio-mosi = <&gpio1 22 0>; |
| 21 | gpio-miso = <&gpio1 23 0>; |
| 22 | gpio-enablez = <&gpio1 19 0>; |
| 23 | /* Disable V3MSK Videobox Mini CANFD PHY */ |
| 24 | gpios = <&gpio0 12 0>, <&gpio0 14 0>; |
| 25 | }; |
| 26 | }; |
| 27 | |
| 28 | &avb { |
| 29 | pinctrl-0 = <&avb0_pins>; |
| 30 | pinctrl-names = "default"; |
| 31 | |
| 32 | }; |
| 33 | |
| 34 | &phy0 { |
| 35 | reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; |
| 36 | }; |
| 37 | |
| 38 | &pfc { |
| 39 | avb0_pins: avb { |
| 40 | mux { |
| 41 | groups = "avb0_link", "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk"; |
| 42 | function = "avb0"; |
| 43 | }; |
| 44 | }; |
| 45 | }; |
| 46 | |
| 47 | &rpc { |
| 48 | num-cs = <1>; |
| 49 | status = "okay"; |
| 50 | spi-max-frequency = <50000000>; |
| 51 | #address-cells = <1>; |
| 52 | #size-cells = <0>; |
| 53 | |
| 54 | flash0: spi-flash@0 { |
| 55 | #address-cells = <1>; |
| 56 | #size-cells = <1>; |
| 57 | compatible = "s25fs512s", "spi-flash", "jedec,spi-nor"; |
| 58 | spi-max-frequency = <50000000>; |
| 59 | spi-tx-bus-width = <1>; |
| 60 | spi-rx-bus-width = <1>; |
| 61 | reg = <0>; |
| 62 | status = "okay"; |
| 63 | }; |
| 64 | }; |