]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ARM: dts: imx7d-pico: Add support for the dwarf baseboard
authorFabio Estevam <festevam@gmail.com>
Tue, 10 Mar 2020 18:08:22 +0000 (15:08 -0300)
committerShawn Guo <shawnguo@kernel.org>
Mon, 16 Mar 2020 01:07:15 +0000 (09:07 +0800)
Add support for the imx7d pico board with dwarf baseboard combination.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/imx7d-pico-dwarf.dts [new file with mode: 0644]

index e874fbf5a1f3c52dfbee4e32fe1d7a26f44dfd6b..f9fb24347acbe5368184445fd244d78b61055f88 100644 (file)
@@ -617,6 +617,7 @@ dtb-$(CONFIG_SOC_IMX7D) += \
        imx7d-mba7.dtb \
        imx7d-meerkat96.dtb \
        imx7d-nitrogen7.dtb \
+       imx7d-pico-dwarf.dtb \
        imx7d-pico-hobbit.dtb \
        imx7d-pico-pi.dtb \
        imx7d-sbc-imx7.dtb \
diff --git a/arch/arm/boot/dts/imx7d-pico-dwarf.dts b/arch/arm/boot/dts/imx7d-pico-dwarf.dts
new file mode 100644 (file)
index 0000000..5162fe2
--- /dev/null
@@ -0,0 +1,87 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+//
+// Copyright 2015 Technexion Ltd.
+//
+// Author: Wig Cheng  <wig.cheng@technexion.com>
+//        Richard Hu <richard.hu@technexion.com>
+//        Tapani Utriainen <tapani@technexion.com>
+/dts-v1/;
+
+#include "imx7d-pico.dtsi"
+/ {
+       model = "TechNexion PICO-IMX7D and DWARF baseboard";
+       compatible = "technexion,imx7d-pico-dwarf", "fsl,imx7d";
+
+       sound {
+               compatible = "fsl,imx-audio-sgtl5000";
+               model = "imx7d-sgtl5000";
+               audio-cpu = <&sai1>;
+               audio-codec = <&sgtl5000>;
+               audio-routing =
+                       "LINE_IN", "Line In Jack",
+                       "MIC_IN", "Mic Jack",
+                       "Mic Jack", "Mic Bias",
+                       "Headphone Jack", "HP_OUT";
+       };
+
+       sys_mclk: clock-sys-mclk {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <24576000>;
+       };
+};
+
+&i2c1 {
+       clock_frequency = <100000>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_i2c1>;
+       status = "okay";
+
+       sgtl5000: audio-codec@a {
+               reg = <0x0a>;
+               compatible = "fsl,sgtl5000";
+               clocks = <&sys_mclk>;
+               VDDA-supply = <&reg_2p5v>;
+               VDDIO-supply = <&reg_3p3v>;
+       };
+
+       pressure-sensor@60 {
+               compatible = "fsl,mpl3115";
+               reg = <0x60>;
+       };
+};
+
+&i2c4 {
+       clock_frequency = <100000>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_i2c1>;
+       status = "okay";
+
+       pca9554: io-expander@25 {
+               compatible = "nxp,pca9554";
+               gpio-controller;
+               #gpio-cells = <2>;
+               #interrupt-cells = <2>;
+               reg = <0x25>;
+       };
+
+       touchscreen@38 {
+               compatible = "edt,edt-ft5x06";
+               reg = <0x38>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_touchscreen>;
+               interrupt-parent = <&gpio2>;
+               interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
+               reset-gpios = <&pca9554 4 GPIO_ACTIVE_LOW>;
+               touchscreen-size-x = <800>;
+               touchscreen-size-y = <480>;
+       };
+};
+
+&iomuxc {
+       pinctrl_touchscreen: touchscreengrp {
+               fsl,pins = <
+                       MX7D_PAD_EPDC_DATA13__GPIO2_IO13        0x14
+               >;
+       };
+};