Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp108428imi; Thu, 21 Jul 2022 17:06:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vZkfgl/qCsEEJL6a+DqSeya+qUiRunFSjNKNVwAUuS+tFZh6NqnPQE3+37RSPVLWkl5Yhl X-Received: by 2002:a62:d103:0:b0:528:c6c7:bd74 with SMTP id z3-20020a62d103000000b00528c6c7bd74mr951779pfg.68.1658448359853; Thu, 21 Jul 2022 17:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658448359; cv=none; d=google.com; s=arc-20160816; b=pbecI/Oobcg+43SZssnOefBY7R+SQb2XmJKPCPmTu2GN7r7Bt+6L88TJu0wYN8vGu3 nkGMgKGStVOuDumkkj57Zkt8vOzW+Hci1rTTckOseq8Oqtjn6ofiRr5heGDTdtLphYzi A+KPpThJzJjWBPJCWGZdn6c7aC5X29f6LqAV7RCg6eGgqxT4VenkhUFaGVdoAdzaHh9C w7bSZsMC7N30JR1cV6nz3A6TqtpqCnuCq06P8fMPGuXafpZZZHYZkNG6zr2BxVlk5Xq8 U6HnREA6sU3HupCP6lAbZNMJD3HlnGK5Lsvb1whQPVcCk4fxUknuxM9u/eALTGtExiTj K0Mg== 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:message-id:subject:reply-to:cc:from:to:dkim-signature :date; bh=i9XN1tR3m2GE4Lq+QvWSNu04mBh5feuwtLvq9OZ5sAc=; b=kdQr6AQdLsEKH4JHxwJryEup+Vooa5lLhPhL0ksebMIUIL5iau/e1nkgyBhLzM3ag2 mJYMaRqh2z0+qnvYJE20O5vTG/SQJb1wdUncUnMtNfbmcAxEGhSxADioXDlEfJGA3LJT 57ARsWZMQLihn/d3fYwmSEhs3jiHhRkCD9PYNKMe7KucyrlGCE9QsovuiuNqorAjomQK tQ1HVAs+acyiGXHQZ9t2luMw1TDkZMC9YFWAXPFN10eVG6L7ZBlEQjMWGjfClRluUrmM R8VxGzJccMB7OA7xRJBFYc8wROguLEoaBQYT+e4x3eKxKvROsmQksqRiT6xd5y/O7g4C EnpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=jPHJEdah; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a63790d000000b00411c101fb71si4119186pgc.87.2022.07.21.17.05.44; Thu, 21 Jul 2022 17:05:59 -0700 (PDT) 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=jPHJEdah; 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 S232009AbiGUXxj (ORCPT + 99 others); Thu, 21 Jul 2022 19:53:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229938AbiGUXxi (ORCPT ); Thu, 21 Jul 2022 19:53:38 -0400 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79F8F7755D; Thu, 21 Jul 2022 16:53:37 -0700 (PDT) Date: Thu, 21 Jul 2022 23:53:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1658447614; x=1658706814; bh=i9XN1tR3m2GE4Lq+QvWSNu04mBh5feuwtLvq9OZ5sAc=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:Feedback-ID:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID; b=jPHJEdahr2OJCsKS2CUgG4wWpk8Pc8auUBFOL0M8paRXd7wOLZZNRPqXkCln92Daf 5ekVbx03dO5kilKOfq92VyLAzMAvr4WwryYMkOpTf1v76LjJIxTfWAoMCzKe1OcXWo KwCF0k3Q/wjNowx03QmsgUg8V0+ntRbqc0MGJPPhp0Jrcxf+eWfA5Lw0LOeNhj6/1/ PnKzJliA1AVxNJTewCnrMQiAyRGeCVlxYul1uwOdZRw85URNYKjzfMZPIMGM4D/aKc cx3OcQ/tzWl9Zp6VGILcOmrrW/G7HoaH1O2QdEOAcdAWLzP3H3Y+W5KHx6shQUNuh3 UZmR8mLRHkpcg== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Stephan Gerhold , Nikita Travkin , ~postmarketos/upstreaming@lists.sr.ht, "Lin, Meng-Bo" Reply-To: "Lin, Meng-Bo" Subject: [PATCH v4 0/4] Add Samsung Galaxy E5/E7/Grand Max device trees Message-ID: <20220721235205.74741-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=no 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 v4: Disable i2c2 until lis2hh12 accelerometer is fixed. Add GPIO LEDs for Grand Max. v3: Add a cover letter and changelog v2: Add dt-bindings documentation Samsung Galaxy E5, E7 and Grand Max are smartphones using the MSM8916 SoC released in 2015. e2015 and a2015 are similar, with some differences in accelerometer, MUIC and Vibrator. The common parts are shared in msm8916-samsung-a2015-common.dtsi to reduce duplication. The three devices (and all other variants of E5/E7/Grand Max released in 2015) are very similar, with some differences in display, touchscreen, sensors and NFC. The common parts are shared in msm8916-samsung-e2015-common.dtsi to reduce duplication. Unfortunately, some E5/E7/Grand Max were released with outdated 32-bit only firmware and never received any update from Samsung. Since the 32-bit TrustZone firmware is signed there seems to be no way currently to actually boot this device tree on arm64 Linux on those variants at the moment. However, it is possible to use this device tree by compiling an ARM32 kernel instead. The device tree can be easily built on ARM32 with an #include and it works really well there. To avoid confusion for others it is still better to add this device tree on arm64. Otherwise it's easy to forget to update this one when making some changes that affect all MSM8916 devices. Maybe someone finds a way to boot ARM64 Linux on those device at some point. In this case I expect that this device tree can be simply used as-is.