From patchwork Tue Oct 12 11:27:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J.R. Divya Antony" X-Patchwork-Id: 12552197 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FDCAC433F5 for ; Tue, 12 Oct 2021 11:28:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4554860EBB for ; Tue, 12 Oct 2021 11:28:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236129AbhJLLaM (ORCPT ); Tue, 12 Oct 2021 07:30:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236032AbhJLLaM (ORCPT ); Tue, 12 Oct 2021 07:30:12 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34EC6C061570 for ; Tue, 12 Oct 2021 04:28:11 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id d23so1708026pgh.8 for ; Tue, 12 Oct 2021 04:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8kMH8qw6YfdKiOSMvU60LWyzmdzhpPzD74mBmYDGRns=; b=ZSkFnfbIa8VFOCaRwcWiNi8VbfDD2kNVoQZXOQrNONB+hxaiRjuyyXx7RxDPVGlSp+ KawFZrjaRcwgAi1JxpSUP22A0/c1YexxkAwwipp1yoZhSXQSU0Emcw9J+Gj/CUnboS4J 6KmqQ889i6qd5DnKM+2FLZzCxDLz/iMCQmAGt49Nxy7oQe2JZAIC1MnQGnuMAziYjJF7 hrUCKtEwNBMh7rrvJoJ8NoV6hjTeA8vS/GeZ3wIX2eIZRcUBFlZmKvjabekGT2zbxgNO qTNLVhMWWdnt6iPMknjj2dnlv8S10GP8yNJJqsLxi+xncXjPDLHbr63f+NTcGaWmXF2o sCCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8kMH8qw6YfdKiOSMvU60LWyzmdzhpPzD74mBmYDGRns=; b=eD45PDBTjaOD1J6s3ProQMITfxFEXPRgN6SgdVBFSBGCTDD1XJ/Y31HeM8EZZZiSY1 uqD/TWte3jzONAmUtEXz7d1cEJIxJ/tI7k7zAw7sUYIMWjBKbfe6yssFk67ojZGkKdmJ cHWlaXK2fAWcE4mi04LO0p5DSwbcFVoEVbVZqknPw8TuKLuwFdoZ66wWNxmNTzXaLvXn q22Y0ioLg1AIIiNyFnxX2JFoMyYZXGxL/PJkVSahdpTvAWXHKuFITD/tIY4Xxyqymvrw Ra+qFTzgSshftkvupgDEP0hglLTWlf/U3tHf8evF9F4AixKGd0yH45qwiBdwg5SshWce h1Ug== X-Gm-Message-State: AOAM533YHjgQbtMQOt525p+pl7qyASOFMXK4B+M2cFeRc1hRq0MRyUo4 /1VtMrIcsDhEwR9Cm2HSzGMBYJ8lc2LGEQ== X-Google-Smtp-Source: ABdhPJwvDlxjOM1gRk4WfJQ1SVxzzYPvonmWTR+YiQRYqI2jA73gbIQy/U5V2PbBne0PxQ+4NrffjA== X-Received: by 2002:a63:5544:: with SMTP id f4mr22624382pgm.431.1634038090776; Tue, 12 Oct 2021 04:28:10 -0700 (PDT) Received: from localhost.localdomain ([117.242.199.204]) by smtp.googlemail.com with ESMTPSA id z11sm2590359pjn.12.2021.10.12.04.28.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 04:28:10 -0700 (PDT) From: "J.R. Divya Antony" To: bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, "J.R. Divya Antony" Subject: [PATCH v2 1/3] arm64: dts: qcom: msm8916-asus-z00l: Add touchscreen Date: Tue, 12 Oct 2021 16:57:33 +0530 Message-Id: <20211012112735.2765-1-d.antony.jr@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for touchscreen in this device. Signed-off-by: J.R. Divya Antony Reviewed-by: Stephan Gerhold --- .../arm64/boot/dts/qcom/msm8916-asus-z00l.dts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts b/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts index cee451e59385..71f4aa16058f 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts @@ -4,6 +4,8 @@ #include "msm8916-pm8916.dtsi" #include +#include +#include / { model = "Asus Zenfone 2 Laser"; @@ -48,6 +50,29 @@ usb_id: usb-id { }; }; +&blsp_i2c5 { + status = "okay"; + + touchscreen@38 { + compatible = "edt,edt-ft5306"; + reg = <0x38>; + + interrupt-parent = <&msmgpio>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + + reset-gpios = <&msmgpio 12 GPIO_ACTIVE_LOW>; + + vcc-supply = <&pm8916_l11>; + iovcc-supply = <&pm8916_l6>; + + touchscreen-size-x = <720>; + touchscreen-size-y = <1280>; + + pinctrl-names = "default"; + pinctrl-0 = <&touchscreen_default>; + }; +}; + &blsp1_uart2 { status = "okay"; }; @@ -185,6 +210,22 @@ gpio_keys_default: gpio-keys-default { bias-pull-up; }; + touchscreen_default: touchscreen-default { + pins = "gpio13"; + function = "gpio"; + + drive-strength = <2>; + bias-pull-up; + + reset { + pins = "gpio12"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + }; + usb_id_default: usb-id-default { pins = "gpio110"; function = "gpio"; From patchwork Tue Oct 12 11:27:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J.R. Divya Antony" X-Patchwork-Id: 12552199 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D10AC433F5 for ; Tue, 12 Oct 2021 11:28:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 12AD960698 for ; Tue, 12 Oct 2021 11:28:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236194AbhJLLaV (ORCPT ); Tue, 12 Oct 2021 07:30:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236032AbhJLLaU (ORCPT ); Tue, 12 Oct 2021 07:30:20 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE182C06161C for ; Tue, 12 Oct 2021 04:28:18 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id ls18-20020a17090b351200b001a00250584aso1625568pjb.4 for ; Tue, 12 Oct 2021 04:28:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3W0MRmDdiqWubbhoMPOW8kG4qdU5F7NyfuJwW8aFoGM=; b=aoeCBghZnpbUz15C+ZSHBmksvoX3AkGNIFmqgXq9SVvr+oJfWGzFUGO5aApC3ICNYd 5F8jrHf1rE5yDKn0aMGzD4+2eGjBhTAHpZcC5gDeWbMmb9nZT+VeeL3Rv/keErAPAI9O T5nrVMf4uHu4nYWsSh044Q67g++y53clOmbptPQao6+3j/HihDHagSjt0a0XQ8B2IMAZ z1opLw45E8ZPr+IRBlrb+EplD11gg2YZRCGuhDShmJxzohYnnROtTLSR/Uk8xtl6sMA7 Tkw0gEcI/UrUh8AYtcy3LLcaR/fJBqoYIrjjdK7BcBKumLVRXv7EXk7aZwSBatWlq4T8 /gGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3W0MRmDdiqWubbhoMPOW8kG4qdU5F7NyfuJwW8aFoGM=; b=puPYH2E9mpj33F3BB5WX8cg+exx9gdrLK7hXD3vWlP1XfFXhe4Y83HhsEwSMuLpRFZ JdfHootQO0wzhyiixT7v4BLnIALOdRhuPzq8zC8yxRnTt6pmHkOR+UpHwB6a9zzoCcLS Xj5rSy0ZxOQDeCkb27F56QTjZmVB9lcI4sqUlcehHBpDQwP7JqGjZzwr5vv1yQDGA3m8 E44uDHDXzKVhzOh0LPgaQEg6wOKXXs9mbHEzzvxZrLAYf0SG90ydESKADRv62A3QhSmg O9uvtrFyYeR6+WoFootJQgcsY+6O5OjFe8j0KyMtICmGL7CiuTuiL8dGzgX9q4t/+CEd CSJA== X-Gm-Message-State: AOAM533lSSlOsHJCLVtpfFMaeqxzilLfNN+BQuoWW9X8ZL4YVNMUqZZH ruuSoBcMJJD27hzSxwW61j0= X-Google-Smtp-Source: ABdhPJxTmwhElF4h9jqr4Y5h1RmU5mOF3thQxE+YjxRram5mUbp9qsxCArXCUFCcYCbPJrMlpSSTNQ== X-Received: by 2002:a17:90a:fb87:: with SMTP id cp7mr5359474pjb.114.1634038098359; Tue, 12 Oct 2021 04:28:18 -0700 (PDT) Received: from localhost.localdomain ([117.242.199.204]) by smtp.googlemail.com with ESMTPSA id z11sm2590359pjn.12.2021.10.12.04.28.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 04:28:18 -0700 (PDT) From: "J.R. Divya Antony" To: bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, "J.R. Divya Antony" Subject: [PATCH v2 2/3] arm64: dts: qcom: msm8916-asus-z00l: Add SDCard Date: Tue, 12 Oct 2021 16:57:34 +0530 Message-Id: <20211012112735.2765-2-d.antony.jr@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211012112735.2765-1-d.antony.jr@gmail.com> References: <20211012112735.2765-1-d.antony.jr@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable SDHCI (SD Card) Storage. Signed-off-by: J.R. Divya Antony Reviewed-by: Stephan Gerhold --- .../arm64/boot/dts/qcom/msm8916-asus-z00l.dts | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts b/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts index 71f4aa16058f..355c95365fcd 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts @@ -42,6 +42,21 @@ volume-down { }; }; + reg_sd_vmmc: regulator-sdcard-vmmc { + compatible = "regulator-fixed"; + regulator-name = "sdcard-vmmc"; + regulator-min-microvolt = <2950000>; + regulator-max-microvolt = <2950000>; + + gpio = <&msmgpio 87 GPIO_ACTIVE_HIGH>; + enable-active-high; + + startup-delay-us = <200>; + + pinctrl-names = "default"; + pinctrl-0 = <&sd_vmmc_en_default>; + }; + usb_id: usb-id { compatible = "linux,extcon-usb-gpio"; id-gpios = <&msmgpio 110 GPIO_ACTIVE_HIGH>; @@ -89,6 +104,16 @@ &sdhc_1 { pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>; }; +&sdhc_2 { + status = "okay"; + vmmc-supply = <®_sd_vmmc>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; + cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>; +}; + &usb { status = "okay"; extcon = <&usb_id>, <&usb_id>; @@ -210,6 +235,14 @@ gpio_keys_default: gpio-keys-default { bias-pull-up; }; + sd_vmmc_en_default: sd-vmmc-en-default { + pins = "gpio87"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + touchscreen_default: touchscreen-default { pins = "gpio13"; function = "gpio"; From patchwork Tue Oct 12 11:27:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J.R. Divya Antony" X-Patchwork-Id: 12552201 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0051EC4332F for ; Tue, 12 Oct 2021 11:28:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D2FF46101D for ; Tue, 12 Oct 2021 11:28:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236241AbhJLLaY (ORCPT ); Tue, 12 Oct 2021 07:30:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236163AbhJLLaY (ORCPT ); Tue, 12 Oct 2021 07:30:24 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B20EFC061570 for ; Tue, 12 Oct 2021 04:28:22 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id 66so13591908pgc.9 for ; Tue, 12 Oct 2021 04:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qhipc2uqrDV7pL14AUr+hv451VyVX0mbXieS81Ux/AM=; b=ESFQHPbLnz7WBttsIVSD9T49VI+cIBIaeXeLOedpa/HvYjpvBw6XSTfCB5K3XOAKQG SWTj5GVAHfgHrykPAZS0lYODTp7g1GwffydInccU5cRGK5hH2gDi3HSe82db+3wY063I /iIw1S9OBmc/xJpVhv+vExE+3Yia6iH9Si926ffLuk/5n+dhwEtslHwM0NTWIFHUIGMw LXLnI2IFhX3AnAqnoPZ2Xdfip5OXp3VnP5ZPnJ0TU42fkx8D4ZBmJaYNykimRNFU3ox0 I+G/gp8GBPKJdMRoK6/s4rwgrsICyKREBMERvQybKlt+zsXUUsg1/TV6jK03gW4CPDz7 9Y2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Qhipc2uqrDV7pL14AUr+hv451VyVX0mbXieS81Ux/AM=; b=akWLtb3jHeL6szSIVJTpFNS3d6pXYgMOgpJrVp9ivo1jgGRDQvNVrWd1CmuIgeHTrI ZSXiPc+hqRb+5SQ6V0eTuRxP861KPePDGdmSZA4rZSQNVI5d18KXL+PYTfxRBo4JHMHU gUtKsSeivgIGYF5lU5PweVXo3J3VonA2VHdDI30eddIBEiF4pl5Vnz/Ig/+yNbxczADG fDbqa3mMxfUJYDTy8L0y3aH1qt18PPVyzVaLKy2D/ozglcUEjT8LJGmJxizANOqnzp7B pApYTmNVEy4pujE8pHwdfKNmlNblaK0sdiv6G+5/WQ7ohrrYVvQT8kl+n7AoDOGqSaBo /pZw== X-Gm-Message-State: AOAM531AakvcESn1cB4EGqjwMzD4kHfjlOUT6GUzeqDtIpmp+5UU+R1P X8xTLS9c3N+T9TROMIawo5w= X-Google-Smtp-Source: ABdhPJwWkF8neEb/YOtzIwLiKqsFOgj8nizhai+/yq8eHfMTBK1EIkyUR8Bcz1XRgYG+liM5VhUQgQ== X-Received: by 2002:a62:6543:0:b0:44c:61a0:555a with SMTP id z64-20020a626543000000b0044c61a0555amr30628767pfb.14.1634038102347; Tue, 12 Oct 2021 04:28:22 -0700 (PDT) Received: from localhost.localdomain ([117.242.199.204]) by smtp.googlemail.com with ESMTPSA id z11sm2590359pjn.12.2021.10.12.04.28.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 04:28:22 -0700 (PDT) From: "J.R. Divya Antony" To: bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, "J.R. Divya Antony" Subject: [PATCH v2 3/3] arm64: dts: qcom: msm8916-asus-z00l: Add sensors Date: Tue, 12 Oct 2021 16:57:35 +0530 Message-Id: <20211012112735.2765-3-d.antony.jr@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211012112735.2765-1-d.antony.jr@gmail.com> References: <20211012112735.2765-1-d.antony.jr@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This device has MPU-6515 imu and Asahi Kasei AK09911 magnetometer, Add support for it. Signed-off-by: J.R. Divya Antony Reviewed-by: Stephan Gerhold --- .../arm64/boot/dts/qcom/msm8916-asus-z00l.dts | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts b/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts index 355c95365fcd..c2afda74b5b3 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts @@ -65,6 +65,41 @@ usb_id: usb-id { }; }; +&blsp_i2c2 { + status = "okay"; + + magnetometer@c { + compatible = "asahi-kasei,ak09911"; + reg = <0x0c>; + + vdd-supply = <&pm8916_l8>; + vid-supply = <&pm8916_l6>; + + reset-gpios = <&msmgpio 112 GPIO_ACTIVE_LOW>; + + pinctrl-names = "default"; + pinctrl-0 = <&mag_reset_default>; + }; + + imu@68 { + compatible = "invensense,mpu6515"; + reg = <0x68>; + + interrupt-parent = <&msmgpio>; + interrupts = <36 IRQ_TYPE_EDGE_RISING>; + + vdd-supply = <&pm8916_l17>; + vddio-supply = <&pm8916_l6>; + + pinctrl-names = "default"; + pinctrl-0 = <&imu_default>; + + mount-matrix = "1", "0", "0", + "0", "-1", "0", + "0", "0", "1"; + }; +}; + &blsp_i2c5 { status = "okay"; @@ -235,6 +270,22 @@ gpio_keys_default: gpio-keys-default { bias-pull-up; }; + imu_default: imu-default { + pins = "gpio36"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + + mag_reset_default: mag-reset-default { + pins = "gpio112"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + sd_vmmc_en_default: sd-vmmc-en-default { pins = "gpio87"; function = "gpio";