From patchwork Tue Aug 16 17:46:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 74036 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp2122334qga; Tue, 16 Aug 2016 10:47:32 -0700 (PDT) X-Received: by 10.98.49.198 with SMTP id x189mr15285937pfx.135.1471369652002; Tue, 16 Aug 2016 10:47:32 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m18si33052392pfg.123.2016.08.16.10.47.31; Tue, 16 Aug 2016 10:47:31 -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=@linaro.org; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751584AbcHPRra (ORCPT + 7 others); Tue, 16 Aug 2016 13:47:30 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:33542 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750803AbcHPRr2 (ORCPT ); Tue, 16 Aug 2016 13:47:28 -0400 Received: by mail-pf0-f175.google.com with SMTP id y134so29649530pfg.0 for ; Tue, 16 Aug 2016 10:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=mafh1lADAZkHdk6NMVuKsRP02vFw0siHZTwnvgtffyk=; b=PPzbk8wfYE+PIxfTsERt+Fz32Za65QMNGku7VxpaDScksWIIxSsEiBqyUmdhYFoLkt VrPTTIQ7fVVyheblSdEAEMzqA86pYgZ9RGEK9aVlDXdAnSTGTQ9CR8h1SWsZPPEHf3zp Y7wTVwWFNNzDfFfodBIYHf36PCzDSQiL3/mXE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mafh1lADAZkHdk6NMVuKsRP02vFw0siHZTwnvgtffyk=; b=WCGy3gqT5JvnJULAGH67wN3WA/waMgvfmN2iaad8spBWFcc3eKF46Tg9Ia9FDwzuk+ CM7333uqBfOzT373333McDbE99n7pUsZ/0pNgVNmPCt2NnRbxWnuuke1n22f5PQzdvVl fC9o5p3bVYcWCV0EOMarMmCSU8KVcfVH6suyMCZxnrnZSebVxQ2kJyJ6z2QoKeF3fFhZ JM8NOjMC7lNI3W5EnttdG7Uj2OTP1AHFf4mstwPUaDhkZO8t2JkuR8RqIivxXiAu2hL0 inf+Cc2G3H+A/dh0uRaoP217uyqRvt9hwCYCcCQKF5s2QCOJpkxTk7B4379HPu6665ru HK3Q== X-Gm-Message-State: AEkoouuLKRvX3SukCSr0XpxCWQSJgMmhflTU2lXuH7UUcVyQTxidb0q3kAcgCEoqus5DbI3Z X-Received: by 10.98.87.90 with SMTP id l87mr66314714pfb.133.1471369593354; Tue, 16 Aug 2016 10:46:33 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id p67sm40886967pfg.22.2016.08.16.10.46.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Aug 2016 10:46:32 -0700 (PDT) From: Bjorn Andersson To: Andy Gross Cc: linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: msm8974: honami: Add touchscreen Date: Tue, 16 Aug 2016 10:46:30 -0700 Message-Id: <1471369590-12978-1-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the i2c2 and rmi4 nodes to enable the Synaptics touchscreen found in the Honami. Signed-off-by: Bjorn Andersson --- .../boot/dts/qcom-msm8974-sony-xperia-honami.dts | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) -- 2.5.0 -- 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/qcom-msm8974-sony-xperia-honami.dts b/arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dts index 3fb4dada6b0d..0d414ef9d3d0 100644 --- a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dts +++ b/arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dts @@ -311,6 +311,45 @@ pinctrl-0 = <&blsp1_uart2_pin_a>; }; + i2c@f9924000 { + status = "ok"; + + clock-frequency = <355000>; + qcom,src-freq = <50000000>; + + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins>; + + synaptics@2c { + compatible = "syna,rmi4-i2c"; + reg = <0x2c>; + + interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>; + + #address-cells = <1>; + #size-cells = <0>; + + vdd-supply = <&pm8941_l22>; + vio-supply = <&pm8941_lvs3>; + + pinctrl-names = "default"; + pinctrl-0 = <&ts_int_pin>; + + syna,startup-delay-ms = <10>; + + rmi4-f01@1 { + reg = <0x1>; + syna,nosleep-mode = <1>; + }; + + rmi4-f11@11 { + reg = <0x11>; + touchscreen-inverted-x; + syna,sensor-type = <1>; + }; + }; + }; + pinctrl@fd510000 { blsp1_uart2_pin_a: blsp1-uart2-pin-active { rx { @@ -330,6 +369,16 @@ }; }; + i2c2_pins: i2c2 { + mux { + pins = "gpio6", "gpio7"; + function = "blsp_i2c2"; + + drive-strength = <2>; + bias-disable; + }; + }; + sdhc1_pin_a: sdhc1-pin-active { clk { pins = "sdc1_clk"; @@ -366,6 +415,16 @@ }; }; + ts_int_pin: touch-int { + pin { + pins = "gpio61"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + input-enable; + }; + }; }; dma-controller@f9944000 {