arm64: dts: freescale: add initial device tree for TQMLS1043A/TQMLS1046A

This adds support for the TQMLS1043A and TQMLS1046A SOM and the
MBLS10xxA baseboard. TQMLS1043A and TQMLS1046A share a common layout
and can be used on the MBLS10xxA.

Signed-off-by: Gregor Herburger <gregor.herburger@ew.tq-group.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
Gregor Herburger 2023-10-02 10:43:52 +02:00 committed by Shawn Guo
parent f9d6a6e68e
commit 981e850f46
9 changed files with 481 additions and 0 deletions

View File

@ -21831,9 +21831,11 @@ W: https://www.tq-group.com/en/products/tq-embedded/
F: arch/arm/boot/dts/imx*mba*.dts*
F: arch/arm/boot/dts/imx*tqma*.dts*
F: arch/arm/boot/dts/mba*.dtsi
F: arch/arm64/boot/dts/freescale/fsl-*tqml*.dts*
F: arch/arm64/boot/dts/freescale/imx*mba*.dts*
F: arch/arm64/boot/dts/freescale/imx*tqma*.dts*
F: arch/arm64/boot/dts/freescale/mba*.dtsi
F: arch/arm64/boot/dts/freescale/tqml*.dts*
F: drivers/gpio/gpio-tqmx86.c
F: drivers/mfd/tqmx86.c
F: drivers/watchdog/tqmx86_wdt.c

View File

@ -15,9 +15,11 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-rdb.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-tqmls1043a-mbls10xxa.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-frwy.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-qds.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-rdb.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1046a-tqmls1046a-mbls10xxa.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1088a-qds.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1088a-rdb.dtb
dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1088a-ten64.dtb

View File

@ -0,0 +1,49 @@
// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
/*
* Copyright (c) 2018-2023 TQ-Systems GmbH <linux@ew.tq-group.com>,
* D-82229 Seefeld, Germany.
* Author: Gregor Herburger, Timo Herbrecher
*
*/
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include "fsl-ls1043a-tqmls1043a.dtsi"
#include "tqmls10xxa-mbls10xxa.dtsi"
/ {
model = "TQ-Systems GmbH LS1043A TQMLS1043A SoM on MBLS10xxA board";
compatible = "tq,ls1043a-tqmls1043a-mbls10xxa", "tq,ls1043a-tqmls1043a",
"fsl,ls1043a";
aliases {
qsgmii-s1-p1 = &qsgmii1_phy1;
qsgmii-s1-p2 = &qsgmii1_phy2;
qsgmii-s1-p3 = &qsgmii1_phy3;
qsgmii-s1-p4 = &qsgmii1_phy4;
qsgmii-s2-p1 = &qsgmii2_phy1;
qsgmii-s2-p2 = &qsgmii2_phy2;
qsgmii-s2-p3 = &qsgmii2_phy3;
qsgmii-s2-p4 = &qsgmii2_phy4;
serial0 = &duart0;
serial1 = &duart1;
};
chosen {
stdout-path = &duart1;
};
};
&esdhc {
cd-gpios = <&gpio3 2 GPIO_ACTIVE_LOW>;
wp-gpios = <&gpio3 3 GPIO_ACTIVE_HIGH>;
};
&usb2 {
status = "okay";
};
#include "fsl-ls1043-post.dtsi"
#include "tqmls104xa-mbls10xxa-fman.dtsi"

View File

@ -0,0 +1,32 @@
// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
/*
* Copyright (c) 2018-2023 TQ-Systems GmbH <linux@ew.tq-group.com>,
* D-82229 Seefeld, Germany.
* Author: Gregor Herburger, Timo Herbrecher
*
* Device Tree Include file for LS1043A based SoM of TQ
*/
#include "fsl-ls1043a.dtsi"
#include "tqmls10xxa.dtsi"
&qspi {
num-cs = <2>;
status = "okay";
qflash0: flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
spi-max-frequency = <62500000>;
spi-rx-bus-width = <4>;
spi-tx-bus-width = <4>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
};
};
};

View File

