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