Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp379658rwo; Fri, 21 Jul 2023 13:25:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlGqYY4H49rRVhwq0KUg5HY5LVxhNsAhDCxbzmCyOT2rrxH902rA2z9u3Mjuc8/8sGvR5Qrv X-Received: by 2002:aa7:c1c6:0:b0:51d:9dae:a591 with SMTP id d6-20020aa7c1c6000000b0051d9daea591mr2322768edp.21.1689971145300; Fri, 21 Jul 2023 13:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689971145; cv=none; d=google.com; s=arc-20160816; b=dsY1xZUBcWRDWV/fzpT7EIIB0+I5cjF+sSvx6ssz6VOUXnAgKsSb/C3okimy+egrbi ucp6NmNqrRZjMYhjblE6PW5B4UbDuX6SUH3V1gGkaTXDh56mogj+Jpmeprg/H9yGrlht 1OAvGu5pgAq5kIJVFjJvOqEk2w+Vi1Ov3X+XKd7Z1kGtEC+hEK9L5eOrzEFy8FkkmDPH YVwTfj1pirnlgKCJRb6zZpO9Bn3rnmxb932zuqBF9yVBNSGsHK2IwDe0elQ81UjVP4/7 EBhMxtBeMpFzln6xcAVx3NVbaWb5LjVbRW6369HeyNb1bo6lE+x9xW5rU8vKZaOAZ26p pytQ== 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=yq5he0JP/YouQ2LQb3GUolT+3OkSYbWcP3yNSOtSPB4=; fh=rey3HIqojhh8VsgcYHh2vLtVnZQaU3vaf3N/eYD7X5o=; b=FtVBBD7hHROBwu5NNymEmbbNdiu2EGngxpfsZ+8C5CHvVx4xgkG2tU//61Al6DQ1bz 2pRSvOTljjVXWjq48YKlWF8sRV0043iSqY7daSlN3gqF5wsqWLfBuru5XEC+EmmIunAJ K6Rl8ohYh710nJNoxM3XTaZ/hyH/Ci9rFQGkv4NY28S//iHZngWDaFFplTGYsI1oi341 CVCeQivK1vS5AUSDqbHs9ZJs3Cw9IYAjOJmMwBqRYdFETgMvzYT7oOe0FrZXPCcDxmZ5 xlsWL/KRx1fUff2dRObBsvW0pktOuvjqfkKl2mbQ6WrFqylgHrLCPzeyVPgz6tLn5q2g 2Bgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=GyEF+c8e; 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 ay17-20020a056402203100b0051beb1f971fsi2707956edb.295.2023.07.21.13.25.20; Fri, 21 Jul 2023 13:25:45 -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=GyEF+c8e; 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 S230218AbjGUURj (ORCPT + 99 others); Fri, 21 Jul 2023 16:17:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230291AbjGUURd (ORCPT ); Fri, 21 Jul 2023 16:17:33 -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 C041A3A9E; Fri, 21 Jul 2023 13:17:26 -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 14FC066070F7; Fri, 21 Jul 2023 21:17:22 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689970644; bh=OQ+uMM3DuJnJS29eyS3oK2aoBh9Y5cY70VQATcXr59g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GyEF+c8erOO/Qs7gQRusAMP5IBO8XrL+ijJjwxya83usLMxDYCmHYq8QhK3s2OStJ 0Q+EpZ1gOeuachYQlQDC0dpKgerHd7D7Ml3YRqtdy1+Oz4KxM21Tw22RYk9JPFofYt EiUdEKB/wvI6t7jWXQ8wJVqvwAWQ7CEGJ4yPlJlnhtfGn03JD6loQk9LHFS4YcF2Tm qQEdm/UjQsqKZAnJRVtPXdBvkttSCR+J2umQ4Bwham3T/J11vhxP/Z0FEXA84GVOpg MteVD03Up30r9fpQv39+WxjKoLpGCTcv7HwI9yPO4J8YPYXks5pqPDSDPaWKH/jnin iswfsQ5h5hB2A== 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 5/5] arm64: dts: mediatek: Add spherion-rev4 Date: Fri, 21 Jul 2023 16:16:58 -0400 Message-ID: <20230721201705.387426-6-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 rev4 of Spherion. 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 + .../mediatek/mt8192-asurada-spherion-r4.dts | 77 +++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r4.dts diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile index 05aede2777a4..80aaf71f23e1 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -47,6 +47,7 @@ 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-asurada-spherion-r4.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8192-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-cherry-tomato-r1.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt8195-cherry-tomato-r2.dtb diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r4.dts b/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r4.dts new file mode 100644 index 000000000000..0039158c9e60 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r4.dts @@ -0,0 +1,77 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2022 Google LLC + */ +/dts-v1/; +#include "mt8192-asurada.dtsi" +#include + +/ { + model = "Google Spherion (rev4)"; + compatible = "google,spherion-rev4", "google,spherion", + "mediatek,mt8192"; + + pwmleds { + compatible = "pwm-leds"; + + led { + function = LED_FUNCTION_KBD_BACKLIGHT; + color = ; + pwms = <&cros_ec_pwm 0>; + max-brightness = <1023>; + }; + }; +}; + +&cros_ec_pwm { + status = "okay"; +}; + +&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_REFRESH) + MATRIX_KEY(0x02, 0x02, KEY_FULL_SCREEN) + MATRIX_KEY(0x01, 0x02, KEY_SCALE) + MATRIX_KEY(0x03, 0x04, KEY_SYSRQ) + 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 = "elan,ekth3500"; +}; -- 2.41.0