Skip to content

tools/imx8m_image.sh: remove bashism #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 62 commits into
base: v2018.11-solidrun
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
40df631
MLK-16066-1 usb: host: add imx8m xhci host driver
Junlisuzhou Jul 24, 2017
a7215d5
MLK-17210 usb: imx8m: Add PU power on/off to USB
Dec 15, 2017
204b2a5
MLK-17272 imx8mq_evk: Fix build warnings with usb power
Dec 20, 2017
0492488
MLK-17573-2 xhci-imx8m: add USB3 controller 1 address
Feb 11, 2018
9a84860
MLK-15324-1 video: cfb_console: Fix 64 bits support problem
Aug 29, 2016
866ee40
MLK-17404-3 arch: arm: Adding support for i.MX8 HDMI
nxpobrown Jan 29, 2018
2a964ce
MLK-17205-1 video: imx: hdp: Adding support for HDP firmware loading
nxpobrown Dec 13, 2017
770c678
MLK-17262 video: Fix build break when CONFIG_VIDEO_IMX_HDP_LOAD is no…
Dec 20, 2017
8c32dd4
MLK-17375 video: imx: hdp: fix "n" arg for strncmp call
nxpobrown Jan 15, 2018
0ad26a6
MLK-17404-1 video: imx: hdp: Adding support for HDMI splash screen
nxpobrown Jan 29, 2018
82b578a
MLK-17404-2 include: Adding header for i.MX8 HDMI support
nxpobrown Jan 29, 2018
cd472bd
MLK-17638 video: imx8m_hdmi: Checks HDMI FW before enabling video output
Feb 28, 2018
2c172e6
video_common: fix compile errors
tkisky Jun 23, 2018
c59445e
MLK-17404-6 video: Adding i.MX8 HDMI support to configuration
nxpobrown Jan 29, 2018
ca70dd9
MLK-17205-2 video: imx: hdp: Adding HDP firmware loading to the build
nxpobrown Dec 13, 2017
fc3f8d1
serial: Kconfig: allow MXC_UART for MX8M
tkisky Jul 2, 2018
6337608
fsl-imx8mq.dtsi: add uart1-4
tkisky Jul 2, 2018
58a2cd9
fsl-imx8mq.dtsi: add usb nodes
tkisky Jul 9, 2018
78a7e32
mmc: fsl_esdhc: add reset-gpios for DM
tkisky Jul 9, 2018
3d04742
mach-imx: video: call imx8m_fb_init if CONFIG_VIDEO_IMXDCSS
tkisky Jul 9, 2018
37c2e66
fsl-imx8mq.dtsi: add reg to usb3_0/usb3_1
tkisky Jul 9, 2018
1ff35a9
xhci-imx8m: create imx8m_usb_common_init, for use with CONFIG_DM_USB
tkisky Jul 10, 2018
0514854
xhci-imx8m: add CONFIG_DM_USB support
tkisky Jul 10, 2018
0fd6726
devres: check for NULL dev in devm_kmalloc
tkisky Jul 10, 2018
0e6a4df
arm: mach-imx: mx8m: clock: turn on clock CCGR_USB_CTRL2 even if boot…
tkisky Jul 10, 2018
bb11ab4
mach-imx: cpu: call imx8m_fb_disable in arch_preboot_os
tkisky Jul 12, 2018
a75ad6b
image-sparse: disable data cache to avoid misaligned warnings
gibsson Mar 7, 2017
ae5de28
autoboot: use default environment if debricking board
tkisky Jul 13, 2018
32653c1
i2c: add CONFIG_SYS_I2C_MASK
tkisky May 6, 2016
d3f7383
crm_regs: add define for CCM_CCGR7
tkisky Jan 14, 2017
66d5b52
crm_regs: add CCM_CBCMR/CCM_ANALOG_PFD_528 for cfg files
tkisky May 1, 2017
3e9831d
phy: enable auto-negotiate with software reset
tkisky Jan 18, 2017
1253b6c
fuse: make fuse read set an environment variable
tkisky Mar 22, 2017
196e5dc
spi: add s25fl064l cypress(spansion) 8MB spi-nor
tkisky Jun 16, 2017
be47fe9
config_distro_bootcmd: allow to add extra scripts and prefixes
gibsson Jun 30, 2017
0bea657
config_distro_bootcmd: workaround 6x_bootscript legacy
gibsson Jun 30, 2017
13fcbb9
arch: arm: relocate: print invalid relocation entries
tkisky Aug 7, 2017
5eb2c3b
config_distro_bootcmd: search /boot/ before /
tkisky Sep 3, 2017
8263850
usb_hub: check for timeout if no connection as well
tkisky Oct 13, 2017
a8a88d9
mmc: fsl_esdhc: send 80 clocks before 1st command
tkisky May 24, 2018
21747e8
arm: mach-imx: cpu: add is_usb_boot
tkisky Jul 21, 2018
1e365ab
imx: fixup Kconfig to align with MX8M to IMX8M change
jnettlet Nov 28, 2018
4010dc3
imx: add preliminary i.MX8MQ support for SolidRun boards
jnettlet Nov 28, 2018
e2da404
imx: mx8m: add memory mapping for CAAM and TCM
gibsson Nov 14, 2018
360bff6
imx: bootaux: fix stack and pc assignment on 64-bit platforms
gibsson Nov 14, 2018
fbf18a2
MLK-16273-1 usb: dwc3: add suspend clock setting interface
Junlisuzhou Aug 25, 2017
8c6e348
MLK-17044-1 imx-common: Adding new argument for SIP call interface
Nov 30, 2017
ae8f31b
imx8mq_hb: Add Build.md
jnettlet Nov 29, 2018
2c0f2ce
Update BUILD.md
jnettlet Nov 30, 2018
49b8c80
Add uboot support for armada 8040 cex(dts and defconfig)
TalPilo Dec 9, 2018
61a0214
Add support for 16Gb DRAM detection
TalPilo Dec 11, 2018
a6eb67f
MLK-16431-2 imx8qxp_mek: Add driver for USB typec port controller (TCPC)
Sep 12, 2017
51853cc
MLK-17313-1 tcpc: Add support for power sink in dead battery
Jan 8, 2018
f2e7521
MLK-17376 typec: support power source with 2 stages of capability
Junlisuzhou Jan 16, 2018
1274506
MLK-17573-1 tcpc: Add interface to set UFP mode
Feb 11, 2018
a10eed9
imx: imx8mq_hb: SDHC2 configuration cleanup
jnettlet Dec 16, 2018
7c74c72
imx: imx8mq_hb: Add USB Host support
jnettlet Dec 16, 2018
350104d
imx: More places to fixup after the arch rename.
jnettlet Dec 16, 2018
ba501c8
Revert "autoboot: use default environment if debricking board"
jnettlet Dec 16, 2018
c3f941c
Fix commit 61a02147e4
jnettlet Dec 16, 2018
0dd5174
imx: Add gpc power control function
jnettlet Dec 16, 2018
22df157
tools/imx8m_image.sh: remove bashism
baruchsiach Dec 31, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion arch/arm/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ dtb-$(CONFIG_ARCH_MVEBU) += \
armada-7040-db-nand.dtb \
armada-8040-db.dtb \
armada-8040-mcbin.dtb \
armada-8040-cex.dtb \
armada-xp-gp.dtb \
armada-xp-maxbcm.dtb \
armada-xp-synology-ds414.dtb \
Expand Down Expand Up @@ -456,7 +457,8 @@ dtb-$(CONFIG_ARCH_MX7ULP) += imx7ulp-evk.dtb