@ -0,0 +1,56 @@
// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
/*
* Copyright (c) 2018-2023 TQ-Systems GmbH <linux@ew.tq-group.com>,
* D-82229 Seefeld, Germany.
* Author: Gregor Herburger, Timo Herbrecher
*/
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include "fsl-ls1046a-tqmls1046a.dtsi"
#include "tqmls10xxa-mbls10xxa.dtsi"
/ {
model = "TQ-Systems GmbH LS1046A TQMLS1046A SoM on MBLS10xxA board";
compatible = "tq,ls1046a-tqmls1046a-mbls10xxa", "tq,ls1046a-tqmls1046a",
"fsl,ls1046a";
aliases {
qsgmii-s1-p1 = &qsgmii1_phy1;
qsgmii-s1-p2 = &qsgmii1_phy2;
qsgmii-s1-p3 = &qsgmii1_phy3;
qsgmii-s1-p4 = &qsgmii1_phy4;
qsgmii-s2-p1 = &qsgmii2_phy1;
qsgmii-s2-p2 = &qsgmii2_phy2;
qsgmii-s2-p3 = &qsgmii2_phy3;
qsgmii-s2-p4 = &qsgmii2_phy4;
serial0 = &duart0;
serial1 = &duart1;
};
chosen {
stdout-path = &duart1;
};
};
&dspi {
status = "okay";
};
&esdhc {
cd-gpios = <&gpio3 2 GPIO_ACTIVE_LOW>;
wp-gpios = <&gpio3 3 GPIO_ACTIVE_HIGH>;
};
&usb2 {
status = "okay";
};
#include "fsl-ls1046-post.dtsi"
#include "tqmls104xa-mbls10xxa-fman.dtsi"
&enet7 {
status = "disabled";
};

View File

@ -0,0 +1,42 @@
// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
/*
* Copyright (c) 2018-2023 TQ-Systems GmbH <linux@ew.tq-group.com>,
* D-82229 Seefeld, Germany.
* Author: Gregor Herburger, Timo Herbrecher
*
* Device Tree Include file for LS1046A based SoM of TQ
*/
#include "fsl-ls1046a.dtsi"
#include "tqmls10xxa.dtsi"
&qspi {
num-cs = <2>;
status = "okay";
qflash0: flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
spi-max-frequency = <62500000>;
spi-rx-bus-width = <4>;
spi-tx-bus-width = <4>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
};
};
qflash1: flash@1 {
compatible = "jedec,spi-nor";
reg = <1>;
#address-cells = <1>;
#size-cells = <1>;
spi-max-frequency = <62500000>;
spi-rx-bus-width = <4>;
spi-tx-bus-width = <4>;
};
};

View File

@ -0,0 +1,104 @@
// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
/*
* Copyright (c) 2019,2023 TQ-Systems GmbH <linux@ew.tq-group.com>,
* D-82229 Seefeld, Germany.
* Author: Gregor Herburger, Timo Herbrecher
*
* Device Tree Include file for MBLS10xxA from TQ (FMAN related sections)
*/
#include <dt-bindings/net/ti-dp83867.h>
&enet0 {
status = "disabled";
};
&enet1 {
status = "disabled";
};
&enet2 {
phy-handle = <&rgmii_phy1>;
phy-connection-type = "rgmii";
phy-mode = "rgmii-id";
status = "okay";
};
&enet3 {
phy-handle = <&rgmii_phy2>;
phy-connection-type = "rgmii";
phy-mode = "rgmii-id";
status = "okay";
};
&enet4 {
status = "disabled";
};
&enet5 {
status = "disabled";
};
&enet6 {
status = "disabled";
};
&mdio0 {
status = "okay";
qsgmii2_phy1: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x00>;
};
qsgmii2_phy2: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x01>;
};
qsgmii2_phy3: ethernet-phy@2 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x02>;
};
qsgmii2_phy4: ethernet-phy@3 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x03>;
};
rgmii_phy2: ethernet-phy@c {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x0c>;
ti,rx-internal-delay = <DP83867_RGMIIDCTL_1_50_NS>;
ti,tx-internal-delay = <DP83867_RGMIIDCTL_1_50_NS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
};
rgmii_phy1: ethernet-phy@e {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x0e>;
ti,rx-internal-delay = <DP83867_RGMIIDCTL_1_50_NS>;
ti,tx-internal-delay = <DP83867_RGMIIDCTL_1_50_NS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_8_B_NIB>;
};
qsgmii1_phy1: ethernet-phy@1c {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x1c>;
};
qsgmii1_phy2: ethernet-phy@1d {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x1d>;
};
qsgmii1_phy3: ethernet-phy@1e {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x1e>;
};
qsgmii1_phy4: ethernet-phy@1f {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x1f>;
};
};

