1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree file for SolidRun Clearfog Base revision A1 rev 2.0 (88F6828) 4*724ba675SRob Herring * 5*724ba675SRob Herring * Copyright (C) 2015 Russell King 6*724ba675SRob Herring */ 7*724ba675SRob Herring 8*724ba675SRob Herring/dts-v1/; 9*724ba675SRob Herring#include "armada-388-clearfog.dtsi" 10*724ba675SRob Herring 11*724ba675SRob Herring/ { 12*724ba675SRob Herring model = "SolidRun Clearfog Base A1"; 13*724ba675SRob Herring compatible = "solidrun,clearfog-base-a1", 14*724ba675SRob Herring "solidrun,clearfog-a1", "marvell,armada388", 15*724ba675SRob Herring "marvell,armada385", "marvell,armada380"; 16*724ba675SRob Herring 17*724ba675SRob Herring gpio-keys { 18*724ba675SRob Herring compatible = "gpio-keys"; 19*724ba675SRob Herring pinctrl-0 = <&rear_button_pins>; 20*724ba675SRob Herring pinctrl-names = "default"; 21*724ba675SRob Herring 22*724ba675SRob Herring button-0 { 23*724ba675SRob Herring /* The rear SW3 button */ 24*724ba675SRob Herring label = "Rear Button"; 25*724ba675SRob Herring gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; 26*724ba675SRob Herring linux,can-disable; 27*724ba675SRob Herring linux,code = <BTN_0>; 28*724ba675SRob Herring }; 29*724ba675SRob Herring }; 30*724ba675SRob Herring}; 31*724ba675SRob Herring 32*724ba675SRob Herringð1 { 33*724ba675SRob Herring phy = <&phy1>; 34*724ba675SRob Herring}; 35*724ba675SRob Herring 36*724ba675SRob Herring&gpio0 { 37*724ba675SRob Herring phy1_reset { 38*724ba675SRob Herring gpio-hog; 39*724ba675SRob Herring gpios = <19 GPIO_ACTIVE_LOW>; 40*724ba675SRob Herring output-low; 41*724ba675SRob Herring line-name = "phy1-reset"; 42*724ba675SRob Herring }; 43*724ba675SRob Herring}; 44*724ba675SRob Herring 45*724ba675SRob Herring&mdio { 46*724ba675SRob Herring pinctrl-0 = <&mdio_pins µsom_phy_clk_pins &clearfog_phy_pins>; 47*724ba675SRob Herring phy1: ethernet-phy@1 { 48*724ba675SRob Herring /* 49*724ba675SRob Herring * Annoyingly, the marvell phy driver configures the LED 50*724ba675SRob Herring * register, rather than preserving reset-loaded setting. 51*724ba675SRob Herring * We undo that rubbish here. 52*724ba675SRob Herring */ 53*724ba675SRob Herring marvell,reg-init = <3 16 0 0x101e>; 54*724ba675SRob Herring reg = <1>; 55*724ba675SRob Herring }; 56*724ba675SRob Herring}; 57*724ba675SRob Herring 58*724ba675SRob Herring&pinctrl { 59*724ba675SRob Herring /* phy1 reset */ 60*724ba675SRob Herring clearfog_phy_pins: clearfog-phy-pins { 61*724ba675SRob Herring marvell,pins = "mpp19"; 62*724ba675SRob Herring marvell,function = "gpio"; 63*724ba675SRob Herring }; 64*724ba675SRob Herring rear_button_pins: rear-button-pins { 65*724ba675SRob Herring marvell,pins = "mpp44"; 66*724ba675SRob Herring marvell,function = "gpio"; 67*724ba675SRob Herring }; 68*724ba675SRob Herring}; 69