1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring/* 3724ba675SRob Herring * Copyright (C) 2013 Maxime Hadjinlian <maxime.hadjinlian@gmail.com> 4724ba675SRob Herring * 5724ba675SRob Herring */ 6724ba675SRob Herring 7724ba675SRob Herring/dts-v1/; 8724ba675SRob Herring 9724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 10724ba675SRob Herring#include <dt-bindings/input/input.h> 11724ba675SRob Herring#include "kirkwood.dtsi" 12724ba675SRob Herring#include "kirkwood-6192.dtsi" 13724ba675SRob Herring 14724ba675SRob Herring/ { 15724ba675SRob Herring model = "LaCie LaPlug"; 16724ba675SRob Herring compatible = "lacie,laplug", "marvell,kirkwood-88f6192", "marvell,kirkwood"; 17724ba675SRob Herring 18724ba675SRob Herring memory { 19724ba675SRob Herring device_type = "memory"; 20724ba675SRob Herring reg = <0x00000000 0x8000000>; /* 128 MB */ 21724ba675SRob Herring }; 22724ba675SRob Herring 23724ba675SRob Herring chosen { 24724ba675SRob Herring bootargs = "console=ttyS0,115200n8 earlyprintk"; 25724ba675SRob Herring stdout-path = &uart0; 26724ba675SRob Herring }; 27724ba675SRob Herring 28724ba675SRob Herring ocp@f1000000 { 29724ba675SRob Herring serial@12000 { 30724ba675SRob Herring status = "okay"; 31724ba675SRob Herring }; 32724ba675SRob Herring 33724ba675SRob Herring i2c@11000 { 34724ba675SRob Herring status = "okay"; 35724ba675SRob Herring 36724ba675SRob Herring eeprom@50 { 37724ba675SRob Herring compatible = "atmel,24c04"; 38724ba675SRob Herring pagesize = <16>; 39724ba675SRob Herring reg = <0x50>; 40724ba675SRob Herring }; 41724ba675SRob Herring }; 42724ba675SRob Herring 43724ba675SRob Herring pinctrl: pin-controller@10000 { 44724ba675SRob Herring pmx_usb_power_enable: pmx-usb-power-enable { 45724ba675SRob Herring marvell,pins = "mpp14"; 46724ba675SRob Herring marvell,function = "gpio"; 47724ba675SRob Herring }; 48724ba675SRob Herring }; 49724ba675SRob Herring }; 50724ba675SRob Herring 51724ba675SRob Herring gpio_keys { 52724ba675SRob Herring compatible = "gpio-keys"; 53724ba675SRob Herring 54b98a9191SKrzysztof Kozlowski button-power { 55724ba675SRob Herring label = "Power push button"; 56724ba675SRob Herring linux,code = <KEY_POWER>; 57724ba675SRob Herring gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; 58724ba675SRob Herring }; 59724ba675SRob Herring }; 60724ba675SRob Herring 61724ba675SRob Herring gpio-leds { 62724ba675SRob Herring compatible = "gpio-leds"; 63724ba675SRob Herring 64*9d0120b7SKrzysztof Kozlowski led-red-fail { 65724ba675SRob Herring label = "laplug_v2:red:power"; 66724ba675SRob Herring gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; 67724ba675SRob Herring }; 68*9d0120b7SKrzysztof Kozlowski led-blue-power { 69724ba675SRob Herring label = "laplug_v2:blue:power"; 70724ba675SRob Herring gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; 71724ba675SRob Herring linux,default-trigger = "default-on"; 72724ba675SRob Herring }; 73724ba675SRob Herring }; 74724ba675SRob Herring 75724ba675SRob Herring gpio_poweroff { 76724ba675SRob Herring compatible = "gpio-poweroff"; 77724ba675SRob Herring gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>; 78724ba675SRob Herring }; 79724ba675SRob Herring 80724ba675SRob Herring regulators { 81724ba675SRob Herring compatible = "simple-bus"; 82724ba675SRob Herring #address-cells = <1>; 83724ba675SRob Herring #size-cells = <0>; 84724ba675SRob Herring pinctrl-0 = <&pmx_usb_power_enable>; 85724ba675SRob Herring pinctrl-names = "default"; 86724ba675SRob Herring 87724ba675SRob Herring usb_power_back1: regulator@1 { 88724ba675SRob Herring compatible = "regulator-fixed"; 89724ba675SRob Herring reg = <1>; 90724ba675SRob Herring regulator-name = "USB Power Back 1"; 91724ba675SRob Herring regulator-min-microvolt = <5000000>; 92724ba675SRob Herring regulator-max-microvolt = <5000000>; 93724ba675SRob Herring enable-active-high; 94724ba675SRob Herring regulator-always-on; 95724ba675SRob Herring regulator-boot-on; 96724ba675SRob Herring gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>; 97724ba675SRob Herring }; 98724ba675SRob Herring 99724ba675SRob Herring usb_power_back2: regulator@2 { 100724ba675SRob Herring compatible = "regulator-fixed"; 101724ba675SRob Herring reg = <2>; 102724ba675SRob Herring regulator-name = "USB Power Back 2"; 103724ba675SRob Herring regulator-min-microvolt = <5000000>; 104724ba675SRob Herring regulator-max-microvolt = <5000000>; 105724ba675SRob Herring enable-active-high; 106724ba675SRob Herring regulator-always-on; 107724ba675SRob Herring regulator-boot-on; 108724ba675SRob Herring gpio = <&gpio0 28 GPIO_ACTIVE_HIGH>; 109724ba675SRob Herring }; 110724ba675SRob Herring 111724ba675SRob Herring usb_power_front: regulator@3 { 112724ba675SRob Herring compatible = "regulator-fixed"; 113724ba675SRob Herring reg = <3>; 114724ba675SRob Herring regulator-name = "USB Power Front"; 115724ba675SRob Herring regulator-min-microvolt = <5000000>; 116724ba675SRob Herring regulator-max-microvolt = <5000000>; 117724ba675SRob Herring enable-active-high; 118724ba675SRob Herring regulator-always-on; 119724ba675SRob Herring regulator-boot-on; 120724ba675SRob Herring gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>; 121724ba675SRob Herring }; 122724ba675SRob Herring }; 123724ba675SRob Herring}; 124724ba675SRob Herring 125724ba675SRob Herring&nand { 126724ba675SRob Herring /* Total size : 512MB */ 127724ba675SRob Herring status = "okay"; 128724ba675SRob Herring 129724ba675SRob Herring partition@0 { 130724ba675SRob Herring label = "u-boot"; 131724ba675SRob Herring reg = <0x0 0x100000>; /* 1MB */ 132724ba675SRob Herring read-only; 133724ba675SRob Herring }; 134724ba675SRob Herring 135724ba675SRob Herring partition@100000 { 136724ba675SRob Herring label = "uImage"; 137724ba675SRob Herring reg = <0x100000 0x1000000>; /* 16MB */ 138724ba675SRob Herring }; 139724ba675SRob Herring 140724ba675SRob Herring partition@1100000 { 141724ba675SRob Herring label = "rootfs"; 142724ba675SRob Herring reg = <0x1100000 0x1EF00000>; /* 495MB */ 143724ba675SRob Herring }; 144724ba675SRob Herring}; 145724ba675SRob Herring 146724ba675SRob Herring&mdio { 147724ba675SRob Herring status = "okay"; 148724ba675SRob Herring 149724ba675SRob Herring ethphy0: ethernet-phy@0 { 150724ba675SRob Herring device_type = "ethernet-phy"; 151724ba675SRob Herring reg = <0>; 152724ba675SRob Herring }; 153724ba675SRob Herring}; 154724ba675SRob Herring 155724ba675SRob Herringð0 { 156724ba675SRob Herring status = "okay"; 157724ba675SRob Herring ethernet0-port@0 { 158724ba675SRob Herring phy-handle = <ðphy0>; 159724ba675SRob Herring }; 160724ba675SRob Herring}; 161724ba675SRob Herring 162724ba675SRob Herring&pciec { 163724ba675SRob Herring status = "okay"; 164724ba675SRob Herring}; 165724ba675SRob Herring 166724ba675SRob Herring&pcie0 { 167724ba675SRob Herring status = "okay"; 168724ba675SRob Herring}; 169