Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016 STMicroelectronics (R&D) Limited. |
Patrice Chotard | 90e8278 | 2021-01-04 17:00:56 +0100 | [diff] [blame] | 4 | * Author: Patrice Chotard <patrice.chotard@foss.st.com> |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 5 | */ |
| 6 | /dts-v1/; |
| 7 | #include "stih410.dtsi" |
| 8 | #include <dt-bindings/gpio/gpio.h> |
| 9 | |
| 10 | / { |
| 11 | model = "STiH410 B2260"; |
| 12 | compatible = "st,stih410-b2260", "st,stih410"; |
| 13 | |
| 14 | chosen { |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 15 | bootargs = "clk_ignore_unused"; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 16 | stdout-path = &uart1; |
| 17 | }; |
| 18 | |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 19 | memory@40000000 { |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 20 | device_type = "memory"; |
| 21 | reg = <0x40000000 0x40000000>; |
| 22 | }; |
| 23 | |
| 24 | aliases { |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 25 | serial1 = &uart1; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 26 | ethernet0 = ðernet0; |
| 27 | }; |
| 28 | |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 29 | leds { |
| 30 | compatible = "gpio-leds"; |
| 31 | user_green_1 { |
| 32 | label = "User_green_1"; |
| 33 | gpios = <&pio1 3 GPIO_ACTIVE_LOW>; |
| 34 | linux,default-trigger = "heartbeat"; |
| 35 | default-state = "off"; |
| 36 | }; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 37 | |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 38 | user_green_2 { |
| 39 | label = "User_green_2"; |
| 40 | gpios = <&pio4 1 GPIO_ACTIVE_LOW>; |
| 41 | default-state = "off"; |
| 42 | }; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 43 | |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 44 | user_green_3 { |
| 45 | label = "User_green_3"; |
| 46 | gpios = <&pio2 1 GPIO_ACTIVE_LOW>; |
| 47 | default-state = "off"; |
| 48 | }; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 49 | |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 50 | user_green_4 { |
| 51 | label = "User_green_4"; |
| 52 | gpios = <&pio2 5 GPIO_ACTIVE_LOW>; |
| 53 | default-state = "off"; |
| 54 | }; |
| 55 | }; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 56 | |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 57 | sound: sound { |
| 58 | compatible = "simple-audio-card"; |
| 59 | simple-audio-card,name = "STI-B2260"; |
| 60 | status = "okay"; |
| 61 | #address-cells = <1>; |
| 62 | #size-cells = <0>; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 63 | |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 64 | simple-audio-card,dai-link@0 { |
| 65 | reg = <0>; |
| 66 | /* DAC */ |
| 67 | format = "i2s"; |
| 68 | mclk-fs = <128>; |
| 69 | cpu { |
| 70 | sound-dai = <&sti_uni_player0>; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 71 | }; |
| 72 | |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 73 | codec { |
| 74 | sound-dai = <&sti_hdmi>; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 75 | }; |
| 76 | }; |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 77 | }; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 78 | |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 79 | soc { |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 80 | /* Low speed expansion connector */ |
| 81 | uart0: serial@9830000 { |
| 82 | label = "LS-UART0"; |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 83 | pinctrl-names = "default", "no-hw-flowctrl"; |
| 84 | pinctrl-0 = <&pinctrl_serial0_hw_flowctrl>; |
| 85 | pinctrl-1 = <&pinctrl_serial0>; |
| 86 | rts-gpios = <&pio17 3 GPIO_ACTIVE_LOW>; |
| 87 | uart-has-rtscts; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 88 | status = "okay"; |
| 89 | }; |
| 90 | |
| 91 | /* Low speed expansion connector */ |
| 92 | uart1: serial@9831000 { |
| 93 | label = "LS-UART1"; |
| 94 | status = "okay"; |
| 95 | }; |
| 96 | |
| 97 | /* Low speed expansion connector */ |
| 98 | spi0: spi@9844000 { |
| 99 | label = "LS-SPI0"; |
| 100 | cs-gpios = <&pio30 3 0>; |
| 101 | status = "okay"; |
| 102 | }; |
| 103 | |
| 104 | /* Low speed expansion connector */ |
| 105 | i2c0: i2c@9840000 { |
| 106 | label = "LS-I2C0"; |
| 107 | status = "okay"; |
| 108 | }; |
| 109 | |
| 110 | /* Low speed expansion connector */ |
| 111 | i2c1: i2c@9841000 { |
| 112 | label = "LS-I2C1"; |
| 113 | status = "okay"; |
| 114 | }; |
| 115 | |
| 116 | /* high speed expansion connector */ |
| 117 | i2c2: i2c@9842000 { |
| 118 | label = "HS-I2C2"; |
| 119 | pinctrl-0 = <&pinctrl_i2c2_alt2_1>; |
| 120 | status = "okay"; |
| 121 | }; |
| 122 | |
| 123 | /* high speed expansion connector */ |
| 124 | i2c3: i2c@9843000 { |
| 125 | label = "HS-I2C3"; |
| 126 | pinctrl-0 = <&pinctrl_i2c3_alt3_0>; |
| 127 | status = "okay"; |
| 128 | }; |
| 129 | |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 130 | mmc0: sdhci@9060000 { |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 131 | pinctrl-0 = <&pinctrl_sd0>; |
| 132 | bus-width = <4>; |
| 133 | status = "okay"; |
| 134 | }; |
| 135 | |
| 136 | /* high speed expansion connector */ |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 137 | mmc1: sdhci@9080000 { |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 138 | status = "okay"; |
| 139 | }; |
| 140 | |
| 141 | pwm0: pwm@9810000 { |
| 142 | status = "okay"; |
| 143 | }; |
| 144 | |
| 145 | pwm1: pwm@9510000 { |
| 146 | status = "okay"; |
| 147 | }; |
| 148 | |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 149 | usb2_picophy1: phy2@0 { |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 150 | status = "okay"; |
| 151 | }; |
| 152 | |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 153 | usb2_picophy2: phy3@0 { |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 154 | status = "okay"; |
| 155 | }; |
| 156 | |
| 157 | ohci0: usb@9a03c00 { |
| 158 | status = "okay"; |
| 159 | }; |
| 160 | |
| 161 | ehci0: usb@9a03e00 { |
| 162 | status = "okay"; |
| 163 | }; |
| 164 | |
| 165 | ohci1: usb@9a83c00 { |
| 166 | status = "okay"; |
| 167 | }; |
| 168 | |
| 169 | ehci1: usb@9a83e00 { |
| 170 | status = "okay"; |
| 171 | }; |
| 172 | |
| 173 | st_dwc3: dwc3@8f94000 { |
| 174 | status = "okay"; |
| 175 | }; |
| 176 | |
| 177 | ethernet0: dwmac@9630000 { |
| 178 | phy-mode = "rgmii"; |
| 179 | pinctrl-0 = <&pinctrl_rgmii1 &pinctrl_rgmii1_mdio_1>; |
| 180 | |
| 181 | snps,phy-bus-name = "stmmac"; |
| 182 | snps,phy-bus-id = <0>; |
| 183 | snps,phy-addr = <0>; |
| 184 | snps,reset-gpio = <&pio0 7 0>; |
| 185 | snps,reset-active-low; |
| 186 | snps,reset-delays-us = <0 10000 1000000>; |
| 187 | |
| 188 | status = "okay"; |
| 189 | }; |
| 190 | |
| 191 | sti_uni_player0: sti-uni-player@8d80000 { |
| 192 | status = "okay"; |
| 193 | }; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 194 | /* SSC11 to HDMI */ |
| 195 | hdmiddc: i2c@9541000 { |
| 196 | /* HDMI V1.3a supports Standard mode only */ |
| 197 | clock-frequency = <100000>; |
| 198 | st,i2c-min-scl-pulse-width-us = <0>; |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 199 | st,i2c-min-sda-pulse-width-us = <5>; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 200 | status = "okay"; |
| 201 | }; |
| 202 | |
Patrice Chotard | aad11b1 | 2019-07-23 15:33:30 +0200 | [diff] [blame] | 203 | miphy28lp_phy: miphy28lp@0 { |
| 204 | |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 205 | phy_port1: port@9b2a000 { |
| 206 | st,osc-force-ext; |
| 207 | }; |
| 208 | }; |
| 209 | |
| 210 | sata1: sata@9b28000 { |
| 211 | status = "okay"; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 212 | }; |
Patrice Chotard | cdf6b57 | 2017-02-21 13:37:11 +0100 | [diff] [blame] | 213 | }; |
| 214 | }; |