Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2612554pxb; Thu, 3 Feb 2022 10:08:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsKQYuT6o9OOKwlnydGX4IAXrcbiABJsIWkVb34Sm9fY3DOct90z60fFILmfFn2wLHRa8G X-Received: by 2002:a17:907:3e13:: with SMTP id hp19mr31404407ejc.362.1643911694957; Thu, 03 Feb 2022 10:08:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643911694; cv=none; d=google.com; s=arc-20160816; b=xbZ1OmrRXmO2NseHdzv3BzTxgGHyyulmBSifADrIroCHWI7rjqkVsFMilt3VSju8B+ abYDoI5yLLCV6Dxw7SxjjH5zCxJqV/EMP6aXQR1P7wEauOM5WqfdctO2U4AaxyM8PsgT C6zg/Uczcd+OEg0hFMaLQFOAge6UZiXCpL5vx6YIzjLsxDg6wggt55jrd19d2CJvwH5S y1EytOfzRwDLzYfrC9BSlmfNld36TjbMBJOg+e7bAdk2//uZvZmQF9v3Gt2yiqaLql3V kbCGASynoVL2HQWNTO6Puqr9zsqG1sj1ln+Z9SVJF7jXuO0Xl7D95Jv6uiF3GoAeG2yr mJsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=WhRStYkBysGaK40WJNWDztle6llVsb+p6vB7BJLXnZ0=; b=rimYwgehJqWJq+K1w8hlEi9tGFWhUYe2bHito3ATJAwRUc6+zyYoXmsxLl6cYBZgFb fY6fCJsfffZ4euj9//Yuo3nUTLpe53KOPoTogCI0hM8M0TEMxPSQpqkdHkUNcC0+o0vj yeKGGVRasJ5N+QXzlmvqweSr3svvzRdMvIE/5FTLNZaIydevn9gVi00H8RAyGbQp9muz CRST3mj/ebqwl2HKoOZSP4Amw6wyCTZ08XcNzb+8Td8z+U1j6wiSyvvJlISMo3+UtkDb r/lEzK3JV/UlNpcS/JPrl2GzdQtU9qudYCrhaJ1ncxZofR2cslgw9xKyhe7JmbIiv81h bXQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=OUAQ0Y9X; 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=xff.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m25si13671318edr.79.2022.02.03.10.07.49; Thu, 03 Feb 2022 10:08:14 -0800 (PST) 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=@xff.cz header.s=mail header.b=OUAQ0Y9X; 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=xff.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240635AbiBBLs6 (ORCPT + 99 others); Wed, 2 Feb 2022 06:48:58 -0500 Received: from vps.xff.cz ([195.181.215.36]:38674 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbiBBLs5 (ORCPT ); Wed, 2 Feb 2022 06:48:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xff.cz; s=mail; t=1643802535; bh=/hgS+imZp3qk+AdUYYHI9PR8cjgjAJL5NVJsn6Y/Qfo=; h=Date:From:To:Cc:Subject:X-My-GPG-KeyId:References:From; b=OUAQ0Y9X5VJIeaAlKm6JLf233KpCdiNhEK913DmP088solZNxLLJ1cHObgtdaByCt RVo9X+LxOKl0cfpryd8OLNqFVhw6SWitYp0Ectv/sZTaOY48gAqckVW7XaiX53OhX5 Uq/PX26yq/eCN+3os6vwMC7TqB4zNAb0edMfuDAM= Date: Wed, 2 Feb 2022 12:48:55 +0100 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Samuel Holland Cc: Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, Wolfram Sang Subject: Re: [PATCH 2/5] Input: pinephone-keyboard - Add PinePhone keyboard driver Message-ID: <20220202114855.p36wlh4s3plpdyft@core.my.home> Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Samuel Holland , Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, Wolfram Sang X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED References: <20220129230043.12422-1-samuel@sholland.org> <20220129230043.12422-3-samuel@sholland.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220129230043.12422-3-samuel@sholland.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello again Samuel, On Sat, Jan 29, 2022 at 05:00:39PM -0600, Samuel Holland wrote: > The official Pine64 PinePhone keyboard case contains a matrix keypad and > a MCU which runs a libre firmware. Add support for its I2C interface. I had one bug report from a user that reminded me of something that's missing in the driver. Please add a regulator support for power supply for the keyboard. On Pinephone the keyboard needs USB-5V regulator to be enabled, because final version of the keyboard is supplied from the VBAT POGO pin and not internally from kb battery, as on the prototypes. If this regulator is not enabled the keyboard will be supplied from battery - voltage drop on a boost regulator diode, which causes very frequent brownouts of the keyboard MCU. Users don't notice, becuse MCU recovers quickly and only a key or two is missed every once in a while, but it should be fixed. And this problem probably only shows up when the phone battery is either quite discharged, or random load spikes push its voltage bellow what's necessary for the MCU to run, temporarily. kind regards, o.