From patchwork Tue Apr 17 09:10:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 133524 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp4489653ljb; Tue, 17 Apr 2018 02:11:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/lN87O47FITg/hVpKnCQMilrPdoEwzNx53ApWcon0wQI9DyCfRC8awI/EtkMJ2bZYx/ix8 X-Received: by 2002:a17:902:22cc:: with SMTP id o12-v6mr1361251plg.38.1523956277328; Tue, 17 Apr 2018 02:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523956277; cv=none; d=google.com; s=arc-20160816; b=tDSLEz6Jj7SHHh+brvzL5xSpfMimRmGGDoQLJ1sE0n9TuQe8Up5pgGVM6ouglvMpbT g8tjrkRpSuBZkilmUhVwg9vRU0BL3fh6epOYfcPzDvn3jwsyNfsqdQJMHoFsLPV2UVVc JJDbm9QCcUhuwBOyFgBBjZKgVrWvZqFbgAHaeXJiI/dNnwZBFjE/7OfMYlEQD+jXlVMe o8QEBVnNVdZu+xIP+MfpKez0BfEhIDV9R752vCTX5UaatsqqwUY1YGVue0+aAybn74Wa vjZ8mENDK20WTd6onnwM14qpkqdCXxGL1gEmi/AXMqOMuYDWIrL4e77Lz8lXHSc80Gge 9afA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=yYUNhMqKrNvo7M1Dyv/xIMZzotcUzJ8g2Nya8sB5Ulw=; b=SZAqU7cil/YKtVn3Dfk0Hblq77c4Sf7pdPyhutSrMpFX6HeYhNkeHd3AX28kPwxShW LsGpDRwEBoZTtybiFZpv99HVL+sbmebZerCHrnesun8ttB8+YammZ4UDlYRVhpgZ38W/ 9AgPjMEzb4624cs016i2fYko9/AjX97QWBc7K/ZjakF5xfmReXIoEUv4V3Vl+9fxEdnc VTP0zIRnpfCEWgYY70Dx38AE6wlGBgEOMZIaT+e6Lf3Eyfs1aqXPKSoSkh+6xVa6SMco Odk+Q6KZBMMhmvOAw76JPodh1RpJTSuJrZ2vIaeAnIsTjEes037beiSPzX6zaUjM4sbD a2cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=SemhFIpX; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r25si12132209pfh.2.2018.04.17.02.11.17; Tue, 17 Apr 2018 02:11:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=SemhFIpX; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752250AbeDQJLQ (ORCPT + 6 others); Tue, 17 Apr 2018 05:11:16 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:54795 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751327AbeDQJLP (ORCPT ); Tue, 17 Apr 2018 05:11:15 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3H9B1uD020765; Tue, 17 Apr 2018 04:11:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1523956261; bh=o0oH6z1EKbbJND3kfs5usIA3EcHXEzLBrQdz2RlLFD8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SemhFIpX+aCa2impERknLDv+zmi2ArpDOqz5ok6SuUZkrvYvBTocLWSXBZis/3ZoR evEeZoqbzHbtTZl3UfF0xh/WZTlMXJhaFcP9Vjx9xQ+4bIYyEwIYC517nub/TjaqW0 mLn+6D34m1ViGqkdI7B2S+ba3tnxJ3mSgEGQoLLE= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3H9B1jG021343; Tue, 17 Apr 2018 04:11:01 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Tue, 17 Apr 2018 04:11:00 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Tue, 17 Apr 2018 04:11:00 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3H9AdnB031430; Tue, 17 Apr 2018 04:10:56 -0500 From: Tero Kristo To: , , , CC: , , , Subject: [RFC 06/13] ARM: dts: am57xx-evm: add AM57xx-evm DT overlay Date: Tue, 17 Apr 2018 12:10:08 +0300 Message-ID: <1523956215-28154-7-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1523956215-28154-1-git-send-email-t-kristo@ti.com> References: <1523956215-28154-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The AM57xx-evm is an overlay on top of beagle-x15 board. This contains a display extension macro, and a few extra peripherals. Two versions of the evm are supported, the base evm and the latest rev A3 evm. A common overlay file is used for both boards. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/ti/am57xx-evm-common.dtso | 175 ++++++++++++++++++++++++++++ arch/arm/boot/dts/ti/am57xx-evm-reva3.dtso | 11 ++ arch/arm/boot/dts/ti/am57xx-evm.dtso | 11 ++ 3 files changed, 197 insertions(+) create mode 100644 arch/arm/boot/dts/ti/am57xx-evm-common.dtso create mode 100644 arch/arm/boot/dts/ti/am57xx-evm-reva3.dtso create mode 100644 arch/arm/boot/dts/ti/am57xx-evm.dtso -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/ti/am57xx-evm-common.dtso b/arch/arm/boot/dts/ti/am57xx-evm-common.dtso new file mode 100644 index 0000000..68c3937 --- /dev/null +++ b/arch/arm/boot/dts/ti/am57xx-evm-common.dtso @@ -0,0 +1,175 @@ +/dts-v1/; +/plugin/; +#include +#include +#include + +/ { + fragment@101 { + target-path = "/"; + + __overlay__ { + compatible = "ti,am5728-evm", "ti,am572x-beagle-x15", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7"; + model = "TI AM5728 EVM"; + + aliases { + display0 = "/display"; + display1 = "/connector"; + }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + + USER1 { + gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; + label = "Up"; + linux,code = ; + }; + + USER2 { + gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; + label = "Down"; + linux,code = ; + }; + + USER3 { + gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; + label = "Left"; + linux,code = ; + }; + + USER4 { + gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; + label = "Right"; + linux,code = ; + }; + + USER5 { + gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; + label = "Home"; + linux,code = ; + }; + }; + + lcd0: display { + compatible = "osddisplays,osd070t1718-19ts", "panel-dpi"; + backlight = <&lcd_bl>; + enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; + label = "lcd"; + + panel-timing { + clock-frequency = <33000000>; + de-active = <1>; + hactive = <800>; + hback-porch = <16>; + hfront-porch = <210>; + hsync-active = <0>; + hsync-len = <30>; + pixelclk-active = <1>; + vactive = <480>; + vback-porch = <10>; + vfront-porch = <22>; + vsync-active = <0>; + vsync-len = <13>; + }; + + port { + lcd_in: endpoint { + remote-endpoint = <&dpi_out>; + }; + }; + }; + + lcd_bl: backlight { + compatible = "pwm-backlight"; + brightness-levels = <0 243 245 247 249 251 252 253 255>; + default-brightness-level = <8>; + pwms = <&ehrpwm1 0 50000 0>; + }; + + com_3v6: fixedregulator-com_3v6 { + compatible = "regulator-fixed"; + regulator-name = "com_3v6"; + regulator-min-microvolt = <3600000>; + regulator-max-microvolt = <3600000>; + vin-supply = <&evm_5v0>; + regulator-always-on; + regulator-boot-on; + }; + + vmmcwl_fixed: fixedregulator-mmcwl { + compatible = "regulator-fixed"; + regulator-name = "vmmcwl_fixed"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio5 8 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + }; + }; +}; + +&ehrpwm1 { + status = "okay"; +}; + +&epwmss1 { + status = "okay"; +}; + +&i2c5 { + clock-frequency = <400000>; + status = "okay"; + + pixcir_ts@5c { + compatible = "pixcir,pixcir_tangoc"; + attb-gpio = <&gpio2 4 GPIO_ACTIVE_HIGH>; + interrupt-parent = <&gpio2>; + interrupts = <4 0>; + reg = <0x5c>; + reset-gpio = <&gpio2 6 GPIO_ACTIVE_HIGH>; + touchscreen-size-x = <1024>; + touchscreen-size-y = <600>; + }; +}; + +&uart8 { + status = "okay"; +}; + +&dss { + ports { + #address-cells = <1>; + #size-cells = <0>; + + port { + reg = <0>; + + dpi_out: endpoint { + data-lines = <24>; + remote-endpoint = <&lcd_in>; + }; + }; + }; +}; + +&mmc3 { + status = "okay"; + vmmc-supply = <&com_3v6>; + vqmmc-supply = <&vmmcwl_fixed>; + bus-width = <4>; + cap-power-off-card; + keep-power-in-suspend; + non-removable; + #address-cells = <1>; + #size-cells = <0>; + wlcore: wlcore@2 { + compatible = "ti,wl1835"; + reg = <2>; + interrupt-parent = <&gpio5>; + interrupts = <7 IRQ_TYPE_EDGE_RISING>; + }; +}; diff --git a/arch/arm/boot/dts/ti/am57xx-evm-reva3.dtso b/arch/arm/boot/dts/ti/am57xx-evm-reva3.dtso new file mode 100644 index 0000000..17e778f --- /dev/null +++ b/arch/arm/boot/dts/ti/am57xx-evm-reva3.dtso @@ -0,0 +1,11 @@ +/dts-v1/; +/plugin/; + +&mmc3 { + pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50"; + pinctrl-0 = <&mmc3_pins_default>; + pinctrl-1 = <&mmc3_pins_hs>; + pinctrl-2 = <&mmc3_pins_sdr12>; + pinctrl-3 = <&mmc3_pins_sdr25>; + pinctrl-4 = <&mmc3_pins_sdr50 &mmc3_iodelay_manual1_rev20_conf>; +}; diff --git a/arch/arm/boot/dts/ti/am57xx-evm.dtso b/arch/arm/boot/dts/ti/am57xx-evm.dtso new file mode 100644 index 0000000..91a57e9 --- /dev/null +++ b/arch/arm/boot/dts/ti/am57xx-evm.dtso @@ -0,0 +1,11 @@ +/dts-v1/; +/plugin/; + +&mmc3 { + pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50"; + pinctrl-0 = <&mmc3_pins_default>; + pinctrl-1 = <&mmc3_pins_hs>; + pinctrl-2 = <&mmc3_pins_sdr12>; + pinctrl-3 = <&mmc3_pins_sdr25>; + pinctrl-4 = <&mmc3_pins_sdr50 &mmc3_iodelay_manual1_rev11_conf>; +};