From patchwork Thu Jun 11 02:06:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhishek Pandit-Subedi X-Patchwork-Id: 11599125 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4630F618 for ; Thu, 11 Jun 2020 02:06:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 20757206A4 for ; Thu, 11 Jun 2020 02:06:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="jvxxdLqp" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726396AbgFKCGw (ORCPT ); Wed, 10 Jun 2020 22:06:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbgFKCGs (ORCPT ); Wed, 10 Jun 2020 22:06:48 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 714A8C08C5C2 for ; Wed, 10 Jun 2020 19:06:48 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id j1so1976173pfe.4 for ; Wed, 10 Jun 2020 19:06:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4Y4ynudYVEOF2bwcSaKUAcBc0jJC1pTFViDYeCyBDLg=; b=jvxxdLqpo+0mRShkaVWeuKTjdbq2SY5zHyPUmlP9mEguLJSjmHKBHGLHY/cTzOCXlH eB3qRpNpvIRDJNO6JSxhOVYAWeI1bubmvS8iGittDjXx1zJkHd9kKOYlFpBODIyQu0vG bsc7fBBrlfcKF/fevWNzdttAJeifoXfQhjkps= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4Y4ynudYVEOF2bwcSaKUAcBc0jJC1pTFViDYeCyBDLg=; b=M3ploj9jKGfYcUbT0BYs9ruhEGBmdEQBbX9RF6a6KVQkEQ/baCOhMS+ppNftBsjne6 I/Lr1VE3S4WPtVT97DZSK56hMwnXLWEqIRfL0td/CCgOQMWWlLkWzlb2EvfwD1f3uaJz 9lXp2kjGETG30nOLJ92B8bndbbP8IjQr9tr/LM/Le9fZFHwJKYqYsQalYxz+xr479oMS lNugmHP+7xe/fJpvTxPzvEkt+dwrPojxFLbljk+nmhKJHA46tSKtlO3504HvRXPK0BEF pw/+Ai9D9p+M0U2Ag1NetXaJ3atpJ2OcydJqUCXcOcElfYWTSj7iJx7905NZueSZn2jg 8ntQ== X-Gm-Message-State: AOAM53282IffSeUDK212yXDsitD2yuPSsh/zz7Ixk97aeJGp0G+Hs+Mp E0NhURTr26Lm1nndoZ9fclPhbw== X-Google-Smtp-Source: ABdhPJxLvo0RCihK079Elloiqp25pBxh1dZDJDeBEoYZ+9fEvWiGN7wubOfZ1xMsnxVkw0tD3DWWMQ== X-Received: by 2002:a62:1c46:: with SMTP id c67mr5101876pfc.170.1591841207862; Wed, 10 Jun 2020 19:06:47 -0700 (PDT) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:e09a:8d06:a338:aafb]) by smtp.gmail.com with ESMTPSA id u14sm1291983pfk.211.2020.06.10.19.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 19:06:47 -0700 (PDT) From: Abhishek Pandit-Subedi To: heiko@sntech.de, linux-rockchip@lists.infradead.org Cc: linux-bluetooth@vger.kernel.org, chromeos-bluetooth-upstreaming@chromium.org, mka@chromium.org, dianders@chromium.org, Abhishek Pandit-Subedi , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: dts: rockchip: Add marvell BT irq config Date: Wed, 10 Jun 2020 19:06:42 -0700 Message-Id: <20200610190622.1.I66864be898aa835ccb66b6cd5220d0b082338a81@changeid> X-Mailer: git-send-email 2.27.0.278.ge193c7cf3a9-goog MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Veyron Jaq and Mighty both use the Marvel 8897 WiFi+BT chip. Add wakeup and pinctrl block to devicetree so the btmrvl driver can correctly configure the wakeup interrupt. Signed-off-by: Abhishek Pandit-Subedi Reviewed-by: Reviewed-by: Douglas Anderson --- The Veyron Mighty Chromebook (rk3288 based board) is missing the wake configuration for Bluetooth. Without this change, the wake irq was not configurable and wake on Bluetooth was broken. I verified this change with additional changes in the Bluetooth driver (the series is at https://patchwork.kernel.org/cover/11599101/). The driver changes are not necessary for this dts change and shouldn't block it. arch/arm/boot/dts/rk3288-veyron-jaq.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-veyron-jaq.dts b/arch/arm/boot/dts/rk3288-veyron-jaq.dts index 171ba6185b6d39..976c0c17a71199 100644 --- a/arch/arm/boot/dts/rk3288-veyron-jaq.dts +++ b/arch/arm/boot/dts/rk3288-veyron-jaq.dts @@ -51,6 +51,21 @@ &sdmmc { &sdmmc_bus4>; }; +&sdio0 { + #address-cells = <1>; + #size-cells = <0>; + + btmrvl: btmrvl@2 { + compatible = "marvell,sd8897-bt"; + reg = <2>; + interrupt-parent = <&gpio4>; + interrupts = ; + marvell,wakeup-pin = /bits/ 16 <13>; + pinctrl-names = "default"; + pinctrl-0 = <&bt_host_wake_l>; + }; +}; + &vcc_5v { enable-active-high; gpio = <&gpio7 RK_PC5 GPIO_ACTIVE_HIGH>;