MLK-14927 ARM64: dts: freescale: imx8qxp: add lpddr4 arm2 board support
authorAnson Huang <Anson.Huang@nxp.com>
Tue, 16 May 2017 14:26:15 +0000 (22:26 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:17 +0000 (15:22 -0500)
Add dtb to support i.MX8QXP LPDDR4 ARM2 board.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm64/boot/dts/freescale/Makefile
arch/arm64/boot/dts/freescale/fsl-imx8qxp-lpddr4-arm2.dts [new file with mode: 0644]
arch/arm64/boot/dts/freescale/fsl-imx8qxp.dtsi

index 5d0e14c..5a6d012 100644 (file)
@@ -4,6 +4,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-qds.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-rdb.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-simu.dtb
 dtb-$(CONFIG_ARCH_FSL_IMX8QM) += fsl-imx8qm-lpddr4-arm2.dtb fsl-imx8qm-lpddr4-arm2_ca53.dtb fsl-imx8qm-lpddr4-arm2_ca72.dtb
+dtb-$(CONFIG_ARCH_FSL_IMX8QXP) += fsl-imx8qxp-lpddr4-arm2.dtb
 
 always         := $(dtb-y)
 subdir-y       := $(dts-dirs)
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8qxp-lpddr4-arm2.dts b/arch/arm64/boot/dts/freescale/fsl-imx8qxp-lpddr4-arm2.dts
new file mode 100644 (file)
index 0000000..41974b2
--- /dev/null
@@ -0,0 +1,144 @@
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+/dts-v1/;
+
+/* First 128KB is for PSCI ATF. */
+/memreserve/ 0x80000000 0x00020000;
+#include "fsl-imx8qxp.dtsi"
+
+/ {
+       model = "Freescale i.MX8QXP LPDDR4 ARM2";
+       compatible = "fsl,imx8qxp-lpddr4-arm2", "fsl,imx8qxp";
+
+       chosen {
+               bootargs = "console=ttyLP0,115200 earlycon=lpuart32,0x5a060000,115200";
+               stdout-path = &lpuart0;
+       };
+
+       regulators {
+               compatible = "simple-bus";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               reg_sd1_vmmc: sd1_vmmc {
+                       compatible = "regulator-fixed";
+                       regulator-name = "SD1_SPWR";
+                       regulator-min-microvolt = <3000000>;
+                       regulator-max-microvolt = <3000000>;
+                       gpio = <&gpio4 19 GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+               };
+       };
+};
+
+&iomuxc {
+       imx8qxp-lpddr4-arm2 {
+
+               pinctrl_lpi2c1: lpi1cgrp {
+                       fsl,pins = <
+                               SC_P_USB_SS3_TC0        0xc6000020
+                               SC_P_USB_SS3_TC3        0xc6000020
+                       >;
+               };
+
+               pinctrl_lpi2c3: lpi2cgrp {
+                       fsl,pins = <
+                               SC_P_SPI3_CS1           0xce000020
+                               SC_P_MCLK_IN0           0xce000020
+                       >;
+               };
+
+               pinctrl_lpuart0: lpuart0grp {
+                       fsl,pins = <
+                               SC_P_UART0_RX           0xc600004c
+                               SC_P_UART0_TX           0xc600004c
+                       >;
+               };
+
+               pinctrl_usdhc1: usdhc1grp {
+                       fsl,pins = <
+                               SC_P_EMMC0_CLK          0xc6000021
+                               SC_P_EMMC0_CMD          0xc0000021
+                               SC_P_EMMC0_DATA0        0xc0000021
+                               SC_P_EMMC0_DATA1        0xc0000021
+                               SC_P_EMMC0_DATA2        0xc0000021
+                               SC_P_EMMC0_DATA3        0xc0000021
+                               SC_P_EMMC0_DATA4        0xc0000021
+                               SC_P_EMMC0_DATA5        0xc0000021
+                               SC_P_EMMC0_DATA6        0xc0000021
+                               SC_P_EMMC0_DATA7        0xc0000021
+                               SC_P_EMMC0_RESET_B      0xc0000021
+                       >;
+               };
+
+               pinctrl_usdhc2_rst: usdhc2_rst_grp {
+                       fsl,pins = <
+                               SC_P_USDHC1_RESET_B     0xe6000048
+                       >;
+               };
+
+               pinctrl_usdhc2: usdhc2grp {
+                       fsl,pins = <
+                               SC_P_USDHC1_CLK         0xc6000021
+                               SC_P_USDHC1_CMD         0xc6000021
+                               SC_P_USDHC1_DATA0       0xc6000021
+                               SC_P_USDHC1_DATA1       0xc6000021
+                               SC_P_USDHC1_DATA2       0xc6000021
+                               SC_P_USDHC1_DATA3       0xc6000021
+                               SC_P_USDHC1_VSELECT     0xc6000021
+                               SC_P_USDHC1_WP          0xe6000021
+                               SC_P_USDHC1_CD_B        0xe6000021
+                       >;
+               };
+       };
+};
+
+&i2c1 {
+       clock-frequency = <100000>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_lpi2c1>;
+       status = "okay";
+};
+
+&i2c3 {
+       clock-frequency = <100000>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_lpi2c3>;
+       status = "okay";
+};
+
+&lpuart0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_lpuart0>;
+       status = "okay";
+};
+
+&usdhc1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_usdhc1>;
+       bus-width = <8>;
+       non-removable;
+       status = "okay";
+};
+
+&usdhc2 {
+       pinctrl-names = "default", "state_100mhz", "state_200mhz";
+       pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_rst>;
+       bus-width = <4>;
+       cd-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
+       wp-gpios = <&gpio4 21 GPIO_ACTIVE_HIGH>;
+       vmmc-supply = <&reg_sd1_vmmc>;
+       status = "okay";
+};
index 8e70c39..8d715f4 100644 (file)
@@ -19,6 +19,7 @@
 #include <dt-bindings/soc/imx8_pd.h>
 #include <dt-bindings/clock/imx8qxp-clock.h>
 #include <dt-bindings/pinctrl/pins-imx8qxp.h>
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        compatible = "fsl,imx8qxp";
                };
        };
 
