From patchwork Sat Oct 12 14:58:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 11186801 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 83D79112B for ; Sat, 12 Oct 2019 14:58:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5D1BB21850 for ; Sat, 12 Oct 2019 14:58:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iCaBwwXy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727642AbfJLO6g (ORCPT ); Sat, 12 Oct 2019 10:58:36 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43876 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbfJLO6g (ORCPT ); Sat, 12 Oct 2019 10:58:36 -0400 Received: by mail-lj1-f196.google.com with SMTP id n14so12516056ljj.10; Sat, 12 Oct 2019 07:58:34 -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:mime-version :content-transfer-encoding; bh=HrLiuXk6l7SBWQR/FCMK363GSw8hqDIyi5NTJpfi314=; b=iCaBwwXyKPJMg1mxYoSRXQD/mncQ1z96UvDtS8jEzgZITzuq4gpgXTzU0offq3wurE MEZwnpqibgg5BQzSLhS9d9BL/dkJC/Vss8N0a8vWXmICnhqAbx9zyLqKbHDdDv+D2q8i QKylPi+m9O+rkIQWXNkSr0AaEpW8crubfVQJPttMzrPJCICM5E970Oqr61AIfjVTXYWx HO0GJyO+jmjuoOAPp7BeaR/14jCDg0Wbe27wlumM0VwPrMhB3SQXtHAlVPh0Ju9wqGgf Z/fYEv5cKX7yhIpfbFvqpk0syBEj5BIw7VdcwNhhypBMCPZ9Wk2sl0z0HDgQQecgyZeQ kVPw== 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:mime-version :content-transfer-encoding; bh=HrLiuXk6l7SBWQR/FCMK363GSw8hqDIyi5NTJpfi314=; b=UvrzPMIL0b3Cce96jaOoxzChnALp22qLnRIM58m/sxgJPFrXLgJDrqxtqblgUtdvJV wdzP0J6H/dbMNRx9Nd2W8XcHyOc+YRVg/lBW9xzLq0wSgsTWdyD1ssoeYNgFb2GB95ih bQMNBYytd5tlrSmBcqZRG1kCCBC0/2O67LPtvy+RvbrA4n4+sdu1LkubJJfvRJmSkYjW QHmCKqhfiU16GEOQ3eEq+2bGCx2rpGUrxaX8941vzwleHQqvsEBL8062NtTioNyCkdZT gs0VrjzfMQfBGe7IFaaznYRDuXE1Tap8Op43TjsxI6AUTHnTWOG+9t7k7XVUbY8Igzf8 a6zA== X-Gm-Message-State: APjAAAVa7K/wF5I1OExBL58JOJrY40X9dTVbSE9vksRFtJ4mS2VThIle jmYmRQ3M9WkrHyzG0bc3sX8= X-Google-Smtp-Source: APXvYqx6lwhG+N0xzxU05Kphy8LHfZrbnQCsHxSlgS+fhatMJ1vOIhpMriusddYyEHoUWBVgGCfaPQ== X-Received: by 2002:a2e:6c15:: with SMTP id h21mr12681149ljc.86.1570892314106; Sat, 12 Oct 2019 07:58:34 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2019 07:58:33 -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 1/2] arm64: dts: msm8916-longcheer-l8150: Enable WCNSS for WiFi and BT Date: Sat, 12 Oct 2019 19:58:20 +0500 Message-Id: <20191012145821.20846-1-nikitos.tr@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Nikita Travkin WCNSS is used on L8150 for WiFi and BT. Its firmware isn't relocatable and must be loaded at specific address. Signed-off-by: Nikita Travkin Reviewed-by: Stephan Gerhold --- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts index 2b28e383fd0b..e4d467e7dedb 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts @@ -18,6 +18,16 @@ stdout-path = "serial0"; }; + reserved-memory { + // wcnss.mdt is not relocatable, so it must be loaded at 0x8b600000 + /delete-node/ wcnss@89300000; + + wcnss_mem: wcnss@8b600000 { + reg = <0x0 0x8b600000 0x0 0x600000>; + no-map; + }; + }; + soc { sdhci@7824000 { status = "okay"; @@ -68,6 +78,10 @@ }; }; + wcnss@a21b000 { + status = "okay"; + }; + /* * Attempting to enable these devices causes a "synchronous * external abort". Suspected cause is that the debug power From patchwork Sat Oct 12 14:58:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 11186803 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A3B7417EE for ; Sat, 12 Oct 2019 14:58:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 84BA32190F for ; Sat, 12 Oct 2019 14:58:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="C+0Ksqsz" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729220AbfJLO6j (ORCPT ); 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-Google-Smtp-Source: APXvYqzbKhM97VlX89f6VmiXv4xNItKSQEa5jHwCHlrzMWfpjFSyuftqitK6s7DvVz8eHY3lBX19Qg== 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 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 Reviewed-by: Stephan Gerhold --- .../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>;