dtb-$(CONFIG_ARCH_IMX8) += fsl-imx8qxp-mek.dtb

dtb-$(CONFIG_ARCH_IMX8M) += fsl-imx8mq-evk.dtb
dtb-$(CONFIG_ARCH_IMX8M) += fsl-imx8mq-evk.dtb \
fsl-imx8mq-hb.dtb

dtb-$(CONFIG_RCAR_GEN3) += \
r8a7795-h3ulcb-u-boot.dtb \
Expand Down
299 changes: 299 additions & 0 deletions arch/arm/dts/armada-8040-cex.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,299 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2018 SolidRun International Ltd.
*/

#include "armada-8040.dtsi" /* include SoC device tree */

/ {
model = "Armada-8040-cex";
compatible = "marvell,armada-8040-cex",
"marvell,armada8040";

chosen {
stdout-path = "serial0:115200n8";
};

aliases {
i2c0 = &cpm_i2c0;
i2c1 = &cpm_i2c1;
i2c2 = &cps_i2c1;
spi0 = &cps_spi1;
gpio0 = &ap_gpio0;
gpio1 = &cpm_gpio0;
gpio2 = &cpm_gpio1;
};

memory@00000000 {
device_type = "memory";
reg = <0x0 0x0 0x0 0x80000000>;
};

simple-bus {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;

reg_usb3h0_vbus: usb3-vbus0 {
compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&cpm_xhci_vbus_pins>;
regulator-name = "reg-usb3h0-vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
startup-delay-us = <500000>;
enable-active-high;
regulator-always-on;
regulator-boot-on;
gpio = <&cpm_gpio1 15 GPIO_ACTIVE_HIGH>; /* GPIO[47] */
};
};
};

