1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Device Tree file for LaCie 5Big Network v2 4*f126890aSEmmanuel Vadot * 5*f126890aSEmmanuel Vadot * Copyright (C) 2014 6*f126890aSEmmanuel Vadot * 7*f126890aSEmmanuel Vadot * Andrew Lunn <andrew@lunn.ch> 8*f126890aSEmmanuel Vadot * 9*f126890aSEmmanuel Vadot * Based on netxbig_v2-setup.c, 10*f126890aSEmmanuel Vadot * Copyright (C) 2010 Simon Guinot <sguinot@lacie.com> 11*f126890aSEmmanuel Vadot * 12*f126890aSEmmanuel Vadot*/ 13*f126890aSEmmanuel Vadot 14*f126890aSEmmanuel Vadot/dts-v1/; 15*f126890aSEmmanuel Vadot 16*f126890aSEmmanuel Vadot#include "kirkwood.dtsi" 17*f126890aSEmmanuel Vadot#include "kirkwood-6281.dtsi" 18*f126890aSEmmanuel Vadot#include "kirkwood-netxbig.dtsi" 19*f126890aSEmmanuel Vadot 20*f126890aSEmmanuel Vadot/ { 21*f126890aSEmmanuel Vadot model = "LaCie 5Big Network v2"; 22*f126890aSEmmanuel Vadot compatible = "lacie,net5big_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 23*f126890aSEmmanuel Vadot 24*f126890aSEmmanuel Vadot memory { 25*f126890aSEmmanuel Vadot device_type = "memory"; 26*f126890aSEmmanuel Vadot reg = <0x00000000 0x20000000>; 27*f126890aSEmmanuel Vadot }; 28*f126890aSEmmanuel Vadot 29*f126890aSEmmanuel Vadot}; 30*f126890aSEmmanuel Vadot 31*f126890aSEmmanuel Vadot®ulators { 32*f126890aSEmmanuel Vadot regulator@2 { 33*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 34*f126890aSEmmanuel Vadot reg = <2>; 35*f126890aSEmmanuel Vadot regulator-name = "hdd1power"; 36*f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 37*f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 38*f126890aSEmmanuel Vadot enable-active-high; 39*f126890aSEmmanuel Vadot regulator-always-on; 40*f126890aSEmmanuel Vadot regulator-boot-on; 41*f126890aSEmmanuel Vadot gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>; 42*f126890aSEmmanuel Vadot }; 43*f126890aSEmmanuel Vadot 44*f126890aSEmmanuel Vadot regulator@3 { 45*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 46*f126890aSEmmanuel Vadot reg = <3>; 47*f126890aSEmmanuel Vadot regulator-name = "hdd2power"; 48*f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 49*f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 50*f126890aSEmmanuel Vadot enable-active-high; 51*f126890aSEmmanuel Vadot regulator-always-on; 52*f126890aSEmmanuel Vadot regulator-boot-on; 53*f126890aSEmmanuel Vadot gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>; 54*f126890aSEmmanuel Vadot }; 55*f126890aSEmmanuel Vadot 56*f126890aSEmmanuel Vadot regulator@4 { 57*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 58*f126890aSEmmanuel Vadot reg = <4>; 59*f126890aSEmmanuel Vadot regulator-name = "hdd3power"; 60*f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 61*f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 62*f126890aSEmmanuel Vadot enable-active-high; 63*f126890aSEmmanuel Vadot regulator-always-on; 64*f126890aSEmmanuel Vadot regulator-boot-on; 65*f126890aSEmmanuel Vadot gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>; 66*f126890aSEmmanuel Vadot }; 67*f126890aSEmmanuel Vadot 68*f126890aSEmmanuel Vadot regulator@5 { 69*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 70*f126890aSEmmanuel Vadot reg = <5>; 71*f126890aSEmmanuel Vadot regulator-name = "hdd4power"; 72*f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 73*f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 74*f126890aSEmmanuel Vadot enable-active-high; 75*f126890aSEmmanuel Vadot regulator-always-on; 76*f126890aSEmmanuel Vadot regulator-boot-on; 77*f126890aSEmmanuel Vadot gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>; 78*f126890aSEmmanuel Vadot }; 79*f126890aSEmmanuel Vadot 80*f126890aSEmmanuel Vadot clocks { 81*f126890aSEmmanuel Vadot g762_clk: g762-oscillator { 82*f126890aSEmmanuel Vadot compatible = "fixed-clock"; 83*f126890aSEmmanuel Vadot #clock-cells = <0>; 84*f126890aSEmmanuel Vadot clock-frequency = <32768>; 85*f126890aSEmmanuel Vadot }; 86*f126890aSEmmanuel Vadot }; 87*f126890aSEmmanuel Vadot 88*f126890aSEmmanuel Vadot netxbig-leds { 89*f126890aSEmmanuel Vadot blue-sata2 { 90*f126890aSEmmanuel Vadot label = "netxbig:blue:sata2"; 91*f126890aSEmmanuel Vadot mode-addr = <5>; 92*f126890aSEmmanuel Vadot mode-val = <NETXBIG_LED_OFF 0 93*f126890aSEmmanuel Vadot NETXBIG_LED_ON 7 94*f126890aSEmmanuel Vadot NETXBIG_LED_SATA 1 95*f126890aSEmmanuel Vadot NETXBIG_LED_TIMER1 3>; 96*f126890aSEmmanuel Vadot bright-addr = <2>; 97*f126890aSEmmanuel Vadot max-brightness = <7>; 98*f126890aSEmmanuel Vadot }; 99*f126890aSEmmanuel Vadot red-sata2 { 100*f126890aSEmmanuel Vadot label = "netxbig:red:sata2"; 101*f126890aSEmmanuel Vadot mode-addr = <5>; 102*f126890aSEmmanuel Vadot mode-val = <NETXBIG_LED_OFF 0 103*f126890aSEmmanuel Vadot NETXBIG_LED_ON 2 104*f126890aSEmmanuel Vadot NETXBIG_LED_TIMER1 4>; 105*f126890aSEmmanuel Vadot bright-addr = <2>; 106*f126890aSEmmanuel Vadot max-brightness = <7>; 107*f126890aSEmmanuel Vadot }; 108*f126890aSEmmanuel Vadot blue-sata3 { 109*f126890aSEmmanuel Vadot label = "netxbig:blue:sata3"; 110*f126890aSEmmanuel Vadot mode-addr = <6>; 111*f126890aSEmmanuel Vadot mode-val = <NETXBIG_LED_OFF 0 112*f126890aSEmmanuel Vadot NETXBIG_LED_ON 7 113*f126890aSEmmanuel Vadot NETXBIG_LED_SATA 1 114*f126890aSEmmanuel Vadot NETXBIG_LED_TIMER1 3>; 115*f126890aSEmmanuel Vadot bright-addr = <2>; 116*f126890aSEmmanuel Vadot max-brightness = <7>; 117*f126890aSEmmanuel Vadot }; 118*f126890aSEmmanuel Vadot red-sata3 { 119*f126890aSEmmanuel Vadot label = "netxbig:red:sata3"; 120*f126890aSEmmanuel Vadot mode-addr = <6>; 121*f126890aSEmmanuel Vadot mode-val = <NETXBIG_LED_OFF 0 122*f126890aSEmmanuel Vadot NETXBIG_LED_ON 2 123*f126890aSEmmanuel Vadot NETXBIG_LED_TIMER1 4>; 124*f126890aSEmmanuel Vadot bright-addr = <2>; 125*f126890aSEmmanuel Vadot max-brightness = <7>; 126*f126890aSEmmanuel Vadot }; 127*f126890aSEmmanuel Vadot blue-sata4 { 128*f126890aSEmmanuel Vadot label = "netxbig:blue:sata4"; 129*f126890aSEmmanuel Vadot mode-addr = <7>; 130*f126890aSEmmanuel Vadot mode-val = <NETXBIG_LED_OFF 0 131*f126890aSEmmanuel Vadot NETXBIG_LED_ON 7 132*f126890aSEmmanuel Vadot NETXBIG_LED_SATA 1 133*f126890aSEmmanuel Vadot NETXBIG_LED_TIMER1 3>; 134*f126890aSEmmanuel Vadot bright-addr = <2>; 135*f126890aSEmmanuel Vadot max-brightness = <7>; 136*f126890aSEmmanuel Vadot }; 137*f126890aSEmmanuel Vadot red-sata4 { 138*f126890aSEmmanuel Vadot label = "netxbig:red:sata4"; 139*f126890aSEmmanuel Vadot mode-addr = <7>; 140*f126890aSEmmanuel Vadot mode-val = <NETXBIG_LED_OFF 0 141*f126890aSEmmanuel Vadot NETXBIG_LED_ON 2 142*f126890aSEmmanuel Vadot NETXBIG_LED_TIMER1 4>; 143*f126890aSEmmanuel Vadot bright-addr = <2>; 144*f126890aSEmmanuel Vadot max-brightness = <7>; 145*f126890aSEmmanuel Vadot }; 146*f126890aSEmmanuel Vadot }; 147*f126890aSEmmanuel Vadot}; 148*f126890aSEmmanuel Vadot 149*f126890aSEmmanuel Vadot&mdio { 150*f126890aSEmmanuel Vadot ethphy1: ethernet-phy@1 { 151*f126890aSEmmanuel Vadot reg = <0>; 152*f126890aSEmmanuel Vadot }; 153*f126890aSEmmanuel Vadot}; 154*f126890aSEmmanuel Vadot 155*f126890aSEmmanuel Vadotð1 { 156*f126890aSEmmanuel Vadot status = "okay"; 157*f126890aSEmmanuel Vadot ethernet1-port@0 { 158*f126890aSEmmanuel Vadot phy-handle = <ðphy1>; 159*f126890aSEmmanuel Vadot }; 160*f126890aSEmmanuel Vadot}; 161*f126890aSEmmanuel Vadot 162*f126890aSEmmanuel Vadot 163*f126890aSEmmanuel Vadot&i2c0 { 164*f126890aSEmmanuel Vadot g762@3e { 165*f126890aSEmmanuel Vadot compatible = "gmt,g762"; 166*f126890aSEmmanuel Vadot reg = <0x3e>; 167*f126890aSEmmanuel Vadot clocks = <&g762_clk>; 168*f126890aSEmmanuel Vadot }; 169*f126890aSEmmanuel Vadot}; 170