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