From patchwork Tue Oct 24 00:02:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 13433748 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 929BFC25B67 for ; Tue, 24 Oct 2023 00:08:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ytmblUqAtZAIMp5bH4Lvu3XAzseisiHmAVLiw8oAfzk=; b=dKIDJN6bfbfHcJ ZFQReZ86gJoql2y8w/XUm/YP0wHalyxrpitPFFiaCl2Z4IzNP2qZ9iFiZcOoOt/yU2D8nTlVE/mEw pPBgh1FCeBiOczLGqe7tFyJGpwzWLBlTwUBNCGgz2vvDPBziFnAlMo2KZXnNc+9Kt1YbsjVlWzgf8 yc7neUEjefG6MTmttNn4a+t4rYyTVIPnwv7MFX6Nz+SY37qi3f2G2D1zyfUAt+mQn8kK85ph7UgrB 02ml7noaZdT3BwaN4UsWf8pk1oBgyyuLO/2JxGGEib3LItvvNJbMSBG2xFHXxsDKORjGyDOLpN1FW dny9C1ITb+FaWiH3EElA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qv4xh-008Uzw-2R; Tue, 24 Oct 2023 00:07:57 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qv4xO-008Upd-1n for linux-arm-kernel@lists.infradead.org; Tue, 24 Oct 2023 00:07:41 +0000 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1c9de3f66e5so23327305ad.3 for ; Mon, 23 Oct 2023 17:07:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1698106058; x=1698710858; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uljJOYp9SPwgii6z9nBGZ6O6OKzfH06bDcWI3pU4ax8=; b=EffZRoYJ4gfZjHFyg1S1Q21MQkHqrGsqQfW8n8ht/+NDslBcmzk38WoGmvuAvJx9ap SV0DQe6DWlHaBWGKmgGr5RG0nQ7RfAFcY/uE4QsJZONAMD9QaO1yYIQXPB/010gimmcO NCgZWG5kxRaj0rK5Aol4fvby4LFDstwg6uRaw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698106058; x=1698710858; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uljJOYp9SPwgii6z9nBGZ6O6OKzfH06bDcWI3pU4ax8=; b=ialHr9T7euEYkW5KwHZfauKeVVMLI4IXb0wHCofDt4hcj+4adNCT6Cu931fXLy47fF faCzeb41s70l1NTGuxcyRV9Y6wWiJ2rMRmgSz7M9Pko/eFuPGUc895hONmghBRU3HEv8 3/FhB5GvwMGQr+WkWkvr1T07GMcv1DOy/TQSkTtnbEnYQtvyvwoMTvXl5Bn7tMZG3RUu oWN8gs/X04+J9OvEokV+EG8R4CMnbPGZHeNUw4luT8eH9LsxzEV+rkvoHW2W25Hp0Rd2 Q/qY1aV1b2ON+WqbLJZ/eLZRY/x5hq5hl+z2JvAX6bUk8ZquwRyNPHMMvpfs56ZeEvgV FuEA== X-Gm-Message-State: AOJu0YyZxWuY9O8aP3s/QRD8cTKpIhQsIMIU9Dw2+EDpUMCAWaY1vrYX lZ1Ooax1FsRXEBK+8h/DIwYiNw== X-Google-Smtp-Source: AGHT+IFfpVT1CfSbELIj6YsfEI/agaom4NFI7V9kAEtNTMGnwUcyunjQnXhKJwynE8IwMQ+Ptg6hJg== X-Received: by 2002:a17:902:ab52:b0:1c9:d61a:f4a4 with SMTP id ij18-20020a170902ab5200b001c9d61af4a4mr7173987plb.60.1698106058055; Mon, 23 Oct 2023 17:07:38 -0700 (PDT) Received: from hsinyi.sjc.corp.google.com ([2620:15c:9d:2:5a2d:c345:7f3f:d26c]) by smtp.gmail.com with ESMTPSA id a10-20020a170902ecca00b001c5dea67c26sm6505510plh.233.2023.10.23.17.07.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 17:07:36 -0700 (PDT) From: Hsin-Yi Wang To: Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski Cc: Rob Herring , Conor Dooley , =?utf-8?q?N=C3=ADcolas_F_=2E_R_=2E_A_=2E_Prado?= , =?utf-8?q?Bernhard_Rosenkr=C3=A4nzer?= , Frank Wunderlich , Macpaul Lin , Sean Wang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 6/6] arm64: dts: mt8183: Add jacuzzi pico/pico6 board Date: Mon, 23 Oct 2023 17:02:29 -0700 Message-ID: <20231024000724.57714-7-hsinyi@chromium.org> X-Mailer: git-send-email 2.42.0.758.gaed0368e0e-goog In-Reply-To: <20231024000724.57714-1-hsinyi@chromium.org> References: <20231024000724.57714-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231023_170738_595461_30A3CD9E X-CRM114-Status: GOOD ( 15.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org pico is also known as Acer Chromebook Spin 311. Signed-off-by: Hsin-Yi Wang --- .../mediatek/mt8183-kukui-jacuzzi-pico.dts | 36 ++++++ .../mediatek/mt8183-kukui-jacuzzi-pico6.dts | 110 ++++++++++++++++++ 2 files changed, 146 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-pico.dts create mode 100644 arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-pico6.dts diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-pico.dts b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-pico.dts new file mode 100644 index 000000000000..e230323b3a54 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-pico.dts @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +/dts-v1/; +#include "mt8183-kukui-jacuzzi.dtsi" +#include "mt8183-kukui-audio-ts3a227e-max98357a.dtsi" + +/ { + model = "Google pico board"; + chassis-type = "convertible"; + compatible = "google,pico-sku1", "google,pico", "mediatek,mt8183"; +}; + +&i2c_tunnel { + google,remote-bus = <0>; +}; + +&i2c2 { + i2c-scl-internal-delay-ns = <25000>; + + trackpad@2c { + compatible = "hid-over-i2c"; + reg = <0x2c>; + hid-descr-addr = <0x20>; + + pinctrl-names = "default"; + pinctrl-0 = <&trackpad_pins>; + + interrupts-extended = <&pio 7 IRQ_TYPE_LEVEL_LOW>; + + wakeup-source; + }; +}; + diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-pico6.dts b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-pico6.dts new file mode 100644 index 000000000000..3e4bc451039e --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-pico6.dts @@ -0,0 +1,110 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright 2023 Google LLC + */ + +/dts-v1/; +#include "mt8183-kukui-jacuzzi.dtsi" +#include "mt8183-kukui-audio-ts3a227e-max98357a.dtsi" + +/ { + model = "Google pico6 board"; + chassis-type = "convertible"; + compatible = "google,pico-sku2", "google,pico", "mediatek,mt8183"; + + bt_wakeup: bt-wakeup { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&bt_pins_wakeup>; + + wobt { + label = "Wake on BT"; + gpios = <&pio 42 GPIO_ACTIVE_HIGH>; + linux,code = ; + wakeup-source; + }; + }; +}; + +&i2c_tunnel { + google,remote-bus = <0>; +}; + +&i2c2 { + i2c-scl-internal-delay-ns = <25000>; + + trackpad@2c { + compatible = "hid-over-i2c"; + reg = <0x2c>; + hid-descr-addr = <0x20>; + + pinctrl-names = "default"; + pinctrl-0 = <&trackpad_pins>; + + interrupts-extended = <&pio 7 IRQ_TYPE_LEVEL_LOW>; + + wakeup-source; + }; +}; + +&wifi_wakeup { + wowlan { + gpios = <&pio 113 GPIO_ACTIVE_LOW>; + }; +}; + +&wifi_pwrseq { + post-power-on-delay-ms = <50>; + + /* Toggle WIFI_ENABLE to reset the chip. */ + reset-gpios = <&pio 8 1>; +}; + +&wifi_pins_pwrseq { + pins_wifi_enable { + pinmux = ; + }; +}; + +&mmc1_pins_default { + pins_cmd_dat { + drive-strength = ; + }; + pins_clk { + drive-strength = ; + }; +}; + +&mmc1_pins_uhs { + pins_clk { + drive-strength = ; + }; +}; + +&mmc1 { + bt_reset: bt-reset { + compatible = "mediatek,mt7921s-bluetooth"; + pinctrl-names = "default"; + pinctrl-0 = <&bt_pins_reset>; + reset-gpios = <&pio 120 GPIO_ACTIVE_LOW>; + }; +}; + +&pio { + bt_pins_wakeup: bt-pins-wakeup { + pins_bt_wakeup { + pinmux = ; + input-enable; + }; + }; + + bt_pins_reset: bt-pins-reset { + pins_bt_reset { + pinmux = ; + output-high; + }; + }; +}; + +/delete-node/ &bluetooth; +/delete-node/ &bt_pins;