Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp822784imw; Thu, 14 Jul 2022 11:24:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sUQzm2Ykqy5jwi8RWxPQmuMXPt1QL1v5yrl9lXgQCuHIBegbvjSUXNfX6X6Qp+KRGNDbII X-Received: by 2002:a17:90b:4d01:b0:1ef:d39b:b140 with SMTP id mw1-20020a17090b4d0100b001efd39bb140mr11193920pjb.82.1657823044231; Thu, 14 Jul 2022 11:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657823044; cv=none; d=google.com; s=arc-20160816; b=X/Mt9jYElYPjpLMdpGMpYkg3aDwvNZkv0yQJjoc74X7+99T4CgJwlS1Y550tbHE8n+ R3JPzFNFK7HjVZbSRYCuIPY6bekewel7dMExR6dB11tYReQ/CS2gI6aIHrYsdWFXj48j UVSzMrS6UPCNhKZHc6BSRsxXYZxGBt6G1Y4wkAyFUfRI0Anpks5sYPBQlbA4HkXvw3R9 X9D7Gy8qeNaZOgRyz+s7NqnAMQpGnZndPm6r13OOWBMDJZ8mF4od+DordqWQgw79qn6V zJOWBRHd1ETeJ8IM+PDRQ8iZibTOTKY5IxtKM211Z1+ZHW551/RcLgDL6tNAfAQP95Mb HoaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yL38y/2bFG1AO5qjLaabbJhiweElDmrY+o816APFSRc=; b=zOqdBgTwWBUtvPlD6Ia7Vt974qZ83mWBEh9ttJJhur47Dlqzn4A9BTvNAQJo6oHkeW QZOXTweSoVV6MLrRoIxiMb/Bz17CxOfH/UVcAYtIESSVpaBhgHUJe558b8dLRYVJV+nq rYXlZ70/QY5GsyDd8X7KjktXLX7F78m+Cy++n8f6+2L6+41G0aUHujz48YEdo8pz6bnd tHnDCqbnKJPkVtTHRwm17FrzJRRYd2CXQura2SH0ddtYp85iFrNp+VHIh532Icd3NnQZ gx9aFTuJ2K7J9J4Rl6GjyvFbn9yM+c5HeA2nUotf5pwJ2W9QVwJT2Ih9dxd9WcIOQ9Ph fhMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ux+0eZn8; 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 16-20020a17090a19d000b001ef90fd561fsi2788274pjj.35.2022.07.14.11.23.49; Thu, 14 Jul 2022 11:24:04 -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=Ux+0eZn8; 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 S240521AbiGNSOy (ORCPT + 99 others); Thu, 14 Jul 2022 14:14:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232339AbiGNSOw (ORCPT ); Thu, 14 Jul 2022 14:14:52 -0400 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 234DD67CA9 for ; Thu, 14 Jul 2022 11:14:52 -0700 (PDT) Received: by mail-oi1-x236.google.com with SMTP id j3so3339771oif.8 for ; Thu, 14 Jul 2022 11:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yL38y/2bFG1AO5qjLaabbJhiweElDmrY+o816APFSRc=; b=Ux+0eZn8uZtPH+hZ2lAG9pVVSBXTqp/fZBKovKB09+ewbBwSxUUfldTSCtw75y8LIv +tO7muQOWwlfNC51j0F7GNuUhwVxTPmLNQk/5o2qEQHoD0y/dEsVbJVAF4J25HtTWYFM vHQJ7vLQHU0xHeP8k4RYHCAUU3cGCE7cG5ZOU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yL38y/2bFG1AO5qjLaabbJhiweElDmrY+o816APFSRc=; b=e3ju9B9poEKQXgFdR/opKljSHEtdAM+R4w2TvmGd2ngkFxiaNSwAKvzMFl3Fd5HpZY n5CqLx94eZ+PJ/hGnECLehEL4lhtjEeLjOonG86ac4Z+no3UoEK3sb1d6e2E0U3PR/UY OK+S56ejSg93uWzOr2VHsJnoEB8C2xfcQt/w5insLL1UWrPoRVDvpZl9j3KhmUapmh// Lm17HjqxRo5CPb5Hez2QMYbZK8PtLkJw5+PRQvACVGO6WZUB2YpKFfwHY9IbqFuG7Lrm S6JA8d2KAvx2b9UpdLAsPKfGVoX3zqUZA7YuJmt+HjmamQAk/mbWFNi6P+tWPfVbAhXt l6aA== X-Gm-Message-State: AJIora8+JwQ2hyD8/XjRlgZxvvCK1URtU+u2Sk2XVFUQXj7EKZt3bEDA NMSbiIKgxURqV20sH1D/Re7pDB7f7RtG7g== X-Received: by 2002:a05:6808:1648:b0:333:45ae:3777 with SMTP id az8-20020a056808164800b0033345ae3777mr8459229oib.4.1657822491047; Thu, 14 Jul 2022 11:14:51 -0700 (PDT) Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com. [209.85.210.51]) by smtp.gmail.com with ESMTPSA id l9-20020a544109000000b0033a05951ccdsm895342oic.12.2022.07.14.11.14.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Jul 2022 11:14:49 -0700 (PDT) Received: by mail-ot1-f51.google.com with SMTP id k8-20020a9d4b88000000b0061c7f8c4f77so822241otf.10 for ; Thu, 14 Jul 2022 11:14:48 -0700 (PDT) X-Received: by 2002:a05:6830:3493:b0:61c:140e:b2e2 with SMTP id c19-20020a056830349300b0061c140eb2e2mr3766958otu.292.1657822488121; Thu, 14 Jul 2022 11:14:48 -0700 (PDT) MIME-Version: 1.0 References: <20220708080726.4170711-1-judyhsiao@chromium.org> In-Reply-To: <20220708080726.4170711-1-judyhsiao@chromium.org> From: Brian Norris Date: Thu, 14 Jul 2022 11:14:37 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1] arm64: dts: rk3399: i2s: switch BCLK to GPIO To: Judy Hsiao Cc: Heiko Stuebner , Liam Girdwood , Lin Huang , Elaine Zhang , Shunqian Zheng , Rob Herring , Mark Brown , Jaroslav Kysela , Chen-Yu Tsai , devicetree , linux-arm-kernel , "open list:ARM/Rockchip SoC..." , Linux Kernel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 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 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 On Fri, Jul 8, 2022 at 1:07 AM Judy Hsiao wrote: > > We discoverd that the state of BCLK on, LRCLK off and SD_MODE on super-nit: s/discoverd/discovered/ (If this is the only issue, perhaps Heiko can fix that when applying.) > may cause the speaker melting issue. Removing LRCLK while BCLK > is present can cause unexpected output behavior including a large > DC output voltage as described in the Max98357a datasheet. > > In order to: > 1. prevent BCLK from turning on by other component. > 2. keep BCLK and LRCLK being present at the same time > > This patch adjusts the device tree to allow BCLK to switch > to GPIO func before LRCLK output, and switch back during > LRCLK is output. > > Signed-off-by: Judy Hsiao IIUC, it's not guaranteed everyone is using max98357a on this I2S channel, but I suppose this change is still safe anyway? Or if this is expected only for Gru-related boards, we could override the i2s node settings in rk3399-gru.dtsi or similar. Anyway, I think this is right: Reviewed-by: Brian Norris