Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3470454ioo; Mon, 30 May 2022 02:49:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxThHeUAszY+k7I+lCctwqxECV8qwLTaaa0EXFG8AJZBK/FTuBSA9wphipnjF0zVDrw58l4 X-Received: by 2002:a17:907:72d5:b0:6fe:c343:1ace with SMTP id du21-20020a17090772d500b006fec3431acemr36907185ejc.563.1653904162007; Mon, 30 May 2022 02:49:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653904162; cv=none; d=google.com; s=arc-20160816; b=Z5f/j5egXSbm11DveNjpBXST6RS1Zstq9eGfAbNSmH/n6ucRth6dnUNMDspuuLi24N yNExTfiPZuD+e6vKWEDkS0T8QcgLAYSomLgFtHS2jZCXdGASfDUeOqhY/zUkzfM/pdXi yNUAoHMs7f9o5dJhHXjweIyFvCkmMQs8iczq87iWky2G0G2T7CHEQr07OWWt3qnDFfDK Wjns0oIwlVh9Ewu7r9wL7tmpauP6U2PBkToARATuU7GtjUc/5s8e2V4OEzRHz6M93bEh S8yk6Y1q3y7HBlu46h0DPNp80OXjlY/+EExeUBsoANJFosZJz+zY9WrT/8JpgkGd07aA /15Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=S24cLe/HSk1GUyQLNT3mtjk050TIULJWrj5op1cZIxc=; b=RH/OHhZF9pVYD9v9iSiy4oBo+XNazHsLNZx9SsAm98c8/5gfYdnUxy9GB829V99k5N CT+s1KjgNp9kjruFqZ7+Yuc6bzB3BprsUssDBNXgZSktYvv0oSRSyGLdsAytn9viPvOz VXYnXVRYxilpOVFRbkGz0Cbz/4KZDbvWAJmsSGNW5IZz352Sav2hRBrKPbn4HXHY5vST nhq2t61SgvXHftLiMRgAkl3BCvHgT9Xeyr2mnlI7IkOC7s5neL3EuEzuxiGUQVpHd9RB zzwUdzNy6NPQBe7m0Hucelt0BbeaUz2/RrRac26ltAEIUJ9WTTWpD672AHyg5dIHhGJS jxzQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a170906144e00b006df76385ec8si10358257ejc.872.2022.05.30.02.48.55; Mon, 30 May 2022 02:49:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232404AbiE3HGD convert rfc822-to-8bit (ORCPT + 99 others); Mon, 30 May 2022 03:06:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232759AbiE3HGB (ORCPT ); Mon, 30 May 2022 03:06:01 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BA20719DB; Mon, 30 May 2022 00:05:59 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 902CB1C0B8A; Mon, 30 May 2022 09:05:56 +0200 (CEST) Date: Mon, 30 May 2022 09:05:55 +0200 From: Pavel Machek 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 , Ondrej Jirman Subject: Re: [PATCH 3/5] Input: pinephone-keyboard - Build in the default keymap Message-ID: <20220530070555.GA1363@bug> References: <20220129230043.12422-1-samuel@sholland.org> <20220129230043.12422-4-samuel@sholland.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi! > > On Sat, Jan 29, 2022 at 05:00:40PM -0600, Samuel Holland wrote: > >> The PinePhone keyboard comes with removable keys, but there is a default > >> layout labeled from the factory. Use this keymap if none is provided in > >> the devicetree. > > > > Why can't we require to have it in device tree? > > We can. I am okay with dropping this patch and making the properties required if > that is preferred. > > The keyboard is supported on at least four device trees (three revisions of > PinePhone, plus the PinePhone Pro), so moving the default keymap to the driver > avoids duplicating that block of data in each device tree/overlay. #include is supported on dts, so there's no need to duplicate the keymaps, etc. Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html