Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
0002 /*
0003  * Copyright 2018-2022 TQ-Systems GmbH
0004  * Author: Markus Niebel <Markus.Niebel@tq-group.com>
0005  */
0006 
0007 /*
0008  * Common for
0009  * - TQMa6ULx
0010  * - TQMa6ULxL
0011  * - TQMa6ULLx
0012  * - TQMa6ULLxL
0013  */
0014 
0015 / {
0016         memory@80000000 {
0017                 device_type = "memory";
0018                 reg = <0x80000000 0x10000000>;
0019         };
0020 };
0021 
0022 &i2c4 {
0023         clock-frequency = <100000>;
0024         pinctrl-names = "default", "gpio";
0025         pinctrl-0 = <&pinctrl_i2c4>;
0026         pinctrl-1 = <&pinctrl_i2c4_recovery>;
0027         scl-gpios = <&gpio1 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0028         sda-gpios = <&gpio1 21 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0029         status = "okay";
0030 
0031         pfuze3000: pmic@8 {
0032                 compatible = "fsl,pfuze3000";
0033                 reg = <0x08>;
0034 
0035                 regulators {
0036                         reg_sw1a: sw1a {
0037                                 regulator-min-microvolt = <700000>;
0038                                 regulator-max-microvolt = <3300000>;
0039                                 regulator-boot-on;
0040                                 regulator-ramp-delay = <6250>;
0041                                 /* not used */
0042                         };
0043 
0044                         reg_sw1b_core: sw1b {
0045                                 regulator-min-microvolt = <700000>;
0046                                 regulator-max-microvolt = <1475000>;
0047                                 regulator-boot-on;
0048                                 regulator-always-on;
0049                                 regulator-ramp-delay = <6250>;
0050                         };
0051 
0052                         reg_sw2: sw2 {
0053                                 regulator-min-microvolt = <2500000>;
0054                                 regulator-max-microvolt = <3300000>;
0055                         };
0056 
0057                         reg_sw3_ddr: sw3 {
0058                                 regulator-min-microvolt = <900000>;
0059                                 regulator-max-microvolt = <1650000>;
0060                                 regulator-boot-on;
0061                                 regulator-always-on;
0062                         };
0063 
0064                         reg_swbst: swbst {
0065                                 regulator-min-microvolt = <5000000>;
0066                                 regulator-max-microvolt = <5150000>;
0067                                 /* not used */
0068                         };
0069 
0070                         reg_snvs_3v0: vsnvs {
0071                                 regulator-min-microvolt = <1000000>;
0072                                 regulator-max-microvolt = <3000000>;
0073                                 regulator-boot-on;
0074                                 regulator-always-on;
0075                         };
0076 
0077                         reg_vrefddr: vrefddr {
0078                                 regulator-boot-on;
0079                                 regulator-always-on;
0080                         };
0081 
0082                         reg_vccsd: vccsd {
0083                                 regulator-min-microvolt = <2850000>;
0084                                 regulator-max-microvolt = <3300000>;
0085                         };
0086 
0087                         reg_v33_3v3: v33 {
0088                                 regulator-min-microvolt = <2850000>;
0089                                 regulator-max-microvolt = <3300000>;
0090                                 regulator-always-on;
0091                         };
0092 
0093                         reg_vldo1_3v3: vldo1 {
0094                                 regulator-min-microvolt = <1800000>;
0095                                 regulator-max-microvolt = <3300000>;
0096                                 /* not used */
0097                         };
0098 
0099                         reg_vldo2: vldo2 {
0100                                 regulator-min-microvolt = <800000>;
0101                                 regulator-max-microvolt = <1550000>;
0102                                 /* not used */
0103                         };
0104 
0105                         reg_vldo3: vldo3 {
0106                                 regulator-min-microvolt = <1800000>;
0107                                 regulator-max-microvolt = <3300000>;
0108                                 /* not used */
0109                         };
0110 
0111                         reg_vldo4: vldo4 {
0112                                 regulator-min-microvolt = <1800000>;
0113                                 regulator-max-microvolt = <1800000>;
0114                                 regulator-always-on;
0115                         };
0116                 };
0117         };
0118 
0119         jc42_1a: eeprom-temperature-sensor@1a {
0120                 compatible = "nxp,se97", "jedec,jc-42.4-temp";
0121                 reg = <0x1a>;
0122         };
0123 
0124         m24c64_50: eeprom@50 {
0125                 compatible = "atmel,24c64";
0126                 reg = <0x50>;
0127                 pagesize = <32>;
0128         };
0129 
0130         m24c02_52: eeprom@52 {
0131                 compatible = "nxp,se97b", "atmel,24c02";
0132                 reg = <0x52>;
0133                 pagesize = <16>;
0134                 read-only;
0135         };
0136 
0137         rtc0: rtc@68 {
0138                 compatible = "dallas,ds1339";
0139                 reg = <0x68>;
0140         };
0141 };
0142 
0143 &gpio4 {
0144         pinctrl-names = "default";
0145         pinctrl-0 = <&pinctrl_pmic>;
0146 
0147         /*
0148          * PMIC & temperature sensor IRQ
0149          * Both do currently not use IRQ
0150          * potentially dangerous if used on baseboard
0151          */
0152         pmic-int-hog {
0153                 gpio-hog;
0154                 gpios = <24 0>;
0155                 input;
0156         };
0157 };
0158 
0159 &qspi {
0160         pinctrl-names = "default";
0161         pinctrl-0 = <&pinctrl_qspi>;
0162         status = "okay";
0163 
0164         flash0: flash@0 {
0165                 #address-cells = <1>;
0166                 #size-cells = <1>;
0167                 compatible = "jedec,spi-nor";
0168                 spi-max-frequency = <33000000>;
0169                 spi-rx-bus-width = <4>;
0170                 spi-tx-bus-width = <1>;
0171                 reg = <0>;
0172         };
0173 };
0174 
0175 /* eMMC */
0176 &usdhc2 {
0177         pinctrl-names = "default", "state_100mhz" , "state_200mhz";
0178         pinctrl-0 = <&pinctrl_usdhc2>;
0179         pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
0180         pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
0181 
0182         bus-width = <8>;
0183         disable-wp;
0184         non-removable;
0185         no-sdio;
0186         no-sd;
0187         status = "okay";
0188 };
0189 
0190 &iomuxc {
0191         pinctrl_i2c4: i2c4grp {
0192                 fsl,pins = <
0193                         MX6UL_PAD_UART2_TX_DATA__I2C4_SCL       0x4001b8b0
0194                         MX6UL_PAD_UART2_RX_DATA__I2C4_SDA       0x4001b8b0
0195                 >;
0196         };
0197 
0198         pinctrl_i2c4_recovery: i2c4recoverygrp {
0199                 fsl,pins = <
0200                         MX6UL_PAD_UART2_TX_DATA__GPIO1_IO20     0x4001b8b0
0201                         MX6UL_PAD_UART2_RX_DATA__GPIO1_IO21     0x4001b8b0
0202                 >;
0203         };
0204 
0205         pinctrl_pmic: pmic {
0206                 fsl,pins = <
0207                         /* PMIC irq */
0208                         MX6UL_PAD_CSI_DATA03__GPIO4_IO24        0x1b099
0209                 >;
0210         };
0211 };