Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp389950rwo; Fri, 21 Jul 2023 13:37:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlEZv0Q68oTKTQH2Eb+/OCoDKUbr0yxXxE61zzfDKP22NJklmks0NzO74TA/zH4XVW4PpR9w X-Received: by 2002:a17:907:77c9:b0:98e:1b9b:aef7 with SMTP id kz9-20020a17090777c900b0098e1b9baef7mr2489318ejc.64.1689971873170; Fri, 21 Jul 2023 13:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689971873; cv=none; d=google.com; s=arc-20160816; b=MPpXfKk7lrrG5tJkKCAdt3iOtp8L7x4xs1xKPwaYDXq0TFoqeNuChJUpZZSebYs3gH dM765q+dktMdub+nbRm6FZlSawSYUbKdpqHLY1XZ4iVgCF71PYfRnJUJS/ANe8UZVNX0 3M/yQfzl9td1ms2W7J6Xqh9GznxEgNlqDd1CryMzuWTSEzxUJct5MJUfw7d1wtpzLTMG BIvH9ILWqCViCvdWGYp89LuErQU0Yca2rrMWGWkZlH2MBP/5MGHoK58ypWQI1goiuJRr 7ddW5XIMryk7cigDNU1z74wMxbqlUWs0cgwquXL2tDuhJswEiWAHO4ZGu9icuJ3g8vux 8NaA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qMEfN8xWZOu7uShwdY1/3yggbHwMEHKTlaZdILx6Ks0=; fh=rey3HIqojhh8VsgcYHh2vLtVnZQaU3vaf3N/eYD7X5o=; b=Pd3aS0Fine84ldaweHywsNroq/E3fSqz3AHmDue2p0LFj2K1HE2yOqaBLDJ0VbK2X1 +RNfuLabLvVKn1tIB3REH0LwyrFNcKVnC+iyfii2RMWIJn+CbUk058qu8f/PWJTW9gyf iXdi0vJWuoXLyDl2panG6OvZ48tTjEe5iU+2O/Xvvyo/KYMTsvlo14MvL6GWuW9pYaVT IBp9AsbAI6/m9b1F2HH77M5F++CBDPXNROoRpPOG65+Xy8TzZBxl7b11RhQn4HOXAGkb xpkZId19oD/4z0V5TR3H4JjJ4TzILWFbjUOpf9VSdDuzHXgqrlDT+0bZK5uSE0RNJxwc oWbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ClW3tlNO; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w25-20020a1709064a1900b009933309250bsi2589622eju.64.2023.07.21.13.37.28; Fri, 21 Jul 2023 13:37:53 -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=@collabora.com header.s=mail header.b=ClW3tlNO; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230357AbjGUURf (ORCPT + 99 others); Fri, 21 Jul 2023 16:17:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230210AbjGUUR3 (ORCPT ); Fri, 21 Jul 2023 16:17:29 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57EB03A80; Fri, 21 Jul 2023 13:17:24 -0700 (PDT) Received: from notapiano.myfiosgateway.com (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id EC35D66070EA; Fri, 21 Jul 2023 21:17:20 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689970642; bh=0atwDp8U+leq8k/bKki3zrwD1rnrL6CHUWiUgbgnsSc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ClW3tlNO/N36RrIv5VjN9tUutETt8zJTnql7N9JBj2T4D5prO7uUIngRKKWPB2cpF o8cVAKOWYqp3XcPycs9Y+AT2Y93biJXsXqtAjnnDRru4up9dAw84wNCYlDtDegUYyq EJb/yRp4KhJIG+vGcXLYuKruuVE3nipxUpqB2hRhuEkMxHlQotyyIXxF0MmCDvOPXJ y5JiSLo0zvhVOV1dx1wHzUWbwsIrZ7mqPU+uU2yGg2vqWYGSGRNR9sNaMQRmYkiFc1 Ggq9CuQnUbvpJE7ERPEgTyOPKH/EUbjyYeIvUlI13g3pnIiZjWkhLvARVbyIWYLzZn KuS8ZGfSAPiXw== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger Cc: Chen-Yu Tsai , AngeloGioacchino Del Regno , kernel@collabora.com, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v3 4/5] arm64: dts: mediatek: Add hayato-rev5-sku2 Date: Fri, 21 Jul 2023 16:16:57 -0400 Message-ID: <20230721201705.387426-5-nfraprado@collabora.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230721201705.387426-1-nfraprado@collabora.com> References: <20230721201705.387426-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Add a devicetree for rev5-sku2 of Hayato. It uses the rt5682s audio codec instead of the rt5682 used in the previous revision. Signed-off-by: NĂ­colas F. R. A. Prado --- (no changes since v2) Changes in v2: - Added audio nodes directly in this file arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mt8192-asurada-hayato-r5-sku2.dts | 64 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r5-sku2.dts diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile index c99c3372a4b5..05aede2777a4 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -45,6 +45,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-kukui-krane-sku176.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-pumpkin.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8186-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r1.dtb +dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-hayato-r5-sku2.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-asurada-spherion-r0.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-cherry-tomato-r1.dtb diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r5-sku2.dts b/arch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r5-sku2.dts new file mode 100644 index 000000000000..3127ee5f6172 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r5-sku2.dts @@ -0,0 +1,64 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ +/dts-v1/; +#include "mt8192-asurada.dtsi" + +/ { + model = "Google Hayato rev5"; + compatible = "google,hayato-rev5-sku2", "google,hayato-sku2", + "google,hayato", "mediatek,mt8192"; +}; + +&keyboard_controller { + function-row-physmap = < + MATRIX_KEY(0x00, 0x02, 0) /* T1 */ + MATRIX_KEY(0x03, 0x02, 0) /* T2 */ + MATRIX_KEY(0x02, 0x02, 0) /* T3 */ + MATRIX_KEY(0x01, 0x02, 0) /* T4 */ + MATRIX_KEY(0x03, 0x04, 0) /* T5 */ + MATRIX_KEY(0x02, 0x04, 0) /* T6 */ + MATRIX_KEY(0x01, 0x04, 0) /* T7 */ + MATRIX_KEY(0x02, 0x09, 0) /* T8 */ + MATRIX_KEY(0x01, 0x09, 0) /* T9 */ + MATRIX_KEY(0x00, 0x04, 0) /* T10 */ + >; + linux,keymap = < + MATRIX_KEY(0x00, 0x02, KEY_BACK) + MATRIX_KEY(0x03, 0x02, KEY_FORWARD) + MATRIX_KEY(0x02, 0x02, KEY_REFRESH) + MATRIX_KEY(0x01, 0x02, KEY_FULL_SCREEN) + MATRIX_KEY(0x03, 0x04, KEY_SCALE) + MATRIX_KEY(0x02, 0x04, KEY_BRIGHTNESSDOWN) + MATRIX_KEY(0x01, 0x04, KEY_BRIGHTNESSUP) + MATRIX_KEY(0x02, 0x09, KEY_MUTE) + MATRIX_KEY(0x01, 0x09, KEY_VOLUMEDOWN) + MATRIX_KEY(0x00, 0x04, KEY_VOLUMEUP) + + CROS_STD_MAIN_KEYMAP + >; +}; + +&rt5682 { + compatible = "realtek,rt5682s"; +}; + +&sound { + compatible = "mediatek,mt8192_mt6359_rt1015p_rt5682s"; + + speaker-codecs { + sound-dai = <&rt1015p>; + }; + + headset-codec { + sound-dai = <&rt5682 0>; + }; +}; + +&touchscreen { + compatible = "hid-over-i2c"; + post-power-on-delay-ms = <10>; + hid-descr-addr = <0x0001>; + vdd-supply = <&pp3300_u>; +}; -- 2.41.0