View File

@ -0,0 +1,136 @@
// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
/*
* Copyright (c) 2018-2023 TQ-Systems GmbH <linux@ew.tq-group.com>,
* D-82229 Seefeld, Germany.
* Author: Gregor Herburger, Timo Herbrecher
*
* Device Tree Include file for MBLS10xxA from TQ
*/
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
/ {
gpio-keys-polled {
compatible = "gpio-keys-polled";
poll-interval = <100>;
autorepeat;
button-0 {
label = "button0";
gpios = <&gpioexp3 5 GPIO_ACTIVE_LOW>;
linux,code = <KEY_F1>;
};
button-1 {
label = "button1";
gpios = <&gpioexp3 6 GPIO_ACTIVE_LOW>;
linux,code = <KEY_F2>;
};
};
leds {
compatible = "gpio-leds";
led-user {
gpios = <&gpioexp3 13 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_HEARTBEAT;
linux,default-trigger = "heartbeat";
};
};
reg_3v3: regulator-3v3 {
compatible = "regulator-fixed";
regulator-name = "V_3V3_MB";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
};
&duart0 {
status = "okay";
};
&duart1 {
status = "okay";
};
&esdhc {
status = "okay";
};
&i2c3 {
status = "okay";
i2c-mux@70 {
compatible = "nxp,pca9544";
reg = <0x70>;
#address-cells = <1>;
#size-cells = <0>;
i2c@0 {
reg = <0x0>;
#address-cells = <1>;
#size-cells = <0>;
gpioexp1: gpio@20 {
compatible = "nxp,pca9555";
reg = <0x20>;
vcc-supply = <&reg_3v3>;
gpio-controller;
#gpio-cells = <2>;
};
gpioexp2: gpio@21 {
compatible = "nxp,pca9555";
reg = <0x21>;
vcc-supply = <&reg_3v3>;
gpio-controller;
#gpio-cells = <2>;
};
gpioexp3: gpio@22 {
compatible = "nxp,pca9555";
reg = <0x22>;
vcc-supply = <&reg_3v3>;
gpio-controller;
#gpio-cells = <2>;
};
};
sfp1_i2c: i2c@1 {
reg = <0x1>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
sfp2_i2c: i2c@2 {
reg = <0x2>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
i2c@3 {
reg = <0x3>;
#address-cells = <1>;
#size-cells = <0>;
};
};
};
&sata {
status = "okay";
};
&usb0 {
status = "okay";
};
&usb1 {
dr_mode = "otg";
status = "okay";
};

View File

@ -0,0 +1,58 @@
// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
/*
* Copyright (c) 2018-2023 TQ-Systems GmbH <linux@ew.tq-group.com>,
* D-82229 Seefeld, Germany.
* Author: Gregor Herburger, Timo Herbrecher
*
* Device Tree Include file for TQMLs10xxA SoM of TQ
*/
/ {
reg_vcc3v3: regulator-vcc3v3 {
compatible = "regulator-fixed";
regulator-name = "VCC3V3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};
};
&i2c0 {
status = "okay";
temperature-sensor@18 {
compatible = "nxp,se97b", "jedec,jc-42.4-temp";
reg = <0x18>;
};
eeprom@50 {
compatible = "nxp,se97b", "atmel,24c02";
reg = <0x50>;
pagesize = <16>;
vcc-supply = <&reg_vcc3v3>;
read-only;
};
rtc@51 {
compatible = "nxp,pcf85063a";
reg = <0x51>;
};
eeprom@57 {
compatible = "atmel,24c64";
reg = <0x57>;
pagesize = <32>;
vcc-supply = <&reg_vcc3v3>;
};
};
&esdhc {
/* eSDHC or eMMC: set by bootloader */
non-removable;
disable-wp;
mmc-hs200-1_8v;
sd-uhs-sdr104;
sd-uhs-sdr50;
sd-uhs-sdr25;
sd-uhs-sdr12;
};