From patchwork Mon Oct 5 15:03:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11816763 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 79C5A13B2 for ; Mon, 5 Oct 2020 15:04:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5F333208A9 for ; Mon, 5 Oct 2020 15:04:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eE5U32q4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726748AbgJEPD3 (ORCPT ); Mon, 5 Oct 2020 11:03:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726637AbgJEPDZ (ORCPT ); Mon, 5 Oct 2020 11:03:25 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61A8EC0613CE; Mon, 5 Oct 2020 08:03:25 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id t9so1329994wrq.11; Mon, 05 Oct 2020 08:03:25 -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=1RG5O/blRX088Gf+ChfJZxqZON6Zi0SmLcrgY0NHzZU=; b=eE5U32q4J8OCVWaOdW3/PJpFoCfS6AAVQm9eTgbi93rZR5nbVgvY6jg3wLTVSVzqA9 lDWl3Mfctfen6dcJAFhpEfB+vyb7XKf/EbbuNTvGn+OFCxUJ/Pe13Q7Wwzq0LT8Mv2eb J4NfeYRKR0zn184450Y/uR5sl+HIipqAcK8ZL1j1YIX+ywVpiZ7uXpJQQrfVnDKdUMpZ 58Dzomy4ER6t4+mB9laQoLcmoKk/WlIImrPWZnCa3GpVrpnpsjLb7obowoR1fAPU7l+J m5QIYvPibFXgbybuUtpJQJHY+2lu1oFsUyy+JukLW/rNG21ixCx81bgXO1XTvqhUJhir 55tw== 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=1RG5O/blRX088Gf+ChfJZxqZON6Zi0SmLcrgY0NHzZU=; b=hZNuPJYiJPWz/vlbvBFoUS7KyTveN1grbnkOqbIMD5HO2NaRN94EJ7YESV6IascsEW KLkXECNJ3F0AnMaZ6ASzx3Lu+UlKHAMJrmEz/ESp1uUgKc6j8B7CM7lr1KJlBZmMYO0N wFqpSe3h+NpTIsLv9mN/bAp2V0eUwogANSVIDl5z5lfJvAAJAcmT02kZcdm6bWsNM+ZB Uoa+bB9XsKaqNxP1bwxFepjNeSinRxymc6ClVVKo4zufeM8HqQRpFbAFQLVAdNNHF0Gu W29ZBkwASGiXBqOUvdfsSFNNv5XBAsgM1tmuLToYkp0FPPKgmZ0TXs1tbmCT8uTXnD9B tI0Q== X-Gm-Message-State: AOAM533zrAwokYKgwd6LGgOf0wodCCSUTY7mJ7neMatL2oOxrNLw2P0/ FaF5B5uHjqqOXfpWYsYHuBg= X-Google-Smtp-Source: ABdhPJytBOxbYlIVvXxNG0jVtNFycKep6mZQv1jCqxUnOC4v0KiopSbE4QroV2dV4BeZxqPSX/WQFg== X-Received: by 2002:adf:f4c6:: with SMTP id h6mr12104118wrp.310.1601910204126; Mon, 05 Oct 2020 08:03:24 -0700 (PDT) Received: from localhost.localdomain (abab191.neoplus.adsl.tpnet.pl. [83.6.165.191]) by smtp.googlemail.com with ESMTPSA id c132sm4662wmf.25.2020.10.05.08.03.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 08:03:23 -0700 (PDT) From: Konrad Dybcio To: konradybcio@gmail.com Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/11] arm64: dts: qcom: pm8994: Add VADC node Date: Mon, 5 Oct 2020 17:03:01 +0200 Message-Id: <20201005150313.149754-2-konradybcio@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005150313.149754-1-konradybcio@gmail.com> References: <20201005150313.149754-1-konradybcio@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add VADC note and some of its channels to allow for voltage/temperature reading. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8994.dtsi | 36 +++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/pm8994.dtsi index 7e4f777746cb..ea2a3d53f859 100644 --- a/arch/arm64/boot/dts/qcom/pm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8994.dtsi @@ -1,7 +1,8 @@ // SPDX-License-Identifier: GPL-2.0 +#include +#include #include #include -#include &spmi_bus { @@ -35,6 +36,39 @@ pwrkey { }; + pm8994_vadc: adc@3100 { + compatible = "qcom,spmi-vadc"; + reg = <0x3100>; + interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + + adc-chan@7 { + reg = ; + qcom,pre-scaling = <1 3>; + label = "vph_pwr"; + }; + adc-chan@8 { + reg = ; + label = "die_temp"; + }; + adc-chan@9 { + reg = ; + label = "ref_625mv"; + }; + adc-chan@a { + reg = ; + label = "ref_1250mv"; + }; + adc-chan@e { + reg = ; + }; + adc-chan@f { + reg = ; + }; + }; + pm8994_gpios: gpios@c000 { compatible = "qcom,pm8994-gpio"; reg = <0xc000>; From patchwork Mon Oct 5 15:03:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11816743 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 1EDD9112E for ; Mon, 5 Oct 2020 15:03:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 043AC2100A for ; Mon, 5 Oct 2020 15:03:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="s9SJz8A7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726768AbgJEPD3 (ORCPT ); Mon, 5 Oct 2020 11:03:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726743AbgJEPD2 (ORCPT ); Mon, 5 Oct 2020 11:03:28 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50C8AC0613A8; Mon, 5 Oct 2020 08:03:28 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id m6so10006287wrn.0; Mon, 05 Oct 2020 08:03:28 -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=tlH8tFGN06glbZKMWD61GjMvPfq2+LXNjuTVVLpB//g=; b=s9SJz8A70o7kQXfyEHA2+fqpr1v0t6DJkIOB3/DT7NoCYKzxu7ONMJyLAqIW6u7Qro XVpKabWOskzSu3rq8yxAHkWWIMMqE3v0qOC2NOcIm0mUejN+4TEiHSYhPQ2lboJ8PFCF Lf5CUP3vnJs/Ejeh59V59qmDhBHKn4K3QNxGxBiPNDW6uqd1aeoUvRiAu3M7CCmdTCRA yAWGm1aczWV/3JsGDsgVwYRYFYxgufXjoNwPmqk5IRduUNZ+d+pRSnVSXNzDvL6ETjFz ZIZmTW+kPFNPHbj4cNWdyY/T7l6gmuco1xIpVxqA3jMmNxO3IVB8eMzZeN9gnKJ5mbiw U1QA== 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=tlH8tFGN06glbZKMWD61GjMvPfq2+LXNjuTVVLpB//g=; b=WqZw+1uUYZ5la8fH9VffB/DXJZr59ROXUN9lzvoUzx4Iba5uey+J+tL8mRH3J7LEv+ qpsntlEemL2cqU9ZaOZ9uUJaY0tzVocTOsEteKV+hyLd4OfA6FE3uAa6dM4FJ0N1BoAx eI1p9FkS+BmTeFX45AMmy0fsDOEasoxYojlwq808WcG+7lByRA4KCnf+WNJE8UxysFvc 7GmpnHzoap/XlK+oT1UtX3F0+1utcl57qmT6vx3P/0/npGOSwiWdzRkrNUp65jH6j+qz /b9SJ4Iq+ltmGmRGg6/2QHeMoTFaJGdXTXkFMFGCxf84RqlR0LU3ORo4S3bYks6I99/0 Dz8A== X-Gm-Message-State: AOAM531gXtKlUb8bGdVcYlbptHNGA7FVjOOKA8Fs6sMvz6Bd2Taqpff8 hyHYzQ2ZMLI8elxL7beJmvg= X-Google-Smtp-Source: ABdhPJwKU8vlzAt0OEbt2AoXNmvxhtk218aJRlJH7VFsGPITYJGlL3qz2XiXRITp9PEuMq2rEHAsgg== X-Received: by 2002:a5d:40cd:: with SMTP id b13mr18280179wrq.297.1601910206921; Mon, 05 Oct 2020 08:03:26 -0700 (PDT) Received: from localhost.localdomain (abab191.neoplus.adsl.tpnet.pl. [83.6.165.191]) by smtp.googlemail.com with ESMTPSA id c132sm4662wmf.25.2020.10.05.08.03.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 08:03:26 -0700 (PDT) From: Konrad Dybcio To: konradybcio@gmail.com Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/11] arm64: dts: qcom: pm8994: Add temperature alarm node Date: Mon, 5 Oct 2020 17:03:02 +0200 Message-Id: <20201005150313.149754-3-konradybcio@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005150313.149754-1-konradybcio@gmail.com> References: <20201005150313.149754-1-konradybcio@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8994.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/pm8994.dtsi index ea2a3d53f859..7825208b0d8b 100644 --- a/arch/arm64/boot/dts/qcom/pm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8994.dtsi @@ -36,6 +36,15 @@ pwrkey { }; + pm8994_temp: temp-alarm@2400 { + compatible = "qcom,spmi-temp-alarm"; + reg = <0x2400>; + interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; + io-channels = <&pm8994_vadc VADC_DIE_TEMP>; + io-channel-names = "thermal"; + #thermal-sensor-cells = <0>; + }; + pm8994_vadc: adc@3100 { compatible = "qcom,spmi-vadc"; reg = <0x3100>; From patchwork Mon Oct 5 15:03:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11816761 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 D512E92C for ; Mon, 5 Oct 2020 15:04:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B769D2085B for ; Mon, 5 Oct 2020 15:04:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kvJiyWV8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727021AbgJEPER (ORCPT ); Mon, 5 Oct 2020 11:04:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726777AbgJEPDc (ORCPT ); Mon, 5 Oct 2020 11:03:32 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B563C0613CE; Mon, 5 Oct 2020 08:03:31 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id n18so2155021wrs.5; Mon, 05 Oct 2020 08:03:31 -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=QbNuaKYkBwTpPwNCy+vwzXuQoVj7XjK6mVw/QFBl4AE=; b=kvJiyWV85k5/KMAXBym5LsGNvu1Ry6aAJjUV0rZSs628BMWLR38caZflkfDkdFQIur pVD/vxSYl+Q7IQvTqhuUcUOdDUeJTdP82h98zWEO8KCX0BUPXmH/JiFyTZSyRajvHI94 5A3zUFuJx1m7uzqn29S6d7gQFKTlI4c6tFmttRvR2JO4X5MwYCxcvdwHIQwI9R0B+vnw jnoFd2Q/zRhDpnnjwdtPc2FEKO4VT2jJbULY1XhsEAcOY2M6Jpy6YWlS2LqNJG4SqqeB 7BbQqBmh9K/hpUycApzbURlx9HhGZIhPA7+TJ6FxqiEZFWl10O/FRy+yaMa6WyqG/yjM szTA== 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=QbNuaKYkBwTpPwNCy+vwzXuQoVj7XjK6mVw/QFBl4AE=; b=TAqNtKXDFNDA1uErRHiUSbun3dP99q5g6bFNGHYPpJ7fpjKmgZZI5uu1aL6G+t/o56 X9irSVdkBAWChl9GGxl2dXCiaDhwcn06ZxIxSPIqtgqCM06G2H13DPkdIlC2c2J+9ONo kscpyku9TDvjuBM268aHyf8yor5PMR9QdJv9vM8Roequ5x/gYXd8s7iY2WF2k8ajgqp+ ns8uLT7rjiDE/rsCWFS5ZKNiLEwiHkB8D/lZ6Pb49mjYk2C3XvPsVYVk2Rmp14x5aS4M FpaZhg/V6uFBBxHPtofuYcpDYV+nSDQEHBzs/DsQKrOaxaho3CzxQeSH2w7EC93n8BEO ea6Q== X-Gm-Message-State: AOAM533+y0UhAaygkvPclFVWPylSsSBgOe5bAh6kW4fSriEwIKXzWpX9 CE1yLTOJvAWq0LuYMOnREmk= X-Google-Smtp-Source: ABdhPJyamaT+oa9/xN0SHhTX/A3xrad5o7D2fN1B/WNzPoOHOb/t5Q7KrJNhUCYcLZX4bQsSczmTeg== X-Received: by 2002:adf:e552:: with SMTP id z18mr17320400wrm.50.1601910210052; Mon, 05 Oct 2020 08:03:30 -0700 (PDT) Received: from localhost.localdomain (abab191.neoplus.adsl.tpnet.pl. [83.6.165.191]) by smtp.googlemail.com with ESMTPSA id c132sm4662wmf.25.2020.10.05.08.03.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 08:03:29 -0700 (PDT) From: Konrad Dybcio To: konradybcio@gmail.com Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/11] arm64: dts: qcom: pm8994: Add thermal-zones for temp alarm Date: Mon, 5 Oct 2020 17:03:03 +0200 Message-Id: <20201005150313.149754-4-konradybcio@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005150313.149754-1-konradybcio@gmail.com> References: <20201005150313.149754-1-konradybcio@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This will shut down the platform in case the PMIC overheats. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8994.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/pm8994.dtsi index 7825208b0d8b..9ab5657f7d23 100644 --- a/arch/arm64/boot/dts/qcom/pm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8994.dtsi @@ -4,6 +4,30 @@ #include #include +/ { + thermal-zones { + pm8994 { + polling-delay-passive = <250>; + polling-delay = <1000>; + + thermal-sensors = <&pm8994_temp>; + + trips { + pm8994_alert0: pm8994-alert0 { + temperature = <95000>; + hysteresis = <2000>; + type = "passive"; + }; + pm8994_crit: pm8994-crit { + temperature = <125000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; +}; + &spmi_bus { pmic@0 { From patchwork Mon Oct 5 15:03:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11816747 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 95618112E for ; Mon, 5 Oct 2020 15:03:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7B4C2208C7 for ; Mon, 5 Oct 2020 15:03:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LrUl1Vub" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726821AbgJEPDk (ORCPT ); Mon, 5 Oct 2020 11:03:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726795AbgJEPDe (ORCPT ); Mon, 5 Oct 2020 11:03:34 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C131AC0613A7; Mon, 5 Oct 2020 08:03:33 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id v12so9147613wmh.3; Mon, 05 Oct 2020 08:03:33 -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=ekPdQa1xmNKs7v3pWlFdm/XtGh/8ZRLvEzXqbsequUk=; b=LrUl1Vuba6cCvOnDZ2s5MWWgrXdvy/hkE8hrvl0Yy8GxO1rlDw93Miwn8ugtBP/vA5 mrvgjXGZLhKtroF9eXHOJ3JJaiPT/dbHKxtflt0zum4SXil9IE+dUKMNO6MAl2vl1FjW mwetzCdwV0LirsnXDF4CR08WqMYWtQj7K9NOMmazzriOyURChLyVVVgczGzj4eknrdzh pz6R15qTQRWYYrFuyY9WXKuaEO48nWe+c4/eEamGwdL1RrAXBCiW43FSxw8LaWHpqSh9 2vp2wgO5/Pb3ibgSjR5z+zP651Dj+h51vBUb2JkfAVW1u7tB+0D9ODIqPbv+/6t7aQgu M12A== 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=ekPdQa1xmNKs7v3pWlFdm/XtGh/8ZRLvEzXqbsequUk=; b=odC7jPbfFOYr6D6NS21tneckAHS7Jr6AGWou3KdhgQoZ5IkKHQMH5T/kXkTF57IRmP 9BvBHAENByKyT9e2IaXo8Gl3MfEMASjRYal2eLL5PIQR2hL9iPoq43/N824ZV9FG9tJf vCntQC6v3tuYrvJ/sRCuBOwwFe8/XtHdBgMhBKpkSR1O0Nk6rtPR2XS97ycRDJ461+Nr oEkMucFP2i/KQNenc0G516OrccEaD3KApN0tMCdPJL6pq8K/Qn9TgtT9YlOeEtFlsKtd GgxcG876tSXkPTD1Z+IbL4t3Wrz7OvBQFy+4cogduYAKltCOah/3HDFGvX8oZurU2FCZ MU/w== X-Gm-Message-State: AOAM531M8/fmPSoqD+Mc1wE7oLDkJA4jzxj7MtyCR480N9BH7TgQ5lQz SezWG7Wmc1Hykk9j2RmQqLI= X-Google-Smtp-Source: ABdhPJwsxuNvDZPavDBF0khnTAJv2VsW/kagDfVoHVe7bW2LChyS+RTQZrdg25/QIrsXp/4g6nyWzw== X-Received: by 2002:a1c:e444:: with SMTP id b65mr16596146wmh.147.1601910212433; Mon, 05 Oct 2020 08:03:32 -0700 (PDT) Received: from localhost.localdomain (abab191.neoplus.adsl.tpnet.pl. [83.6.165.191]) by smtp.googlemail.com with ESMTPSA id c132sm4662wmf.25.2020.10.05.08.03.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 08:03:32 -0700 (PDT) From: Konrad Dybcio To: konradybcio@gmail.com Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/11] arm64: dts: qcom: pm8994: Fix up spmi-gpio node Date: Mon, 5 Oct 2020 17:03:04 +0200 Message-Id: <20201005150313.149754-5-konradybcio@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005150313.149754-1-konradybcio@gmail.com> References: <20201005150313.149754-1-konradybcio@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a common compatible and switch to gpio-ranges. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8994.dtsi | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/pm8994.dtsi index 9ab5657f7d23..5ffdf37d8e31 100644 --- a/arch/arm64/boot/dts/qcom/pm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8994.dtsi @@ -103,32 +103,13 @@ adc-chan@f { }; pm8994_gpios: gpios@c000 { - compatible = "qcom,pm8994-gpio"; + compatible = "qcom,pm8994-gpio", "qcom,spmi-gpio"; reg = <0xc000>; gpio-controller; + gpio-ranges = <&pm8994_gpios 0 0 22>; #gpio-cells = <2>; - interrupts = <0 0xc0 0 IRQ_TYPE_NONE>, - <0 0xc1 0 IRQ_TYPE_NONE>, - <0 0xc2 0 IRQ_TYPE_NONE>, - <0 0xc3 0 IRQ_TYPE_NONE>, - <0 0xc4 0 IRQ_TYPE_NONE>, - <0 0xc5 0 IRQ_TYPE_NONE>, - <0 0xc6 0 IRQ_TYPE_NONE>, - <0 0xc7 0 IRQ_TYPE_NONE>, - <0 0xc8 0 IRQ_TYPE_NONE>, - <0 0xc9 0 IRQ_TYPE_NONE>, - <0 0xca 0 IRQ_TYPE_NONE>, - <0 0xcb 0 IRQ_TYPE_NONE>, - <0 0xcc 0 IRQ_TYPE_NONE>, - <0 0xcd 0 IRQ_TYPE_NONE>, - <0 0xce 0 IRQ_TYPE_NONE>, - <0 0xcf 0 IRQ_TYPE_NONE>, - <0 0xd0 0 IRQ_TYPE_NONE>, - <0 0xd1 0 IRQ_TYPE_NONE>, - <0 0xd2 0 IRQ_TYPE_NONE>, - <0 0xd3 0 IRQ_TYPE_NONE>, - <0 0xd4 0 IRQ_TYPE_NONE>, - <0 0xd5 0 IRQ_TYPE_NONE>; + interrupt-controller; + #interrupt-cells = <2>; }; pm8994_mpps: mpps@a000 { From patchwork Mon Oct 5 15:03:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11816745 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 14F3C92C for ; Mon, 5 Oct 2020 15:03:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EC83120E65 for ; Mon, 5 Oct 2020 15:03:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UfBsPRDj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726807AbgJEPDj (ORCPT ); Mon, 5 Oct 2020 11:03:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726012AbgJEPDi (ORCPT ); Mon, 5 Oct 2020 11:03:38 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5F55C0613A8; Mon, 5 Oct 2020 08:03:37 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id o5so9964571wrn.13; Mon, 05 Oct 2020 08:03:37 -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=E4XyE66T2J1HSRX1OawRh9+7lK9LP/p7OLEfyYWRZYg=; b=UfBsPRDjRfIUEI/OnR0F/++GkUfSUixKTjRVox9+fqHSsvpFzpG+4RWP3nNuFis+SQ 0CeVpQxhvAAt6uGIBaFK6PxjNkiNbBMywVIWg2JYFyQtuDw7CtzTgFPZvvbdbW+nmfKl KZNmfLS5zlzAdABOA4NnKXIlooiSKktlYW8uCVuBgTZiG0TpXz4xQcGAHDCXEW2y72eg YKnDai+sdQnwqA70WMiXHawzFnVVId+WzIHm6X6/5Rh96udR+G9OfyXkYTbpvgjjMK/o ctPOdPY15090citjJGJOpNyu/wC8QdainJG05wkAVzcO6jw7nTYGJprXE/A5SqIuSg/4 cs0A== 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=E4XyE66T2J1HSRX1OawRh9+7lK9LP/p7OLEfyYWRZYg=; b=WHCVfufTSLXy1DL1EwbeS9hEcE2dCVgft4TZxYQn4O9y3m9i6tbA+v4lq6iF5vHUFB r+uHX9BKqPa3uZcCbQjaQcpsUUscY0ZIO15Na8CJnDLpdqonW8D+p7bB+YgHMkJy8+5w bBXJgYQl6wfUCNJO6g1sydNfvsy8MUTZ+yeCIiKrTq/ak5JPcICclyc/6DHmRVc9fvys 1gE8qZyBouAhccnsWmqZ0ui7HHF0N5GE4JHjBkX+QPJ0zVYZCxChrB9acLmPPgjyCDvT 4t871OnCmZ510nxUwM8RGzvMJ/z4G5rLcmdPxBMjYtnHvLhWuDP1ZhSi5YxrabHY0jPL xVKQ== X-Gm-Message-State: AOAM530O54L6bpytA/ctmsZWy/cDcgtaifhN4NUALBjHCMbTEhzqolQM o4IUBp+7tUV5Kpzb6adnoUPvwL7x+uNh/Q== X-Google-Smtp-Source: ABdhPJziLw7STBhrJWZQvZt+Upb4ujLNQjruebPI+NeHnziCQanwtvLV1ELVf+8jVXTPS9KZiioJmQ== X-Received: by 2002:adf:9e05:: with SMTP id u5mr12083749wre.78.1601910214936; Mon, 05 Oct 2020 08:03:34 -0700 (PDT) Received: from localhost.localdomain (abab191.neoplus.adsl.tpnet.pl. [83.6.165.191]) by smtp.googlemail.com with ESMTPSA id c132sm4662wmf.25.2020.10.05.08.03.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 08:03:34 -0700 (PDT) From: Konrad Dybcio To: konradybcio@gmail.com Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/11] arm64: dts: qcom: msm8992: Add support for SDHCI2 Date: Mon, 5 Oct 2020 17:03:05 +0200 Message-Id: <20201005150313.149754-6-konradybcio@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005150313.149754-1-konradybcio@gmail.com> References: <20201005150313.149754-1-konradybcio@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This will let us use SD cards on our devices. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8992.dtsi | 59 +++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8992.dtsi b/arch/arm64/boot/dts/qcom/msm8992.dtsi index 8626b3a50eda..6242c56a2bfa 100644 --- a/arch/arm64/boot/dts/qcom/msm8992.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8992.dtsi @@ -269,6 +269,29 @@ sdhc_1: sdhci@f9824900 { status = "disabled"; }; + sdhc_2: sdhci@f98a4900 { + compatible = "qcom,sdhci-msm-v4"; + reg = <0xf98a4900 0x11c>, <0xf98a4000 0x800>; + reg-names = "hc_mem", "core_mem"; + + interrupts = , + ; + interrupt-names = "hc_irq", "pwr_irq"; + + clocks = <&gcc GCC_SDCC2_APPS_CLK>, + <&gcc GCC_SDCC2_AHB_CLK>, + <&xo_board>; + clock-names = "core", "iface", "xo"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>; + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>; + + cd-gpios = <&tlmm 100 0>; + bus-width = <4>; + status = "disabled"; + }; + blsp1_uart2: serial@f991e000 { compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; reg = <0xf991e000 0x1000>; @@ -573,6 +596,42 @@ i2c13_sleep: i2c13-sleep { drive-strength = <2>; bias-disable; }; + + sdc2_clk_on: sdc2-clk-on { + pins = "sdc2_clk"; + bias-disable; + drive-strength = <16>; + }; + + sdc2_clk_off: sdc2-clk-off { + pins = "sdc2_clk"; + bias-disable; + drive-strength = <2>; + }; + + sdc2_cmd_on: sdc2-cmd-on { + pins = "sdc2_cmd"; + bias-pull-up; + drive-strength = <10>; + }; + + sdc2_cmd_off: sdc2-cmd-off { + pins = "sdc2_cmd"; + bias-pull-up; + drive-strength = <2>; + }; + + sdc2_data_on: sdc2-data-on { + pins = "sdc2_data"; + bias-pull-up; + drive-strength = <10>; + }; + + sdc2_data_off: sdc2-data-off { + pins = "sdc2_data"; + bias-pull-up; + drive-strength = <2>; + }; }; }; From patchwork Mon Oct 5 15:03:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11816749 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 37900112E for ; Mon, 5 Oct 2020 15:03:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 19C012085B for ; Mon, 5 Oct 2020 15:03:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AkqNCmTN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726830AbgJEPDk (ORCPT ); Mon, 5 Oct 2020 11:03:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbgJEPDj (ORCPT ); Mon, 5 Oct 2020 11:03:39 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA839C0613A9; Mon, 5 Oct 2020 08:03:38 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id f21so3718981wml.3; Mon, 05 Oct 2020 08:03:38 -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=FEaaguoxx0tgPPKlx5prvmaZIBE9frxLnNIvkIs7Y5A=; b=AkqNCmTNQ7mRbJLXIg6kwnzyA8Z0z1LqgJ0S2BlWhwz4uAXhlC9qOFmPTpZkdOA+vI bniMPVZGjf723lDMCdaunYeqkWA6dI7ehG8XgFXPBSMb6vNe4ZhO1Wk/0K+V9sMJKDmt SmkltQNJoOM9SKZnWrraV8qz4uqSZRNvC3jE3ynxeksAY4TFDN3neNnUgEf5RrRCu3gS jer6P7IG3w35rSVzqZtmLOU3QXKmFk1OTr5/8d3GMuhxBAT9XAJ2Yi9plbjzF8RRt398 gNhbR1WLu5gt42JNUNOnv45EAwVFcS6sHN5URhES1EGdo4GW6QMDrxgFccYf1FMfTyu2 binA== 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=FEaaguoxx0tgPPKlx5prvmaZIBE9frxLnNIvkIs7Y5A=; b=KsNf7H6ttTslEwWFgB2Mvi7Lj03ywsEtTtKAHpsR73iXoiqJ5tU/0h8m4j2qfYCqjn Y6tSzfa5D65Au72YPI/nC3Gv6WWDM9RCGmDlzi9zO3KPqYcSkq6PBTX0J2CwI0oCaDFm m8rCntBRJBdwIPFeBmg7zXiovp0Y+LjouCXj7uXomOB83GNYvJjtoEBlA+nz4j5dLuk+ H4GCxJh6bmcbyQZ5OQzwFXJ4+3fTIYjc7My/jli0BCNRyTmQNdlVaSBHBNIRmmsKxjjO i75EP/HI3tg5pDakrZFSxLvomav2wJqDGwJMKvgtUJT9ppKrYJVAW0JnvA0Gd+xGWeqD z5Aw== X-Gm-Message-State: AOAM530riRgxtrcNgVL3oUo6AwqBF/100IJlTjdMu1JUh12SZuqWcz9Y rIWszmKQvE1hHIOkj3vFFvFsHrK8fFsx+w== X-Google-Smtp-Source: ABdhPJwIpFLsIq95CNywJkEc2B9O1lagHt1+zOkXHrCn0ipCLctFzLpqMwrh3b7NX5rB8ByjU32+Dg== X-Received: by 2002:a05:600c:c5:: with SMTP id u5mr62901wmm.14.1601910217450; Mon, 05 Oct 2020 08:03:37 -0700 (PDT) Received: from localhost.localdomain (abab191.neoplus.adsl.tpnet.pl. [83.6.165.191]) by smtp.googlemail.com with ESMTPSA id c132sm4662wmf.25.2020.10.05.08.03.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 08:03:37 -0700 (PDT) From: Konrad Dybcio To: konradybcio@gmail.com Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/11] arm64: dts: qcom: msm8994: Add SDHCI2 node Date: Mon, 5 Oct 2020 17:03:06 +0200 Message-Id: <20201005150313.149754-7-konradybcio@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005150313.149754-1-konradybcio@gmail.com> References: <20201005150313.149754-1-konradybcio@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add SDHCI2 to enable use of uSD cards on msm8994. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8994.dtsi | 59 +++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8994.dtsi b/arch/arm64/boot/dts/qcom/msm8994.dtsi index 6707f898607f..65089d7670f6 100644 --- a/arch/arm64/boot/dts/qcom/msm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8994.dtsi @@ -305,6 +305,29 @@ sdhc1: sdhci@f9824900 { status = "disabled"; }; + sdhc2: sdhci@f98a4900 { + compatible = "qcom,sdhci-msm-v4"; + reg = <0xf98a4900 0x11c>, <0xf98a4000 0x800>; + reg-names = "hc_mem", "core_mem"; + + interrupts = , + ; + interrupt-names = "hc_irq", "pwr_irq"; + + clocks = <&gcc GCC_SDCC2_APPS_CLK>, + <&gcc GCC_SDCC2_AHB_CLK>, + <&xo_board>; + clock-names = "core", "iface", "xo"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>; + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>; + + cd-gpios = <&tlmm 100 0>; + bus-width = <4>; + status = "disabled"; + }; + blsp1_dma: dma@f9904000 { compatible = "qcom,bam-v1.7.0"; reg = <0xf9904000 0x19000>; @@ -683,6 +706,42 @@ sdc1_rclk_off: rclk-off { pins = "sdc1_rclk"; bias-pull-down; }; + + sdc2_clk_on: sdc2-clk-on { + pins = "sdc2_clk"; + bias-disable; + drive-strength = <10>; + }; + + sdc2_clk_off: sdc2-clk-off { + pins = "sdc2_clk"; + bias-disable; + drive-strength = <2>; + }; + + sdc2_cmd_on: sdc2-cmd-on { + pins = "sdc2_cmd"; + bias-pull-up; + drive-strength = <10>; + }; + + sdc2_cmd_off: sdc2-cmd-off { + pins = "sdc2_cmd"; + bias-pull-up; + drive-strength = <2>; + }; + + sdc2_data_on: sdc2-data-on { + pins = "sdc2_data"; + bias-pull-up; + drive-strength = <10>; + }; + + sdc2_data_off: sdc2-data-off { + pins = "sdc2_data"; + bias-pull-up; + drive-strength = <2>; + }; }; }; From patchwork Mon Oct 5 15:03:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11816753 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 4F4F592C for ; Mon, 5 Oct 2020 15:04:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 32F4D208A9 for ; Mon, 5 Oct 2020 15:04:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="g5ud1PvV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726923AbgJEPDw (ORCPT ); Mon, 5 Oct 2020 11:03:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbgJEPDl (ORCPT ); Mon, 5 Oct 2020 11:03:41 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 688CFC0613CE; Mon, 5 Oct 2020 08:03:41 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id z1so9965524wrt.3; Mon, 05 Oct 2020 08:03:41 -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=XByuLTqKoi6bzKn452xrejvR/cWGNzxvxhZL/Y5yUwA=; b=g5ud1PvVsleooSow8jNBTAYeF9hmd7uTsioiKldjuWVDWQILY6HBlH/yRE44sIPR1X hb0krP+oK5px5WGixEu524V3yKGo/rTzcEFZFaZzIqnZu0VEv0nmwnZ2hqpCHamfW0yv Lip0HVNNh1xf00EzO4VCtcgXUZiG3X9u+mEo1oX1VE1gtci4/m/bnYB3K6McBgCV4hAS Tp7ed4vqwBpPnIaLkgJEC5N/deF7NHPvQYqjPxyQQKAzdelst9Tc719rglBKzrjbT+Fk yPOcyvoAqwEIgeHAdOIrzVN6R9k4yUqv/Iie0c21xkEuQML18itHQjcpbLrEaVYq3TQA ozRg== 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=XByuLTqKoi6bzKn452xrejvR/cWGNzxvxhZL/Y5yUwA=; b=anpfHcOib9KuaDIoabxY+2WIOcptiY6y+XH3AxecbQN65r4sIqDtO7Fvx00c+rvoij msuSO8GDC/G5j9myne9JTPjCbzDZrU21zyWmz4y0IvfLv7/mqhvUZL098H/adY2kXTzw O5dAuQqwEB0u9hXoZ+1yGH+SM8mtIeaoxAr4iCIeHw5dZ82i5rReZoveEUpcFUsReCQo O/7Cjl3MmCVADfcFjrZ43RUsZQLBVWCBDL9RkovEhz/nt8smV5CbcabuepXjFmUehaI5 UxZUOiBh2E2ovJdXhMmkPmIwYjU2JimUr/0gr9MTAfZ0LOWyexpNbWckgLtllseazwxR AsAA== X-Gm-Message-State: AOAM530o/gCf61AvIFM/Xp4xKbq5Y/zIpjJzVhFWHm0x2cR9+Wj43qKa iBSlGQeiSQilSe634ddY1a8= X-Google-Smtp-Source: ABdhPJwFNviQSN2JQYY0IHQudILe/UDvQETl8iA/uatCrpvGxKPEHcYcxf5udML+aXEHRAuFpcCFqQ== X-Received: by 2002:adf:eacf:: with SMTP id o15mr19289505wrn.12.1601910220132; Mon, 05 Oct 2020 08:03:40 -0700 (PDT) Received: from localhost.localdomain (abab191.neoplus.adsl.tpnet.pl. [83.6.165.191]) by smtp.googlemail.com with ESMTPSA id c132sm4662wmf.25.2020.10.05.08.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 08:03:39 -0700 (PDT) From: Konrad Dybcio To: konradybcio@gmail.com Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/11] arm64: dts: qcom: msm8992: Add BLSP_I2C1 support Date: Mon, 5 Oct 2020 17:03:07 +0200 Message-Id: <20201005150313.149754-8-konradybcio@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005150313.149754-1-konradybcio@gmail.com> References: <20201005150313.149754-1-konradybcio@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This will be required to support touchscreen on Lumia devices. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8992.dtsi | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8992.dtsi b/arch/arm64/boot/dts/qcom/msm8992.dtsi index 6242c56a2bfa..81426577f2bd 100644 --- a/arch/arm64/boot/dts/qcom/msm8992.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8992.dtsi @@ -305,6 +305,22 @@ blsp1_uart2: serial@f991e000 { status = "disabled"; }; + blsp_i2c1: i2c@f9923000 { + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0xf9923000 0x500>; + interrupts = ; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP1_I2C_APPS_CLK>; + clock-names = "iface", "core"; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c1_default>; + pinctrl-1 = <&i2c1_sleep>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + blsp_i2c2: i2c@f9924000 { compatible = "qcom,i2c-qup-v2.2.1"; reg = <0xf9924000 0x500>; @@ -525,6 +541,20 @@ sdc1_rclk_off: rclk-off { bias-pull-down; }; + i2c1_default: i2c1-default { + function = "blsp_i2c1"; + pins = "gpio2", "gpio3"; + drive-strength = <2>; + bias-disable; + }; + + i2c1_sleep: i2c1-sleep { + function = "gpio"; + pins = "gpio2", "gpio3"; + drive-strength = <2>; + bias-disable; + }; + i2c2_default: i2c2-default { function = "blsp_i2c2"; pins = "gpio6", "gpio7"; From patchwork Mon Oct 5 15:03:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11816755 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 CC15792C for ; Mon, 5 Oct 2020 15:04:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B10222085B for ; Mon, 5 Oct 2020 15:04:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QpfxYW8+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726894AbgJEPDw (ORCPT ); Mon, 5 Oct 2020 11:03:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726853AbgJEPDo (ORCPT ); Mon, 5 Oct 2020 11:03:44 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF4F1C0613A7; Mon, 5 Oct 2020 08:03:43 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id k10so9964126wru.6; Mon, 05 Oct 2020 08:03:43 -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=novVeUtVrCeDASQBU/jiwNit0DAtiRgkD04BxRYpE7s=; b=QpfxYW8+eoggMkCmovQJZLD8OySO43u/OuDpuQe19xqCeKKVpSOdc9focQtdyoAVCN 8IgkF5hnouKHef1fuGU8/d8tTbzxvAAEFbELTyLPjPh3dBMagP6C0zHI1QUZYEIi6kba kPzGL62g4dnjeQC4J15NOU59Sk+IUvz9adcG/hTNxVkkLUBiNr3gZP3dEoLCHyn9TVFW rHA4zNw/nEs6uYRtqvXrd3PkCsDzVod+vicPZTOGC1yxJyFxxiLI39S8Oav39bMT2qFu V7wkeC0RLmzRJUTj54NBLmlPGh6Ap3OP4S7XIY5ARcIL8+4onyVxrAANff+k4iXMOSMF vwNQ== 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=novVeUtVrCeDASQBU/jiwNit0DAtiRgkD04BxRYpE7s=; b=WIt4VV4ZnYFWI8O77s7f2/vUFLjZrzxkI/Sov8thkdeFCzJ5f78MslSM2K34eh0C8W 6eYYrPCQQ0hwA+0UqSuCijmOGI6hibzWC4R+qTEFZvj4pjTSt2P62UYQftWFSwuJGt0+ xlUb5TefgJemKKGEuAj6jXNu0ztYmEb9UyCV/VcHjSEZblVfRSVWDGUtUs1pXiiRWagu WhL5mZ/TnLhF9SY6obnrFIJbzl5fPjcAR6pu2PSDQD/QflGViCDc2S7nzHTREz57072z MtqCEB1Iv06LEOsRr9KzFIbr6Rg1c72FQgkB31kPDyrg8+Af0MbpHcECUH9raSQPat3V n1yA== X-Gm-Message-State: AOAM532/ahmaWFKhpkIgR2o0auisoZQt04nIEKGSnxScuZkVw/bOZT4C MBYO01DgxFW8hnsJDseeVl8= X-Google-Smtp-Source: ABdhPJzIiSq2SvWIDmhbbiS762I2vw0HDRYdbv9SHBvHngetgDEqyJO9Kt+Lqdd/LbGgYD6zZ5OFtQ== X-Received: by 2002:a5d:608f:: with SMTP id w15mr18114208wrt.244.1601910222516; Mon, 05 Oct 2020 08:03:42 -0700 (PDT) Received: from localhost.localdomain (abab191.neoplus.adsl.tpnet.pl. [83.6.165.191]) by smtp.googlemail.com with ESMTPSA id c132sm4662wmf.25.2020.10.05.08.03.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 08:03:42 -0700 (PDT) From: Konrad Dybcio To: konradybcio@gmail.com Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/11] arm64: dts: qcom: talkman: Add Synaptics RMI4 touchscreen Date: Mon, 5 Oct 2020 17:03:08 +0200 Message-Id: <20201005150313.149754-9-konradybcio@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005150313.149754-1-konradybcio@gmail.com> References: <20201005150313.149754-1-konradybcio@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This adds touchscreen capabilities to the Lumia 950. Signed-off-by: Konrad Dybcio --- .../dts/qcom/msm8992-msft-lumia-talkman.dts | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8992-msft-lumia-talkman.dts b/arch/arm64/boot/dts/qcom/msm8992-msft-lumia-talkman.dts index 3cc01f02219d..c337a86a5c77 100644 --- a/arch/arm64/boot/dts/qcom/msm8992-msft-lumia-talkman.dts +++ b/arch/arm64/boot/dts/qcom/msm8992-msft-lumia-talkman.dts @@ -32,6 +32,34 @@ chosen { }; }; +&blsp_i2c1 { + status = "okay"; + + rmi4-i2c-dev@4b { + compatible = "syna,rmi4-i2c"; + reg = <0x4b>; + #address-cells = <1>; + #size-cells = <0>; + + interrupt-parent = <&tlmm>; + interrupts = <77 IRQ_TYPE_EDGE_FALLING>; + + rmi4-f01@1 { + reg = <0x01>; + syna,nosleep-mode = <1>; + }; + + rmi4-f12@12 { + reg = <0x12>; + syna,sensor-type = <1>; + syna,clip-x-low = <0>; + syna,clip-x-high = <1440>; + syna,clip-y-low = <0>; + syna,clip-y-high = <2560>; + }; + }; +}; + &sdhc_1 { status = "okay"; From patchwork Mon Oct 5 15:03:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11816759 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 9DCAF92C for ; Mon, 5 Oct 2020 15:04:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8251C208A9 for ; Mon, 5 Oct 2020 15:04:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ca90qH7q" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726878AbgJEPDv (ORCPT ); Mon, 5 Oct 2020 11:03:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbgJEPDr (ORCPT ); Mon, 5 Oct 2020 11:03:47 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EB83C0613A8; Mon, 5 Oct 2020 08:03:46 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id z1so9965896wrt.3; Mon, 05 Oct 2020 08:03:46 -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=VLyV+gEvPdXBCfQzavVLm7qZZj9wcK92N6joqP0d7ec=; b=Ca90qH7qwNVnnXiFq9UP0drNlhAOkpSo+bHv6QU4SPKptDSLg75aWFeVCrt1ziJVtR UyPbOvVF/Ey8hq1+HYmZ/XgIF1p7iMcRVPmRfjU5JjjVfvnvTwD076ixdNun0EPkrs8T BlxyzJ78FVoPwe/VVVnae6tXIZ9mq7eq13HhSOB1PWcLIAZwyiQychKQ66oXbhebGoR7 XSVphzi6sgXyUpg6PS3/mfWoyixxtgru2ewc1kXZ/v4dqssPo/4FHdg2sz2HMEj2xcRo 2MU6FaYY55Ha7xRUU1/NBpp+0bYbDGrVYf7rZguUjHJy/T2aGm8c2V99U3JnA5hFni9o eKgQ== 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=VLyV+gEvPdXBCfQzavVLm7qZZj9wcK92N6joqP0d7ec=; b=Sdd4dDELULb8ArFzYWPLSEJWrHHsx7tMX+kUWKwBKqzwDpiqRvyM9QmF+U65nirv0M 9T5Ar0eTS3Az7pM6ZipVVXHMcikV7g7iwzNcmsp8QKX+AfKCbV8ZN1ocFWZPfuXABIJi 7wWipzaDjjuI0Hhj6fX31xJPBO60mHRPqNyj7YvzRxEpUMJL3+LqDjz97uY/WVu5rLJ2 1j1xWWUw+rMrQgywFpM3j+55zv3RcVPZxkc7Es7ywCyDhq0ISltRjy7Uue03U+SYT5d4 Ouo6jeoTSEX8pXjWorot48BRhGBLdTJIX/U/aKJ8e3H/9Fqqt6QSNEpZjb8Lrwzl73KA oJmg== X-Gm-Message-State: AOAM531qS6hYpyy0HcurwyQHEEdB/itOW8lKVzNAGLIoy/xYuCWPtrsM cVGZtU7LkxwenNmE8JV5gc0= X-Google-Smtp-Source: ABdhPJwOeELbDYAb8g+NEqI65YFOxGrNBs4wao+xMeCiUfpAtUI36WLKv9gLTrKdR8ZQ++JpqeSI/w== X-Received: by 2002:a5d:5146:: with SMTP id u6mr19202726wrt.255.1601910225188; Mon, 05 Oct 2020 08:03:45 -0700 (PDT) Received: from localhost.localdomain (abab191.neoplus.adsl.tpnet.pl. [83.6.165.191]) by smtp.googlemail.com with ESMTPSA id c132sm4662wmf.25.2020.10.05.08.03.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 08:03:44 -0700 (PDT) From: Konrad Dybcio To: konradybcio@gmail.com Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/11] arm64: dts: qcom: msm8994: Add USB support Date: Mon, 5 Oct 2020 17:03:09 +0200 Message-Id: <20201005150313.149754-10-konradybcio@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005150313.149754-1-konradybcio@gmail.com> References: <20201005150313.149754-1-konradybcio@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This is a very basic dwc3 configuration (no PHYs yet), but it works. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8994.dtsi | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8994.dtsi b/arch/arm64/boot/dts/qcom/msm8994.dtsi index 65089d7670f6..8612a11c3584 100644 --- a/arch/arm64/boot/dts/qcom/msm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8994.dtsi @@ -282,6 +282,37 @@ frame@f9028000 { }; }; + usb3: usb@f92f8800 { + compatible = "qcom,msm8996-dwc3", "qcom,dwc3"; + reg = <0xf92f8800 0x400>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + clocks = <&gcc GCC_USB30_MASTER_CLK>, + <&gcc GCC_SYS_NOC_USB3_AXI_CLK>, + <&gcc GCC_USB30_SLEEP_CLK>, + <&gcc GCC_USB30_MOCK_UTMI_CLK>; + clock-names = "core", "iface", "sleep", "mock_utmi", "ref", "xo"; + + assigned-clocks = <&gcc GCC_USB30_MOCK_UTMI_CLK>, + <&gcc GCC_USB30_MASTER_CLK>; + assigned-clock-rates = <19200000>, <120000000>; + + power-domains = <&gcc USB30_GDSC>; + qcom,select-utmi-as-pipe-clk; + + dwc3@f9200000 { + compatible = "snps,dwc3"; + reg = <0xf9200000 0xcc00>; + interrupts = <0 131 IRQ_TYPE_LEVEL_HIGH>; + snps,dis_u2_susphy_quirk; + snps,dis_enblslpm_quirk; + maximum-speed = "high-speed"; + dr_mode = "peripheral"; + }; + }; + sdhc1: sdhci@f9824900 { compatible = "qcom,sdhci-msm-v4"; reg = <0xf9824900 0x1a0>, <0xf9824000 0x800>; From patchwork Mon Oct 5 15:03:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11816751 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 DB0EF92C for ; Mon, 5 Oct 2020 15:03:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C186C20674 for ; Mon, 5 Oct 2020 15:03:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lkET0CuS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726641AbgJEPDv (ORCPT ); Mon, 5 Oct 2020 11:03:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726613AbgJEPDt (ORCPT ); Mon, 5 Oct 2020 11:03:49 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BA0AC0613A9; Mon, 5 Oct 2020 08:03:49 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id k18so9152239wmj.5; Mon, 05 Oct 2020 08:03:49 -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=xdEIf4swPA5ngVXxi+caNdJkQwYsCJ+A4EXpJWpReGI=; b=lkET0CuS9omYW1jeSoQICJ6UqWsxsCbRfRR+lzUiq7yLeKFcwR6wUpIKKKrgACxB0r OBKLa1adthru6QpUbl5o1q4/OlTxWEKtwjWT3Q3jlPcZe2WVksw2qoS7WMz3XC2ex71T LBTSmZoa/pTyhtgV4bceO0QvxdBzeclNCGWenNjwzZJlA7H3cy/1AwUyHkAs7FlqVKOa z3Rlxg/XGMbcRL5Vtrh30QXxaRUiwl3Iyt7pzmIf+B7xN2Hjn3oyebB8sJWRB5kMNJrN 1fQxp2VNQrbk+TX9jnGsvi9rKty8sl8rbHLzBuTDCPSxBj6D0CvVktA7wKYoZqDPVz3I zWKg== 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=xdEIf4swPA5ngVXxi+caNdJkQwYsCJ+A4EXpJWpReGI=; b=uGLFkUKiiS8VxiZvMz8Q7wIMpByLLH5wcgHCBqUHKpafRHzx9iS79CEbcNEjfbXA/B n1PQpkboYgsiuXuNtmILP1Xz0P5cDtguJbpoNlP9VVrXwIMPQwXYnpY+qHxj2s8/yPRT fjKdegjNgHF3Ctv4jVp4apLUNx3BUYwjEI1wiHpkYmaVqMdfXAgDM2MxZZ85rlZl7aWQ FKDM7fZjtsXnbvwdB5ZvpxVAeHJ0+Mb0xZdIdNn2Af9AYpXvOPXibwU3cxzJj/02Kk9L S5nZlLARtpQre1X2ttsxVcZs0PLnsLYRVYvMJrflgqghMBle5Zlak5tFqdQsK9fkzYZk cVIg== X-Gm-Message-State: AOAM532FBgVjJes+ByBJWr6i78w7W3o2LiOh2waZmtU7zey1PscMjEdW NhB/ZRzsTKixynTl4q1FU/U= X-Google-Smtp-Source: ABdhPJxvmZ4qG83DPEypH4P1LcpvrxDi9BLF8WPJZ8t0A3j1b5PO9n4zpg88lKH2SrSpRZayDyN65g== X-Received: by 2002:a1c:4b13:: with SMTP id y19mr16192wma.33.1601910228103; Mon, 05 Oct 2020 08:03:48 -0700 (PDT) Received: from localhost.localdomain (abab191.neoplus.adsl.tpnet.pl. [83.6.165.191]) by smtp.googlemail.com with ESMTPSA id c132sm4662wmf.25.2020.10.05.08.03.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 08:03:47 -0700 (PDT) From: Konrad Dybcio To: konradybcio@gmail.com Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/11] arm64: dts: qcom: msm8992: Add USB support Date: Mon, 5 Oct 2020 17:03:10 +0200 Message-Id: <20201005150313.149754-11-konradybcio@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005150313.149754-1-konradybcio@gmail.com> References: <20201005150313.149754-1-konradybcio@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This is a very basic dwc3 configuration (no PHYs yet), but it works. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8992.dtsi | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8992.dtsi b/arch/arm64/boot/dts/qcom/msm8992.dtsi index 81426577f2bd..0c422af47917 100644 --- a/arch/arm64/boot/dts/qcom/msm8992.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8992.dtsi @@ -242,6 +242,37 @@ frame@f9028000 { }; }; + usb3: usb@f92f8800 { + compatible = "qcom,msm8996-dwc3", "qcom,dwc3"; + reg = <0xf92f8800 0x400>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + clocks = <&gcc GCC_USB30_MASTER_CLK>, + <&gcc GCC_SYS_NOC_USB3_AXI_CLK>, + <&gcc GCC_USB30_SLEEP_CLK>, + <&gcc GCC_USB30_MOCK_UTMI_CLK>; + clock-names = "core", "iface", "sleep", "mock_utmi", "ref", "xo"; + + assigned-clocks = <&gcc GCC_USB30_MOCK_UTMI_CLK>, + <&gcc GCC_USB30_MASTER_CLK>; + assigned-clock-rates = <19200000>, <120000000>; + + power-domains = <&gcc USB30_GDSC>; + qcom,select-utmi-as-pipe-clk; + + dwc3@f9200000 { + compatible = "snps,dwc3"; + reg = <0xf9200000 0xcc00>; + interrupts = <0 131 IRQ_TYPE_LEVEL_HIGH>; + snps,dis_u2_susphy_quirk; + snps,dis_enblslpm_quirk; + maximum-speed = "high-speed"; + dr_mode = "peripheral"; + }; + }; + sdhc_1: sdhci@f9824900 { compatible = "qcom,sdhci-msm-v4"; reg = <0xf9824900 0x1a0>, <0xf9824000 0x800>; From patchwork Mon Oct 5 15:03:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11816757 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 7867692C for ; Mon, 5 Oct 2020 15:04:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5A27620874 for ; Mon, 5 Oct 2020 15:04:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Jqcx/6Ht" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727006AbgJEPEJ (ORCPT ); Mon, 5 Oct 2020 11:04:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726902AbgJEPDw (ORCPT ); Mon, 5 Oct 2020 11:03:52 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F078EC0613CE; Mon, 5 Oct 2020 08:03:51 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id f21so3719675wml.3; Mon, 05 Oct 2020 08:03:51 -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=Jrw4GdJfye35DMtkz+TyxdMl4D17q7ijU5dfq1fHwJM=; b=Jqcx/6HtC1u/paWHg2IVPCZFfHYdzGga9Xp+E/xjJMk5VSnuMejlbuPZqxQEyNphRT UnQZH0NRiYfS5ml6WLhYL5l353EK1S70MLLZC75yY0rdIKRKQdaGEF0cEZU6x9ajlH0s /E98HuvFE0Sq3u2SoInA5p4x52wc30iRtQq2ZMDDttnf2koysHjDjz3MMUCRSYlJ3UG1 GnGI8gc2BhHSc8p6xtWgXE4U4YUkmC4teiZC5B0Do2ZXQaOjf79pL9nW+JZY9q/CyFf3 L4RE9sjKWgZe4izw1JD1og/er2nC7YdMVNzbWbwT9bM8EyKdPW99vfLlxKecfPBkABte dxJw== 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=Jrw4GdJfye35DMtkz+TyxdMl4D17q7ijU5dfq1fHwJM=; b=r0bFm3ZlFiAPy8GKhuXVTWKq6G2607hSSL6+krQSR7AMYFpbBFDkArEFjP3QcfiXCf 6fqVlK5RkU0dXYGgIX3sa6iqOroLlIYHidCBiOzjVhMGcqjQkj1ez/yFXktiKGvs4uas Ql4mRXvmNhj3pwcgAH9OYuq7g6Z5u3yCerFtaTCys+RZj5JqVu+7sejZoNMxwer1jSeY Xc9O6QS1saqwUWewcj716rwtt39jMIWo+uEnKBlDOtMcKj9pbkOS062CDu0PlsXOK5JB 8C1mxSs8D7WlIlWvPoUNWcIesTIyxy3GNtOjMldyctnprOfv0kDMPHzTz7uQQqqtslPF DCaQ== X-Gm-Message-State: AOAM530XTveljbQ1Vi9Qn5CMlE4a+3HzCPboYYc7O8ZHSxoLFKjHkNAp qn8H+61vKSo1z/j0uSMubUPXCNnyJ5majg== X-Google-Smtp-Source: ABdhPJxAGaC7CIYAxHBJUtxfNHa6SrQLQBBxGs3gl1I2reEyVxOrehHnnO5rv0hVTiRABAfnkVBfHA== X-Received: by 2002:a7b:c387:: with SMTP id s7mr17481877wmj.171.1601910230620; Mon, 05 Oct 2020 08:03:50 -0700 (PDT) Received: from localhost.localdomain (abab191.neoplus.adsl.tpnet.pl. [83.6.165.191]) by smtp.googlemail.com with ESMTPSA id c132sm4662wmf.25.2020.10.05.08.03.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 08:03:50 -0700 (PDT) From: Konrad Dybcio To: konradybcio@gmail.com Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/11] arm64: dts: qcom: Add support for Microsoft Lumia 950 XL (Cityman) Date: Mon, 5 Oct 2020 17:03:11 +0200 Message-Id: <20201005150313.149754-12-konradybcio@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005150313.149754-1-konradybcio@gmail.com> References: <20201005150313.149754-1-konradybcio@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add device tree support for Microsoft Lumia 950 XL smartphone. It is based on the msm8994 chipset and is able to boot Linux using a custom EDK2 implementation. EL2 core startup is possible with spin-table, but for now, we'll stick with PSCI. The board currently supports: * Screen console via EFIFB * SDHCI * I2C * UART * PSCI core bringup Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../dts/qcom/msm8994-msft-lumia-cityman.dts | 73 +++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/msm8994-msft-lumia-cityman.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index fb4631f898fd..030d9648fb11 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -12,6 +12,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8992-bullhead-rev-101.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-msft-lumia-talkman.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-xiaomi-libra.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8994-angler-rev-101.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8994-msft-lumia-cityman.dts dtb-$(CONFIG_ARCH_QCOM) += msm8994-sony-xperia-kitakami-sumire.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8996-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8998-asus-novago-tp370ql.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8994-msft-lumia-cityman.dts b/arch/arm64/boot/dts/qcom/msm8994-msft-lumia-cityman.dts new file mode 100644 index 000000000000..ed9034b96013 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8994-msft-lumia-cityman.dts @@ -0,0 +1,73 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2020, Konrad Dybcio + */ + +/dts-v1/; + +#include "msm8994.dtsi" +#include "pm8994.dtsi" +#include "pmi8994.dtsi" + +/ { + model = "Microsoft Lumia 950 XL"; + compatible = "microsoft,cityman", "qcom,msm8994"; + + /* + * Most Lumia 950XL users use GRUB to load their kernels, + * hence there is no need for msm-id and friends. + */ + + /* + * This enables graphical output via bootloader-enabled display. + * acpi=no is required due to WP platforms having ACPI support, but + * only for Windows-based OSes. + */ + chosen { + bootargs = "earlycon=efifb console=efifb acpi=no"; + + #address-cells = <2>; + #size-cells = <2>; + ranges; + }; +}; + +&blsp_i2c1 { + status = "okay"; + + rmi4-i2c-dev@4b { + compatible = "syna,rmi4-i2c"; + reg = <0x4b>; + #address-cells = <1>; + #size-cells = <0>; + + interrupt-parent = <&tlmm>; + interrupts = <77 IRQ_TYPE_EDGE_FALLING>; + + rmi4-f01@1 { + reg = <0x01>; + syna,nosleep-mode = <1>; + }; + + rmi4-f12@12 { + reg = <0x12>; + syna,sensor-type = <1>; + syna,clip-x-low = <0>; + syna,clip-x-high = <1440>; + syna,clip-y-low = <0>; + syna,clip-y-high = <2660>; + }; + }; +}; + +&blsp1_uart2 { + status = "okay"; +}; + +&blsp2_uart2 { + status = "okay"; +}; + +&sdhc1 { + status = "okay"; +};