From patchwork Mon May 15 09:37:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 9345 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6814163vqo; Mon, 15 May 2023 03:31:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4I5Mopfoy/5mnQx4tHvXmBl03M6FQ39nmXFS7R0Z4VYroawfTzt2IhH1ii3/uwHzlE3v+h X-Received: by 2002:a17:90a:ad6:b0:24e:807:bd09 with SMTP id r22-20020a17090a0ad600b0024e0807bd09mr33621536pje.1.1684146712771; Mon, 15 May 2023 03:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684146712; cv=none; d=google.com; s=arc-20160816; b=SQXLmHziwxyS4bXyGwX4JwmVgjtsg791dix6H8ueyvHQIjkU3cAIk4PUvLkhAokyPO Cwi+t1LQPaKA1LMZtMqiW1hx/LmmmmTGTdk5yafOD4B5znKlnWckWxG1vE7AwEBml2VF OSmYNa3ApVFQkS0uuq47meBEWo4B3i29e850MV6REhnSU/0KEerD81CFeSgdPA2Gxg8W J/ly2s8C+xL4Lfk6JBVMZo0NLgXX/1AF3+EUeQFmCC8+APCL9+6vw28fZPn55pIfYqcN eVYGjgI8xJxOq/P8U8ZjjY0BUo8UbmUT9Zu2CmbGVu2RJkHd3OHRERKhhBXdRshy61jK snzA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=rjOMjXe/9UT+IfkEwkhmtC+Ll8X7hVXAvqtAK5nSxp8=; b=lsp3L5HYyGscfN9MkrBQzzItMnkWvmVWbzY+zLzWVD9FetwE1ApxZI2m/Vx5smXsJe x92m8DTwV6WfYiHZxqYQHkphX4/g7OLv1iFKhRGkq3/MButmDHQL9nVyGXK3AEP5irMW kR7eDgrIrgiDI5ALyoK7Xe0MKhLKGFh40q7HY8qzIWWb2jH9AZGrj0wiLfAVrV4nfcG6 yohD7bV2gYkYnQg3PID3BVo06cjfReY+xmXU31EPCXdcZMkv9Wlak5i3RBVvYzhkCVsU VbRG33U/SgXX6x0LKqgVOC/o/r8DAAlaXmufg16J93wTxCU3hxIKHvHjMaHwYGT0rRKd +OqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b="NFqzJ/Te"; 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=trvn.ru Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020a170902d34600b001a5089fe47fsi15185525plk.326.2023.05.15.03.31.39; Mon, 15 May 2023 03:31:52 -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=@trvn.ru header.s=mail header.b="NFqzJ/Te"; 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=trvn.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240899AbjEOKD3 (ORCPT + 99 others); Mon, 15 May 2023 06:03:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240903AbjEOKDM (ORCPT ); Mon, 15 May 2023 06:03:12 -0400 X-Greylist: delayed 903 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 15 May 2023 03:02:53 PDT Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D74A3197; Mon, 15 May 2023 03:02:52 -0700 (PDT) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 6381E4182D; Mon, 15 May 2023 14:37:50 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1684143471; bh=jbvIDYwyFsYFzcr006UKNnY1tOqxvQxoK0H8UlLMUjE=; h=From:To:Cc:Subject:Date:From; b=NFqzJ/Te4xd5oHf7rqfinH4BLBvqbIcaHZKcbCdxoLbvLyiuH7N7vzszoD55SGQ9V Z8MAYkdiM2knqXT243EtT0Endlf/fptVPf3RpzBvznAyahk06tLZIydNYyZNhykFTo MKxw3BlZUH0tzep4mNLJcvcgzBC3bLrKhg1lMoXMXGVxTb/X5t1eqYHAoUA6CPmrpl o+deDXRhFcxTWu+BPMJ05rEgNheNpfLEi+q8UShUpeO3qT3OfXDDpFOrrF5RsP+k3I nZFcuRqy777PvU4WKPIZZqnMx//Y7MKtpiWDB+hrgZBlRJp1m/B0OrO3fGbrnnIODm mJa98YDYYAo2A== From: Nikita Travkin To: agross@kernel.org, andersson@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, quic_srivasam@quicinc.com, judyhsiao@chromium.org, mka@chromium.org, dianders@chromium.org, cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin Subject: [PATCH v6 RESEND 0/4] Add Acer Aspire 1 Date: Mon, 15 May 2023 14:37:40 +0500 Message-Id: <20230515093744.289045-1-nikita@trvn.ru> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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?1765955823769133472?= X-GMAIL-MSGID: =?utf-8?q?1765955823769133472?= This series introduces Acer Aspire 1 - A WoA laptop with sc7180. The dts adds mostly complite support for the hardware and the device, with minor patches on top, can be used as a normal laptop daily. Notable features absent from this patch: - Sound While the dedicated sound components are defined, since the ADSP must be used, sound requires additions of that remoteproc as well some extra "glue" to connect the i2s outputs to it. I was able to hack together some sound based on sm8250 stuff but it needs more work. - Embedded Controller The laptop has a dedicated EC that controls, notably, battery/charger and notifies the device about the USB-C DisplayPort HPD events. As per this patch, there is no battery status indication and external display support. Also, due to the EC defaults, the fn key is disabled. I have an experimental driver that implements all of that, which needs more work and will be submitted at a later date. - PSCI OSI Mode Firmware on this laptop does not support the PC mode, as is usual for Qualcomm. This change would require adding OSI related power-domains to the SoC dtsi and is omitted in expectation that this can be handled when (if?) CrOS team handles their tf-a, like they did with sc7280. Changed in v3: - Disable lpass clocks by default (Konrad) - Drop status=disabled for mdp in the common soc dtsi (Konrad) Changed in v4: - Resend with picked up tags, no other change. Changed in v5: - Minor style issues fixed. (Konrad) Changed in v6: - Fix eDP HPD hack (Doug) Nikita Travkin (4): arm64: dts: qcom: sc7180: Don't enable lpass clocks by default arm64: dts: qcom: sc7180: Drop redundant disable in mdp dt-bindings: arm: qcom: Add Acer Aspire 1 arm64: dts: qcom: Add Acer Aspire 1 .../devicetree/bindings/arm/qcom.yaml | 4 +- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sc7180-acer-aspire1.dts | 845 ++++++++++++++++++ arch/arm64/boot/dts/qcom/sc7180-idp.dts | 4 - arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 6 +- arch/arm64/boot/dts/qcom/sc7180.dtsi | 6 +- 6 files changed, 857 insertions(+), 9 deletions(-) create mode 100644 arch/arm64/boot/dts/qcom/sc7180-acer-aspire1.dts