+       rtc: rtc {
+               compatible = "fsl,imx-sc-rtc";
+       };
+
+       i2c0: i2c@5a800000 {
+               compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c";
+               reg = <0x0 0x5a800000 0x0 0x4000>;
+               interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-parent = <&gic>;
+               clocks = <&clk IMX8QXP_I2C0_CLK>;
+               clock-names = "per";
+               assigned-clock-names = <&clk IMX8QXP_I2C0_CLK>;
+               assigned-clock-rates = <24000000>;
+               power-domains = <&pd_dma_lpi2c0>;
+               status = "disabled";
+       };
+
+       i2c1: i2c@5a810000 {
+               compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c";
+               reg = <0x0 0x5a810000 0x0 0x4000>;
+               interrupts = <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-parent = <&gic>;
+               clocks = <&clk IMX8QXP_I2C1_CLK>;
+               clock-names = "per";
+               assigned-clock-names = <&clk IMX8QXP_I2C1_CLK>;
+               assigned-clock-rates = <24000000>;
+               status = "disabled";
+       };
+
+       i2c2: i2c@5a820000 {
+               compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c";
+               reg = <0x0 0x5a820000 0x0 0x4000>;
+               interrupts = <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-parent = <&gic>;
+               clocks = <&clk IMX8QXP_I2C2_CLK>;
+               clock-names = "per";
+               assigned-clock-names = <&clk IMX8QXP_I2C2_CLK>;
+               assigned-clock-rates = <24000000>;
+               power-domains = <&pd_dma_lpi2c2>;
+               status = "disabled";
+       };
+
+       i2c3: i2c@5a830000 {
+               compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c";
+               reg = <0x0 0x5a830000 0x0 0x4000>;
+               interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-parent = <&gic>;
+               clocks = <&clk IMX8QXP_I2C3_CLK>;
+               clock-names = "per";
+               assigned-clock-names = <&clk IMX8QXP_I2C3_CLK>;
+               assigned-clock-rates = <24000000>;
+               power-domains = <&pd_dma_lpi2c3>;
+               status = "disabled";
+       };
+
+       gpio0: gpio@5d080000 {
+               compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
+               reg = <0x0 0x5d080000 0x0 0x10000>;
+               interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+       };
+
+       gpio1: gpio@5d090000 {
+               compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
+               reg = <0x0 0x5d090000 0x0 0x10000>;
+               interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+       };
+
+       gpio2: gpio@5d0a0000 {
+               compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
+               reg = <0x0 0x5d0a0000 0x0 0x10000>;
+               interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+       };
+
+       gpio3: gpio@5d0b0000 {
+               compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
+               reg = <0x0 0x5d0b0000 0x0 0x10000>;
+               interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+       };
+
+       gpio4: gpio@5d0c0000 {
+               compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
+               reg = <0x0 0x5d0c0000 0x0 0x10000>;
+               interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+       };
+
+       gpio5: gpio@5d0d0000 {
+               compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
+               reg = <0x0 0x5d0d0000 0x0 0x10000>;
+               interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+       };
+
+       gpio6: gpio@5d0e0000 {
+               compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
+               reg = <0x0 0x5d0e0000 0x0 0x10000>;
+               interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+       };
+
+       gpio7: gpio@5d0f0000 {
+               compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
+               reg = <0x0 0x5d0f0000 0x0 0x10000>;
+               interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+       };
+
        gpu_3d0: gpu@53100000 {
                compatible = "fsl,imx8-gpu";
                reg = <0x0 0x53100000 0 0x40000>;
                power-domains = <&pd_asrc0>;
                status = "disabled";
        };
