BSP Rev.0106 add second QSPI NOR chip
In BSP Rev.0106 the second QSPI NOR chip has been removed from the default BSP configuration.
If a second device is placed on the TQMLS102xA module please apply the following changes in the
devicetree source file ls1021a-tqmls1021a.dtsi.
&qspi {
+ fsl,qspi-has-second-chip;
status = "okay";
qflash0: mt25ql512@0 {
@@ -139,12 +138,4 @@
};
};
};
+ qflash1: mt25ql512@1 {
+ compatible = "micron,n25q512ax3", "cfi-flash";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ spi-max-frequency = <20000000>;
+ reg = <1>;
+ };
};
Change RCW configuration
1. RCW in Taschenrechner kopieren
Use BSP Rev.0100 on MBLS102xA Rev.01xx
BSP Rev.0100 was designed to be run on Rev.0200 of the MBLS012xA.
On Rev.0200 of the MBLS102xA a different package type of the ethernet PHY is used than on Rev.01xx.
This results in different PHY addresses:
Connector | Controller | MBLS102xA Rev.01xx | MBLS102xA Rev.02xx |
X12 | EC1 | 0x0D | 0x0C |
X13 | EC2 | 0x13 | 0x03 |
X11 | EC3 | 0x05 | 0x04 |
In order to use BSP Rev.0100 on MBLS102xA Rev.01xx the following patches must not be applied:
To “disable” these patches, simply comment them out in the corresponding series file:
U-Boot:
configs/platform-tq-mbls102xa/patches/u-boot-2016.05/series
0001-tools-add-libdl-to-makefile-for-libssl-libcrypto.patch
0002-mtd-fsl_qspi-implement-dual-die-mode.patch
0003-fsl_qspi-add-flag-status-register-for-micron.patch
0004-spi-fsl_qspi-Add-1-1-4-page-program-mode.patch
0005-spi-fsl_qspi-Add-1-1-4-fast-read-mode.patch
0006-fsl_qspi-Enable-1-1-4-mode.patch
0007-i2c-imx-recover-bus-stall-on-ls1021a.patch
0008-board-tqc-add-common-folder.patch
0009-boards-add-tqmls102x.patch
#0010-tqmls102xa-set-phy-addresses-for-mbls1021a.0200.patch
#0011-phy_ti-adapt-hard-coded-skew-to-custom-values.patch
0012-tqmls102xa-tsec-set-interface-types.patch
0013-cmd-mmc-fix-argument-parsing-for-setdsr.patch
0014-tqmls102xa-add-eeprom-support.patch
0015-tqmls102xa-use-quad-mode-in-sd-boot-only.patch
0016-tqmls102xa-rcw-sdhc-cd-and-wp-as-gpio-8-data-lines.patch
0017-tqmls102xa-check-if-phy-found.patch
0018-Makefile-release-TQMLS102xA-BSP-0100.patch
Linux:
configs/platform-tq-mbls102xa/patches/linux-4.4/series
0001-v3-1-3-mtd-spi-nor-fsl-quadspi-add-big-endian-suppor.patch
0002-v3-2-3-mtd-spi-nor-fsl-quadspi-add-support-for-ls102.patch
0003-ARM-dts-ls1021a-add-qspi-node.patch
0004-arm-dts-ls1021a-add-qspi-memory-address-and-correct-.patch
0005-qspi-ls102xa-Adjust-the-size-of-QSPI-AMBA-Bus-memory.patch
0006-linux-next-v2-01-14-mtd-spi-nor-remove-micron_quad_e.patch
0007-linux-next-v2-02-14-mtd-spi-nor-properly-detect-the-.patch
0008-linux-next-v2-03-14-mtd-spi-nor-select-op-codes-and-.patch
0009-linux-next-v2-04-14-mtd-spi-nor-fix-support-of-Macro.patch
0010-linux-next-v2-05-14-mtd-spi-nor-fix-support-of-Winbo.patch
0011-linux-next-v2-06-14-mtd-spi-nor-fix-support-of-Micro.patch
0012-linux-next-v2-07-14-mtd-spi-nor-fix-support-of-Spans.patch
0013-linux-next-v2-08-14-mtd-spi-nor-configure-the-number.patch
0014-linux-next-v2-09-14-mtd-spi-nor-configure-the-number.patch
0015-linux-next-v2-10-14-mtd-spi-nor-configure-the-number.patch
0016-linux-next-v2-11-14-mtd-spi-nor-configure-the-number.patch
0017-linux-next-v2-12-14-mtd-m25p80-add-support-of-dual-a.patch
0018-mtd-fsl-qspi-add-support-for-RDFSR.patch
0019-mtd-fsl-qspi-enable-r-w-micron-extended-config-regis.patch
0020-mtd-fsl-qspi-replace-spansion-4b-mode-with-vcr-acces.patch
0021-mtd-spi-nor-do-not-use-FSR-on-n25q512ax3.patch
0022-mtd-fsl-qspi-accept-single-and-multi-io-RDSR-command.patch
0023-can-flexcan-Add-ls1021a-flexcan-device-entry.patch
0024-can-flexcan-Remodel-FlexCAN-register-r-w-APIs-for-BE.patch
0025-can-flexcan-Add-support-for-non-RX-FIFO-mode.patch
0026-arm-dts-ls1021a-Add-nodes-for-flexcan-devices-presen.patch
0027-arm-dt-add-tqmls1021a.patch
0028-ARM-DT-ls1021a-tqmls102xa-add-rtc.patch
0029-ARM-DT-ls1021a-tqmls102xa-add-eeprom.patch
0030-ARM-DT-ls1021a-tqmls102xa-add-temperature-sensor.patch
0031-ARM-DT-ls1021a-tqmls1021a-mbls102x-add-led-driver.patch
0032-ARM-DT-ls1021a-tqmls1021a-mbls102x-add-port-expander.patch
0033-ARM-DT-ls1021a-tqmls1021a-mbls102x-add-port-expander.patch
0034-ARM-DT-ls1021a-tqmls1021a-mbls102x-stmpe-mfd-device.patch
0035-ARM-DT-ls1021a-tqmls1021a-add-devices-without-driver.patch
0036-ARM-DT-ls1021a-tqmls102xa-mbls102x-add-mdio-bus-and-.patch
0037-ARM-DT-ls1021a-tqmls1021a-fix-qspi-flash.patch
0038-ARM-DT-tqmls102x-add-mac-address-property-to-eTSECn.patch
0039-ARM-DT-ls1021x-mbla102x-add-rgmii-phy-delay.patch
0040-phy-dp83867-add-support-for-led-config.patch
0041-ARM-DT-ls102xa-mbls102x-add-rgmii-phy-led-configurat.patch
0042-ARM-dts-ls1021a-add-pwms-3-6-and-7.patch
0043-ARM-dts-ls1021a-add-dcu0-node.patch
0044-ARM-dts-ls1021a-add-uqe-node.patch
0045-ARM-dts-ls1021a-add-missing-aliases.patch
0046-ARM-dts-ls1021a-add-gpio-controller-nodes.patch
0047-ARM-dts-ls1021a-add-rcpm-node.patch
0048-tqmls102xa-rework-definitions.patch
0049-dt-tqmls102xa-add-mmc-on-esdhc.patch
0050-leds-Add-DT-support-for-leds-pca9532.patch
0051-dt-mbls102xa-parallel-display-support.patch
0052-dt-tqmls102xa-sgmii-support.patch
0053-dt-tqmls102xa-fix-qspi-compatible.patch
0054-net-phy-national-add-DP83867.patch
0055-dt-mbls102xa-add-phy-delay.patch
0056-dt-mbls102xa-add-backlight-regulator-and-touch.patch
0057-dt-mbls102xa-fix-dcu-to-using-drm-panel.patch
0058-phy-dp83867-led-cfg-property-names.patch
0059-ARM-dts-mbls102xa-fix-dp83867-properties.patch
0060-phy-dp83867-change-reset-depth.patch
0061-gianfar-enable-little-endian-descriptor-mode.patch
0062-dts-ls1021a-assign-little-endian-buffer-descriptors-.patch
0063-drivers-gpio-Port-gpio-driver-to-ls1021a-qds-platfor.patch
0064-drivers-gpio-Kconfig-enable-GPIO-configs-for-LS1021A.patch
0065-ahci-qoriq-Adjust-the-default-register-values-on-ls1.patch
0066-ahci-qoriq-Update-the-default-Rx-watermark-value.patch
0067-ahci-qoriq-Adjust-the-default-register-values-on-ls1.patch
0068-ARM-dts-ls1021a-Add-DCU-dts-node.patch
0069-ARM-dts-ls1021a-add-sata-node-to-dts.patch
0070-ARM-dts-ls1021a-add-PCIe-dts-node.patch
0071-ARM-dts-mbls102xa-add-sata-node-to-dts.patch
0072-drm-fsl-dcu-Fix-no-fb-check-bug.patch
0073-1-7-drm-fsl-dcu-specify-volatile-registers.patch
0074-2-7-drm-fsl-dcu-remove-regmap-return-value-checks.patch
0075-3-7-drm-fsl-dcu-avoid-memory-leak-on-errors.patch
0076-4-7-drm-fsl-dcu-handle-initialization-errors-properl.patch
0077-5-7-drm-fsl-dcu-mask-all-interrupts-on-initializatio.patch
0078-6-7-drm-fsl-dcu-fix-alpha-blending.patch
0079-7-7-drm-fsl-dcu-use-mode-flags-for-hsync-vsync-pixel.patch
0080-drm-fsl-dcu-fix-register-initialization.patch
0081-drm-fsl-dcu-enable-pixclk-in-scfg-register.patch
0082-mbls102xa-drm-fsl-dcu-request-32-preferred_bpp.patch
0083-drivers-usb-host-fsl-Set-DMA_MASK-of-usb-platform-de.patch
0084-drivers-usb-host-fsl-Port-USB-EHCI-host-driver-for-L.patch
0085-drivers-usb-Port-ehci_fsl-driver-to-ls1021a-platform.patch
0086-ehci-hcd-Cleanup-memory-resources-when-ehci_halt-fai.patch
0087-ehci-hcd-Disable-memory-write-invalidate-when-the-dr.patch
0088-USB-host-use-to_platform_device.patch
0089-usb-fsl-drop-USB_FSL_MPH_DR_OF-Kconfig-symbol.patch
0090-ARM-imx-revert-temporarily-remove-CONFIG_SOC_FSL-fro.patch
0091-drivers-usb-fsl-Set-USB_EN-bit-to-select-ULPI-phy.patch
0092-gpio-change-member-.dev-to-.parent.patch
0093-gpio-pca953x-add-onsemi-pca9654-id.patch
0094-gpio-pca935x-fix-of-only-probed-devices.patch
0095-gpio-pca953x-make-inclusion-of-linux-of_platform.h-u.patch
0096-gpio-pca953x-Add-set_multiple-to-allow-multiple-bits.patch
0097-pca953x-temporary-use-irq-type-FALLING_EDGE-for-ls10.patch
0098-dts-mbls1021a-fix-stmpe-touch-properties.patch
0099-Revert-drm-fsl-dcu-use-mode-flags-for-hsync-vsync-pi.patch
0100-drm-fsl-dcu-use-mode-flags-for-hsync-vsync-polarity.patch
0101-drm-introduce-bus_flags-in-drm_display_info.patch
0102-drm-fsl-dcu-use-bus_flags-for-pixel-clock-polarity.patch
0103-arm-dts-mbls102xa-Add-sii9022a-dts-node.patch
0104-drm-layerscape-Add-sii9022a-driver.patch
0105-drm-layerscape-Add-HDMI-driver-for-freescale-DCU.patch
0106-input-ts-update-edt-driver-to-support-M12-type.patch
0107-panel-ETM0700G0EDH6-set-data-on-rising-edge.patch
0108-arm-dt-ls1021a-add-msi-parent-for-pcie-nodes.patch
0109-i2c-imx-recover-bus-stall-on-ls1021a.patch
#0110-arm-dt-mbls102xa-set-phy-addresses-for-rev.0200.patch
#0111-dt-mbls102xa-adapt-phy-timing-to-rev0200.patch
0112-dt-ls1021a-gianfar-bds-are-big-endian.patch
0113-gianfar_ptp-replace-get_of_u32-with-of_property_read.patch
0114-gianfar-fix-endianness-for-hardware-timestamp.patch
0115-ARM-dts-ls1021a-add-1588-timer-node.patch
0116-dt-mbls102xa-enable-dspi-nodes-and-spidev.patch
0117-Makefile-release-TQMLS102xA-BSP-0100.patch
Please note that the following interfaces cannot be used when using Rev.01xx of the MBLS102xA:
Use BSP Rev.0100 on MBLS102xA Rev.01xx
BSP Rev.0100 was designed to be run on Rev.0200 of the MBLS012xA.
On Rev.0200 of the MBLS102xA a different package type of the ethernet PHY is used than on Rev.01xx.
This results in different PHY addresses:
Connector | Controller | MBLS102xA Rev.01xx | MBLS102xA Rev.02xx |
X12 | EC1 | 0x0D | 0x0C |
X13 | EC2 | 0x13 | 0x03 |
X11 | EC3 | 0x05 | 0x04 |
In order to use BSP Rev.0100 on MBLS102xA Rev.01xx the following patches must not be applied:
To “disable” these patches, simply comment them out in the corresponding series file:
U-Boot:
configs/platform-tq-mbls102xa/patches/u-boot-2016.05/series
0001-tools-add-libdl-to-makefile-for-libssl-libcrypto.patch
0002-mtd-fsl_qspi-implement-dual-die-mode.patch
0003-fsl_qspi-add-flag-status-register-for-micron.patch
0004-spi-fsl_qspi-Add-1-1-4-page-program-mode.patch
0005-spi-fsl_qspi-Add-1-1-4-fast-read-mode.patch
0006-fsl_qspi-Enable-1-1-4-mode.patch
0007-i2c-imx-recover-bus-stall-on-ls1021a.patch
0008-board-tqc-add-common-folder.patch
0009-boards-add-tqmls102x.patch
#0010-tqmls102xa-set-phy-addresses-for-mbls1021a.0200.patch
#0011-phy_ti-adapt-hard-coded-skew-to-custom-values.patch
0012-tqmls102xa-tsec-set-interface-types.patch
0013-cmd-mmc-fix-argument-parsing-for-setdsr.patch
0014-tqmls102xa-add-eeprom-support.patch
0015-tqmls102xa-use-quad-mode-in-sd-boot-only.patch
0016-tqmls102xa-rcw-sdhc-cd-and-wp-as-gpio-8-data-lines.patch
0017-tqmls102xa-check-if-phy-found.patch
0018-Makefile-release-TQMLS102xA-BSP-0100.patch
Linux:
configs/platform-tq-mbls102xa/patches/linux-4.4/series
0001-v3-1-3-mtd-spi-nor-fsl-quadspi-add-big-endian-suppor.patch
0002-v3-2-3-mtd-spi-nor-fsl-quadspi-add-support-for-ls102.patch
0003-ARM-dts-ls1021a-add-qspi-node.patch
0004-arm-dts-ls1021a-add-qspi-memory-address-and-correct-.patch
0005-qspi-ls102xa-Adjust-the-size-of-QSPI-AMBA-Bus-memory.patch
0006-linux-next-v2-01-14-mtd-spi-nor-remove-micron_quad_e.patch
0007-linux-next-v2-02-14-mtd-spi-nor-properly-detect-the-.patch
0008-linux-next-v2-03-14-mtd-spi-nor-select-op-codes-and-.patch
0009-linux-next-v2-04-14-mtd-spi-nor-fix-support-of-Macro.patch
0010-linux-next-v2-05-14-mtd-spi-nor-fix-support-of-Winbo.patch
0011-linux-next-v2-06-14-mtd-spi-nor-fix-support-of-Micro.patch
0012-linux-next-v2-07-14-mtd-spi-nor-fix-support-of-Spans.patch
0013-linux-next-v2-08-14-mtd-spi-nor-configure-the-number.patch
0014-linux-next-v2-09-14-mtd-spi-nor-configure-the-number.patch
0015-linux-next-v2-10-14-mtd-spi-nor-configure-the-number.patch
0016-linux-next-v2-11-14-mtd-spi-nor-configure-the-number.patch
0017-linux-next-v2-12-14-mtd-m25p80-add-support-of-dual-a.patch
0018-mtd-fsl-qspi-add-support-for-RDFSR.patch
0019-mtd-fsl-qspi-enable-r-w-micron-extended-config-regis.patch
0020-mtd-fsl-qspi-replace-spansion-4b-mode-with-vcr-acces.patch
0021-mtd-spi-nor-do-not-use-FSR-on-n25q512ax3.patch
0022-mtd-fsl-qspi-accept-single-and-multi-io-RDSR-command.patch
0023-can-flexcan-Add-ls1021a-flexcan-device-entry.patch
0024-can-flexcan-Remodel-FlexCAN-register-r-w-APIs-for-BE.patch
0025-can-flexcan-Add-support-for-non-RX-FIFO-mode.patch
0026-arm-dts-ls1021a-Add-nodes-for-flexcan-devices-presen.patch
0027-arm-dt-add-tqmls1021a.patch
0028-ARM-DT-ls1021a-tqmls102xa-add-rtc.patch
0029-ARM-DT-ls1021a-tqmls102xa-add-eeprom.patch
0030-ARM-DT-ls1021a-tqmls102xa-add-temperature-sensor.patch
0031-ARM-DT-ls1021a-tqmls1021a-mbls102x-add-led-driver.patch
0032-ARM-DT-ls1021a-tqmls1021a-mbls102x-add-port-expander.patch
0033-ARM-DT-ls1021a-tqmls1021a-mbls102x-add-port-expander.patch
0034-ARM-DT-ls1021a-tqmls1021a-mbls102x-stmpe-mfd-device.patch
0035-ARM-DT-ls1021a-tqmls1021a-add-devices-without-driver.patch
0036-ARM-DT-ls1021a-tqmls102xa-mbls102x-add-mdio-bus-and-.patch
0037-ARM-DT-ls1021a-tqmls1021a-fix-qspi-flash.patch
0038-ARM-DT-tqmls102x-add-mac-address-property-to-eTSECn.patch
0039-ARM-DT-ls1021x-mbla102x-add-rgmii-phy-delay.patch
0040-phy-dp83867-add-support-for-led-config.patch
0041-ARM-DT-ls102xa-mbls102x-add-rgmii-phy-led-configurat.patch
0042-ARM-dts-ls1021a-add-pwms-3-6-and-7.patch
0043-ARM-dts-ls1021a-add-dcu0-node.patch
0044-ARM-dts-ls1021a-add-uqe-node.patch
0045-ARM-dts-ls1021a-add-missing-aliases.patch
0046-ARM-dts-ls1021a-add-gpio-controller-nodes.patch
0047-ARM-dts-ls1021a-add-rcpm-node.patch
0048-tqmls102xa-rework-definitions.patch
0049-dt-tqmls102xa-add-mmc-on-esdhc.patch
0050-leds-Add-DT-support-for-leds-pca9532.patch
0051-dt-mbls102xa-parallel-display-support.patch
0052-dt-tqmls102xa-sgmii-support.patch
0053-dt-tqmls102xa-fix-qspi-compatible.patch
0054-net-phy-national-add-DP83867.patch
0055-dt-mbls102xa-add-phy-delay.patch
0056-dt-mbls102xa-add-backlight-regulator-and-touch.patch
0057-dt-mbls102xa-fix-dcu-to-using-drm-panel.patch
0058-phy-dp83867-led-cfg-property-names.patch
0059-ARM-dts-mbls102xa-fix-dp83867-properties.patch
0060-phy-dp83867-change-reset-depth.patch
0061-gianfar-enable-little-endian-descriptor-mode.patch
0062-dts-ls1021a-assign-little-endian-buffer-descriptors-.patch
0063-drivers-gpio-Port-gpio-driver-to-ls1021a-qds-platfor.patch
0064-drivers-gpio-Kconfig-enable-GPIO-configs-for-LS1021A.patch
0065-ahci-qoriq-Adjust-the-default-register-values-on-ls1.patch
0066-ahci-qoriq-Update-the-default-Rx-watermark-value.patch
0067-ahci-qoriq-Adjust-the-default-register-values-on-ls1.patch
0068-ARM-dts-ls1021a-Add-DCU-dts-node.patch
0069-ARM-dts-ls1021a-add-sata-node-to-dts.patch
0070-ARM-dts-ls1021a-add-PCIe-dts-node.patch
0071-ARM-dts-mbls102xa-add-sata-node-to-dts.patch
0072-drm-fsl-dcu-Fix-no-fb-check-bug.patch
0073-1-7-drm-fsl-dcu-specify-volatile-registers.patch
0074-2-7-drm-fsl-dcu-remove-regmap-return-value-checks.patch
0075-3-7-drm-fsl-dcu-avoid-memory-leak-on-errors.patch
0076-4-7-drm-fsl-dcu-handle-initialization-errors-properl.patch
0077-5-7-drm-fsl-dcu-mask-all-interrupts-on-initializatio.patch
0078-6-7-drm-fsl-dcu-fix-alpha-blending.patch
0079-7-7-drm-fsl-dcu-use-mode-flags-for-hsync-vsync-pixel.patch
0080-drm-fsl-dcu-fix-register-initialization.patch
0081-drm-fsl-dcu-enable-pixclk-in-scfg-register.patch
0082-mbls102xa-drm-fsl-dcu-request-32-preferred_bpp.patch
0083-drivers-usb-host-fsl-Set-DMA_MASK-of-usb-platform-de.patch
0084-drivers-usb-host-fsl-Port-USB-EHCI-host-driver-for-L.patch
0085-drivers-usb-Port-ehci_fsl-driver-to-ls1021a-platform.patch
0086-ehci-hcd-Cleanup-memory-resources-when-ehci_halt-fai.patch
0087-ehci-hcd-Disable-memory-write-invalidate-when-the-dr.patch
0088-USB-host-use-to_platform_device.patch
0089-usb-fsl-drop-USB_FSL_MPH_DR_OF-Kconfig-symbol.patch
0090-ARM-imx-revert-temporarily-remove-CONFIG_SOC_FSL-fro.patch
0091-drivers-usb-fsl-Set-USB_EN-bit-to-select-ULPI-phy.patch
0092-gpio-change-member-.dev-to-.parent.patch
0093-gpio-pca953x-add-onsemi-pca9654-id.patch
0094-gpio-pca935x-fix-of-only-probed-devices.patch
0095-gpio-pca953x-make-inclusion-of-linux-of_platform.h-u.patch
0096-gpio-pca953x-Add-set_multiple-to-allow-multiple-bits.patch
0097-pca953x-temporary-use-irq-type-FALLING_EDGE-for-ls10.patch
0098-dts-mbls1021a-fix-stmpe-touch-properties.patch
0099-Revert-drm-fsl-dcu-use-mode-flags-for-hsync-vsync-pi.patch
0100-drm-fsl-dcu-use-mode-flags-for-hsync-vsync-polarity.patch
0101-drm-introduce-bus_flags-in-drm_display_info.patch
0102-drm-fsl-dcu-use-bus_flags-for-pixel-clock-polarity.patch
0103-arm-dts-mbls102xa-Add-sii9022a-dts-node.patch
0104-drm-layerscape-Add-sii9022a-driver.patch
0105-drm-layerscape-Add-HDMI-driver-for-freescale-DCU.patch
0106-input-ts-update-edt-driver-to-support-M12-type.patch
0107-panel-ETM0700G0EDH6-set-data-on-rising-edge.patch
0108-arm-dt-ls1021a-add-msi-parent-for-pcie-nodes.patch
0109-i2c-imx-recover-bus-stall-on-ls1021a.patch
#0110-arm-dt-mbls102xa-set-phy-addresses-for-rev.0200.patch
#0111-dt-mbls102xa-adapt-phy-timing-to-rev0200.patch
0112-dt-ls1021a-gianfar-bds-are-big-endian.patch
0113-gianfar_ptp-replace-get_of_u32-with-of_property_read.patch
0114-gianfar-fix-endianness-for-hardware-timestamp.patch
0115-ARM-dts-ls1021a-add-1588-timer-node.patch
0116-dt-mbls102xa-enable-dspi-nodes-and-spidev.patch
0117-Makefile-release-TQMLS102xA-BSP-0100.patch
Please note that the following interfaces cannot be used when using Rev.01xx of the MBLS102xA:
Load / Change / Save the Device Tree under U-Boot
Devicetree can be edit with the fdt commands under U-Boot.
For testing purpose only. For bigger changes, please compile the Devicetree.
Therefore you can have a look at the following
tutorial.
Tested with TQMLS102xA BSP Rev.0102
1) At first the fdt file has to be loaded from the current boot medium (mmc) into RAM.
=> run loadfdt
2) Next step is to set the predefined U-Boot environment variable fdt_addr through the fdt addr command.
=> fdt addr $fdt_addr
3) Afterwards the size of the fdt has to be increased (to the next 4K divider) in order to have some space for modifications. This is simply done by entering:
=> fdt resize
4) List device in the tree you want to change to have a look at the default settings.
Example
=> fdt list /backlight@0
backlight@0 {
compatible = "gpio-backlight";
gpios = <0x0000001a 0x00000000 0x00000000>;
default-on;
status = "okay";
linux,phandle = <0x0000001b>;
phandle = <0x0000001b>;
};
=> fdt print /backlight@0
backlight@0 {
compatible = "gpio-backlight";
gpios = <0x0000001a 0x00000000 0x00000000>;
default-on;
status = "okay";
linux,phandle = <0x0000001b>;
phandle = <0x0000001b>;
};
5) To modify a value of a propertie use the fdt set command.
=> fdt set <path> <property> <value>
Example
=> fdt set /backlight@0 status disabled
6) Optional: If you want to save your modified Devicetree back to mmc you'll have to run the following command:
=> mmc dev $mmcdev; mmc write $fdt_addr $fdt_start $fdt_size
* BSP Rev. >0102
<code>⇒ fatwrite mmc $mmcdev:$firmwarepart $fdt_addr $fdt_file <totalsize></code>
You can find out <totalsize> of the modified fdt by entering the command fdt header
Otherwise you can boot your module with the changed Devicetree right after the modification.