Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 | /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) */ /* * Copyright (C) 2020 STMicroelectronics - All Rights Reserved * Copyright (C) 2020 Ahmad Fatoum, Pengutronix */ /dts-v1/; #include "stm32mp157.dtsi" #include "stm32mp15xx-osd32.dtsi" #include "stm32mp15xxac-pinctrl.dtsi" #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/pwm/pwm.h> / { model = "Linux Automation MC-1 board"; compatible = "lxa,stm32mp157c-mc1", "oct,stm32mp15xx-osd32", "st,stm32mp157"; aliases { ethernet0 = ðernet0; mmc0 = &sdmmc1; mmc1 = &sdmmc2; serial0 = &uart4; }; backlight: backlight { compatible = "pwm-backlight"; pwms = <&backlight_pwm 1 100000 PWM_POLARITY_INVERTED>; brightness-levels = <0 31 63 95 127 159 191 223 255>; default-brightness-level = <7>; power-supply = <®_5v2>; /* 3V3_BACKLIGHT */ }; chosen { stdout-path = &uart4; }; led-controller-0 { compatible = "gpio-leds"; led-0 { label = "mc1:green:act"; gpios = <&gpioa 13 GPIO_ACTIVE_LOW>; linux,default-trigger = "heartbeat"; }; }; led-controller-1 { compatible = "pwm-leds"; /* led-1 to led-3 are part of a single RGB led */ led-1 { label = "mc1:red:rgb"; pwms = <&leds_pwm 1 1000000 0>; max-brightness = <255>; active-low; }; led-2 { label = "mc1:green:rgb"; pwms = <&leds_pwm 2 1000000 0>; max-brightness = <255>; active-low; }; led-3 { label = "mc1:blue:rgb"; pwms = <&leds_pwm 3 1000000 0>; max-brightness = <255>; active-low; }; }; panel: panel { compatible = "edt,etm0700g0edh6", "simple-panel"; backlight = <&backlight>; enable-gpios = <&gpiod 4 GPIO_ACTIVE_HIGH>; power-supply = <®_3v3>; port { panel_input: endpoint { remote-endpoint = <<dc_ep0_out>; }; }; }; reg_3v3: regulator_3v3 { compatible = "regulator-fixed"; regulator-name = "3V3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; vin-supply = <&v3v3>; }; /* supplied by either debug board or PoE */ reg_5v2: regulator_5v2 { compatible = "regulator-fixed"; regulator-name = "5V2"; regulator-min-microvolt = <5200000>; regulator-max-microvolt = <5200000>; regulator-always-on; }; }; ðernet0 { pinctrl-names = "default", "sleep"; pinctrl-0 = <ðernet0_rgmii_pins_b>; pinctrl-1 = <ðernet0_rgmii_sleep_pins_b>; phy-mode = "rgmii-id"; phy-handle = <ðphy>; status = "okay"; mdio { compatible = "snps,dwmac-mdio"; #address-cells = <1>; #size-cells = <0>; ethphy: ethernet-phy@3 { /* KSZ9031RN */ reg = <3>; reset-gpios = <&gpiog 0 GPIO_ACTIVE_LOW>; /* ETH_RST# */ interrupt-parent = <&gpioa>; interrupts = <6 IRQ_TYPE_EDGE_FALLING>; /* ETH_MDINT# */ reset-assert-us = <10000>; reset-deassert-us = <300>; micrel,force-master; }; }; }; &gpioz { gpio-line-names = "HWID0", "HWID1", "HWID2", "HWID3", "", "", "HWID4", "HWID5"; }; &i2c5 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&i2c5_pins_b>; pinctrl-1 = <&i2c5_sleep_pins_b>; clock-frequency = <400000>; status = "okay"; touchscreen@38 { compatible = "edt,edt-ft5x06"; interrupt-parent = <&gpiod>; interrupts = <11 IRQ_TYPE_EDGE_FALLING>; /* TOUCH_INT# */ vcc-supply = <®_3v3>; reg = <0x38>; reset-gpios = <&gpiof 8 GPIO_ACTIVE_LOW>; /* TOUCH_RESET# */ touchscreen-size-x = <1792>; touchscreen-size-y = <1024>; wakeup-source; }; }; <dc { pinctrl-names = "default", "sleep"; pinctrl-0 = <<dc_pins_c>; pinctrl-1 = <<dc_sleep_pins_c>; status = "okay"; port { ltdc_ep0_out: endpoint@0 { reg = <0>; remote-endpoint = <&panel_input>; }; }; }; &pmic { regulators { buck4-supply = <®_5v2>; /* VIN */ ldo2-supply = <®_5v2>; /* PMIC_LDO25IN */ ldo5-supply = <®_5v2>; /* PMIC_LDO25IN */ boost-supply = <®_5v2>; /* PMIC_BSTIN */ pwr_sw2-supply = <&bst_out>; /* PMIC_SWIN */ }; }; &sdmmc1 { pinctrl-names = "default", "opendrain", "sleep"; pinctrl-0 = <&sdmmc1_b4_pins_a>; pinctrl-1 = <&sdmmc1_b4_od_pins_a>; pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; bus-width = <4>; cd-gpios = <&gpioh 3 GPIO_ACTIVE_LOW>; disable-wp; no-1-8-v; st,neg-edge; vmmc-supply = <®_3v3>; status = "okay"; }; &sdmmc1_b4_pins_a { /* * board lacks external pull-ups on SDMMC lines. Class 10 SD refuses to * work, thus enable internal pull-ups. */ pins1 { /delete-property/ bias-disable; bias-pull-up; }; pins2 { /delete-property/ bias-disable; bias-pull-up; }; }; &sdmmc2 { pinctrl-names = "default", "opendrain", "sleep"; pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_b>; pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_b>; pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_b>; bus-width = <8>; mmc-ddr-3_3v; no-1-8-v; no-sd; no-sdio; non-removable; st,neg-edge; vmmc-supply = <®_3v3>; status = "okay"; }; &timers3 { status = "okay"; backlight_pwm: pwm { pinctrl-names = "default", "sleep"; pinctrl-0 = <&pwm3_pins_b>; pinctrl-1 = <&pwm3_sleep_pins_b>; status = "okay"; }; }; &timers5 { status = "okay"; leds_pwm: pwm { pinctrl-names = "default", "sleep"; pinctrl-0 = <&pwm5_pins_b>; pinctrl-1 = <&pwm5_sleep_pins_b>; status = "okay"; }; }; &uart4 { pinctrl-names = "default"; pinctrl-0 = <&uart4_pins_a>; /delete-property/dmas; /delete-property/dma-names; status = "okay"; }; |