xref: /freebsd/sys/contrib/device-tree/src/arm/marvell/kirkwood-sheevaplug-common.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * kirkwood-sheevaplug-common.dtsi - Common parts for Sheevaplugs
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright (C) 2013 Simon Baatz <gmbnomis@gmail.com>
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot#include "kirkwood.dtsi"
9*f126890aSEmmanuel Vadot#include "kirkwood-6281.dtsi"
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot/ {
12*f126890aSEmmanuel Vadot	memory {
13*f126890aSEmmanuel Vadot		device_type = "memory";
14*f126890aSEmmanuel Vadot		reg = <0x00000000 0x20000000>;
15*f126890aSEmmanuel Vadot	};
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot	chosen {
18*f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,115200n8 earlyprintk";
19*f126890aSEmmanuel Vadot		stdout-path = &uart0;
20*f126890aSEmmanuel Vadot	};
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot	ocp@f1000000 {
23*f126890aSEmmanuel Vadot		pinctrl: pin-controller@10000 {
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot			pmx_usb_power_enable: pmx-usb-power-enable {
26*f126890aSEmmanuel Vadot				marvell,pins = "mpp29";
27*f126890aSEmmanuel Vadot				marvell,function = "gpio";
28*f126890aSEmmanuel Vadot			};
29*f126890aSEmmanuel Vadot			pmx_led_red: pmx-led-red {
30*f126890aSEmmanuel Vadot				marvell,pins = "mpp46";
31*f126890aSEmmanuel Vadot				marvell,function = "gpio";
32*f126890aSEmmanuel Vadot			};
33*f126890aSEmmanuel Vadot			pmx_led_blue: pmx-led-blue {
34*f126890aSEmmanuel Vadot				marvell,pins = "mpp49";
35*f126890aSEmmanuel Vadot				marvell,function = "gpio";
36*f126890aSEmmanuel Vadot			};
37*f126890aSEmmanuel Vadot			pmx_sdio_cd: pmx-sdio-cd {
38*f126890aSEmmanuel Vadot				marvell,pins = "mpp44";
39*f126890aSEmmanuel Vadot				marvell,function = "gpio";
40*f126890aSEmmanuel Vadot			};
41*f126890aSEmmanuel Vadot			pmx_sdio_wp: pmx-sdio-wp {
42*f126890aSEmmanuel Vadot				marvell,pins = "mpp47";
43*f126890aSEmmanuel Vadot				marvell,function = "gpio";
44*f126890aSEmmanuel Vadot			};
45*f126890aSEmmanuel Vadot		};
46*f126890aSEmmanuel Vadot		serial@12000 {
47*f126890aSEmmanuel Vadot			status = "okay";
48*f126890aSEmmanuel Vadot		};
49*f126890aSEmmanuel Vadot	};
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot	regulators {
52*f126890aSEmmanuel Vadot		compatible = "simple-bus";
53*f126890aSEmmanuel Vadot		#address-cells = <1>;
54*f126890aSEmmanuel Vadot		#size-cells = <0>;
55*f126890aSEmmanuel Vadot		pinctrl-0 = <&pmx_usb_power_enable>;
56*f126890aSEmmanuel Vadot		pinctrl-names = "default";
57*f126890aSEmmanuel Vadot
58*f126890aSEmmanuel Vadot		usb_power: regulator@1 {
59*f126890aSEmmanuel Vadot			compatible = "regulator-fixed";
60*f126890aSEmmanuel Vadot			reg = <1>;
61*f126890aSEmmanuel Vadot			regulator-name = "USB Power";
62*f126890aSEmmanuel Vadot			regulator-min-microvolt = <5000000>;
63*f126890aSEmmanuel Vadot			regulator-max-microvolt = <5000000>;
64*f126890aSEmmanuel Vadot			enable-active-high;
65*f126890aSEmmanuel Vadot			regulator-always-on;
66*f126890aSEmmanuel Vadot			regulator-boot-on;
67*f126890aSEmmanuel Vadot			gpio = <&gpio0 29 0>;
68*f126890aSEmmanuel Vadot		};
69*f126890aSEmmanuel Vadot	};
70*f126890aSEmmanuel Vadot};
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot&nand {
73*f126890aSEmmanuel Vadot	status = "okay";
74*f126890aSEmmanuel Vadot
75*f126890aSEmmanuel Vadot	partition@0 {
76*f126890aSEmmanuel Vadot		label = "u-boot";
77*f126890aSEmmanuel Vadot		reg = <0x0000000 0x100000>;
78*f126890aSEmmanuel Vadot	};
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot	partition@100000 {
81*f126890aSEmmanuel Vadot		label = "uImage";
82*f126890aSEmmanuel Vadot		reg = <0x0100000 0x400000>;
83*f126890aSEmmanuel Vadot	};
84*f126890aSEmmanuel Vadot
85*f126890aSEmmanuel Vadot	partition@500000 {
86*f126890aSEmmanuel Vadot		label = "root";
87*f126890aSEmmanuel Vadot		reg = <0x0500000 0x1fb00000>;
88*f126890aSEmmanuel Vadot	};
89*f126890aSEmmanuel Vadot};
90*f126890aSEmmanuel Vadot
91*f126890aSEmmanuel Vadot&mdio {
92*f126890aSEmmanuel Vadot	status = "okay";
93*f126890aSEmmanuel Vadot
94*f126890aSEmmanuel Vadot	ethphy0: ethernet-phy@0 {
95*f126890aSEmmanuel Vadot		reg = <0>;
96*f126890aSEmmanuel Vadot	};
97*f126890aSEmmanuel Vadot};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot&eth0 {
100*f126890aSEmmanuel Vadot	status = "okay";
101*f126890aSEmmanuel Vadot	ethernet0-port@0 {
102*f126890aSEmmanuel Vadot		phy-handle = <&ethphy0>;
103*f126890aSEmmanuel Vadot	};
104*f126890aSEmmanuel Vadot};
105