1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree file for HP t5325 Thin Client" 4*724ba675SRob Herring * 5*724ba675SRob Herring * Copyright (C) 2014 6*724ba675SRob Herring * 7*724ba675SRob Herring * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 8*724ba675SRob Herring * Andrew Lunn <andrew@lunn.ch> 9*724ba675SRob Herring * 10*724ba675SRob Herring*/ 11*724ba675SRob Herring 12*724ba675SRob Herring/dts-v1/; 13*724ba675SRob Herring 14*724ba675SRob Herring#include "kirkwood.dtsi" 15*724ba675SRob Herring#include "kirkwood-6281.dtsi" 16*724ba675SRob Herring 17*724ba675SRob Herring/ { 18*724ba675SRob Herring model = "HP t5325 Thin Client"; 19*724ba675SRob Herring compatible = "hp,t5325", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 20*724ba675SRob Herring 21*724ba675SRob Herring memory { 22*724ba675SRob Herring device_type = "memory"; 23*724ba675SRob Herring reg = <0x00000000 0x20000000>; 24*724ba675SRob Herring }; 25*724ba675SRob Herring 26*724ba675SRob Herring chosen { 27*724ba675SRob Herring bootargs = "console=ttyS0,115200n8"; 28*724ba675SRob Herring stdout-path = &uart0; 29*724ba675SRob Herring }; 30*724ba675SRob Herring 31*724ba675SRob Herring ocp@f1000000 { 32*724ba675SRob Herring pinctrl: pin-controller@10000 { 33*724ba675SRob Herring pinctrl-0 = <&pmx_i2s &pmx_sysrst>; 34*724ba675SRob Herring pinctrl-names = "default"; 35*724ba675SRob Herring 36*724ba675SRob Herring pmx_button_power: pmx-button_power { 37*724ba675SRob Herring marvell,pins = "mpp45"; 38*724ba675SRob Herring marvell,function = "gpio"; 39*724ba675SRob Herring }; 40*724ba675SRob Herring 41*724ba675SRob Herring pmx_power_off: pmx-power-off { 42*724ba675SRob Herring marvell,pins = "mpp48"; 43*724ba675SRob Herring marvell,function = "gpio"; 44*724ba675SRob Herring }; 45*724ba675SRob Herring 46*724ba675SRob Herring pmx_led: pmx-led { 47*724ba675SRob Herring marvell,pins = "mpp21"; 48*724ba675SRob Herring marvell,function = "gpio"; 49*724ba675SRob Herring }; 50*724ba675SRob Herring 51*724ba675SRob Herring pmx_usb_sata_power_enable: pmx-usb-sata-power-enable { 52*724ba675SRob Herring marvell,pins = "mpp44"; 53*724ba675SRob Herring marvell,function = "gpio"; 54*724ba675SRob Herring }; 55*724ba675SRob Herring 56*724ba675SRob Herring pmx_spi: pmx-spi { 57*724ba675SRob Herring marvell,pins = "mpp1", "mpp2", "mpp3", "mpp7"; 58*724ba675SRob Herring marvell,function = "spi"; 59*724ba675SRob Herring }; 60*724ba675SRob Herring 61*724ba675SRob Herring pmx_sysrst: pmx-sysrst { 62*724ba675SRob Herring marvell,pins = "mpp6"; 63*724ba675SRob Herring marvell,function = "sysrst"; 64*724ba675SRob Herring }; 65*724ba675SRob Herring 66*724ba675SRob Herring pmx_i2s: pmx-i2s { 67*724ba675SRob Herring marvell,pins = "mpp39", "mpp40", "mpp41", "mpp42", 68*724ba675SRob Herring "mpp43"; 69*724ba675SRob Herring marvell,function = "audio"; 70*724ba675SRob Herring }; 71*724ba675SRob Herring }; 72*724ba675SRob Herring 73*724ba675SRob Herring spi@10600 { 74*724ba675SRob Herring status = "okay"; 75*724ba675SRob Herring 76*724ba675SRob Herring flash@0 { 77*724ba675SRob Herring #address-cells = <1>; 78*724ba675SRob Herring #size-cells = <1>; 79*724ba675SRob Herring compatible = "st,m25p80", "jedec,spi-nor"; 80*724ba675SRob Herring spi-max-frequency = <86000000>; 81*724ba675SRob Herring reg = <0>; 82*724ba675SRob Herring mode = <0>; 83*724ba675SRob Herring 84*724ba675SRob Herring partition@0 { 85*724ba675SRob Herring reg = <0x0 0x80000>; 86*724ba675SRob Herring label = "u-boot"; 87*724ba675SRob Herring }; 88*724ba675SRob Herring 89*724ba675SRob Herring partition@1 { 90*724ba675SRob Herring reg = <0x80000 0x40000>; 91*724ba675SRob Herring label = "SSD firmware"; 92*724ba675SRob Herring }; 93*724ba675SRob Herring 94*724ba675SRob Herring partition@2 { 95*724ba675SRob Herring reg = <0xc0000 0x10000>; 96*724ba675SRob Herring label = "u-boot env"; 97*724ba675SRob Herring }; 98*724ba675SRob Herring 99*724ba675SRob Herring partition@3 { 100*724ba675SRob Herring reg = <0xd0000 0x10000>; 101*724ba675SRob Herring label = "permanent u-boot env"; 102*724ba675SRob Herring }; 103*724ba675SRob Herring 104*724ba675SRob Herring partition@4 { 105*724ba675SRob Herring reg = <0xd0000 0x10000>; 106*724ba675SRob Herring label = "permanent u-boot env"; 107*724ba675SRob Herring }; 108*724ba675SRob Herring }; 109*724ba675SRob Herring }; 110*724ba675SRob Herring 111*724ba675SRob Herring i2c@11000 { 112*724ba675SRob Herring status = "okay"; 113*724ba675SRob Herring 114*724ba675SRob Herring alc5621: alc5621@1a { 115*724ba675SRob Herring compatible = "realtek,alc5621"; 116*724ba675SRob Herring reg = <0x1a>; 117*724ba675SRob Herring #sound-dai-cells = <0>; 118*724ba675SRob Herring add-ctrl = <0x3700>; 119*724ba675SRob Herring jack-det-ctrl = <0x4810>; 120*724ba675SRob Herring }; 121*724ba675SRob Herring }; 122*724ba675SRob Herring 123*724ba675SRob Herring serial@12000 { 124*724ba675SRob Herring status = "okay"; 125*724ba675SRob Herring }; 126*724ba675SRob Herring 127*724ba675SRob Herring sata@80000 { 128*724ba675SRob Herring status = "okay"; 129*724ba675SRob Herring nr-ports = <2>; 130*724ba675SRob Herring }; 131*724ba675SRob Herring 132*724ba675SRob Herring audio: audio-controller@a0000 { 133*724ba675SRob Herring status = "okay"; 134*724ba675SRob Herring }; 135*724ba675SRob Herring }; 136*724ba675SRob Herring 137*724ba675SRob Herring regulators { 138*724ba675SRob Herring compatible = "simple-bus"; 139*724ba675SRob Herring #address-cells = <1>; 140*724ba675SRob Herring #size-cells = <0>; 141*724ba675SRob Herring pinctrl-0 = <&pmx_usb_sata_power_enable>; 142*724ba675SRob Herring pinctrl-names = "default"; 143*724ba675SRob Herring 144*724ba675SRob Herring usb_power: regulator@1 { 145*724ba675SRob Herring compatible = "regulator-fixed"; 146*724ba675SRob Herring reg = <1>; 147*724ba675SRob Herring regulator-name = "USB-SATA Power"; 148*724ba675SRob Herring regulator-min-microvolt = <5000000>; 149*724ba675SRob Herring regulator-max-microvolt = <5000000>; 150*724ba675SRob Herring enable-active-high; 151*724ba675SRob Herring regulator-always-on; 152*724ba675SRob Herring regulator-boot-on; 153*724ba675SRob Herring gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>; 154*724ba675SRob Herring }; 155*724ba675SRob Herring }; 156*724ba675SRob Herring 157*724ba675SRob Herring gpio_keys { 158*724ba675SRob Herring compatible = "gpio-keys"; 159*724ba675SRob Herring #address-cells = <1>; 160*724ba675SRob Herring #size-cells = <0>; 161*724ba675SRob Herring pinctrl-0 = <&pmx_button_power>; 162*724ba675SRob Herring pinctrl-names = "default"; 163*724ba675SRob Herring 164*724ba675SRob Herring power { 165*724ba675SRob Herring label = "Power Button"; 166*724ba675SRob Herring linux,code = <KEY_POWER>; 167*724ba675SRob Herring gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; 168*724ba675SRob Herring }; 169*724ba675SRob Herring }; 170*724ba675SRob Herring 171*724ba675SRob Herring gpio_poweroff { 172*724ba675SRob Herring compatible = "gpio-poweroff"; 173*724ba675SRob Herring pinctrl-0 = <&pmx_power_off>; 174*724ba675SRob Herring pinctrl-names = "default"; 175*724ba675SRob Herring gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>; 176*724ba675SRob Herring }; 177*724ba675SRob Herring 178*724ba675SRob Herring sound { 179*724ba675SRob Herring compatible = "simple-audio-card"; 180*724ba675SRob Herring simple-audio-card,format = "i2s"; 181*724ba675SRob Herring simple-audio-card,routing = 182*724ba675SRob Herring "Headphone Jack", "HPL", 183*724ba675SRob Herring "Headphone Jack", "HPR", 184*724ba675SRob Herring "Speaker", "SPKOUT", 185*724ba675SRob Herring "Speaker", "SPKOUTN", 186*724ba675SRob Herring "MIC1", "Mic Jack", 187*724ba675SRob Herring "MIC2", "Mic Jack"; 188*724ba675SRob Herring simple-audio-card,widgets = 189*724ba675SRob Herring "Headphone", "Headphone Jack", 190*724ba675SRob Herring "Speaker", "Speaker", 191*724ba675SRob Herring "Microphone", "Mic Jack"; 192*724ba675SRob Herring 193*724ba675SRob Herring simple-audio-card,mclk-fs = <256>; 194*724ba675SRob Herring 195*724ba675SRob Herring simple-audio-card,cpu { 196*724ba675SRob Herring sound-dai = <&audio>; 197*724ba675SRob Herring }; 198*724ba675SRob Herring 199*724ba675SRob Herring simple-audio-card,codec { 200*724ba675SRob Herring sound-dai = <&alc5621>; 201*724ba675SRob Herring }; 202*724ba675SRob Herring }; 203*724ba675SRob Herring}; 204*724ba675SRob Herring 205*724ba675SRob Herring&mdio { 206*724ba675SRob Herring status = "okay"; 207*724ba675SRob Herring 208*724ba675SRob Herring ethphy0: ethernet-phy@8 { 209*724ba675SRob Herring device_type = "ethernet-phy"; 210*724ba675SRob Herring reg = <8>; 211*724ba675SRob Herring }; 212*724ba675SRob Herring}; 213*724ba675SRob Herring 214*724ba675SRob Herringð0 { 215*724ba675SRob Herring status = "okay"; 216*724ba675SRob Herring ethernet0-port@0 { 217*724ba675SRob Herring phy-handle = <ðphy0>; 218*724ba675SRob Herring }; 219*724ba675SRob Herring}; 220*724ba675SRob Herring 221*724ba675SRob Herring&pciec { 222*724ba675SRob Herring status = "okay"; 223*724ba675SRob Herring}; 224*724ba675SRob Herring 225*724ba675SRob Herring&pcie0 { 226*724ba675SRob Herring status = "okay"; 227*724ba675SRob Herring}; 228