/* Accessible over the mini-USB CON9 connector on the main board */
&uart0 {
status = "okay";
};

&ap_pinctl {
/*
* MPP Bus:
* eMMC [0-10]
* UART0 [11,19]
*/
/* 0 1 2 3 4 5 6 7 8 9 */
pin-func = < 1 1 1 1 1 1 1 1 1 1
1 3 0 0 0 0 0 0 0 3 >;
};

/* on-board eMMC */
&ap_sdhci0 {
pinctrl-names = "default";
pinctrl-0 = <&ap_emmc_pins>;
bus-width= <8>;
status = "okay";
};

&cpm_pinctl {
/*
* MPP Bus:
* [0-31] = 0xff: Keep default CP0_shared_pins:
* [11] CLKOUT_MPP_11 (out)
* [23] LINK_RD_IN_CP2CP (in)
* [25] CLKOUT_MPP_25 (out)
* [29] AVS_FB_IN_CP2CP (in)
* [32,34] SMI
* [33] MSS power down
* [35-38] CP0 I2C1 and I2C0
* [39] MSS CKE Enable
* [40,41] CP0 UART1 TX/RX
* [42,43] XSMI (controls two 10G phys)
* [47] USB VBUS EN
* [48] FAN PWM
* [49] 10G port 1 interrupt
* [50] 10G port 0 interrupt
* [51] 2.5G SFP TX fault
* [52] PCIe reset out
* [53] 2.5G SFP mode
* [54] 2.5G SFP LOS
* [55] Micro SD card detect
* [56-61] Micro SD
* [62] CP1 SFI SFP FAULT
*/
/* 0 1 2 3 4 5 6 7 8 9 */
pin-func = < 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0 7 0xa 7 2 2 2 2 0xa
7 7 8 8 0 0 0 0 0 0
0 0 0 0 0 0 0xe 0xe 0xe 0xe
0xe 0xe 0 >;

cpm_xhci_vbus_pins: cpm-xhci-vbus-pins {
marvell,pins = < 47 >;
marvell,function = <0>;
};

cpm_pcie_reset_pins: cpm-pcie-reset-pins {
marvell,pins = < 52 >;
marvell,function = <0>;
};
};

/* uSD slot */
&cpm_sdhci0 {
pinctrl-names = "default";
pinctrl-0 = <&cpm_sdhci_pins>;
bus-width= <4>;
status = "okay";
};

/* PCIe x4 */
&cpm_pcie0 {
num-lanes = <4>;
pinctrl-names = "default";
pinctrl-0 = <&cpm_pcie_reset_pins>;
marvell,reset-gpio = <&cpm_gpio1 20 GPIO_ACTIVE_HIGH>; /* GPIO[52] */
status = "okay";
};

