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