From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96E15C4332F for ; Tue, 21 Dec 2021 23:28:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237251AbhLUX2h (ORCPT ); Tue, 21 Dec 2021 18:28:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237140AbhLUX2g (ORCPT ); Tue, 21 Dec 2021 18:28:36 -0500 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A1C0C061574; Tue, 21 Dec 2021 15:28:36 -0800 (PST) Received: by mail-io1-xd33.google.com with SMTP id u8so606391iol.5; Tue, 21 Dec 2021 15:28:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+Y9qNhArsQ0y20VLdp6J5wDm7XykoFJAUNYk5IaM9hU=; b=ffbFCTx9cfBHU9hVLoh1EuPKDfCbDkzePVspueec6ve0wQOxK3Dy3UTajDENOBWcQp 3acuN4AJC4/cQfOHUVm4rfZcCEB79xPSQ/1Xs2knQPKSppIUuMp6Z9YEmznMypkZC/Lw qxavyX1+ZR82xuusqd1+l3ejhhDRBSv43dksVNIN38QVBOnIF+x+wb51eGNR+44o84zt v49Za90vVKeECaz59prHRMf/PDtQJoW/PneufPYykMW+81S8JAfNM02zxwGvxNQ41qrN 7r2cIEMBO0N5xS+DtmB2TNA1yiKJ2uAicO9L9LmDqulNhKn/WChLbYTRiJbw6D3I0khq gOWw== 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=+Y9qNhArsQ0y20VLdp6J5wDm7XykoFJAUNYk5IaM9hU=; b=7KfPTOiOs2Mfo8UMe+IkH15PuGX/FbbOPAVBoooSfHDGQ0BymOmLd9/u45knJEHYti SY85JslEZz/a52h/+kq1ZqKZMo8mYmHURkBuogZFasIhX5rttVb7SbV+0jqzMPjsuypl DP8Wk3jXXRAXPJPc7BNTFJpSqtcxK41+9y4rAvQ8TZbVGDuQqhLoqHehgyUiHgtOO7Us 7Bn7X71RIf39R8Bwk3dILhYc+STal/+BpGsvnpfoyOImZXVD1HRqWIQ/ORV69f89tJkb 6OpqClFwdfczCW5B6yFLRXPFIN0OD0ts/G1ded9NXVVdrudRJ9xEgaOC0WkLq7V5mEjf Md3Q== X-Gm-Message-State: AOAM5304ntmPT2n1if852H2EeSyYc9V11E5JZ4nFDlbT8H0CMBds9DV/ 3UVMlK/E9TKM2DJHK/AZsUPraPQ4Tn2zuxEmfm2fmp12ZuoINgHQEWbVHw== X-Google-Smtp-Source: ABdhPJxEqu9uWtwLGTXTaastqfzijEJ++BtgObWTVb3g45BTyAIZLFBFjCN3lj09MdocSmg5U6Aq/GG7aq42sEeGSjs= X-Received: by 2002:a05:6602:204e:: with SMTP id z14mr212310iod.90.1640129316028; Tue, 21 Dec 2021 15:28:36 -0800 (PST) MIME-Version: 1.0 References: <20211103114830.62711-1-alistair@alistair23.me> <20211103114830.62711-2-alistair@alistair23.me> <20211218231823.49a72256@aktux> In-Reply-To: <20211218231823.49a72256@aktux> From: Alistair Francis Date: Wed, 22 Dec 2021 09:28:10 +1000 Message-ID: Subject: Re: [PATCH v2 1/4] Input: Add driver for Cypress Generation 5 touchscreen To: Andreas Kemnade Cc: Dmitry Torokhov , Alistair Francis , linux-arm-kernel , devicetree , linux-input , Linux Kernel Mailing List , Mylene Josserand , Linus Walleij , Henrik Rydberg , Rob Herring , =?UTF-8?Q?Myl=C3=A8ne_Josserand?= , Maxime Ripard Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 19, 2021 at 8:18 AM Andreas Kemnade wrote: > > Hi, > > On Sun, 12 Dec 2021 21:45:48 -0800 > Dmitry Torokhov wrote: > > [...] > > > > This is also likely unsafe if controller is not completely shut off and > > > > is capable of generating interrupts given input device is not yet > > > > allocated. > > > > > > I have dropped the `IRQF_TRIGGER_FALLING |` > > > > > > I have tried to use level interrupts, but I can't get the device > > > working with them. > > > > That is weird, does the interrupt controller support level interrupts? > > > I have set level interrupts via the devicetree, > things seem to work on Kobo Clara HD: > /proc/interrupts > 203: 37402 gpio-mxc 6 Level tt21000 > > touchscreen@24 { > compatible = "cypress,tt21000"; > reg = <0x24>; > pinctrl-names = "default","sleep"; > pinctrl-0 = <&pinctrl_cyttsp5_gpio>; > pinctrl-1 = <&pinctrl_cyttsp5_gpio_sleep>; > interrupt-parent = <&gpio5>; > interrupts = <6 IRQ_TYPE_LEVEL_LOW>; > reset-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; > }; I have tried using IRQ_TYPE_LEVEL_LOW as well, but the device doesn't start correctly and the commands time out. It works fine with IRQ_TYPE_EDGE_FALLING though. Alistair > > Regards, > Andreas From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1B2B3C433F5 for ; Tue, 21 Dec 2021 23:30:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xljLNZ5XfqLFhQnXt0gDZO4uOtBCupAml/R5QRIYd2g=; b=OrLavZ4oo0xHq/ I71iwr2lSK0uNrN/DNhMZLpXwGZnOc+ZbM0mm6N9JNAb/3wdYt+ed85mEQ3iHWZRc8Aol4sjJxmoC lPJmZXt2K1uBFfL7S5Su5KnFJRYJMgy931GreL0Y1JN0AGjeRYyTvg786rvK6qINWeogLZ9ThAn4w Da9fIs6CPg+tcTcZ6p+gn59FXbx+hxRSXszltIumFLD9rxXpPFSDeLdApqhr1UzTiASSmW1NcrG8r YMJndO8th8U6mkZcdRxdH8FDCZ4oxx0R1A5zRR0WRusvtOa0yvhhOR9taYBm9KaymYfWKxqviqXWh UXkWnn+9vblTBR8yaeyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mzoYi-008j2p-KW; Tue, 21 Dec 2021 23:28:40 +0000 Received: from mail-io1-xd31.google.com ([2607:f8b0:4864:20::d31]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mzoYf-008j27-Ml for linux-arm-kernel@lists.infradead.org; Tue, 21 Dec 2021 23:28:39 +0000 Received: by mail-io1-xd31.google.com with SMTP id y70so625524iof.2 for ; Tue, 21 Dec 2021 15:28:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+Y9qNhArsQ0y20VLdp6J5wDm7XykoFJAUNYk5IaM9hU=; b=ffbFCTx9cfBHU9hVLoh1EuPKDfCbDkzePVspueec6ve0wQOxK3Dy3UTajDENOBWcQp 3acuN4AJC4/cQfOHUVm4rfZcCEB79xPSQ/1Xs2knQPKSppIUuMp6Z9YEmznMypkZC/Lw qxavyX1+ZR82xuusqd1+l3ejhhDRBSv43dksVNIN38QVBOnIF+x+wb51eGNR+44o84zt v49Za90vVKeECaz59prHRMf/PDtQJoW/PneufPYykMW+81S8JAfNM02zxwGvxNQ41qrN 7r2cIEMBO0N5xS+DtmB2TNA1yiKJ2uAicO9L9LmDqulNhKn/WChLbYTRiJbw6D3I0khq gOWw== 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=+Y9qNhArsQ0y20VLdp6J5wDm7XykoFJAUNYk5IaM9hU=; b=mIhs5hQKheeaEytpNkfg6kXGLUanomJMPzAwYr29XQHT33QNALxBShy5ZMMSNgi/pz IRso8WfkilZWV1doa0IdRXZJ0j5YnD8itzVL7xPHc5gKbMvK1OuVYcLdYHt39aECPYWU G/pCZmHgE07Iwok5suMaNEnAvswNRpt9ulq9akH3Aoda5/EwAOM6lI3/QJAjxhfe8VZu DfawHJJ6R6mXjiDcnml4XdBuF6OhU3AIy1ZB+0suB5j2WmRVTIkej/QflEmeABkV1/6R oKvJ+LdwI/CbF8sggg5NMhmLIG4phSwprFDMJpAMfKnLYexz9l3Ja+cSX1qmVM9SJ+hx Bvpw== X-Gm-Message-State: AOAM532jfP2MCYTVaL2dkmixMzfjlYsBJz0Gi7VTFkF20zJPGg8vtT5a +2kvXOfGKfUTRWyClOQuTlLVbGyEaNwkMvO3Z2E= X-Google-Smtp-Source: ABdhPJxEqu9uWtwLGTXTaastqfzijEJ++BtgObWTVb3g45BTyAIZLFBFjCN3lj09MdocSmg5U6Aq/GG7aq42sEeGSjs= X-Received: by 2002:a05:6602:204e:: with SMTP id z14mr212310iod.90.1640129316028; Tue, 21 Dec 2021 15:28:36 -0800 (PST) MIME-Version: 1.0 References: <20211103114830.62711-1-alistair@alistair23.me> <20211103114830.62711-2-alistair@alistair23.me> <20211218231823.49a72256@aktux> In-Reply-To: <20211218231823.49a72256@aktux> From: Alistair Francis Date: Wed, 22 Dec 2021 09:28:10 +1000 Message-ID: Subject: Re: [PATCH v2 1/4] Input: Add driver for Cypress Generation 5 touchscreen To: Andreas Kemnade Cc: Dmitry Torokhov , Alistair Francis , linux-arm-kernel , devicetree , linux-input , Linux Kernel Mailing List , Mylene Josserand , Linus Walleij , Henrik Rydberg , Rob Herring , =?UTF-8?Q?Myl=C3=A8ne_Josserand?= , Maxime Ripard X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211221_152837_800662_F5941B2D X-CRM114-Status: GOOD ( 20.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Dec 19, 2021 at 8:18 AM Andreas Kemnade wrote: > > Hi, > > On Sun, 12 Dec 2021 21:45:48 -0800 > Dmitry Torokhov wrote: > > [...] > > > > This is also likely unsafe if controller is not completely shut off and > > > > is capable of generating interrupts given input device is not yet > > > > allocated. > > > > > > I have dropped the `IRQF_TRIGGER_FALLING |` > > > > > > I have tried to use level interrupts, but I can't get the device > > > working with them. > > > > That is weird, does the interrupt controller support level interrupts? > > > I have set level interrupts via the devicetree, > things seem to work on Kobo Clara HD: > /proc/interrupts > 203: 37402 gpio-mxc 6 Level tt21000 > > touchscreen@24 { > compatible = "cypress,tt21000"; > reg = <0x24>; > pinctrl-names = "default","sleep"; > pinctrl-0 = <&pinctrl_cyttsp5_gpio>; > pinctrl-1 = <&pinctrl_cyttsp5_gpio_sleep>; > interrupt-parent = <&gpio5>; > interrupts = <6 IRQ_TYPE_LEVEL_LOW>; > reset-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; > }; I have tried using IRQ_TYPE_LEVEL_LOW as well, but the device doesn't start correctly and the commands time out. It works fine with IRQ_TYPE_EDGE_FALLING though. Alistair > > Regards, > Andreas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel