Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2079243rwr; Fri, 21 Apr 2023 04:08:41 -0700 (PDT) X-Google-Smtp-Source: AKy350Y7HQNw+J0CTS22xZ+jBo7ZzkuKwmoTmmTEYFD8rDquMBKc9mEV+qyK2uSUVgLX9FHQI6gr X-Received: by 2002:a05:6a20:244d:b0:dc:e387:5661 with SMTP id t13-20020a056a20244d00b000dce3875661mr7351060pzc.6.1682075320763; Fri, 21 Apr 2023 04:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682075320; cv=none; d=google.com; s=arc-20160816; b=dF+g+ZcSwydl0GWAkg2uBqillCJKrbQODzE89P+S7DwlBkeaeBRCIr4iJ4aQhOyF7c L9kzWhPjY4sF1vZDTxDx9CkeU0w9EhomesOpc618WAu1fcADwIcu8NmIk9PrFp77YHuG 2owlJ8Xb1QhNoSihdj6BCvsYO9MGXFNS2tU05azTd9zqzDye5D4oyfv1iiGrWVTYxiBN kFEa344SjlHXT5mWXqqwjNchnhePe2O7VAXRS9/X+18Lzlw9BMGUN7VThj2HDsDl7iX6 FAUxSTqpGCnoUO50cL/xr55tEn21q+ODrIUsDFqVou9gizQTrrNeW+rAB+wnd2YZ1LFV yyHw== 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=m0I1sPCdYN0SbjWyDhk4aoTpPCovY0PSzi4d7N1NDJg=; b=BgeTay/sKXQ9KvThN9rB0MAosqT9p4Zdpzox2XFvDUCC2m+sxg7vD+EF1cLsTZD8Mx T4+Z0dI2bwpR4S8qOZKug81gspvn5fP26SMr1JnB19pPguhd81d4F83aBMC3vZYKUHf5 wcvjl52HKIGw4dJTGGU1UzHkf4D/PDU96PufqrJvuL35PeaHFrpBo8+Q7K/d0npDJEXE 0HSlhR7M6CMpwHOJod5XxxWpR69iOGptvg/eqn6gwADD9rhRvr57imERHrhx0+123cKy 6xaxADL5y0TTytjq3h+o62SdUsHAztoflAwN1juoK4LUp9LUMyRmTkjyO2Y42+g7syKh uIEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mc1zwRaK; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 4-20020a630704000000b0051b13a071a8si4293218pgh.575.2023.04.21.04.08.20; Fri, 21 Apr 2023 04:08:40 -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=@chromium.org header.s=google header.b=mc1zwRaK; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230148AbjDULDm (ORCPT + 99 others); Fri, 21 Apr 2023 07:03:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbjDULDk (ORCPT ); Fri, 21 Apr 2023 07:03:40 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 331389013 for ; Fri, 21 Apr 2023 04:03:38 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-63b4e5fdb1eso2592376b3a.1 for ; Fri, 21 Apr 2023 04:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1682075017; x=1684667017; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=m0I1sPCdYN0SbjWyDhk4aoTpPCovY0PSzi4d7N1NDJg=; b=mc1zwRaK4FAH7g6eSmoxngIMQ+5NXpyIKsfLdgr5W8xUrUlq9W7TbZkKtInZhi+DfH +otn/a7Mxi6OW2qTj0rtw+7PHVob4Hzgl+wa8tfdAwGGhx5SPWFzGlHv/cNk6hzFBOUP y+jq2HY6gxEhJJlakAZcN6zK4wg1LXE4/we4Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682075017; x=1684667017; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=m0I1sPCdYN0SbjWyDhk4aoTpPCovY0PSzi4d7N1NDJg=; b=YBjGKrr2MFPkNN36QAQ4stKI2PLUZcnQUaGktkwEHFNRzYNZbA3HCdnW5b1oQMe8au LWGesKJZ84O8IqJbWtmq6AJ/puKIH7vWk6ZWXr4txAEMqIhtyRnFs+oGR7M9RDQJJh1Y KXBGEP8dnT2I39ZxCCzArMMlNrucft9Xfz473OqTMjU8WGPtvB4Vv1bp01thq2AeXNNg NfNBVzwrNez/6qQMEWU3cu65tZKHB9Q0yy5SvjR00g7lbQA8j0ypEG1l34KxiRzDJjUr P7kRZu5Sgls/UMzd79wHuoqCUZr9lv4VRQiySmNSaoBIYECF/vB475n2eqYuvWOTQ6ZR 3Cqw== X-Gm-Message-State: AAQBX9dRT8pw7f/WarBkrGCeUAp8i17vkgiTezxJlxalrtvifavcuqqH N13Ws6MgWXHW6sVVHMmaMQmcnXjanal/EVo1DGs= X-Received: by 2002:a05:6a20:4323:b0:ef:acca:9e19 with SMTP id h35-20020a056a20432300b000efacca9e19mr6865535pzk.14.1682075017705; Fri, 21 Apr 2023 04:03:37 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:47fa:fa8d:a971:f6ac]) by smtp.gmail.com with ESMTPSA id fb31-20020a056a002d9f00b005e5b11335b3sm2801286pfb.57.2023.04.21.04.03.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 04:03:37 -0700 (PDT) From: Chen-Yu Tsai To: Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , =?UTF-8?q?N=C3=ADcolas=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Rob Herring , Krzysztof Kozlowski Subject: [PATCH] arm64: dts: mediatek: mt8192-asurada-hayato: Enable Bluetooth Date: Fri, 21 Apr 2023 19:03:27 +0800 Message-ID: <20230421110327.2395804-1-wenst@chromium.org> X-Mailer: git-send-email 2.40.0.634.g4ca3ef3211-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 Hayato's Realtek WiFi/BT module has it's Bluetooth function wired to UART1. Add and enable the relevant device nodes for it. Signed-off-by: Chen-Yu Tsai --- .../dts/mediatek/mt8192-asurada-hayato-r1.dts | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r1.dts b/arch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r1.dts index 43a823990a92..6a7d7870525b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r1.dts +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada-hayato-r1.dts @@ -40,9 +40,89 @@ CROS_STD_MAIN_KEYMAP >; }; +&pio { + bt_pins: bt-pins { + bt_kill: pins-bt-kill { + pinmux = ; /* BT_KILL_L */ + output-low; + }; + + bt_wake: pins-bt-wake { + pinmux = ; /* bt to wake ap */ + bias-pull-up; + }; + + ap_wake_bt: pins-ap-wake-bt { + pinmux = ; /* AP_WAKE_BT_H */ + output-low; + }; + }; + + uart1_pins: uart1-pins { + pins-rx { + pinmux = ; + input-enable; + bias-pull-up; + }; + + pins-tx { + pinmux = ; + }; + + pins-cts { + pinmux = ; + input-enable; + }; + + pins-rts { + pinmux = ; + output-enable; + }; + }; + + uart1_pins_sleep: uart1-pins-sleep { + pins-rx { + pinmux = ; + input-enable; + bias-pull-up; + }; + pins-tx { + pinmux = ; + }; + pins-cts { + pinmux = ; + input-enable; + }; + pins-rts { + pinmux = ; + output-enable; + }; + }; +}; + &touchscreen { compatible = "hid-over-i2c"; post-power-on-delay-ms = <10>; hid-descr-addr = <0x0001>; vdd-supply = <&pp3300_u>; }; + +&uart1 { + status = "okay"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&uart1_pins>; + pinctrl-1 = <&uart1_pins_sleep>; + /delete-property/ interrupts; + interrupts-extended = <&gic GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH 0>, + <&pio 94 IRQ_TYPE_EDGE_FALLING>; + + bluetooth: bluetooth { + compatible = "realtek,rtl8822cs-bt"; + pinctrl-names = "default"; + pinctrl-0 = <&bt_pins>; + + enable-gpios = <&pio 144 GPIO_ACTIVE_HIGH>; + device-wake-gpios = <&pio 168 GPIO_ACTIVE_HIGH>; + host-wake-gpios = <&pio 22 GPIO_ACTIVE_LOW>; + }; +}; -- 2.40.0.634.g4ca3ef3211-goog