Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6825051ybc; Thu, 28 Nov 2019 06:10:32 -0800 (PST) X-Google-Smtp-Source: APXvYqyfecImDTEYxDUR3DeHmjDhTdWG5ZPABrlNgXKeOiqhj6RdaKpmRYTeAIKuPNBxd3t3HO2v X-Received: by 2002:a05:6402:1b04:: with SMTP id by4mr38780729edb.218.1574950231968; Thu, 28 Nov 2019 06:10:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574950231; cv=none; d=google.com; s=arc-20160816; b=YYXuU31uHMoDAOCSEnOjqUWoFMbba3xCzwLoIXKBpGp8oWABlIvJ96jIrnJzkMhdmb 9bSx/bGtb/8a++oddE6U0amVMBNNOamFp4vum1ka+CtXf25A1w3ESWUCqYebE7sHN+TU LGqRUFX08h9h9uiSjyXy/weM4/t6mbeACQmwpxGJs0MgBvQ8liX/DroSgvOIkf/+XAik 6Ooli91VNLQObq2/OSyLm5O0LyCx08fGB3WGH+Jwx4ncgnkyc5U6QpKtdEShh0FFkzdT Ia5e/8jWOSnPLZQ1LZppGSJ7aPEI+RdeBpOEDQVfCasRqHii7A1crc734vYN6BijDCad NJ+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject:reply-to :dkim-signature; bh=bPo++TYmO8fa8Q7BYIPhS3bmCwirDMJzwi3JL27yYO8=; b=J81WITHxw6dSjL/px84av5KrihWqBVsGXTgud24+knn+E2/ZKOnhRI0kS8nNVo2mMo yW2z/CbHF8/lLe7xAT/miqyrvI5i0ZIe/DLNy4+ltEXxxhhBFxbl61CXXS/Qs8WYoZuF 0NJxC7nlg53LcJjgiVmxvBYkXOOybqXTaMx3TWeLLvaFAtKtgAEDwXF+qiSOlPkJpmAT 6InSlQiwP5q3GFF6mAYwpGHa8/UT/48M6/VrxFLoz1ZB25u+SQP7R8wtv/tD2gxvjPmU u6goqT8DZnwJBzOi7dre4243lcDP/sXfTMvr6ry7UcwdH2PSGCfdtgs/tt7wZ2+1y66h phjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vDtFFNzj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id la17si12133012ejb.433.2019.11.28.06.10.06; Thu, 28 Nov 2019 06:10:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vDtFFNzj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726583AbfK1OIu (ORCPT + 99 others); Thu, 28 Nov 2019 09:08:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:47798 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726320AbfK1OIu (ORCPT ); Thu, 28 Nov 2019 09:08:50 -0500 Received: from [192.168.0.20] (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 72FBA2176D; Thu, 28 Nov 2019 14:08:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574950129; bh=owphk2ZD4LaFXzpbqko/2ehmSZOExvYR4o/BYAV7Msc=; h=Reply-To:Subject:To:Cc:References:From:Date:In-Reply-To:From; b=vDtFFNzjp/HrZvNmJWqqCxtw8c1LMPcstJ0neAPOFQSI40wOg3Cy1TT5rFHOxeI9S 2bs+Zm3Re8bYI9TB3PIh5/b2teGOmeYVSD/o0+Jys67otMuEco0H1kGIJ55ewwhPRc 84cswsTtrjVhYDFNy0Ld0l8INCF4Y1efUG1El91A= Reply-To: kbingham@kernel.org Subject: Re: [PATCH 3/3] drivers: auxdisplay: Add JHD1313 I2C interface driver To: Miguel Ojeda Cc: linux-kernel , devicetree@vger.kernel.org, Rob Herring , Simon Goda References: <20191128105508.3916-1-kbingham@kernel.org> <20191128105508.3916-4-kbingham@kernel.org> From: Kieran Bingham Openpgp: preference=signencrypt Autocrypt: addr=kbingham@kernel.org; keydata= mQINBFYE/WYBEACs1PwjMD9rgCu1hlIiUA1AXR4rv2v+BCLUq//vrX5S5bjzxKAryRf0uHat V/zwz6hiDrZuHUACDB7X8OaQcwhLaVlq6byfoBr25+hbZG7G3+5EUl9cQ7dQEdvNj6V6y/SC rRanWfelwQThCHckbobWiQJfK9n7rYNcPMq9B8e9F020LFH7Kj6YmO95ewJGgLm+idg1Kb3C potzWkXc1xmPzcQ1fvQMOfMwdS+4SNw4rY9f07Xb2K99rjMwZVDgESKIzhsDB5GY465sCsiQ cSAZRxqE49RTBq2+EQsbrQpIc8XiffAB8qexh5/QPzCmR4kJgCGeHIXBtgRj+nIkCJPZvZtf Kr2EAbc6tgg6DkAEHJb+1okosV09+0+TXywYvtEop/WUOWQ+zo+Y/OBd+8Ptgt1pDRyOBzL8 RXa8ZqRf0Mwg75D+dKntZeJHzPRJyrlfQokngAAs4PaFt6UfS+ypMAF37T6CeDArQC41V3ko lPn1yMsVD0p+6i3DPvA/GPIksDC4owjnzVX9kM8Zc5Cx+XoAN0w5Eqo4t6qEVbuettxx55gq 8K8FieAjgjMS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jO6kJto ZsIaYR7rMMq9aUAjyiaEZpmP1qF/2sYenDx0Fg2BSlLvLvXM0vU8pQk3kgDu7kb/7PRYrZvB sr21EIQoIjXbZxDz/o7z95frkP71EaICttZ6k9q5oxxA5WC6sTXcMW8zs8avFNuA9VpXt0Yu pJd2ijtZy2mpZNG02fFVXhIn4G807G7+9mhuC4XG5rKlBBUXTvPUAfYnB4JBDLmLzBFavQfv onSfbitgXwCG3vS+9HEwAjU30Bar1PEOmIbiAoMzuKeRm2LVpmq4WZw01QYHU/GUV/zHJSFk Message-ID: <41212589-163f-63a2-38ab-1a1fb05f4813@kernel.org> Date: Thu, 28 Nov 2019 14:08:13 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Miguel, On 28/11/2019 13:43, Miguel Ojeda wrote: > Hi Kieran, > > On Thu, Nov 28, 2019 at 11:55 AM wrote: >> >> diff --git a/MAINTAINERS b/MAINTAINERS >> index 8f075b866aaf..640f099ff7fb 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -8837,6 +8837,10 @@ S: Maintained >> F: Documentation/admin-guide/jfs.rst >> F: fs/jfs/ >> >> +JHD1313 LCD Dispaly driver > > Typo (and it should be all uppercase; and perhaps "Display" is not > needed given LCD is there; but see also comments on the title below). Good spot, and good point "Liquid Crystal Display Display" is a bit redundant. > Also missing the "S:" entry. Ah yes, I think we can add the following here: S: Maintained >> diff --git a/drivers/auxdisplay/Kconfig b/drivers/auxdisplay/Kconfig >> index b8313a04422d..cfc61c1abdee 100644 >> --- a/drivers/auxdisplay/Kconfig >> +++ b/drivers/auxdisplay/Kconfig >> @@ -27,6 +27,18 @@ config HD44780 >> kernel and started at boot. >> If you don't understand what all this is about, say N. >> >> +config JHD1313 >> + tristate "JHD1313 Character LCD support" >> + depends on I2C >> + select CHARLCD >> + ---help--- >> + Enable support for Character LCDs using a JHD1313 controller on I2C. >> + The LCD is accessible through the /dev/lcd char device (10, 156). >> + This code can either be compiled as a module, or linked into the >> + kernel and started at boot. >> + This supports the LCD panel on the Grove 16x2 LCD series. >> + If you don't understand what all this is about, say N. > > Would it be useful/worth for users to put "Grove series" and/or "I2C" > in the tristate title? (i.e. like the help section explains and also > like the MODULE_DESCRIPTION says). I have struggled with the difference between the definition of this driver (which supports a 'JHD1313') vs the 'product' that uses it (the Grove display), and I also suspect that as it's just an implementation of a more generic part, so I'm also contemplating renaming this. For instance, the products at: http://www.jhdlcd.com.cn/162character.html All seem to reference an SPLC780D controller, and have varying properties of backlight colour, and text colour. Thus I highly suspect that the JHD1313 is just a specific variant/implementation of the range which is utilised by the Grove LCD board. (which makes jhd1313 a bad name for this driver...) Do you have any experience in these various part numbers, to suggest perhaps a better naming? Or I wonder if anyone has any relevant contacts at either Seeed, or JHD or any other related part here... Now that I track down the SPLC780D, I see: https://www.newhavendisplay.com/app_notes/SPLC780D.pdf Which leads to 'yet another vendor', and actually I already see newhaven,.* in vendor-prefixes.yaml ... however this looks like it relates to just the 'LCD driver', and does not provide the I2C interface - so the device is of course more complex than a single part. Anyway, certainly adding in I2C would be beneficial though. >> diff --git a/drivers/auxdisplay/jhd1313.c b/drivers/auxdisplay/jhd1313.c >> new file mode 100644 >> index 000000000000..abf270e128ac >> --- /dev/null >> +++ b/drivers/auxdisplay/jhd1313.c >> @@ -0,0 +1,111 @@ >> +// SPDX-License-Identifier: GPL-2.0+ >> + > > Unconventional (AFAIK) empty line. Ooops, I can drop that one :-D > Thanks for the driver! You're welcome. The charlcd_ framework makes it easy to add an LCD over I2C, and I hope this can be useful to others. > Cheers, > Miguel -- Kieran