From patchwork Sat Dec 10 14:25:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13070361 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A200C4332F for ; Sat, 10 Dec 2022 15:35:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229637AbiLJPfO (ORCPT ); Sat, 10 Dec 2022 10:35:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229784AbiLJPfL (ORCPT ); Sat, 10 Dec 2022 10:35:11 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB1661A07E for ; Sat, 10 Dec 2022 07:35:09 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id h12so7942778wrv.10 for ; Sat, 10 Dec 2022 07:35:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=g2lDXemucByXxRRVZfQEDp/dp2ZeIjuHU/Ol1VQhsm4=; b=xftvZDhRHy8k20pFyrpXxUKKbypEgA9ZdfnpcTabZLWITx6hfI/JPdCXBrXdtCPKrh KskF6Lz+p8VIRMS900r2DsZ2rXblJIa+LZeMDytKflze6a1YNIR1zsZt2K98F58Lhoey +IornqDpNuUhhl4jtZTvyKEKE3TjJTRaBQweI8JIJ8tNAjXSUmwQi9PvQfXXf/sp2QE2 oFUP8IQ3kS9fZoEUY/MYz5NLKMLDwM3Qi07cNAmBk1og/PuTcwF8lOWyG2nAHGe9V2t8 k4ITqngj2Ij4ziakwr9g0j8SG6XLDs2JuuooGGLn0GtCkOpEL4xEDyO6ACR1/YvY8jUf /4Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=g2lDXemucByXxRRVZfQEDp/dp2ZeIjuHU/Ol1VQhsm4=; b=pWn5R5zJGAlF9Xg4Tk9FJs2XahBVWv2+50nixwzIObUfp1cTDJIObSSBGKXYJ5p/uQ 6NDyTr+fZijPWxy2at8EoxkaF2Ocu1bnNwjbbPWiBzGAN+zAcxv38zzoWCsBlsDoz8Hq F4pot8HZJlCG1ZZZY1YgGNXujllex9OW2i6KXksgAQpQXVwwg/UDojx79F6bii0qX368 oIVhM1kuLaUklWpAvz0hG7M51mn2RovKGlLguztF6oA1swXuCqqrTxbIvHR9ooDIRZ+1 hn2quGl64fWOveYbFbahoC1EVUtDOscZp1xg9S/OsbHJFx51hCPgNWU8XxrhFnBI7jAS 67Pg== X-Gm-Message-State: ANoB5pmpEpgq5J7zgU1KWXhJpzHVpXSExnXob760M6T29B5ZiQQtKXTX 5WhMEfSLV+L5+eyP2dVFYBPCilnPI2RDy4Gx X-Google-Smtp-Source: AA0mqf75LCEAzE0ddg+MH1XA/d7Mq9s0e4EqJLGCBLcSXrTTSDecbLEQuTlMzImWCf3bKFYMZT578A== X-Received: by 2002:ac2:50da:0:b0:4b4:e438:e068 with SMTP id h26-20020ac250da000000b004b4e438e068mr2324266lfm.0.1670682328856; Sat, 10 Dec 2022 06:25:28 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id c26-20020ac25f7a000000b004acb2adfa1fsm739912lfc.307.2022.12.10.06.25.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Dec 2022 06:25:28 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: patches@linaro.org, Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] arm64: dts: qcom: sm8150-kumano: Add GPIO keys Date: Sat, 10 Dec 2022 15:25:23 +0100 Message-Id: <20221210142525.16974-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Configure hardware buttons (V-, Camera Shutter/Focus) on Kumano devices. Signed-off-by: Konrad Dybcio Reviewed-by: Marijn Suijten Tested-by: Marijn Suijten # On Xperia 1 and Xperia 5 --- .../dts/qcom/sm8150-sony-xperia-kumano.dtsi | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi index c958a8b16730..2352dff213fc 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi @@ -46,6 +46,40 @@ framebuffer: framebuffer@9c000000 { }; }; + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&focus_n &snapshot_n &vol_down_n>; + + key-camera-focus { + label = "Camera Focus"; + linux,code = ; + gpios = <&pm8150b_gpios 2 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + linux,can-disable; + gpio-key,wakeup; + }; + + key-camera-snapshot { + label = "Camera Snapshot"; + linux,code = ; + gpios = <&pm8150b_gpios 1 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + linux,can-disable; + gpio-key,wakeup; + }; + + key-vol-down { + label = "Volume Down"; + linux,code = ; + gpios = <&pm8150_gpios 1 GPIO_ACTIVE_LOW>; + debounce-interval = <15>; + linux,can-disable; + gpio-key,wakeup; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; @@ -410,6 +444,34 @@ &i2c10 { /* Samsung touchscreen @ 48 */ }; +&pm8150_gpios { + vol_down_n: vol-down-n-state { + pins = "gpio1"; + function = "normal"; + power-source = <0>; + bias-pull-up; + input-enable; + }; +}; + +&pm8150b_gpios { + snapshot_n: snapshot-n-state { + pins = "gpio1"; + function = "normal"; + power-source = <0>; + bias-pull-up; + input-enable; + }; + + focus_n: focus-n-state { + pins = "gpio2"; + function = "normal"; + power-source = <0>; + bias-pull-up; + input-enable; + }; +}; + &pon_pwrkey { status = "okay"; }; From patchwork Sat Dec 10 14:25:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13070363 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A309C4332F for ; Sat, 10 Dec 2022 15:42:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229524AbiLJPmU (ORCPT ); Sat, 10 Dec 2022 10:42:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbiLJPmU (ORCPT ); Sat, 10 Dec 2022 10:42:20 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3F2311A01 for ; Sat, 10 Dec 2022 07:42:18 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id t17so18149818eju.1 for ; Sat, 10 Dec 2022 07:42:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xcUtDi9xX+2BTKnC7Sf+lM+wRU4nUSjkTSCI2YSY0rg=; b=WWkqomR6xR49XzOe1VEN1psb5CEuEyFgREJ5H3PSsTmfhWj4BqXuPxIUT3Hp45knu+ x1asaC3eObLYUjr6jF20L/pYLVLQcnFCajMZxJWnjFvD8S+8lblz+vU5phsIEsSsH3z7 WORBtnsxUoKjUP2yjeGWWT7+rL3P9hhw2X91g6iYImw1dGtxaOvcBO/NmSs95Xq6s40J duSwJ+jzlJTZFLG4AjKD51NKAJin9ceiNiKRHjpKFhky2EcWR+xofkoqLlgaN9XUYo+a 9KQzsUkD7LsPhXiyyv9rSU5GRquWDvT+Y2wWr3jR2rubyjyKuJxK9zmU2KZXuXhj1kEq IJUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xcUtDi9xX+2BTKnC7Sf+lM+wRU4nUSjkTSCI2YSY0rg=; b=V729nm3b9I/ACsqM97pkO1E9bquQtaxGDK4YbGqI4pbc76Id+zHAQTKbs525dDAT2x SJG6pVprQ9hnGC/m1oS6FpDFnp/lgXvXxQM6OvquAs67kM7G+RjTNnq6Dz8AK1jHVqE4 /sgnVeiPOKUoFzG2+0mymQPRJX9xeY0/cOeVlU92hHuiKKVh71CxJ9nYRxthvzgH5agS qzn4KhWIVfBJb16Hj3Jl56gPJN/9y5sMAQsb/AJslaSoNIsfLvIGWHiAFFT6hsxoYWbm hWto9uayjYvoQ7YNPg1iwB7NDd2kqhVbKoaBkuiFKTBmcQkJUMSfLhcTmYv/c9reCBdO FIUg== X-Gm-Message-State: ANoB5pka22HDpS1Z5kzokMAEKNV7QqaVCl7pRHU6uiUqfLXNzZefTSAm b6qKw5blFbj0akgCvBaNK79jCff1F8v+5mjZ X-Google-Smtp-Source: AA0mqf6Yz5etOv2UekvIlw2wdBWcKn7Xlu5pxEAaxpUWlF3kMGtCvQbLq2qqAkvRrwDDeeOK2jLw7A== X-Received: by 2002:ac2:5594:0:b0:4a4:68b7:f889 with SMTP id v20-20020ac25594000000b004a468b7f889mr4086460lfg.45.1670682330585; Sat, 10 Dec 2022 06:25:30 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id c26-20020ac25f7a000000b004acb2adfa1fsm739912lfc.307.2022.12.10.06.25.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Dec 2022 06:25:30 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: patches@linaro.org, Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: qcom: sm8150-kumano: Add NXP PN553 NFC Date: Sat, 10 Dec 2022 15:25:24 +0100 Message-Id: <20221210142525.16974-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221210142525.16974-1-konrad.dybcio@linaro.org> References: <20221210142525.16974-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a node for NXP PN553 NFC (or PN557, unclear data), using the nxp-nci driver. Signed-off-by: Konrad Dybcio Reviewed-by: Marijn Suijten Tested-by: Marijn Suijten # On Xperia 1 and Xperia 5 --- .../boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi index 2352dff213fc..9d667bb6f25b 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi @@ -428,8 +428,18 @@ &i2c4 { /* Qcom SMB1355 @ c */ /* Qcom SMB1390 @ 10 */ - /* NXP PN553 NFC @ 28 */ /* Qcom FSA4480 USB-C audio switch @ 43 */ + + nfc@28 { + compatible = "nxp,nxp-nci-i2c"; + reg = <0x28>; + + interrupt-parent = <&tlmm>; + interrupts = <47 IRQ_TYPE_EDGE_RISING>; + + enable-gpios = <&tlmm 41 GPIO_ACTIVE_HIGH>; + firmware-gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>; + }; }; &i2c7 { From patchwork Sat Dec 10 14:25:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13070353 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED118C10F1B for ; Sat, 10 Dec 2022 15:23:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229524AbiLJPXv (ORCPT ); Sat, 10 Dec 2022 10:23:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbiLJPXu (ORCPT ); Sat, 10 Dec 2022 10:23:50 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CEDC15FFE for ; Sat, 10 Dec 2022 07:23:49 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id bp15so11498858lfb.13 for ; Sat, 10 Dec 2022 07:23:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=exYMzaZr/kQLcbfHTOiS5XZ19wPMTGQEdFPGl9xrdn4=; b=IXuf0wukVUXjMtH7bbyeA7xFdEuqgfGgqdpeL5YbDYFg8H7iPhZjMMD9OrYDwfa2y4 kfjYcBD07ByqpxqtC/aqe48rvyTS8tJbfFu5hnFOnDydTNU9I0wSD1Y3kkK726LN5lii pctk3FhC+XxJu4csK/wjkw3GcPzt/zCnyEbktfly88K/WYsXNPlxR3bDxwTd3lP+gHzy kqW3e6BMcF40H7H7pE17BAO0F97fOImvD+/RsA1mbwnDN/ZYLeRzODFiMqXH8zJjILlr TytdQDdqMfLwkvHlDZ5WzbRjOoKWhBaIfXeiOjV8Wafrxnyd5K1CKe4DBnaGi2Tuh+t2 NB1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=exYMzaZr/kQLcbfHTOiS5XZ19wPMTGQEdFPGl9xrdn4=; b=ov4vywx4PZNjRrOcO2nAfandFEEDpBt/S/F7nSRSDoO/4bR2hTOnQDDiSL4JLOWMSQ Rw+1ELSDNpHzq+d63YCdx7Vei9YfpEWw+iGVT/jDXdJJzyuf1euIkvS6IShRfSMLiS4k hiuTQQHZYTRYwYwzGwKC5esUBgzitGEteAU4Hnug+PhXe0sOYLNoqw36NiDaJONDMg+h ug9Hpm/OvAHShCS6YsytnJC7RXnBUL7LUhP65XHEux3Own/qMD15k0s1vG+Ru97dCfC5 Ycy1PlyMx+3U4gvTQOUbaR236PeGP6fZrh6jyTR3t2WmqSJsaFlFZN8oMA6oLx8mucUv JK/g== X-Gm-Message-State: ANoB5pkLDaRJubih3UNwAoqdNY179iuxTcDBZXjERxvx0i8pfMwNaWkW 1rqBdPjR4d4m/+0P9lFE6JHU38rUPVzGfcK8 X-Google-Smtp-Source: AA0mqf5tLFh6y+G+uNwBq/GjqU92UxZqJke7DbSrFkOYhRmMXFbGl+1oNT08LMkkm1UzNoa+P65xXg== X-Received: by 2002:a19:7010:0:b0:4a8:7434:65e1 with SMTP id h16-20020a197010000000b004a8743465e1mr2495041lfc.12.1670682332163; Sat, 10 Dec 2022 06:25:32 -0800 (PST) Received: from localhost.localdomain (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id c26-20020ac25f7a000000b004acb2adfa1fsm739912lfc.307.2022.12.10.06.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Dec 2022 06:25:31 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: patches@linaro.org, Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Marijn Suijten Subject: [PATCH 3/3] arm64: dts: qcom: sm8150-kumano: Configure resin as volume up key Date: Sat, 10 Dec 2022 15:25:25 +0100 Message-Id: <20221210142525.16974-3-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221210142525.16974-1-konrad.dybcio@linaro.org> References: <20221210142525.16974-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Marijn Suijten The volume-up button on both kumanos (Xperia 1 and Xperia 5) are mapped to resin. Signed-off-by: Marijn Suijten Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi index 9d667bb6f25b..d64f2b04e267 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi @@ -486,6 +486,11 @@ &pon_pwrkey { status = "okay"; }; +&pon_resin { + linux,code = ; + status = "okay"; +}; + &qupv3_id_0 { status = "okay"; };