&cpm_i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&cpm_i2c0_pins>;
status = "okay";
clock-frequency = <100000>;
};

&cpm_i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&cpm_i2c1_pins>;
status = "okay";
clock-frequency = <100000>;
};

&cpm_sata0 {
status = "okay";
};

&cpm_comphy {
/*
* CP0 Serdes Configuration:
* Lane 0: PCIe0 (x4)
* Lane 1: PCIe0 (x4)
* Lane 2: PCIe0 (x4)
* Lane 3: PCIe0 (x4)
* Lane 4: SFI (10G)
* Lane 5: SATA1
*/
phy0 {
phy-type = <PHY_TYPE_PEX0>;
};
phy1 {
phy-type = <PHY_TYPE_PEX0>;
};
phy2 {
phy-type = <PHY_TYPE_PEX0>;
};
phy3 {
phy-type = <PHY_TYPE_PEX0>;
};
phy4 {
phy-type = <PHY_TYPE_SFI>;
};
phy5 {
phy-type = <PHY_TYPE_SATA1>;
};
};

&cps_i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&cps_i2c1_pins>;
status = "okay";
clock-frequency = <100000>;
};

&cps_sata0 {
status = "okay";
};

&cps_usb3_0 {
vbus-supply = <&reg_usb3h0_vbus>;
status = "okay";
};

&cps_utmi0 {
status = "okay";
};

&cps_pinctl {
/*
* MPP Bus:
* [0-5] TDM
* [6,7] CP1_UART 0
* [8] CP1 10G SFP LOS
* [9] CP1 10G PHY RESET
* [10] CP1 10G SFP TX Disable
* [11] CP1 10G SFP Mode
* [12] SPI1 CS1n
* [13] SPI1 MISO (TDM and SPI ROM shared)
* [14] SPI1 CS0n
* [15] SPI1 MOSI (TDM and SPI ROM shared)
* [16] SPI1 CLK (TDM and SPI ROM shared)
* [24] CP1 2.5G SFP TX Disable
* [26] CP0 10G SFP TX Fault
* [27] CP0 10G SFP Mode
* [28] CP0 10G SFP LOS
* [29] CP0 10G SFP TX Disable
* [30] USB Over current indication
* [31] 10G Port 0 phy reset
* [32-62] = 0xff: Keep default CP1_shared_pins:
*/
/* 0 1 2 3 4 5 6 7 8 9 */
pin-func = < 0x4 0x4 0x4 0x4 0x4 0x4 0x8 0x8 0x0 0x0
0x0 0x0 0x3 0x3 0x3 0x3 0x3 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0x0 0xff 0x0 0x0 0x0 0x0
0x0 0x0 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff>;
};

&cps_spi1 {
pinctrl-names = "default";
pinctrl-0 = <&cps_spi1_pins>;
status = "okay";

spi-flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;

partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

partition@0 {
label = "U-Boot";
reg = <0 0x200000>;
};
partition@400000 {
label = "Filesystem";
reg = <0x200000 0xce0000>;
};
};
};
};

&cps_comphy {
/*
* CP1 Serdes Configuration:
* Lane 0: mPCIe0 (x1)
* Lane 1: SATA 0
* Lane 2: USB HOST 0
* Lane 3: SGMII1
* Lane 4: SFI (10G)
* Lane 5: mPCIe1 (x1)
*/
phy0 {
phy-type = <PHY_TYPE_PEX0>;
};
phy1 {
phy-type = <PHY_TYPE_SATA0>;
};
phy2 {
phy-type = <PHY_TYPE_USB3_HOST0>;
};
phy3 {
phy-type = <PHY_TYPE_SGMII1>;
phy-speed = <PHY_SPEED_1_25G>;
};
phy4 {
phy-type = <PHY_TYPE_SFI>;
};
phy5 {
phy-type = <PHY_TYPE_PEX2>;
};
};
Loading