Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
0002 /*
0003  * Copyright (C) Linaro Ltd 2019 - All Rights Reserved
0004  * Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
0005  * Copyright (C) 2020 Marek Vasut <marex@denx.de>
0006  */
0007 
0008 #include "stm32mp15-pinctrl.dtsi"
0009 #include "stm32mp15xxac-pinctrl.dtsi"
0010 #include <dt-bindings/gpio/gpio.h>
0011 #include <dt-bindings/mfd/st,stpmic1.h>
0012 
0013 / {
0014         aliases {
0015                 spi0 = &qspi;
0016         };
0017 
0018         memory@c0000000 {
0019                 device_type = "memory";
0020                 reg = <0xc0000000 0x40000000>;
0021         };
0022 
0023         reserved-memory {
0024                 #address-cells = <1>;
0025                 #size-cells = <1>;
0026                 ranges;
0027 
0028                 mcuram2: mcuram2@10000000 {
0029                         compatible = "shared-dma-pool";
0030                         reg = <0x10000000 0x40000>;
0031                         no-map;
0032                 };
0033 
0034                 vdev0vring0: vdev0vring0@10040000 {
0035                         compatible = "shared-dma-pool";
0036                         reg = <0x10040000 0x1000>;
0037                         no-map;
0038                 };
0039 
0040                 vdev0vring1: vdev0vring1@10041000 {
0041                         compatible = "shared-dma-pool";
0042                         reg = <0x10041000 0x1000>;
0043                         no-map;
0044                 };
0045 
0046                 vdev0buffer: vdev0buffer@10042000 {
0047                         compatible = "shared-dma-pool";
0048                         reg = <0x10042000 0x4000>;
0049                         no-map;
0050                 };
0051 
0052                 mcuram: mcuram@30000000 {
0053                         compatible = "shared-dma-pool";
0054                         reg = <0x30000000 0x40000>;
0055                         no-map;
0056                 };
0057 
0058                 retram: retram@38000000 {
0059                         compatible = "shared-dma-pool";
0060                         reg = <0x38000000 0x10000>;
0061                         no-map;
0062                 };
0063         };
0064 };
0065 
0066 &crc1 {
0067         status = "okay";
0068 };
0069 
0070 &dts {
0071         status = "okay";
0072 };
0073 
0074 &i2c4 {
0075         pinctrl-names = "default";
0076         pinctrl-0 = <&i2c4_pins_a>;
0077         i2c-scl-rising-time-ns = <185>;
0078         i2c-scl-falling-time-ns = <20>;
0079         status = "okay";
0080         /delete-property/dmas;
0081         /delete-property/dma-names;
0082 
0083         pmic: stpmic@33 {
0084                 compatible = "st,stpmic1";
0085                 reg = <0x33>;
0086                 interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
0087                 interrupt-controller;
0088                 #interrupt-cells = <2>;
0089                 status = "okay";
0090 
0091                 regulators {
0092                         compatible = "st,stpmic1-regulators";
0093 
0094                         ldo1-supply = <&v3v3>;
0095                         ldo2-supply = <&v3v3>;
0096                         ldo3-supply = <&vdd_ddr>;
0097                         ldo5-supply = <&v3v3>;
0098                         ldo6-supply = <&v3v3>;
0099                         pwr_sw1-supply = <&bst_out>;
0100                         pwr_sw2-supply = <&bst_out>;
0101 
0102                         vddcore: buck1 {
0103                                 regulator-name = "vddcore";
0104                                 regulator-min-microvolt = <1200000>;
0105                                 regulator-max-microvolt = <1350000>;
0106                                 regulator-always-on;
0107                                 regulator-initial-mode = <0>;
0108                                 regulator-over-current-protection;
0109                         };
0110 
0111                         vdd_ddr: buck2 {
0112                                 regulator-name = "vdd_ddr";
0113                                 regulator-min-microvolt = <1350000>;
0114                                 regulator-max-microvolt = <1350000>;
0115                                 regulator-always-on;
0116                                 regulator-initial-mode = <0>;
0117                                 regulator-over-current-protection;
0118                         };
0119 
0120                         vdd: buck3 {
0121                                 regulator-name = "vdd";
0122                                 regulator-min-microvolt = <3300000>;
0123                                 regulator-max-microvolt = <3300000>;
0124                                 regulator-always-on;
0125                                 regulator-initial-mode = <0>;
0126                                 regulator-over-current-protection;
0127                         };
0128 
0129                         v3v3: buck4 {
0130                                 regulator-name = "v3v3";
0131                                 regulator-min-microvolt = <3300000>;
0132                                 regulator-max-microvolt = <3300000>;
0133                                 regulator-always-on;
0134                                 regulator-over-current-protection;
0135                                 regulator-initial-mode = <0>;
0136                         };
0137 
0138                         vdda: ldo1 {
0139                                 regulator-name = "vdda";
0140                                 regulator-min-microvolt = <2900000>;
0141                                 regulator-max-microvolt = <2900000>;
0142                                 interrupts = <IT_CURLIM_LDO1 0>;
0143                         };
0144 
0145                         v2v8: ldo2 {
0146                                 regulator-name = "v2v8";
0147                                 regulator-min-microvolt = <2800000>;
0148                                 regulator-max-microvolt = <2800000>;
0149                                 interrupts = <IT_CURLIM_LDO2 0>;
0150                         };
0151 
0152                         vtt_ddr: ldo3 {
0153                                 regulator-name = "vtt_ddr";
0154                                 regulator-min-microvolt = <500000>;
0155                                 regulator-max-microvolt = <750000>;
0156                                 regulator-always-on;
0157                                 regulator-over-current-protection;
0158                         };
0159 
0160                         vdd_usb: ldo4 {
0161                                 regulator-name = "vdd_usb";
0162                                 interrupts = <IT_CURLIM_LDO4 0>;
0163                         };
0164 
0165                         vdd_sd: ldo5 {
0166                                 regulator-name = "vdd_sd";
0167                                 regulator-min-microvolt = <2900000>;
0168                                 regulator-max-microvolt = <2900000>;
0169                                 interrupts = <IT_CURLIM_LDO5 0>;
0170                                 regulator-boot-on;
0171                         };
0172 
0173                         v1v8: ldo6 {
0174                                 regulator-name = "v1v8";
0175                                 regulator-min-microvolt = <1800000>;
0176                                 regulator-max-microvolt = <1800000>;
0177                                 interrupts = <IT_CURLIM_LDO6 0>;
0178                                 regulator-enable-ramp-delay = <300000>;
0179                         };
0180 
0181                         vref_ddr: vref_ddr {
0182                                 regulator-name = "vref_ddr";
0183                                 regulator-always-on;
0184                         };
0185 
0186                         bst_out: boost {
0187                                 regulator-name = "bst_out";
0188                                 interrupts = <IT_OCP_BOOST 0>;
0189                         };
0190 
0191                         vbus_otg: pwr_sw1 {
0192                                 regulator-name = "vbus_otg";
0193                                 interrupts = <IT_OCP_OTG 0>;
0194                                 regulator-active-discharge = <1>;
0195                         };
0196 
0197                         vbus_sw: pwr_sw2 {
0198                                 regulator-name = "vbus_sw";
0199                                 interrupts = <IT_OCP_SWOUT 0>;
0200                                 regulator-active-discharge = <1>;
0201                         };
0202                 };
0203 
0204                 onkey {
0205                         compatible = "st,stpmic1-onkey";
0206                         interrupts = <IT_PONKEY_F 0>, <IT_PONKEY_R 1>;
0207                         interrupt-names = "onkey-falling", "onkey-rising";
0208                         status = "okay";
0209                 };
0210 
0211                 watchdog {
0212                         compatible = "st,stpmic1-wdt";
0213                         status = "disabled";
0214                 };
0215         };
0216 
0217         eeprom@53 {
0218                 compatible = "atmel,24c02";
0219                 reg = <0x53>;
0220                 pagesize = <16>;
0221         };
0222 };
0223 
0224 &ipcc {
0225         status = "okay";
0226 };
0227 
0228 &iwdg2 {
0229         timeout-sec = <32>;
0230         status = "okay";
0231 };
0232 
0233 &m4_rproc {
0234         memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
0235                         <&vdev0vring1>, <&vdev0buffer>;
0236         mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
0237         mbox-names = "vq0", "vq1", "shutdown";
0238         interrupt-parent = <&exti>;
0239         interrupts = <68 1>;
0240         status = "okay";
0241 };
0242 
0243 &pwr_regulators {
0244         vdd-supply = <&vdd>;
0245         vdd_3v3_usbfs-supply = <&vdd_usb>;
0246 };
0247 
0248 &qspi {
0249         pinctrl-names = "default", "sleep";
0250         pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>;
0251         pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a>;
0252         reg = <0x58003000 0x1000>, <0x70000000 0x200000>;
0253         #address-cells = <1>;
0254         #size-cells = <0>;
0255         status = "okay";
0256 
0257         flash0: flash@0 {
0258                 compatible = "jedec,spi-nor";
0259                 reg = <0>;
0260                 spi-rx-bus-width = <4>;
0261                 spi-max-frequency = <50000000>;
0262                 #address-cells = <1>;
0263                 #size-cells = <1>;
0264         };
0265 };
0266 
0267 &rng1 {
0268         status = "okay";
0269 };
0270 
0271 &rtc {
0272         status = "okay";
0273 };