Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Device Tree file for HP t5325 Thin Client"
0004  *
0005  * Copyright (C) 2014
0006  *
0007  * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
0008  * Andrew Lunn <andrew@lunn.ch>
0009  *
0010 */
0011 
0012 /dts-v1/;
0013 
0014 #include "kirkwood.dtsi"
0015 #include "kirkwood-6281.dtsi"
0016 
0017 / {
0018         model = "HP t5325 Thin Client";
0019         compatible = "hp,t5325", "marvell,kirkwood-88f6281", "marvell,kirkwood";
0020 
0021         memory {
0022                 device_type = "memory";
0023                 reg = <0x00000000 0x20000000>;
0024         };
0025 
0026         chosen {
0027                 bootargs = "console=ttyS0,115200n8";
0028                 stdout-path = &uart0;
0029         };
0030 
0031         ocp@f1000000 {
0032                 pinctrl: pin-controller@10000 {
0033                         pinctrl-0 = <&pmx_i2s &pmx_sysrst>;
0034                         pinctrl-names = "default";
0035 
0036                         pmx_button_power: pmx-button_power {
0037                                 marvell,pins = "mpp45";
0038                                 marvell,function = "gpio";
0039                         };
0040 
0041                         pmx_power_off: pmx-power-off {
0042                                 marvell,pins = "mpp48";
0043                                 marvell,function = "gpio";
0044                         };
0045 
0046                         pmx_led: pmx-led {
0047                                 marvell,pins = "mpp21";
0048                                 marvell,function = "gpio";
0049                         };
0050 
0051                         pmx_usb_sata_power_enable: pmx-usb-sata-power-enable {
0052                                 marvell,pins = "mpp44";
0053                                 marvell,function = "gpio";
0054                         };
0055 
0056                         pmx_spi: pmx-spi {
0057                                 marvell,pins = "mpp1", "mpp2", "mpp3", "mpp7";
0058                                 marvell,function = "spi";
0059                         };
0060 
0061                         pmx_sysrst: pmx-sysrst {
0062                                 marvell,pins = "mpp6";
0063                                 marvell,function = "sysrst";
0064                         };
0065 
0066                         pmx_i2s: pmx-i2s {
0067                                 marvell,pins = "mpp39", "mpp40", "mpp41", "mpp42",
0068                                                "mpp43";
0069                                 marvell,function = "audio";
0070                         };
0071                 };
0072 
0073                 spi@10600 {
0074                         status = "okay";
0075 
0076                         flash@0 {
0077                                 #address-cells = <1>;
0078                                 #size-cells = <1>;
0079                                 compatible = "st,m25p80", "jedec,spi-nor";
0080                                 spi-max-frequency = <86000000>;
0081                                 reg = <0>;
0082                                 mode = <0>;
0083 
0084                                 partition@0 {
0085                                         reg = <0x0 0x80000>;
0086                                         label = "u-boot";
0087                                 };
0088 
0089                                 partition@1 {
0090                                         reg = <0x80000 0x40000>;
0091                                         label = "SSD firmware";
0092                                 };
0093 
0094                                 partition@2 {
0095                                         reg = <0xc0000 0x10000>;
0096                                         label = "u-boot env";
0097                                 };
0098 
0099                                 partition@3 {
0100                                         reg = <0xd0000 0x10000>;
0101                                         label = "permanent u-boot env";
0102                                 };
0103 
0104                                 partition@4 {
0105                                         reg = <0xd0000 0x10000>;
0106                                         label = "permanent u-boot env";
0107                                 };
0108                         };
0109                 };
0110 
0111                 i2c@11000 {
0112                         status = "okay";
0113 
0114                         alc5621: alc5621@1a {
0115                                 compatible = "realtek,alc5621";
0116                                 reg = <0x1a>;
0117                                 #sound-dai-cells = <0>;
0118                                 add-ctrl = <0x3700>;
0119                                 jack-det-ctrl = <0x4810>;
0120                         };
0121                 };
0122 
0123                 serial@12000 {
0124                         status = "okay";
0125                 };
0126 
0127                 sata@80000 {
0128                         status = "okay";
0129                         nr-ports = <2>;
0130                 };
0131 
0132                 audio: audio-controller@a0000 {
0133                         status = "okay";
0134                 };
0135         };
0136 
0137         regulators {
0138                 compatible = "simple-bus";
0139                 #address-cells = <1>;
0140                 #size-cells = <0>;
0141                 pinctrl-0 = <&pmx_usb_sata_power_enable>;
0142                 pinctrl-names = "default";
0143 
0144                 usb_power: regulator@1 {
0145                         compatible = "regulator-fixed";
0146                         reg = <1>;
0147                         regulator-name = "USB-SATA Power";
0148                         regulator-min-microvolt = <5000000>;
0149                         regulator-max-microvolt = <5000000>;
0150                         enable-active-high;
0151                         regulator-always-on;
0152                         regulator-boot-on;
0153                         gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
0154                 };
0155         };
0156 
0157         gpio_keys {
0158                 compatible = "gpio-keys";
0159                 #address-cells = <1>;
0160                 #size-cells = <0>;
0161                 pinctrl-0 = <&pmx_button_power>;
0162                 pinctrl-names = "default";
0163 
0164                 power {
0165                         label = "Power Button";
0166                         linux,code = <KEY_POWER>;
0167                         gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
0168                 };
0169         };
0170 
0171         gpio_poweroff {
0172                 compatible = "gpio-poweroff";
0173                 pinctrl-0 = <&pmx_power_off>;
0174                 pinctrl-names = "default";
0175                 gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
0176         };
0177 
0178         sound {
0179                 compatible = "simple-audio-card";
0180                 simple-audio-card,format = "i2s";
0181                 simple-audio-card,routing =
0182                         "Headphone Jack", "HPL",
0183                         "Headphone Jack", "HPR",
0184                         "Speaker", "SPKOUT",
0185                         "Speaker", "SPKOUTN",
0186                         "MIC1", "Mic Jack",
0187                         "MIC2", "Mic Jack";
0188                 simple-audio-card,widgets =
0189                         "Headphone", "Headphone Jack",
0190                         "Speaker", "Speaker",
0191                         "Microphone", "Mic Jack";
0192 
0193                 simple-audio-card,mclk-fs = <256>;
0194 
0195                 simple-audio-card,cpu {
0196                         sound-dai = <&audio>;
0197                 };
0198 
0199                 simple-audio-card,codec {
0200                         sound-dai = <&alc5621>;
0201                 };
0202         };
0203 };
0204 
0205 &mdio {
0206         status = "okay";
0207 
0208         ethphy0: ethernet-phy@8 {
0209                 device_type = "ethernet-phy";
0210                 reg = <8>;
0211         };
0212 };
0213 
0214 &eth0 {
0215         status = "okay";
0216         ethernet0-port@0 {
0217                 phy-handle = <&ethphy0>;
0218         };
0219 };
0220 
0221 &pciec {
0222         status = "okay";
0223 };
0224 
0225 &pcie0 {
0226         status = "okay";
0227 };