From patchwork Fri Jan 6 14:30:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lin, Meng-Bo" X-Patchwork-Id: 40149 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp855003wrt; Fri, 6 Jan 2023 06:33:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXt1gimn6jaC/vaGy8DVT6z+PuiWLcexiU3f1Q0O6uXNHVbErb1S7lUA2V0YiY/khaCt4Td+ X-Received: by 2002:a17:902:c382:b0:189:e3d0:2682 with SMTP id g2-20020a170902c38200b00189e3d02682mr68297993plg.30.1673015609691; Fri, 06 Jan 2023 06:33:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673015609; cv=none; d=google.com; s=arc-20160816; b=FkPAevakpWwJI92bKru5GY8o8MKqpfAlDAYpuBCzvaFFFEFmmZD6PwRo7zqzW+KHkP zV0okm/7OmYWCqBt8aJMCbzAE4uQYz12s2qDpzjaABMac6KHCEYLenBb4j5gqcwhHjdo NHDMbpJyFA2YPQix5gZEGWQx5PMmJmvoHesWsU3NP3TrHzY43hS0DwGG6BoiK0GlPOLA CD3Yx/bpKoKSHYKTT9eqB949pdVM2wedsV/N72F1xvUjvUK1ulZKmJ7M7I4xBAmTF8R8 kiAlZ0By3TEUdLlyosg6JLEpgThEb+DHw6kbqjF+CPl1XngG1Sk/tSwjvhhj0mJqUzow 4EDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=P1pUlDEf54XnvQPNPHucDSEiGkzXeOdNr6dL3gGyvxg=; b=ZIp1kj6gsiAMltd5A9chzHK8GCfK+wEFWzNUPyf3FHP6qLQFXhIz2BdR62cK3vGgyi A029sw2YZ9A7/IufYVN5emCK08ZRQ5OyUobduvvDZJKPQYmSrtiTJPt1OySE/8qoZET0 7eh7v9R48yguxnXFB4CDyOkPv12AyIg5l7Fq/Be7Cwzp67KB9scUcaZNNWOWW3vtwGJS kSFC7UGeXXxZP+drQ3Zy9rVTUKIUEDP9E9VzzC/2D318cAGLy/G0PmtEvjRwoNR4Jhq+ 3EfpXCDXHHk81797YsL9HYeNwlN3HmEVY0KrFB1uF/9cGqejmea7PGeXI1S0mraIsZW5 PPjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=nm+sWHkC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13-20020a170902f10d00b00192c4055e78si983552plb.544.2023.01.06.06.33.16; Fri, 06 Jan 2023 06:33:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=nm+sWHkC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234376AbjAFOb3 (ORCPT + 99 others); Fri, 6 Jan 2023 09:31:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232742AbjAFOa7 (ORCPT ); Fri, 6 Jan 2023 09:30:59 -0500 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 602777F45A; Fri, 6 Jan 2023 06:30:54 -0800 (PST) Date: Fri, 06 Jan 2023 14:30:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1673015453; x=1673274653; bh=P1pUlDEf54XnvQPNPHucDSEiGkzXeOdNr6dL3gGyvxg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=nm+sWHkC9GpyBy8eAYyMuKCg4KDF17VMg3GD1rj5IhvwpWyD83U0IDbZOVRljpp63 alepKSj18hdGaiZMPBM2MY7b6Bu4/av1Vzy8nP65MrfSaXjf0RswYcGq6Q35HOndd/ bCgvTj/LOiQV+gJg9dMYaVSzIu8/bMwWdrAkjjryPE63tF6C3mSoFqIEGBo4eYuDen FqqYbFDsluwfy4dGWYcJyV3IK/P2GH0Sgni6JyNFYg00iHohGHvWUsRZW3uix6WTd/ AftqDyc46HBR0fHyFTFaMECZ5uI2kq9MhD7dRrL+WmgpcIz1La1CWDgit4N6yd5qnn bD+b+TSAOr7TA== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Nikita Travkin , Julian Ribbeck , Josef W Menad , Markuss Broks , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Krzysztof Kozlowski Subject: [PATCH v6 1/5] dt-bindings: qcom: Document bindings for msm8916-samsung-j5x Message-ID: <20230106142956.547081-1-linmengbo0689@protonmail.com> In-Reply-To: <20230106142748.546975-1-linmengbo0689@protonmail.com> References: <20230106142748.546975-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754284015614146451?= X-GMAIL-MSGID: =?utf-8?q?1754284015614146451?= Document the new samsung-j5x device tree bindings used in its device tree. Signed-off-by: Lin, Meng-Bo Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 27063a045bd0..23a38bd9c7cf 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -204,6 +204,7 @@ properties: - samsung,e7 - samsung,grandmax - samsung,j5 + - samsung,j5x - samsung,serranove - wingtech,wt88047 - const: qcom,msm8916 From patchwork Fri Jan 6 14:31:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lin, Meng-Bo" X-Patchwork-Id: 40151 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp855376wrt; Fri, 6 Jan 2023 06:34:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXs1x+ZWbE9YOfmjzAEIJZeLxXYnrEbp+ZQOTI5rK9t1qzkzzHiy8W7T/FAFdqYjG6vGSYS+ X-Received: by 2002:a17:90a:2ca2:b0:223:fa53:b368 with SMTP id n31-20020a17090a2ca200b00223fa53b368mr58783287pjd.34.1673015658304; Fri, 06 Jan 2023 06:34:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673015658; cv=none; d=google.com; s=arc-20160816; b=XdNPV6HFvE3JVd5/us7Z8zgHYPd8kgaHqhgksG7DoBl4ofNvd3DYd1w07fjCZCLmse bLmnq0XnE6eZFp9R9Egjh7AmWzRKxGFj02Ff03AtovV79qGLNEVirM+4Yv8wcAliW/C0 S7F/e+b5Ko3o1pBDDwrqamEzOBCQd9IDlcPbjl2yOKjxURplIw/yoKxR0wdK0JBvrV5r veLwjJdtubuiPJtyoEFbt7qGOIreFHsmWmPT72ZUMx8FYQc546M6d2QPS9iyPJ3nkHR5 Dt+/OPEYYK2M7VzLgx/Jp2F09be4ZzZVNSz2Hnd9flYGywkW6CgYQz6BAaTWRRikCofg +hHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=zwgxDtrvvsnKx3WwIiMDTQ8qwPQosXJZ2V7U0l4c1eg=; b=iRj66yiumUBvtxHgSxIL6Qz+Qso0I/i3ma3jPME6ZyMXM9UGC3tE+ntlcJyy1YbMro +gppt8Y1U3iUPzAmFwvomQUklc5LHyn3X+VyKz8ix6WLtXHpi2ukEqOG97EtE++OjnOg CQiQtFjEOCS4CAoUlrGj7bb4JkFXyl7jTa3K+KvvfSk8umkz09kyM26ud9oBPT92QAhR 7w0GHNDRaMRxwKCPZyqIFINrioZk/orV6CQspMQqNbAVcAKGTtvDifcd2sYwIIoFCWnp BZzC8+nz9Olvx7+HXs++y5NL6DdjFryc0p4igznlc0/xz9/dddtqRTZQ3NsBWkDOWj30 G9aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=kR4wRpqt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn9-20020a17090ac78900b002268719b9besi4884574pjb.62.2023.01.06.06.34.04; Fri, 06 Jan 2023 06:34:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=kR4wRpqt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234092AbjAFOcB (ORCPT + 99 others); Fri, 6 Jan 2023 09:32:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234387AbjAFOb3 (ORCPT ); Fri, 6 Jan 2023 09:31:29 -0500 Received: from mail-40140.protonmail.ch (mail-40140.protonmail.ch [185.70.40.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFD507F46D for ; Fri, 6 Jan 2023 06:31:20 -0800 (PST) Date: Fri, 06 Jan 2023 14:31:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1673015478; x=1673274678; bh=zwgxDtrvvsnKx3WwIiMDTQ8qwPQosXJZ2V7U0l4c1eg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=kR4wRpqtPRneXInVTW1WRLYAwKN3zaJ8PjaTKTTL6DUL4lToK8fHTZ7oUHqMobIfw aO2D6qvOGUiz1YMm7MNWdXP7MrsaNWx8cLC9cWWocG20JpKAfqUhCo+bh8ChUtl32l hkiwW2JszoAATrIth6JSTeDzl8dPBYVwQTV+VspeZzHq/FavrKVwqC9oTXAYYwmaGc HIqeawU051Z+Ib5EnRWf+WEwWKJPBTIz9rk/cLbauksrhwnplOeVEg26n6kQ0T9Y2K RSkNf4fos+IcrX270MZciNChFrj6rVwo5rCqVuW1aoPU3i172UX0R/lnTAlK8lltf4 jI7tQj9kBxYpA== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Nikita Travkin , Julian Ribbeck , Josef W Menad , Markuss Broks , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Krzysztof Kozlowski Subject: [PATCH v6 2/5] arm64: dts: qcom: msm8916-samsung-j5-common: Add initial common device tree Message-ID: <20230106143010.547140-1-linmengbo0689@protonmail.com> In-Reply-To: <20230106142748.546975-1-linmengbo0689@protonmail.com> References: <20230106142748.546975-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754284067056206829?= X-GMAIL-MSGID: =?utf-8?q?1754284067056206829?= The smartphones below are using the MSM8916 SoC, which are released in 2015-2016: Samsung Galaxy J5 2015 (SM-J500*) Samsung Galaxy J5 2016 (SM-J510*) Move msm8916-samsung-j5.dts to msm8916-samsung-j5-common.dtsi, and add a common device tree for with initial support for: - GPIO keys - SDHCI (internal and external storage) - USB Device Mode - UART (on USB connector via the SM5703 MUIC) - WCNSS (WiFi/BT) - Regulators The two devices (all other variants of J5 released in 2015 and J5X released in 2016) are very similar, with some differences in display and GPIO pins. The common parts are shared in msm8916-samsung-j5-common.dtsi to reduce duplication. This patch rewrites J5 2015 devices, later patches will add support for other models. Signed-off-by: Lin, Meng-Bo Acked-by: Krzysztof Kozlowski --- ...-j5.dts => msm8916-samsung-j5-common.dtsi} | 7 - .../boot/dts/qcom/msm8916-samsung-j5.dts | 224 ++---------------- 2 files changed, 15 insertions(+), 216 deletions(-) copy arch/arm64/boot/dts/qcom/{msm8916-samsung-j5.dts => msm8916-samsung-j5-common.dtsi} (95%) rewrite arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts (93%) +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts @@ -?,? +1,15 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-samsung-j5-common.dtsi" + +/ { + model = "Samsung Galaxy J5 (2015)"; + compatible = "samsung,j5", "qcom,msm8916"; + chassis-type = "handset"; +}; + +&usb_hs_phy { + qcom,init-seq = /bits/ 8 <0x1 0x19 0x2 0x0b>; +}; diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi similarity index 95% copy from arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts copy to arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi index 7ac49a021563..502b38d4a61e 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi @@ -1,15 +1,9 @@ // SPDX-License-Identifier: GPL-2.0-only -/dts-v1/; - #include "msm8916-pm8916.dtsi" #include / { - model = "Samsung Galaxy J5 (2015)"; - compatible = "samsung,j5", "qcom,msm8916"; - chassis-type = "handset"; - aliases { serial0 = &blsp1_uart2; }; @@ -92,7 +86,6 @@ &usb { &usb_hs_phy { extcon = <&pm8916_usbin>; - qcom,init-seq = /bits/ 8 <0x1 0x19 0x2 0x0b>; }; &smd_rpm_regulators { diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts dissimilarity index 93% index 7ac49a021563..0a32d33e9778 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts From patchwork Fri Jan 6 14:31:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lin, Meng-Bo" X-Patchwork-Id: 40150 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp855378wrt; Fri, 6 Jan 2023 06:34:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXskzn0GTf5TAzDNg4jrV4z4Cc5vLXqcf+vW9vzdhq3vE1UEeMOPqJez8sJITHTUoxWOanRj X-Received: by 2002:a17:90a:2ca2:b0:223:fa53:b368 with SMTP id n31-20020a17090a2ca200b00223fa53b368mr58783295pjd.34.1673015658476; Fri, 06 Jan 2023 06:34:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673015658; cv=none; d=google.com; s=arc-20160816; b=T+5z46r++8U5johJRkOFEeL7pzn8++MkDhM0TXCqf5ILtHHryC9jtGSsq+ZFn4vnTx emPcTEz7XNkCqjiiWHVd7+SQ7+X7gxNY8+O+6xvC+bras68QNAC4nZp7MV8RpS70Mep6 raPC6WliY7TJau0oxa1VIbFN2p69iFpVUMr/0jOYPg9RGmu1E7s4tWvb4pJ0aoeaX1+p y7iSvdzCSP4RARc2txQKBCW+lhc/9llullJOljPwUsZI0nEJ7yJ5djF+h/es7+wnjPVz njDFiNvbLLdlLDlKmkaZaLNdX5qIzlf2bgvw7McL8fc6IDTfsam5g4s0+LIfP/YTT3Rx RPhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=DtWV4ywnzbPv/3t4iWW53UDI2kgtD4vFbsJ8JLoPO6A=; b=NiotrbTzFkbXLGHAEWM2gkKRdfwcF/iUWD0PU3PE5S54PQmjEGDk+eyxjP4wNJDIIS 43/Z/SYXTh+cyDdKtxVuzvfT8Btan1sDnWcj43PRzgwv5T72Wesg+PZvzmRqtPAnHqCf Iu8Cp0Axs1HtKCo8qJcRwbWnhAld9G1jJB5x2wtaYDpbKFn4M+/xUIEjRlbeCzQmEUF1 MCeWlbAqz+z1Ol1kpkIEWarqpoJ3STT1p3yU7VwkCOZOvn5rkO1BOam+FfBY9q7E5M2D 1ppLxIYdUmfCAXXpP/0a6NWf+ZCWt2j8roXEpBibHe5g0KwjMAp+m22NaRDlqSF1gSJK iQmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=gv+ZO6Gh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g27-20020a63521b000000b00491ad1ca2f2si1520712pgb.835.2023.01.06.06.34.05; Fri, 06 Jan 2023 06:34:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=gv+ZO6Gh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234993AbjAFOcE (ORCPT + 99 others); Fri, 6 Jan 2023 09:32:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234964AbjAFObg (ORCPT ); Fri, 6 Jan 2023 09:31:36 -0500 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13CFF7F47C; Fri, 6 Jan 2023 06:31:30 -0800 (PST) Date: Fri, 06 Jan 2023 14:31:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1673015488; x=1673274688; bh=DtWV4ywnzbPv/3t4iWW53UDI2kgtD4vFbsJ8JLoPO6A=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=gv+ZO6GhXJCsor3tezbhHErNjyeymOKbXpLlxmUyAYTOfuNsHsevUAvRFeq9FMv0w AZjj1v7aeeRbtwAuQx/eCs4OQOy/dKUw8hjUuK94Ro/FssjtW6ZtlDNUv8xYh2GZ30 4ds6z8HlaaHCuiCyqR9dL7m6ZovCIRPz0rbm95FzQLLgaH7lSqTj5Z2Rc9QIzkljNf 9Pxj9PbGQVbF4G67DsNHAA3H1RFRSO8LNM1huiFNq7jD1nzUsZ3TWwRbnrZkebUWuK PtA258/LwBycSF6QXZSCxBzKsbT9vznzofuGvgPz8j3JpwVixX6AiCvcj/oVjOuag+ ckiCi2x894Vew== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Nikita Travkin , Julian Ribbeck , Josef W Menad , Markuss Broks , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Krzysztof Kozlowski Subject: [PATCH v6 3/5] arm64: dts: qcom: msm8916-samsung-j5-common: Add new device trees Message-ID: <20230106143024.547194-1-linmengbo0689@protonmail.com> In-Reply-To: <20230106142748.546975-1-linmengbo0689@protonmail.com> References: <20230106142748.546975-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754284066629712476?= X-GMAIL-MSGID: =?utf-8?q?1754284066629712476?= After moving msm8916-samsung-j5.dts to msm8916-samsung-j5-common.dtsi, Add new J5 2016 device tree. [Add j5x device tree] Co-developed-by: Josef W Menad Signed-off-by: Josef W Menad [Use &pm8916_usbin as USB extcon and add chassis-type for j5x] Co-developed-by: Stephan Gerhold Signed-off-by: Stephan Gerhold [Use common init device tree] Signed-off-by: Lin, Meng-Bo Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 3f1d79388df7..a25973a8218d 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -39,6 +39,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-gt510.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-gt58.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-heatqlte.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-j5.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-j5x.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-on7.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-serranove.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-wingtech-wt86518.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts new file mode 100644 index 000000000000..7656ac4508cf --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-samsung-j5-common.dtsi" + +/ { + model = "Samsung Galaxy J5 (2016)"; + compatible = "samsung,j5x", "qcom,msm8916"; + chassis-type = "handset"; +}; From patchwork Fri Jan 6 14:31:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lin, Meng-Bo" X-Patchwork-Id: 40152 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp855748wrt; Fri, 6 Jan 2023 06:35:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXs7chbyeS6VBRUVeEkoqySdeW0O1SQZNTkUQbUgTT4b4b2pVzQp94FIcOCDkisnCP92umrj X-Received: by 2002:a05:6a20:549d:b0:af:dd76:4f0d with SMTP id i29-20020a056a20549d00b000afdd764f0dmr107165627pzk.33.1673015708841; Fri, 06 Jan 2023 06:35:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673015708; cv=none; d=google.com; s=arc-20160816; b=GtZLVAqYE4isJH76ZvAMHosp0pctKfrsSam9LHLMQsyak+tBsmMV4tZVTCSg7DNETx rzzZ8DXbBZP8QFq8kscZ7vIUOrUcuPuW9Qg0+Q449+D+mZlvhoaz6UE/HUEtk1rxrkfa BgiSyj4w4gdRFlZejvvolOvhmOlpFeHmhJtUQV4VUgZtoXF7xfqmjGHNvK1TvjokHfKs qiokrUq0wpXKMuSrTuZheotthITKNuWeGLsP+HBgWX/faE9Dysd2qltOgMwZUbtUAOHc Q7s5MZ7arug0qbI6t+9/Zp2TTVVX6ZcayoLAXpduaAjDZSN4n7z2RN3aF+ajBdDBT/ec YDdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=Jtx9DakIpfF+Lwd5xBjPwVFe6Af//ReFvJ0WW/ILW0E=; b=xCgbDZeWRowzPxDnCQo+Ygt3321Loz1Shf4/h5V215l+Fk7PHx+HMnk1i2nhvw70tK ZcFOnymfXj9ywPvFG5eogCppTWhodb+tjgJwixFyyKFTEBAfyNaPndt0drCtKdGMKA7J TinTyrC7BWJmlmzyFOXDCln8tJGLx7poHFRVOtd2PR63jcKOK/QuR3r6RaERFSAj8LsQ OnQmNQhFqMyXDV0dGVfoXuS2kRvrl68aeUPniJ7FYBXNTQjAu6IuB50PwVFB87+IcvDd A/NHRWm639bRhIMCa4QwuEF0tMGBunS4jiRSTg6BHrdHmdn3mLg2j9jD4IjYNPJbFuGR L4Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=vO7cCe8G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb9-20020a056a004c8900b005774d572ad3si1484312pfb.31.2023.01.06.06.34.55; Fri, 06 Jan 2023 06:35:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=vO7cCe8G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235143AbjAFOcH (ORCPT + 99 others); Fri, 6 Jan 2023 09:32:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235046AbjAFObh (ORCPT ); Fri, 6 Jan 2023 09:31:37 -0500 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9C917F470; Fri, 6 Jan 2023 06:31:32 -0800 (PST) Date: Fri, 06 Jan 2023 14:31:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1673015491; x=1673274691; bh=Jtx9DakIpfF+Lwd5xBjPwVFe6Af//ReFvJ0WW/ILW0E=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=vO7cCe8GRW47dZWSjBKgSZqyrZU8WIt3CoWzj1wJv4oO1I4bQvSUDPujKG+zp+d3p SdZCRs1ayj/w0j+I/G5HkzJ1H2Fp8Pdamws6YbgxJNeO6SRs7X5UQnAYMsVYTTVQvx 3j3RDTkrlaAeTNCERjfxC0fJ/U91VTs9yNLDXHwRnhB+ZT+W1jalYl46P3PijlM0n7 ZHZ4/lIX+9PnfHG7dUpXD3ivH/CzIPndVIFMINJubyKoG5+Afw+8E4Fw/VP16MvlpR fadwf5aaQlA3UArYagHIvCgXZEJKaiLCZUuyMNi3p7L5iiKMLmSJyWP1zwCqBVdADN Bd90qUEIgxzGg== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Nikita Travkin , Julian Ribbeck , Josef W Menad , Markuss Broks , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Krzysztof Kozlowski Subject: [PATCH v6 4/5] arm64: dts: qcom: msm8916-samsung-j5-common: Add Hall sensor Message-ID: <20230106143037.547248-1-linmengbo0689@protonmail.com> In-Reply-To: <20230106142748.546975-1-linmengbo0689@protonmail.com> References: <20230106142748.546975-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754284119869983112?= X-GMAIL-MSGID: =?utf-8?q?1754284119869983112?= Samsung Galaxy J5 2015 and 2016 have a Hall sensor on GPIO pin 52. Add GPIO Hall sensor for them. Signed-off-by: Lin, Meng-Bo Reviewed-by: Krzysztof Kozlowski --- .../dts/qcom/msm8916-samsung-j5-common.dtsi | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi index 502b38d4a61e..5755b360c6ed 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi @@ -2,6 +2,7 @@ #include "msm8916-pm8916.dtsi" #include +#include / { aliases { @@ -20,6 +21,23 @@ tz-apps@85500000 { }; }; + gpio_hall_sensor: gpio-hall-sensor { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_hall_sensor_default>; + + label = "GPIO Hall Effect Sensor"; + + event-hall-sensor { + label = "Hall Effect Sensor"; + gpios = <&msmgpio 52 GPIO_ACTIVE_LOW>; + linux,input-type = ; + linux,code = ; + linux,can-disable; + }; + }; + gpio-keys { compatible = "gpio-keys"; @@ -192,6 +210,14 @@ l18 { }; &msmgpio { + gpio_hall_sensor_default: gpio-hall-sensor-default-state { + pins = "gpio52"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + gpio_keys_default: gpio-keys-default-state { pins = "gpio107", "gpio109"; function = "gpio"; From patchwork Fri Jan 6 14:31:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lin, Meng-Bo" X-Patchwork-Id: 40153 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp855922wrt; Fri, 6 Jan 2023 06:35:31 -0800 (PST) X-Google-Smtp-Source: AMrXdXszwavpqdOTZoPT2rwcQgrzKcVzihNDhuTyXrPExLXdXZyNzXkkD90OvCkPrJzY2phARgSv X-Received: by 2002:a05:6a20:6709:b0:af:aa38:12e0 with SMTP id q9-20020a056a20670900b000afaa3812e0mr57012451pzh.34.1673015730896; Fri, 06 Jan 2023 06:35:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673015730; cv=none; d=google.com; s=arc-20160816; b=D1Nd2UdPr9Nsqn7L+jiWKjqAs7ClxwPAEIUijXdKo9V3P6NSYsjNzZ7knfJnLYV9gE lgEIn1ywECAO3dDIvC6/2gVOZoLyutAP3hc6KoK7oMJyCdPMaQbFDK0n5VVDQzZUSJwm kY0LSjHboU7hoj9p1NrRiUp5wcD72I7i73Vbq8gWh8k9RdkfxSgmrinrVc0DO/0oCFo3 A+q2v3SjKI95wgETyVLnf3NG1cEEYrccNeVkEDt3bpY0h8+AjUu3hU4AT0azr2ngRI45 f8zSJWqvPhDa4dFl6sqD4sKFF8kd/y40XkX+QvKZglXC26Wn9En02npBhslTwEOfTW4R ND3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=ocUQAxaviL0qvTTTeOczw/hurbzdqCtMbAPWkB864dI=; b=z+b+LUod6ZtBh4NZwR84O4l/0YyzAZDId1SasTMz3FjLdJYHNUoDlWRA5CkMt6Xxm7 yHOq3+vwuDatgb3mcf5a9ITn0uEwQJkahAKEVnZs0T4FSJT/gQuE47InZaCYCDNyMsuB rMexS7mgfeSzKY5Zp3q26tZk3+2tv9o/x8SmjcW0gNOrOnIuv5nt4SVPt4YQ1PUvZlhm remZYTcevIifGYptmeYceN0lyK/POhpE3TDpyULhOoUzubOaBA1+8fhLVG7Vz4sYTHIn sGmOrrAPGpG9dbe3CSkb+lLgYMiltdwHrE7E4/7roQpzipqAu5JHqVyb9mdQ46RSohXB Lhfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=kkgN17pr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b21-20020a63d815000000b0049148558228si1675145pgh.90.2023.01.06.06.35.17; Fri, 06 Jan 2023 06:35:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=kkgN17pr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234616AbjAFOce (ORCPT + 99 others); Fri, 6 Jan 2023 09:32:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235155AbjAFOcH (ORCPT ); Fri, 6 Jan 2023 09:32:07 -0500 Received: from mail-40140.protonmail.ch (mail-40140.protonmail.ch [185.70.40.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64FB07F46A for ; Fri, 6 Jan 2023 06:32:04 -0800 (PST) Date: Fri, 06 Jan 2023 14:31:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1673015523; x=1673274723; bh=ocUQAxaviL0qvTTTeOczw/hurbzdqCtMbAPWkB864dI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=kkgN17pr031wlpop0EiBxWQhDhpsetS1Q2dRztdmaT/SwioQXIglGBv8UkLZlT7MI kESv6LvlUBVVhZp4cuWkSeK0eHfkEyNX7L8v0trZo5+/3S68Mg2569NMPR9fTBx1cG 5iW4RKkugVZ7qQVnGEKkO+7hPHpBoC2ttGSjo7pSYeCOQmDu0ek9DuLYvmt6E5/BqI cxBnqsFjQP6KI0hvw/isqmresyqID9Q0LbNlWLs+7Q7vn7EGV0cYn9FXye3yrivRck ezUmr6euM4z71ugLqN16+NLv0G2R/dDr2NOyecy8igLpeCI9r+fbagJDMt8FEe0K7u 3BmArqp3Rkb7g== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Nikita Travkin , Julian Ribbeck , Josef W Menad , Markuss Broks , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v6 5/5] arm64: dts: qcom: msm8916-samsung-j5-common: Add MUIC support Message-ID: <20230106143051.547302-1-linmengbo0689@protonmail.com> In-Reply-To: <20230106142748.546975-1-linmengbo0689@protonmail.com> References: <20230106142748.546975-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754284143299511829?= X-GMAIL-MSGID: =?utf-8?q?1754284143299511829?= From: Markuss Broks The MUIC installed is a part of SM5703 MFD, and it seems to work the same as the SM5502 MUIC unit. Signed-off-by: Markuss Broks [Apply for msm8916-samsung-j5x] Signed-off-by: Lin, Meng-Bo --- .../dts/qcom/msm8916-samsung-j5-common.dtsi | 50 ++++++++++++++++--- .../boot/dts/qcom/msm8916-samsung-j5x.dts | 8 +++ 2 files changed, 50 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi index 5755b360c6ed..f3b81b6f0a2f 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi @@ -3,6 +3,7 @@ #include "msm8916-pm8916.dtsi" #include #include +#include / { aliases { @@ -58,6 +59,29 @@ button-home { linux,code = ; }; }; + + i2c_muic: i2c-muic { + compatible = "i2c-gpio"; + sda-gpios = <&msmgpio 105 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + scl-gpios = <&msmgpio 106 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; + + pinctrl-names = "default"; + pinctrl-0 = <&muic_i2c_default>; + + #address-cells = <1>; + #size-cells = <0>; + + muic: extcon@25 { + compatible = "siliconmitus,sm5703-muic"; + reg = <0x25>; + + interrupt-parent = <&msmgpio>; + interrupts = <12 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-names = "default"; + pinctrl-0 = <&muic_int_default>; + }; + }; }; &blsp1_uart2 { @@ -69,11 +93,6 @@ &pm8916_resin { linux,code = ; }; -/* FIXME: Replace with SM5703 MUIC when driver is available */ -&pm8916_usbin { - status = "okay"; -}; - &pronto { status = "okay"; }; @@ -97,13 +116,12 @@ &sdhc_2 { }; &usb { + extcon = <&muic>, <&muic>; status = "okay"; - dr_mode = "peripheral"; - extcon = <&pm8916_usbin>; }; &usb_hs_phy { - extcon = <&pm8916_usbin>; + extcon = <&muic>; }; &smd_rpm_regulators { @@ -225,4 +243,20 @@ gpio_keys_default: gpio-keys-default-state { drive-strength = <2>; bias-pull-up; }; + + muic_i2c_default: muic-i2c-default-state { + pins = "gpio105", "gpio106"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + + muic_int_default: muic-int-default-state { + pins = "gpio12"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; }; diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts index 7656ac4508cf..7e1326cc13c5 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts @@ -9,3 +9,11 @@ / { compatible = "samsung,j5x", "qcom,msm8916"; chassis-type = "handset"; }; + +&muic { + interrupts = <121 IRQ_TYPE_EDGE_FALLING>; +}; + +&muic_int_default { + pins = "gpio121"; +};