1 // SPDX-License-Identifier: GPL-2.0-or-later O 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 /* 2 /* 3 * Copyright 2021 3 * Copyright 2021 4 * Lukasz Majewski, DENX Software Engineering, 4 * Lukasz Majewski, DENX Software Engineering, lukma@denx.de 5 */ 5 */ 6 6 7 /dts-v1/; 7 /dts-v1/; 8 #include "imx28.dtsi" 8 #include "imx28.dtsi" 9 9 10 / { 10 / { 11 aliases { 11 aliases { 12 spi2 = &ssp3; 12 spi2 = &ssp3; 13 }; 13 }; 14 14 15 chosen { 15 chosen { 16 bootargs = "root=/dev/mmcblk0p 16 bootargs = "root=/dev/mmcblk0p2 rootfstype=ext4 ro rootwait console=ttyAMA0,115200 panic=1"; 17 }; 17 }; 18 18 19 memory@40000000 { 19 memory@40000000 { 20 reg = <0x40000000 0x08000000>; 20 reg = <0x40000000 0x08000000>; 21 device_type = "memory"; 21 device_type = "memory"; 22 }; 22 }; 23 23 24 reg_3v3: regulator-reg-3v3 { 24 reg_3v3: regulator-reg-3v3 { 25 compatible = "regulator-fixed" 25 compatible = "regulator-fixed"; 26 regulator-name = "3V3"; 26 regulator-name = "3V3"; 27 regulator-min-microvolt = <330 27 regulator-min-microvolt = <3300000>; 28 regulator-max-microvolt = <330 28 regulator-max-microvolt = <3300000>; 29 }; 29 }; 30 30 31 reg_usb_5v: regulator-reg-usb-5v { 31 reg_usb_5v: regulator-reg-usb-5v { 32 compatible = "regulator-fixed" 32 compatible = "regulator-fixed"; 33 regulator-name = "usb_vbus"; 33 regulator-name = "usb_vbus"; 34 regulator-min-microvolt = <500 34 regulator-min-microvolt = <5000000>; 35 regulator-max-microvolt = <500 35 regulator-max-microvolt = <5000000>; 36 }; 36 }; 37 37 38 reg_fec_3v3: regulator-reg-fec-3v3 { 38 reg_fec_3v3: regulator-reg-fec-3v3 { 39 compatible = "regulator-fixed" 39 compatible = "regulator-fixed"; 40 regulator-name = "fec-phy"; 40 regulator-name = "fec-phy"; 41 regulator-min-microvolt = <330 41 regulator-min-microvolt = <3300000>; 42 regulator-max-microvolt = <330 42 regulator-max-microvolt = <3300000>; 43 }; 43 }; 44 }; 44 }; 45 45 46 &duart { 46 &duart { 47 pinctrl-names = "default"; 47 pinctrl-names = "default"; 48 pinctrl-0 = <&duart_pins_a>; 48 pinctrl-0 = <&duart_pins_a>; 49 status = "okay"; 49 status = "okay"; 50 }; 50 }; 51 51 52 &i2c0 { 52 &i2c0 { 53 pinctrl-names = "default"; 53 pinctrl-names = "default"; 54 pinctrl-0 = <&i2c0_pins_a>; 54 pinctrl-0 = <&i2c0_pins_a>; 55 status = "okay"; 55 status = "okay"; 56 }; 56 }; 57 57 58 &spi3_pins_a { 58 &spi3_pins_a { 59 fsl,pinmux-ids = < 59 fsl,pinmux-ids = < 60 MX28_PAD_AUART2_RX__SSP3_D4 60 MX28_PAD_AUART2_RX__SSP3_D4 61 MX28_PAD_AUART2_TX__SSP3_D5 61 MX28_PAD_AUART2_TX__SSP3_D5 62 MX28_PAD_SSP3_SCK__SSP3_SCK 62 MX28_PAD_SSP3_SCK__SSP3_SCK 63 MX28_PAD_SSP3_MOSI__SSP3_CMD 63 MX28_PAD_SSP3_MOSI__SSP3_CMD 64 MX28_PAD_SSP3_MISO__SSP3_D0 64 MX28_PAD_SSP3_MISO__SSP3_D0 65 MX28_PAD_SSP3_SS0__SSP3_D3 65 MX28_PAD_SSP3_SS0__SSP3_D3 66 MX28_PAD_AUART2_TX__GPIO_3_9 66 MX28_PAD_AUART2_TX__GPIO_3_9 67 >; 67 >; 68 }; 68 }; 69 69 70 &ssp0 { 70 &ssp0 { 71 compatible = "fsl,imx28-mmc"; 71 compatible = "fsl,imx28-mmc"; 72 pinctrl-names = "default"; 72 pinctrl-names = "default"; 73 pinctrl-0 = <&mmc0_8bit_pins_a>; 73 pinctrl-0 = <&mmc0_8bit_pins_a>; 74 bus-width = <8>; 74 bus-width = <8>; 75 vmmc-supply = <®_3v3>; 75 vmmc-supply = <®_3v3>; 76 non-removable; 76 non-removable; 77 status = "okay"; 77 status = "okay"; 78 }; 78 }; 79 79 80 &ssp2 { 80 &ssp2 { 81 compatible = "fsl,imx28-spi"; 81 compatible = "fsl,imx28-spi"; 82 pinctrl-names = "default"; 82 pinctrl-names = "default"; 83 pinctrl-0 = <&spi2_pins_a>; 83 pinctrl-0 = <&spi2_pins_a>; 84 status = "okay"; 84 status = "okay"; 85 }; 85 }; 86 86 87 &ssp3 { 87 &ssp3 { 88 compatible = "fsl,imx28-spi"; 88 compatible = "fsl,imx28-spi"; 89 pinctrl-names = "default"; 89 pinctrl-names = "default"; 90 pinctrl-0 = <&spi3_pins_a>; 90 pinctrl-0 = <&spi3_pins_a>; 91 status = "okay"; 91 status = "okay"; 92 92 93 flash@0 { 93 flash@0 { 94 compatible = "jedec,spi-nor"; 94 compatible = "jedec,spi-nor"; 95 spi-max-frequency = <20000000> 95 spi-max-frequency = <20000000>; 96 reg = <0>; 96 reg = <0>; 97 97 98 partitions { 98 partitions { 99 compatible = "fixed-pa 99 compatible = "fixed-partitions"; 100 #address-cells = <1>; 100 #address-cells = <1>; 101 #size-cells = <1>; 101 #size-cells = <1>; 102 102 103 partition@0 { 103 partition@0 { 104 label = "u-boo 104 label = "u-boot"; 105 reg = <0 0x800 105 reg = <0 0x80000>; 106 read-only; 106 read-only; 107 }; 107 }; 108 108 109 partition@80000 { 109 partition@80000 { 110 label = "env0" 110 label = "env0"; 111 reg = <0x80000 111 reg = <0x80000 0x10000>; 112 }; 112 }; 113 113 114 partition@90000 { 114 partition@90000 { 115 label = "env1" 115 label = "env1"; 116 reg = <0x90000 116 reg = <0x90000 0x10000>; 117 }; 117 }; 118 118 119 partition@a0000 { 119 partition@a0000 { 120 label = "rescu 120 label = "rescue"; 121 reg = <0xa0000 121 reg = <0xa0000 0xf40000>; 122 }; 122 }; 123 123 124 partition@fe0000 { 124 partition@fe0000 { 125 /* 1st sector 125 /* 1st sector for SPL boot img source data */ 126 label = "spl-b 126 label = "spl-boot-data1"; 127 reg = <0xfe000 127 reg = <0xfe0000 0x10000>; 128 }; 128 }; 129 129 130 partition@ff0000 { 130 partition@ff0000 { 131 /* 2nd sector 131 /* 2nd sector for SPL boot img source data */ 132 label = "spl-b 132 label = "spl-boot-data2"; 133 reg = <0xff000 133 reg = <0xff0000 0x10000>; 134 }; 134 }; 135 }; 135 }; 136 }; 136 }; 137 }; 137 }; 138 138 139 &usb0 { 139 &usb0 { 140 vbus-supply = <®_usb_5v>; 140 vbus-supply = <®_usb_5v>; 141 pinctrl-names = "default"; 141 pinctrl-names = "default"; 142 pinctrl-0 = <&usb0_pins_b>, <&usb0_id_ 142 pinctrl-0 = <&usb0_pins_b>, <&usb0_id_pins_a>; 143 dr_mode = "host"; 143 dr_mode = "host"; 144 status = "okay"; 144 status = "okay"; 145 }; 145 }; 146 146 147 &usbphy0 { 147 &usbphy0 { 148 status = "okay"; 148 status = "okay"; 149 }; 149 }; 150 150 151 &usb1 { 151 &usb1 { 152 vbus-supply = <®_usb_5v>; 152 vbus-supply = <®_usb_5v>; 153 pinctrl-names = "default"; 153 pinctrl-names = "default"; 154 pinctrl-0 = <&usb1_pins_b>; 154 pinctrl-0 = <&usb1_pins_b>; 155 dr_mode = "host"; 155 dr_mode = "host"; 156 status = "okay"; 156 status = "okay"; 157 }; 157 }; 158 158 159 &usbphy1 { 159 &usbphy1 { 160 status = "okay"; 160 status = "okay"; 161 }; 161 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.