+
+       usdhc1: usdhc@5b010000 {
+               compatible = "fsl,imx8qm-usdhc", "fsl,imx6sl-usdhc";
+               interrupt-parent = <&gic>;
+               interrupts = <GIC_SPI 232 IRQ_TYPE_LEVEL_HIGH>;
+               reg = <0x0 0x5b010000 0x0 0x10000>;
+               clocks = <&clk IMX8QXP_SDHC0_IPG_CLK>,
+                       <&clk IMX8QXP_SDHC0_CLK>,
+                       <&clk IMX8QXP_CLK_DUMMY>;
+               clock-names = "ipg", "per", "ahb";
+               assigned-clock-rates = <400000000>, <200000000>, <0>;
+               power-domains = <&pd_conn_sdch0>;
+               status = "disabled";
+       };
+
+       usdhc2: usdhc@5b020000 {
+               compatible = "fsl,imx8qm-usdhc", "fsl,imx6sl-usdhc";
+               interrupt-parent = <&gic>;
+               interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>;
+               reg = <0x0 0x5b020000 0x0 0x10000>;
+               clocks = <&clk IMX8QXP_SDHC1_IPG_CLK>,
+                       <&clk IMX8QXP_SDHC1_CLK>,
+                       <&clk IMX8QXP_CLK_DUMMY>;
+               clock-names = "ipg", "per", "ahb";
+               assigned-clock-rates = <400000000>, <200000000>, <0>;
+               power-domains = <&pd_conn_sdch1>;
+               status = "disabled";
+       };
+
+       usdhc3: usdhc@5b030000 {
+               compatible = "fsl,imx8qm-usdhc", "fsl,imx6sl-usdhc";
+               interrupt-parent = <&gic>;
+               interrupts = <GIC_SPI 234 IRQ_TYPE_LEVEL_HIGH>;
+               reg = <0x0 0x5b030000 0x0 0x10000>;
+               clocks = <&clk IMX8QXP_SDHC2_IPG_CLK>,
+                       <&clk IMX8QXP_SDHC2_CLK>,
+                       <&clk IMX8QXP_CLK_DUMMY>;
+               clock-names = "ipg", "per", "ahb";
+               assigned-clock-rates = <400000000>, <200000000>, <0>;
+               power-domains = <&pd_conn_sdch2>;
+               status = "disabled";
+       };
+
+       fec1: ethernet@5b040000 {
+               compatible = "fsl,imx8qm-fec";
+               reg = <0x0 0x5b040000 0x0 0x10000>;
+               interrupts = <GIC_SPI 258 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 257 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 259 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&clk IMX8QXP_ENET0_IPG_CLK>, <&clk IMX8QXP_ENET0_AHB_CLK>, <&clk IMX8QXP_ENET0_TX_CLK>,
+                       <&clk IMX8QXP_ENET0_PTP_CLK>;
+               clock-names = "ipg", "ahb", "enet_clk_ref", "ptp";
+               assigned-clocks = <&clk IMX8QXP_ENET0_REF_DIV>, <&clk IMX8QXP_ENET0_PTP_CLK>;
+               assigned-clock-rates = <125000000>, <125000000>;
+               fsl,num-tx-queues=<3>;
+               fsl,num-rx-queues=<3>;
+               power-domains = <&pd_conn_enet0>;
+               status = "disabled";
+       };
+
+       fec2: ethernet@5b050000 {
+               compatible = "fsl,imx8qm-fec";
+               reg = <0x0 0x5b050000 0x0 0x10000>;
+               interrupts = <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 260 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 263 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&clk IMX8QXP_ENET1_IPG_CLK>, <&clk IMX8QXP_ENET1_AHB_CLK>, <&clk IMX8QXP_ENET1_TX_CLK>,
+                       <&clk IMX8QXP_ENET1_PTP_CLK>;
+               clock-names = "ipg", "ahb", "enet_clk_ref", "ptp";
+               assigned-clocks = <&clk IMX8QXP_ENET1_REF_DIV>, <&clk IMX8QXP_ENET1_PTP_CLK>;
+               assigned-clock-rates = <125000000>, <125000000>;
+               fsl,num-tx-queues=<3>;
+               fsl,num-rx-queues=<3>;
+               power-domains = <&pd_conn_enet1>;
+               status = "disabled";
+       };
 };