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: 9284345 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DA20C60574 for ; Tue, 16 Aug 2016 17:48:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE77828626 for ; Tue, 16 Aug 2016 17:48:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C32422862D; Tue, 16 Aug 2016 17:48:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6722428626 for ; Tue, 16 Aug 2016 17:48:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bZiS3-0003pZ-Dv; Tue, 16 Aug 2016 17:46:59 +0000 Received: from mail-pf0-x22c.google.com ([2607:f8b0:400e:c00::22c]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bZiRz-0003oM-KR for linux-arm-kernel@lists.infradead.org; Tue, 16 Aug 2016 17:46:56 +0000 Received: by mail-pf0-x22c.google.com with SMTP id x72so29718734pfd.2 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=DCow18RcSNgZ4T8Jof0TaNPz2p454564Hx26AwyoOVZ2X0jWCL/wuOmDFubCufW85P kmlSMkOk6YFaxRUHGcakiTLJ8bd1jj8XruMpgnBbAaA1zqdh+cZBxpTVk9ooYfV1vpxN /+RTbgAafZa0f8dJ+5C5dPpmOtZobc8laWrDtbI43fDVaE2YjjFwtetJwxUrHanfNzGX 4VkzjXR0vO5oDT7qEfkjixZYxEt5s8P2PVCVx628GoJ1Ui/bZ1KiuzJwwcQgzonXyh8d j+/yu/+YGwpAQmYXWQRLebm//9w0wdA6DeeTxbxXRePx29msqz3/+Xe2BdUo73hSdzSu QmVw== X-Gm-Message-State: AEkooutLXNzDpkWNwBlxVH/J/ReW4Dt5TDIMpPYMf6k6A+qlc0uHngxE4Ta92TwKeh2YikQM 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160816_104655_877960_E2501792 X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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 {