Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp313949lqb; Thu, 14 Mar 2024 11:58:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbZ+MKrdQr/I+eFKd9yZNBmBrqPsR+qim6clk53w6GjOAGTeryFx3OYTmT/IgYO+xKDtTffFRRyPLESbUEdVCQ6ag9Lze6ioQQrxx86Q== X-Google-Smtp-Source: AGHT+IEKEts9q+bP6tLxC8l2XEzzPKLxodDZj2ivxOrhofjEgdWZ+7QdW/e+1g1EfineHXf3qBjm X-Received: by 2002:a05:6808:1490:b0:3c2:c82:8ef5 with SMTP id e16-20020a056808149000b003c20c828ef5mr2609049oiw.22.1710442705100; Thu, 14 Mar 2024 11:58:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710442705; cv=pass; d=google.com; s=arc-20160816; b=1BhBeJWqHI3hN8wrjEiaXPK0t+ExUVTArCnJWS/TT3gLTjnRp81GAOkXygmObWDmCF RBMIsFLp7bPvYwfhYhddw5wAq0KgGRB4V0FBSzkzJZQQlVC9LUUEudkyQCJDc3NjUIJ+ pcAo3HLNTjFj01CXWLNzvweqHXfhuE2zD4zQXIMibrQ0G3tJYVges4+clVazrC8ypQPy b5iLuMT2fP+9b/gDq6Bu+vmu//FQGr4Wu6BIxUybW3hqI014SENXp9nWkgnZeef8s/JN Sj8A39pJkmvH4bQrsQsgxpKTutgnK9u2++QfcciDzdodSiEpd0Ty13tgZm5g40xIKXRB 1Lbw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=R8Y3kim4N9qNX6DxULZIXW++42v0aOvqxoNYUz+UCvM=; fh=wiQCFtTZv2GrWNzlQpNFtSHqrjzvJBPD6Ge2QlsWdVw=; b=AVR7KWVuGIFQASMGZmIK/BhjrjjbqcwljwYt6YRL0toXCOfPXkcF/4dfs4/LGdOg+B WTUUNqTKj2LnTeUrnkATnm61vHFzlQCY0H2Ez9slO4/5VIsAhc28YZUI0Bh1HkmZXTZ1 A1wdVMQ24vd/XH4Mt8wNFKo62a6VrhyfNVT56XWdelI64F3wYdjbipGKlt+/dsVNusMs sTMRsLTQ86w9WJtuMCkAGIk/xcj807mv+XinMb7NG/UEAqooilggZc15Pury8a9pqIyp pnZBYNi3bwTyrodZ3R+ugy6QfSUh+0qqkqBCJTDsDp0ke6ITtExWpAspFovYnLJ3NPtX XIsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b=fU2gSPS3; arc=pass (i=1 spf=pass spfdomain=z3ntu.xyz dkim=pass dkdomain=z3ntu.xyz dmarc=pass fromdomain=z3ntu.xyz); spf=pass (google.com: domain of linux-kernel+bounces-103708-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103708-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p7-20020ae9f307000000b007881d25361bsi2079012qkg.7.2024.03.14.11.58.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 11:58:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103708-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b=fU2gSPS3; arc=pass (i=1 spf=pass spfdomain=z3ntu.xyz dkim=pass dkdomain=z3ntu.xyz dmarc=pass fromdomain=z3ntu.xyz); spf=pass (google.com: domain of linux-kernel+bounces-103708-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103708-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CB94C1C21DAD for ; Thu, 14 Mar 2024 18:58:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 028D976412; Thu, 14 Mar 2024 18:56:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="fU2gSPS3" Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 505AC762C1; Thu, 14 Mar 2024 18:56:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710442616; cv=none; b=UxGANbeADqz4tEEtyCUL1bpygJ5WBB92IdUBJrGtDGBnxw3qk3oFGDfFUYppuBefoxSITSSh6hHl/d7hkN5rI+vKC0xcBgD5QlxBcrqCg7XUM7fqQkyX7bt5t1QvPQTybzJbXtF1Qm8/jzAHBcYTaP7YQbyZfdq2kHwqxbhNbwM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710442616; c=relaxed/simple; bh=6cPYJ+ZbtXR0UtPv3MSIlGZ1h+gUPr3OrtY8mAXzPK0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=G+k51092Hi5dmgqTriDRcvfhlC5voRR38FCuPcsICgBMi3OmrCqASAr8H38oWBkuaHC2QmWQl1kSgi76w5WWgJIUTYWBvI3NaFsK2QfjhsET6AnPbY4WdiL0w5wylMALylTRiGS4YnJXlDWgLMOeasZLKxMHadTiJvknzE+07Jg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz; spf=pass smtp.mailfrom=z3ntu.xyz; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b=fU2gSPS3; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=z3ntu.xyz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1710442607; bh=6cPYJ+ZbtXR0UtPv3MSIlGZ1h+gUPr3OrtY8mAXzPK0=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=fU2gSPS3KDIOsgahtNXCw+Z3Wm8JC3UmAeNQLBw/aFzSP3t+Ts2zQjXNFS0RBtrBy DlDemsmTq8c40aHlBXX1w2OrZLP3E/IOERrDJiU/+rG+x1BRF2IzpB7Clh5m3VbJFB EciMaPcW42XKYlRJqFfVunRKmHtrndma8Bf6xZa4= From: Luca Weiss Date: Thu, 14 Mar 2024 19:56:24 +0100 Subject: [PATCH v2 3/3] ARM: dts: qcom: Add Sony Xperia Z3 smartphone Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240314-shinano-common-v2-3-a0fce1c72c74@z3ntu.xyz> References: <20240314-shinano-common-v2-0-a0fce1c72c74@z3ntu.xyz> In-Reply-To: <20240314-shinano-common-v2-0-a0fce1c72c74@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2380; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=6cPYJ+ZbtXR0UtPv3MSIlGZ1h+gUPr3OrtY8mAXzPK0=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBl80hmEHmVKCJ3s1H+/yDBxjlpxtjSnBHqgNlcc eqRWFUgj1aJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZfNIZgAKCRBy2EO4nU3X VhSpD/9JLNVmizFnIpa+UDLB1P8SbbuNFEW9UfZGOC2Pf5sLnLfcXipT2flWTb9CiATdCX/cO9i PcjvtWYWcBMi3weHjLnBhFupz3n7XERD7FWPic9NbMvGDzf4/OwbwSWoFZwK/3fnRytmcnP0CxF 7uCGZcyeZx36904abIC3TEZmh+rUAnlC+hCPmWmfuxlOj8gXgiI8muPcHp8EDD+A00KfRrXZ/yt 7AsKJg+ZBba/EB9LP9UYkipkU1CF8ZJYjeEDQBVigg+3YgcrsFc4qPSvPvx6lbwUh30jCdaWAYE oGskdyNtG3UopTGNjW4ljjT+84hclKJTSkSDaoRKyyOtyPYMVgUa5RXkBpNS3pV1cI+/qHgSPyY PtLkxT7jUFw+jfEjdPo/wZuuJROLXHieamCuoPEXyjoqtaJ36HurTI3uUq3Nd88PduIQvIY0aHW YilFcrBEJwFNtEVlKBCxLO+evc+KEqfUKxWjKYA4msFHh7qNBm0aadn0ugloZzAMlntvJti0x0/ mFEG2vDQr7BPjZ+2tj2xhPrzrPEEAtQzraC+ngca82A0PicuxgeS3VpS9I3oDkXdIbDpFQ1MYsB bCDU7PgOzeJOv2UADX1ogKg8EJMawyMXEOViX8jcAAs8Vx+4bPYxFuKqWZXZDACWuDgMT++PVSN fkfIMSfk6hS+BxQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Add the dts for the Xperia Z3 smartphone which is based on Sony's shinano platform, so at the moment there's little device-specific dts to add on top of the common parts. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/Makefile | 1 + .../qcom-msm8974pro-sony-xperia-shinano-leo.dts | 44 ++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/arch/arm/boot/dts/qcom/Makefile b/arch/arm/boot/dts/qcom/Makefile index 9cc1e14e6cd0..92eca505a4ab 100644 --- a/arch/arm/boot/dts/qcom/Makefile +++ b/arch/arm/boot/dts/qcom/Makefile @@ -45,6 +45,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-msm8974pro-oneplus-bacon.dtb \ qcom-msm8974pro-samsung-klte.dtb \ qcom-msm8974pro-sony-xperia-shinano-castor.dtb \ + qcom-msm8974pro-sony-xperia-shinano-leo.dtb \ qcom-mdm9615-wp8548-mangoh-green.dtb \ qcom-sdx55-mtp.dtb \ qcom-sdx55-t55.dtb \ diff --git a/arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-leo.dts b/arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-leo.dts new file mode 100644 index 000000000000..1ed6e1cc21d5 --- /dev/null +++ b/arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-leo.dts @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: GPL-2.0 +#include "qcom-msm8974pro-sony-xperia-shinano-common.dtsi" + +/ { + model = "Sony Xperia Z3"; + compatible = "sony,xperia-leo", "qcom,msm8974pro", "qcom,msm8974"; + chassis-type = "handset"; + + gpio-keys { + key-camera-snapshot { + label = "camera_snapshot"; + gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + + key-camera-focus { + label = "camera_focus"; + gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>; + linux,code = ; + debounce-interval = <15>; + }; + }; +}; + +&gpio_keys_pin_a { + pins = "gpio2", "gpio3", "gpio4", "gpio5"; +}; + +&smbb { + usb-charge-current-limit = <1500000>; + qcom,fast-charge-safe-current = <3000000>; + qcom,fast-charge-current-limit = <2150000>; + qcom,fast-charge-safe-voltage = <4400000>; + qcom,fast-charge-high-threshold-voltage = <4350000>; + qcom,auto-recharge-threshold-voltage = <4280000>; + qcom,minimum-input-voltage = <4200000>; + + status = "okay"; +}; + +&synaptics_touchscreen { + vio-supply = <&pm8941_s3>; +}; -- 2.44.0