1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring/* 3724ba675SRob Herring * Device Tree file for HP t5325 Thin Client" 4724ba675SRob Herring * 5724ba675SRob Herring * Copyright (C) 2014 6724ba675SRob Herring * 7724ba675SRob Herring * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 8724ba675SRob Herring * Andrew Lunn <andrew@lunn.ch> 9724ba675SRob Herring * 10724ba675SRob Herring*/ 11724ba675SRob Herring 12724ba675SRob Herring/dts-v1/; 13724ba675SRob Herring 14724ba675SRob Herring#include "kirkwood.dtsi" 15724ba675SRob Herring#include "kirkwood-6281.dtsi" 16724ba675SRob Herring 17724ba675SRob Herring/ { 18724ba675SRob Herring model = "HP t5325 Thin Client"; 19724ba675SRob Herring compatible = "hp,t5325", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 20724ba675SRob Herring 21724ba675SRob Herring memory { 22724ba675SRob Herring device_type = "memory"; 23724ba675SRob Herring reg = <0x00000000 0x20000000>; 24724ba675SRob Herring }; 25724ba675SRob Herring 26724ba675SRob Herring chosen { 27724ba675SRob Herring bootargs = "console=ttyS0,115200n8"; 28724ba675SRob Herring stdout-path = &uart0; 29724ba675SRob Herring }; 30724ba675SRob Herring 31724ba675SRob Herring ocp@f1000000 { 32724ba675SRob Herring pinctrl: pin-controller@10000 { 33724ba675SRob Herring pinctrl-0 = <&pmx_i2s &pmx_sysrst>; 34724ba675SRob Herring pinctrl-names = "default"; 35724ba675SRob Herring 36724ba675SRob Herring pmx_button_power: pmx-button_power { 37724ba675SRob Herring marvell,pins = "mpp45"; 38724ba675SRob Herring marvell,function = "gpio"; 39724ba675SRob Herring }; 40724ba675SRob Herring 41724ba675SRob Herring pmx_power_off: pmx-power-off { 42724ba675SRob Herring marvell,pins = "mpp48"; 43724ba675SRob Herring marvell,function = "gpio"; 44724ba675SRob Herring }; 45724ba675SRob Herring 46724ba675SRob Herring pmx_led: pmx-led { 47724ba675SRob Herring marvell,pins = "mpp21"; 48724ba675SRob Herring marvell,function = "gpio"; 49724ba675SRob Herring }; 50724ba675SRob Herring 51724ba675SRob Herring pmx_usb_sata_power_enable: pmx-usb-sata-power-enable { 52724ba675SRob Herring marvell,pins = "mpp44"; 53724ba675SRob Herring marvell,function = "gpio"; 54724ba675SRob Herring }; 55724ba675SRob Herring 56724ba675SRob Herring pmx_spi: pmx-spi { 57724ba675SRob Herring marvell,pins = "mpp1", "mpp2", "mpp3", "mpp7"; 58724ba675SRob Herring marvell,function = "spi"; 59724ba675SRob Herring }; 60724ba675SRob Herring 61724ba675SRob Herring pmx_sysrst: pmx-sysrst { 62724ba675SRob Herring marvell,pins = "mpp6"; 63724ba675SRob Herring marvell,function = "sysrst"; 64724ba675SRob Herring }; 65724ba675SRob Herring 66724ba675SRob Herring pmx_i2s: pmx-i2s { 67724ba675SRob Herring marvell,pins = "mpp39", "mpp40", "mpp41", "mpp42", 68724ba675SRob Herring "mpp43"; 69724ba675SRob Herring marvell,function = "audio"; 70724ba675SRob Herring }; 71724ba675SRob Herring }; 72724ba675SRob Herring 73724ba675SRob Herring spi@10600 { 74724ba675SRob Herring status = "okay"; 75724ba675SRob Herring 76724ba675SRob Herring flash@0 { 77724ba675SRob Herring #address-cells = <1>; 78724ba675SRob Herring #size-cells = <1>; 79724ba675SRob Herring compatible = "st,m25p80", "jedec,spi-nor"; 80724ba675SRob Herring spi-max-frequency = <86000000>; 81724ba675SRob Herring reg = <0>; 82724ba675SRob Herring mode = <0>; 83724ba675SRob Herring 84724ba675SRob Herring partition@0 { 85724ba675SRob Herring reg = <0x0 0x80000>; 86724ba675SRob Herring label = "u-boot"; 87724ba675SRob Herring }; 88724ba675SRob Herring 89724ba675SRob Herring partition@1 { 90724ba675SRob Herring reg = <0x80000 0x40000>; 91724ba675SRob Herring label = "SSD firmware"; 92724ba675SRob Herring }; 93724ba675SRob Herring 94724ba675SRob Herring partition@2 { 95724ba675SRob Herring reg = <0xc0000 0x10000>; 96724ba675SRob Herring label = "u-boot env"; 97724ba675SRob Herring }; 98724ba675SRob Herring 99724ba675SRob Herring partition@3 { 100724ba675SRob Herring reg = <0xd0000 0x10000>; 101724ba675SRob Herring label = "permanent u-boot env"; 102724ba675SRob Herring }; 103724ba675SRob Herring 104724ba675SRob Herring partition@4 { 105724ba675SRob Herring reg = <0xd0000 0x10000>; 106724ba675SRob Herring label = "permanent u-boot env"; 107724ba675SRob Herring }; 108724ba675SRob Herring }; 109724ba675SRob Herring }; 110724ba675SRob Herring 111724ba675SRob Herring i2c@11000 { 112724ba675SRob Herring status = "okay"; 113724ba675SRob Herring 114724ba675SRob Herring alc5621: alc5621@1a { 115724ba675SRob Herring compatible = "realtek,alc5621"; 116724ba675SRob Herring reg = <0x1a>; 117724ba675SRob Herring #sound-dai-cells = <0>; 118724ba675SRob Herring add-ctrl = <0x3700>; 119724ba675SRob Herring jack-det-ctrl = <0x4810>; 120724ba675SRob Herring }; 121724ba675SRob Herring }; 122724ba675SRob Herring 123724ba675SRob Herring serial@12000 { 124724ba675SRob Herring status = "okay"; 125724ba675SRob Herring }; 126724ba675SRob Herring 127724ba675SRob Herring sata@80000 { 128724ba675SRob Herring status = "okay"; 129724ba675SRob Herring nr-ports = <2>; 130724ba675SRob Herring }; 131724ba675SRob Herring 132724ba675SRob Herring audio: audio-controller@a0000 { 133724ba675SRob Herring status = "okay"; 134724ba675SRob Herring }; 135724ba675SRob Herring }; 136724ba675SRob Herring 137724ba675SRob Herring regulators { 138724ba675SRob Herring compatible = "simple-bus"; 139724ba675SRob Herring #address-cells = <1>; 140724ba675SRob Herring #size-cells = <0>; 141724ba675SRob Herring pinctrl-0 = <&pmx_usb_sata_power_enable>; 142724ba675SRob Herring pinctrl-names = "default"; 143724ba675SRob Herring 144724ba675SRob Herring usb_power: regulator@1 { 145724ba675SRob Herring compatible = "regulator-fixed"; 146724ba675SRob Herring reg = <1>; 147724ba675SRob Herring regulator-name = "USB-SATA Power"; 148724ba675SRob Herring regulator-min-microvolt = <5000000>; 149724ba675SRob Herring regulator-max-microvolt = <5000000>; 150724ba675SRob Herring enable-active-high; 151724ba675SRob Herring regulator-always-on; 152724ba675SRob Herring regulator-boot-on; 153724ba675SRob Herring gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>; 154724ba675SRob Herring }; 155724ba675SRob Herring }; 156724ba675SRob Herring 157724ba675SRob Herring gpio_keys { 158724ba675SRob Herring compatible = "gpio-keys"; 159724ba675SRob Herring pinctrl-0 = <&pmx_button_power>; 160724ba675SRob Herring pinctrl-names = "default"; 161724ba675SRob Herring 162*b98a9191SKrzysztof Kozlowski button-power { 163724ba675SRob Herring label = "Power Button"; 164724ba675SRob Herring linux,code = <KEY_POWER>; 165724ba675SRob Herring gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; 166724ba675SRob Herring }; 167724ba675SRob Herring }; 168724ba675SRob Herring 169724ba675SRob Herring gpio_poweroff { 170724ba675SRob Herring compatible = "gpio-poweroff"; 171724ba675SRob Herring pinctrl-0 = <&pmx_power_off>; 172724ba675SRob Herring pinctrl-names = "default"; 173724ba675SRob Herring gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>; 174724ba675SRob Herring }; 175724ba675SRob Herring 176724ba675SRob Herring sound { 177724ba675SRob Herring compatible = "simple-audio-card"; 178724ba675SRob Herring simple-audio-card,format = "i2s"; 179724ba675SRob Herring simple-audio-card,routing = 180724ba675SRob Herring "Headphone Jack", "HPL", 181724ba675SRob Herring "Headphone Jack", "HPR", 182724ba675SRob Herring "Speaker", "SPKOUT", 183724ba675SRob Herring "Speaker", "SPKOUTN", 184724ba675SRob Herring "MIC1", "Mic Jack", 185724ba675SRob Herring "MIC2", "Mic Jack"; 186724ba675SRob Herring simple-audio-card,widgets = 187724ba675SRob Herring "Headphone", "Headphone Jack", 188724ba675SRob Herring "Speaker", "Speaker", 189724ba675SRob Herring "Microphone", "Mic Jack"; 190724ba675SRob Herring 191724ba675SRob Herring simple-audio-card,mclk-fs = <256>; 192724ba675SRob Herring 193724ba675SRob Herring simple-audio-card,cpu { 194724ba675SRob Herring sound-dai = <&audio>; 195724ba675SRob Herring }; 196724ba675SRob Herring 197724ba675SRob Herring simple-audio-card,codec { 198724ba675SRob Herring sound-dai = <&alc5621>; 199724ba675SRob Herring }; 200724ba675SRob Herring }; 201724ba675SRob Herring}; 202724ba675SRob Herring 203724ba675SRob Herring&mdio { 204724ba675SRob Herring status = "okay"; 205724ba675SRob Herring 206724ba675SRob Herring ethphy0: ethernet-phy@8 { 207724ba675SRob Herring device_type = "ethernet-phy"; 208724ba675SRob Herring reg = <8>; 209724ba675SRob Herring }; 210724ba675SRob Herring}; 211724ba675SRob Herring 212724ba675SRob Herringð0 { 213724ba675SRob Herring status = "okay"; 214724ba675SRob Herring ethernet0-port@0 { 215724ba675SRob Herring phy-handle = <ðphy0>; 216724ba675SRob Herring }; 217724ba675SRob Herring}; 218724ba675SRob Herring 219724ba675SRob Herring&pciec { 220724ba675SRob Herring status = "okay"; 221724ba675SRob Herring}; 222724ba675SRob Herring 223724ba675SRob Herring&pcie0 { 224724ba675SRob Herring status = "okay"; 225724ba675SRob Herring}; 226