Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (C) 2014 STMicroelectronics (R&D) Limited.
0004  * Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
0005  */
0006 #include <dt-bindings/clock/stih407-clks.h>
0007 #include <dt-bindings/gpio/gpio.h>
0008 #include <dt-bindings/media/c8sectpfe.h>
0009 / {
0010         leds {
0011                 compatible = "gpio-leds";
0012                 red {
0013                         label = "Front Panel LED";
0014                         gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
0015                         linux,default-trigger = "heartbeat";
0016                 };
0017                 green {
0018                         gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
0019                         default-state = "off";
0020                 };
0021         };
0022 
0023         sound: sound {
0024                 compatible = "simple-audio-card";
0025                 simple-audio-card,name = "STI-B2120";
0026                 status = "okay";
0027                 #address-cells = <1>;
0028                 #size-cells = <0>;
0029 
0030                 simple-audio-card,dai-link@0 {
0031                         reg = <0>;
0032                         /* HDMI */
0033                         format = "i2s";
0034                         mclk-fs = <128>;
0035                         cpu {
0036                                 sound-dai = <&sti_uni_player0>;
0037                         };
0038 
0039                         codec {
0040                                 sound-dai = <&sti_hdmi>;
0041                         };
0042                 };
0043 
0044                 simple-audio-card,dai-link@1 {
0045                         reg = <1>;
0046                         /* DAC */
0047                         format = "i2s";
0048                         mclk-fs = <256>;
0049                         frame-inversion;
0050                         cpu {
0051                                 sound-dai = <&sti_uni_player2>;
0052                         };
0053 
0054                         codec {
0055                                 sound-dai = <&sti_sasg_codec 1>;
0056                         };
0057                 };
0058 
0059                 simple-audio-card,dai-link@2 {
0060                         reg = <2>;
0061                         /* SPDIF */
0062                         format = "left_j";
0063                         mclk-fs = <128>;
0064                         cpu {
0065                                 sound-dai = <&sti_uni_player3>;
0066                         };
0067 
0068                         codec {
0069                                 sound-dai = <&sti_sasg_codec 0>;
0070                         };
0071                 };
0072         };
0073 
0074         miphy28lp_phy: miphy28lp {
0075 
0076                 phy_port0: port@9b22000 {
0077                         st,osc-rdy;
0078                 };
0079 
0080                 phy_port1: port@9b2a000 {
0081                         st,osc-force-ext;
0082                 };
0083         };
0084 
0085         soc {
0086                 sbc_serial0: serial@9530000 {
0087                         status = "okay";
0088                 };
0089 
0090                 pwm0: pwm@9810000 {
0091                         status = "okay";
0092                 };
0093 
0094                 pwm1: pwm@9510000 {
0095                         status = "okay";
0096                 };
0097 
0098                 ssc2: i2c@9842000 {
0099                         status = "okay";
0100                         clock-frequency = <100000>;
0101                         st,i2c-min-scl-pulse-width-us = <0>;
0102                         st,i2c-min-sda-pulse-width-us = <5>;
0103                 };
0104 
0105                 ssc3: i2c@9843000 {
0106                         status = "okay";
0107                         clock-frequency = <100000>;
0108                         st,i2c-min-scl-pulse-width-us = <0>;
0109                         st,i2c-min-sda-pulse-width-us = <5>;
0110                 };
0111 
0112                 i2c@9844000 {
0113                         status = "okay";
0114                 };
0115 
0116                 i2c@9845000 {
0117                         status = "okay";
0118                 };
0119 
0120                 i2c@9540000 {
0121                         status = "okay";
0122                 };
0123 
0124                 mmc0: sdhci@9060000 {
0125                         non-removable;
0126                         status = "okay";
0127                 };
0128 
0129                 mmc1: sdhci@9080000 {
0130                         status = "okay";
0131                 };
0132 
0133                 /* SSC11 to HDMI */
0134                 hdmiddc: i2c@9541000 {
0135                         status = "okay";
0136                         /* HDMI V1.3a supports Standard mode only */
0137                         clock-frequency = <100000>;
0138                         st,i2c-min-scl-pulse-width-us = <0>;
0139                         st,i2c-min-sda-pulse-width-us = <5>;
0140                 };
0141 
0142                 st_dwc3: dwc3@8f94000 {
0143                         status = "okay";
0144                 };
0145 
0146                 ethernet0: dwmac@9630000 {
0147                         st,tx-retime-src = "clkgen";
0148                         status = "okay";
0149                         phy-mode = "rgmii";
0150                         fixed-link = <0 1 1000 0 0>;
0151                 };
0152 
0153                 demux@8a20000 {
0154                         compatible      = "st,stih407-c8sectpfe";
0155                         status          = "okay";
0156                         reg             = <0x08a20000 0x10000>,
0157                                           <0x08a00000 0x4000>;
0158                         reg-names       = "c8sectpfe", "c8sectpfe-ram";
0159                         interrupts      = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
0160                                           <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
0161                         interrupt-names = "c8sectpfe-error-irq",
0162                                           "c8sectpfe-idle-irq";
0163                         pinctrl-0       = <&pinctrl_tsin0_serial>;
0164                         pinctrl-1       = <&pinctrl_tsin0_parallel>;
0165                         pinctrl-2       = <&pinctrl_tsin3_serial>;
0166                         pinctrl-3       = <&pinctrl_tsin4_serial_alt3>;
0167                         pinctrl-4       = <&pinctrl_tsin5_serial_alt1>;
0168                         pinctrl-names   = "tsin0-serial",
0169                                           "tsin0-parallel",
0170                                           "tsin3-serial",
0171                                           "tsin4-serial",
0172                                           "tsin5-serial";
0173                         clocks          = <&clk_s_c0_flexgen CLK_PROC_STFE>;
0174                         clock-names     = "c8sectpfe";
0175 
0176                         /* tsin0 is TSA on NIMA */
0177                         tsin0: port {
0178                                 tsin-num = <0>;
0179                                 serial-not-parallel;
0180                                 i2c-bus = <&ssc2>;
0181                                 reset-gpios = <&pio15 4 GPIO_ACTIVE_HIGH>;
0182                                 dvb-card = <STV0367_TDA18212_NIMA_1>;
0183                         };
0184                 };
0185 
0186                 sti_uni_player0: sti-uni-player@8d80000 {
0187                         status = "okay";
0188                 };
0189 
0190                 sti_uni_player2: sti-uni-player@8d82000 {
0191                         status = "okay";
0192                 };
0193 
0194                 sti_uni_player3: sti-uni-player@8d85000 {
0195                         status = "okay";
0196                 };
0197 
0198                 syscfg_core: core-syscfg@92b0000 {
0199                         sti_sasg_codec: sti-sasg-codec {
0200                                 status = "okay";
0201                                 pinctrl-names = "default";
0202                                 pinctrl-0 = <&pinctrl_spdif_out>;
0203                         };
0204                 };
0205         };
0206 };