xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-laplug.dts (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (C) 2013 Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
4*724ba675SRob Herring *
5*724ba675SRob Herring */
6*724ba675SRob Herring
7*724ba675SRob Herring/dts-v1/;
8*724ba675SRob Herring
9*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
10*724ba675SRob Herring#include <dt-bindings/input/input.h>
11*724ba675SRob Herring#include "kirkwood.dtsi"
12*724ba675SRob Herring#include "kirkwood-6192.dtsi"
13*724ba675SRob Herring
14*724ba675SRob Herring/ {
15*724ba675SRob Herring	model = "LaCie LaPlug";
16*724ba675SRob Herring	compatible = "lacie,laplug", "marvell,kirkwood-88f6192", "marvell,kirkwood";
17*724ba675SRob Herring
18*724ba675SRob Herring	memory {
19*724ba675SRob Herring		device_type = "memory";
20*724ba675SRob Herring		reg = <0x00000000 0x8000000>; /* 128 MB */
21*724ba675SRob Herring	};
22*724ba675SRob Herring
23*724ba675SRob Herring	chosen {
24*724ba675SRob Herring		bootargs = "console=ttyS0,115200n8 earlyprintk";
25*724ba675SRob Herring		stdout-path = &uart0;
26*724ba675SRob Herring	};
27*724ba675SRob Herring
28*724ba675SRob Herring	ocp@f1000000 {
29*724ba675SRob Herring		serial@12000 {
30*724ba675SRob Herring			status = "okay";
31*724ba675SRob Herring		};
32*724ba675SRob Herring
33*724ba675SRob Herring		i2c@11000 {
34*724ba675SRob Herring			status = "okay";
35*724ba675SRob Herring
36*724ba675SRob Herring			eeprom@50 {
37*724ba675SRob Herring				compatible = "atmel,24c04";
38*724ba675SRob Herring				pagesize = <16>;
39*724ba675SRob Herring				reg = <0x50>;
40*724ba675SRob Herring			};
41*724ba675SRob Herring		};
42*724ba675SRob Herring
43*724ba675SRob Herring		pinctrl: pin-controller@10000 {
44*724ba675SRob Herring			pmx_usb_power_enable: pmx-usb-power-enable {
45*724ba675SRob Herring				marvell,pins = "mpp14";
46*724ba675SRob Herring				marvell,function = "gpio";
47*724ba675SRob Herring			};
48*724ba675SRob Herring		};
49*724ba675SRob Herring	};
50*724ba675SRob Herring
51*724ba675SRob Herring	gpio_keys {
52*724ba675SRob Herring		compatible = "gpio-keys";
53*724ba675SRob Herring
54*724ba675SRob Herring		power {
55*724ba675SRob Herring			label = "Power push button";
56*724ba675SRob Herring			linux,code = <KEY_POWER>;
57*724ba675SRob Herring			gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
58*724ba675SRob Herring		};
59*724ba675SRob Herring	};
60*724ba675SRob Herring
61*724ba675SRob Herring	gpio-leds {
62*724ba675SRob Herring		compatible = "gpio-leds";
63*724ba675SRob Herring
64*724ba675SRob Herring		red-fail {
65*724ba675SRob Herring			label = "laplug_v2:red:power";
66*724ba675SRob Herring			gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
67*724ba675SRob Herring		};
68*724ba675SRob Herring		blue-power {
69*724ba675SRob Herring			label = "laplug_v2:blue:power";
70*724ba675SRob Herring			gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
71*724ba675SRob Herring			linux,default-trigger = "default-on";
72*724ba675SRob Herring		};
73*724ba675SRob Herring	};
74*724ba675SRob Herring
75*724ba675SRob Herring	gpio_poweroff {
76*724ba675SRob Herring		compatible = "gpio-poweroff";
77*724ba675SRob Herring		gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
78*724ba675SRob Herring	};
79*724ba675SRob Herring
80*724ba675SRob Herring	regulators {
81*724ba675SRob Herring		compatible = "simple-bus";
82*724ba675SRob Herring		#address-cells = <1>;
83*724ba675SRob Herring		#size-cells = <0>;
84*724ba675SRob Herring		pinctrl-0 = <&pmx_usb_power_enable>;
85*724ba675SRob Herring		pinctrl-names = "default";
86*724ba675SRob Herring
87*724ba675SRob Herring		usb_power_back1: regulator@1 {
88*724ba675SRob Herring			compatible = "regulator-fixed";
89*724ba675SRob Herring			reg = <1>;
90*724ba675SRob Herring			regulator-name = "USB Power Back 1";
91*724ba675SRob Herring			regulator-min-microvolt = <5000000>;
92*724ba675SRob Herring			regulator-max-microvolt = <5000000>;
93*724ba675SRob Herring			enable-active-high;
94*724ba675SRob Herring			regulator-always-on;
95*724ba675SRob Herring			regulator-boot-on;
96*724ba675SRob Herring			gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>;
97*724ba675SRob Herring		};
98*724ba675SRob Herring
99*724ba675SRob Herring		usb_power_back2: regulator@2 {
100*724ba675SRob Herring			compatible = "regulator-fixed";
101*724ba675SRob Herring			reg = <2>;
102*724ba675SRob Herring			regulator-name = "USB Power Back 2";
103*724ba675SRob Herring			regulator-min-microvolt = <5000000>;
104*724ba675SRob Herring			regulator-max-microvolt = <5000000>;
105*724ba675SRob Herring			enable-active-high;
106*724ba675SRob Herring			regulator-always-on;
107*724ba675SRob Herring			regulator-boot-on;
108*724ba675SRob Herring			gpio = <&gpio0 28 GPIO_ACTIVE_HIGH>;
109*724ba675SRob Herring		};
110*724ba675SRob Herring
111*724ba675SRob Herring		usb_power_front: regulator@3 {
112*724ba675SRob Herring			compatible = "regulator-fixed";
113*724ba675SRob Herring			reg = <3>;
114*724ba675SRob Herring			regulator-name = "USB Power Front";
115*724ba675SRob Herring			regulator-min-microvolt = <5000000>;
116*724ba675SRob Herring			regulator-max-microvolt = <5000000>;
117*724ba675SRob Herring			enable-active-high;
118*724ba675SRob Herring			regulator-always-on;
119*724ba675SRob Herring			regulator-boot-on;
120*724ba675SRob Herring			gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
121*724ba675SRob Herring		};
122*724ba675SRob Herring	};
123*724ba675SRob Herring};
124*724ba675SRob Herring
125*724ba675SRob Herring&nand {
126*724ba675SRob Herring	/* Total size : 512MB */
127*724ba675SRob Herring	status = "okay";
128*724ba675SRob Herring
129*724ba675SRob Herring	partition@0 {
130*724ba675SRob Herring		label = "u-boot";
131*724ba675SRob Herring		reg = <0x0 0x100000>; /* 1MB */
132*724ba675SRob Herring		read-only;
133*724ba675SRob Herring	};
134*724ba675SRob Herring
135*724ba675SRob Herring	partition@100000 {
136*724ba675SRob Herring		label = "uImage";
137*724ba675SRob Herring		reg = <0x100000 0x1000000>; /* 16MB */
138*724ba675SRob Herring	};
139*724ba675SRob Herring
140*724ba675SRob Herring	partition@1100000 {
141*724ba675SRob Herring		label = "rootfs";
142*724ba675SRob Herring		reg = <0x1100000 0x1EF00000>; /* 495MB */
143*724ba675SRob Herring	};
144*724ba675SRob Herring};
145*724ba675SRob Herring
146*724ba675SRob Herring&mdio {
147*724ba675SRob Herring	status = "okay";
148*724ba675SRob Herring
149*724ba675SRob Herring	ethphy0: ethernet-phy@0 {
150*724ba675SRob Herring		device_type = "ethernet-phy";
151*724ba675SRob Herring		reg = <0>;
152*724ba675SRob Herring	};
153*724ba675SRob Herring};
154*724ba675SRob Herring
155*724ba675SRob Herring&eth0 {
156*724ba675SRob Herring	status = "okay";
157*724ba675SRob Herring	ethernet0-port@0 {
158*724ba675SRob Herring		phy-handle = <&ethphy0>;
159*724ba675SRob Herring	};
160*724ba675SRob Herring};
161*724ba675SRob Herring
162*724ba675SRob Herring&pciec {
163*724ba675SRob Herring	status = "okay";
164*724ba675SRob Herring};
165*724ba675SRob Herring
166*724ba675SRob Herring&pcie0 {
167*724ba675SRob Herring	status = "okay";
168*724ba675SRob Herring};
169