Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp40041pxb; Mon, 11 Apr 2022 18:12:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGdOoO1qlFBsGLDQns0KkHRg2WBB38MO7XomR2Lh/2uC9xD7fR22HWdJf/1W5vtHi/8n8O X-Received: by 2002:a63:6a04:0:b0:398:6e02:60d4 with SMTP id f4-20020a636a04000000b003986e0260d4mr28654371pgc.509.1649725931117; Mon, 11 Apr 2022 18:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649725931; cv=none; d=google.com; s=arc-20160816; b=PQebeKScXQK+TOYDJgdYXQJW0xVZ0jXzXpLxHI3RahQ+jTKejFGdMQWXXaB4GK03vx wLIh5FhZgMht+dN4m+JqUJygnUF67EGo9Y/WC+D+Y0WJ5qHxADQEB9f1bA9WNI2m3Wo5 jcmKF0DC1+ZCj63ar5ssP877YD8OYfTgSNIi9xTy1IjJYhZJ+IthjaSevchlkx7NEx/x X8O/bOw4Uw0VXYelE45rUzcypT6E2E24XUlDbx+mi53FEVhOh1oq8/D28TMHmdqlWf90 TMMq2FkkUH8GyBYKB1bvUvjNvhBWMILYvx0Hs2/9aOHRk9ng0iMud1oSPVjXbHGfF9Dw 25Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:subject:cc:to:from :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=pCJjCOYD1pHvTfEkVbYg6ajc5I2hvGHciFb/sFyrlHY=; b=OKSuFHoYeriY4q/4nvk/tq8s282557YAXlFYsGrldWtbwV+Qfodl8x9iiwe/POHh/T Fi93AAhG2uMmfvMOu+hdVi3uyjrNdxw9zIeDxT50gp2WlKV9VLIYKjQojhCzQNpbREeZ avhr7+OFfsA3rodkVC9yUuq/i7dZNFdFnEjuMwGhgZAU8Z6/2lf22Deut2Jr5fU5g1HZ K2yarvDX2mV64QtNOZwS991mNWlU5ZOq0rJitNO66Dq0sshfi/qniNsF7Z8oqJxuFH8B M+vRiMhqZwDNlODCk33YgsI9C3+JEJdhM8TxVY+OdHHQDz1IvPdt26u5hmgwCUPCT6Jp 56ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=gpXKT43t; 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=fairphone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y10-20020a1709029b8a00b001582df39d27si9325638plp.175.2022.04.11.18.11.55; Mon, 11 Apr 2022 18:12:10 -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=@fairphone.com header.s=fair header.b=gpXKT43t; 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=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347662AbiDKPNZ (ORCPT + 99 others); Mon, 11 Apr 2022 11:13:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235305AbiDKPNW (ORCPT ); Mon, 11 Apr 2022 11:13:22 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2442631522 for ; Mon, 11 Apr 2022 08:11:07 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id bh17so31522307ejb.8 for ; Mon, 11 Apr 2022 08:11:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=mime-version:content-transfer-encoding:date:message-id:from:to:cc :subject:references:in-reply-to; bh=pCJjCOYD1pHvTfEkVbYg6ajc5I2hvGHciFb/sFyrlHY=; b=gpXKT43tqtGTzEZYyVUu+KoI+Ti3B/PxcwEDJCLsPuyjVj05Rp2kVeLH4lDKz/v0IQ FGC2lHgJcmFoDsWBaFhXQ6E805MJtsOtjLVLztpZo6cHtyHOb9Vb31mGUxRZJP0V4NM7 5dja41jjOCCg9xz49t+W/PIxhhuhBPAFHAzqgM3iRRXbN0dj5gH2/aofGsZgH0fOyjak E0aOHfu7ip8UebMzNLGB9+XC8Gw7BZNP+VyQlD98g5X+dd4zFpG3dF4iNv4OGnM302vf 5VncVzRR6K2zlVASr9C7gH840TYvI6RvoB/T5AumJobdDYS7fdD7FzFGQGXcfQZMi83A lUMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:content-transfer-encoding:date :message-id:from:to:cc:subject:references:in-reply-to; bh=pCJjCOYD1pHvTfEkVbYg6ajc5I2hvGHciFb/sFyrlHY=; b=UGJ0epqydY35++iCEkUdOuvWgqeFtsjVkQqLWLvdMF2iB+b4zaEJqF8rLIn2oQmvs0 3tY+WQIFJRfYAB0FLBROkeQ72aKJB9jV/MEFtLoGXqzXtlGIVqZp1JFtuSOxBV2pUKem CcTRy8mUlM0Q+NVLkIKG6iZumN6o9xd++vXAZlAHD8k+js6RDCX174QnIuzF1+un/eGY Lt4t0eBSyUjDag1JCByRr2RXWu45dRD+XWAx8iJo+D35IpeyS4oZEdoBf0Qtat02rRJf 4K5EJgyPHOZWBfptD2JxHd4X6YEJuj7kZFWFqrRG/ittCbufYF0ZRKOYsfgrmrQmx7B/ ZxXQ== X-Gm-Message-State: AOAM530XW9AvjMOVaEG4JaAVIeiteuoEGAvjUnJmjIexRtbRJnsSUb7d 1/dczl+RjtJuIraZtBJ6xmQMFg== X-Received: by 2002:a17:907:9803:b0:6db:ab21:738e with SMTP id ji3-20020a170907980300b006dbab21738emr29228455ejc.112.1649689865639; Mon, 11 Apr 2022 08:11:05 -0700 (PDT) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id x17-20020a170906297100b006e49a9535f3sm12047743ejd.114.2022.04.11.08.11.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Apr 2022 08:11:04 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 11 Apr 2022 17:11:04 +0200 Message-Id: From: "Luca Weiss" To: "Krzysztof Kozlowski" , Cc: <~postmarketos/upstreaming@lists.sr.ht>, , "Dmitry Torokhov" , "Rob Herring" , "Krzysztof Kozlowski" , , Subject: Re: [PATCH 1/3] dt-bindings: input: Add bindings for Awinic AW8695 haptics X-Mailer: aerc 0.9.0 References: <20220408115311.237039-1-luca.weiss@fairphone.com> <1a45984a-752b-6bad-0320-f0946d83f2b9@linaro.org> <60402ff3-db73-5fc0-bc2a-942d664085ec@linaro.org> In-Reply-To: <60402ff3-db73-5fc0-bc2a-942d664085ec@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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=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 Krzysztof, On Mon Apr 11, 2022 at 2:52 PM CEST, Krzysztof Kozlowski wrote: > On 11/04/2022 10:15, Luca Weiss wrote: > > (...) > > >>> + awinic,f0-detection-play-time: > >>> + $ref: /schemas/types.yaml#/definitions/uint32 > >>> + description: Drive waveform play times in the first period in th= e f0 detection > >> > >> Use standard unit suffixes for known units (e.g. time). > >=20 > > While the datasheet doesn't mention any time unit, the value is used to > > calculate the f0_trace_ms variable (which is milliseconds) but the > > result also depends on the awinic,f0-preset value, so it's not a raw > > time value. > > I see, ok. > > >=20 > >> > >>> + > >>> + awinic,f0-detection-wait-time: > >>> + $ref: /schemas/types.yaml#/definitions/uint32 > >>> + description: Waveform wait times in the f0 detection > >> > >> Ditto. > >> > >>> + > >>> + awinic,f0-detection-repeat: > >>> + $ref: /schemas/types.yaml#/definitions/uint32 > >>> + description: Repeat times in the f0 detection > >>> + > >>> + awinic,f0-detection-trace: > >>> + $ref: /schemas/types.yaml#/definitions/uint32 > >>> + description: Drive waveform play times in the second period and = later in the f0 detection > >>> + > >>> + awinic,boost-debug: > >>> + $ref: /schemas/types.yaml#/definitions/uint8-array > >>> + minItems: 3 > >>> + maxItems: 3 > >>> + description: Values for BSTDBG1-3 registers > >> > >> Do not encode device programming model (registers) into the binding. Y= ou > >> need to define it as a property related to hardware itself, not its > >> registers (e.g. boost value in mV). > >=20 > > Unfortunately I couldn't figure the meaning for this and the two values > > below. > >=20 > > The datasheet doesn't mention these registers at all and the downstream > > driver doesn't do anything meaningful with them (other than setting the= m) > > nor has any comment to indicate what they do. > > In the datasheet there's only BSTDBG4 mentioned where bits [5:1] mean > > PVDD output voltage setting so for these registers it could really be > > anthing :( > >=20 > > Maybe someone with more knowledge about LRAs might be able to decipher > > what tset and r_spare is at least? I unfortunately didn't manage. > > Do you have to define them in such case in DT? Maybe it should be part > of driver? As these parameters are part of the dts downstream, I assume they differ per board or actual LRA used. But I also found other downstream dts examples on github (e.g. awinic,aw8697_haptic) and they also seemed to use the same values for these couple of registers (r_spare, tset and bstdbg). Maybe I can gather more info but it's unlikely I'll be able to get a concrete answer.. Regards Luca > > Best regards, > Krzysztof