Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2313763ybp; Sat, 12 Oct 2019 07:59:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQGNGKSdF7pepW2xUPhkFae+KlQERP+AwPrN+mhkwiRDYG3WvB6+WLYMel37eAStOYM8X0 X-Received: by 2002:a17:906:5bcf:: with SMTP id w15mr19614987ejs.84.1570892348218; Sat, 12 Oct 2019 07:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570892348; cv=none; d=google.com; s=arc-20160816; b=UEo6MsHJ+gszR3sr5LY6pkLC8WfVHzsQ5dj/2phuFAitTuyDEWO5cjLaDuAJPZA1YV kk9FO6S2SkfkdiLS+hPC6RO3rRiZP7IBBy1Y6MVV5QIsLzXciA4E/YwA7gFo5uxpqa3U 3yeuPRiXlHPomgtELcm0qywkmy4zgK9qIxZvvNv+Ib8I2GkZ85EFJqNT07vv+DJeKJMm McFUs/GydFuHq5JX7rii2/MRTMQ4peVUnv6VAqb8hy5fVXutPiyThHnaiVe+/QtUTR1u VczYQL612BjAAEy8LGYRq1BEGZ/17lXGX06ct8nXRppBnVd4PF/zuUuC67QBxFr/W2vg VgYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ds6CBuPGXPN8cM3I5FgjrvhnR3q6X/DE2v9ncJJpvWQ=; b=q0r3YQrPdeI6MWi1GdbGh8+YPtF6Ym2m/+clgRQOyDhMu5X+56Bkmm+uo0tmcI/K54 GZk4wgof3+MY5eB4NNwbvP3/DVIAoe+Fsn9elj3duFk8iHAELAfMag4RwY5phAZlcgIu 8ZctPVDCe+KwjNuadPZHXuMEfJamQuPSZi7T34WAwo8mk5tJhbn6jGTheevo7wSKFmAe 2dlMIc8gGvEjbzjqkMB4LIQ1BCDKK4mHBlMnByHQfG/rJbHFur6okNP4n93qTPMBGxaJ xaw20y1BT6pzKAH844F7HytRDVc/sKYJ0nGaMkzw1eYrQ94mzvFiGtgKM/pUDY8byKyA 7Rjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C+0Ksqsz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dv24si7463840ejb.60.2019.10.12.07.58.44; Sat, 12 Oct 2019 07:59:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C+0Ksqsz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729279AbfJLO6j (ORCPT + 99 others); Sat, 12 Oct 2019 10:58:39 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:45790 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727507AbfJLO6i (ORCPT ); Sat, 12 Oct 2019 10:58:38 -0400 Received: by mail-lj1-f193.google.com with SMTP id q64so12504423ljb.12; Sat, 12 Oct 2019 07:58:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ds6CBuPGXPN8cM3I5FgjrvhnR3q6X/DE2v9ncJJpvWQ=; b=C+0Ksqszvv5wtLFREYcHTQLiAh1582oPqM1r2RmJIU5CRJbN/EuPg2jFlDY1oSZB8Z W9pS6sWkZn/db+B+IoPez/rOj003akKbM3VlvpR15if0gUU32o+ZRpOQogAv+P74Resk f0AzG1tQX6GjN3Q/HueMw6yAF8HNvLd9vHneA07aAB3eMIPHJF2NGwURWS+D1zTqehRj uIw/2vjQREYcknw41FoZZpbPn8gM9qOv4R+u9LnDOzbDK49qplQnJCkXZrSQWGtcIVFy KV6p+yC6j0z76I/pjFYC3uwjWMWqd3Sg+Dz1WYk3N3Z2ldxsW2kbrbArNpTpTNF3CDpX TB8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ds6CBuPGXPN8cM3I5FgjrvhnR3q6X/DE2v9ncJJpvWQ=; b=VixLh44twVsIOa2B+msr1A3pC03A+7MnDrE09Hqk1G9E0X/D10XgK8RWnTWsR1zoVK bYf3ZTEWDwqLm4IuRXlMLj5qupTIfanG1IsfpVrhyKvNqLP6AsXAZ+VBRzVklPV3485b +PysqZR/njPxwxJFzdhF2P0QGUKVa5K6nOtUI2R+6nd5WiyjxqK7B98Hse2VznhZePfm MK7vos0dP6X76U9vNfAUfYLlgAw5tA9CUrn7P1JUzcwn4izQKp2eYOWzjVITpXjTky7D ehsoqVPm1585p+6lwfKuBbRJSIlnXmTyKtpIFcdIEWSwUdWxqqLEMgaqP9aOeNLIbpXk QTFQ== X-Gm-Message-State: APjAAAUBn19EjZZSAE0JM1AXoZUf1Rpr+RYWzhWXrEhy/tiLuV/QeBa/ Fd+lG6MxanuK1oiMbL0wwrA= X-Received: by 2002:a2e:6c0e:: with SMTP id h14mr12447567ljc.92.1570892315846; Sat, 12 Oct 2019 07:58:35 -0700 (PDT) Received: from localhost.localdomain ([2a01:540:3f08:6700:a54a:5215:2ca7:fec9]) by smtp.gmail.com with ESMTPSA id t4sm2599764lji.40.2019.10.12.07.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2019 07:58:35 -0700 (PDT) From: nikitos.tr@gmail.com To: agross@kernel.org, bjorn.andersson@linaro.org Cc: robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stephan@gerhold.net, Nikita Travkin Subject: [PATCH 2/2] arm64: dts: msm8916-longcheer-l8150: Add Volume buttons Date: Sat, 12 Oct 2019 19:58:21 +0500 Message-Id: <20191012145821.20846-2-nikitos.tr@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20191012145821.20846-1-nikitos.tr@gmail.com> References: <20191012145821.20846-1-nikitos.tr@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nikita Travkin Add nodes for Volume UP button connected to GPIO and Volume DOWN button, which is handled by the pm8916 as is common with msm8916 devices. Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts index e4d467e7dedb..d1ccb9472c8b 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts @@ -5,6 +5,7 @@ #include "msm8916.dtsi" #include "pm8916.dtsi" #include +#include / { model = "Longcheer L8150"; @@ -113,9 +114,36 @@ pinctrl-names = "default"; pinctrl-0 = <&usb_vbus_default>; }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_default>; + + label = "GPIO Buttons"; + + volume-up { + label = "Volume Up"; + gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; }; &msmgpio { + gpio_keys_default: gpio_keys_default { + pinmux { + function = "gpio"; + pins = "gpio107"; + }; + pinconf { + pins = "gpio107"; + drive-strength = <2>; + bias-pull-up; + }; + }; + usb_vbus_default: usb-vbus-default { pinmux { function = "gpio"; @@ -128,6 +156,19 @@ }; }; +&spmi_bus { + pm8916@0 { + pon@800 { + volume-down { + compatible = "qcom,pm8941-resin"; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + bias-pull-up; + linux,code = ; + }; + }; + }; +}; + &smd_rpm_regulators { vdd_l1_l2_l3-supply = <&pm8916_s3>; vdd_l4_l5_l6-supply = <&pm8916_s4>; -- 2.19.1