Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1900636rwr; Fri, 21 Apr 2023 00:58:11 -0700 (PDT) X-Google-Smtp-Source: AKy350Z+r7DDNNxYI9Ev96MT24ewhTaXJc/uA50O4wxOShpXYwVitrh08UXTsIL47E+Ak/CX/aE8 X-Received: by 2002:a17:902:da8f:b0:19d:138b:7c4a with SMTP id j15-20020a170902da8f00b0019d138b7c4amr5515552plx.3.1682063891138; Fri, 21 Apr 2023 00:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682063891; cv=none; d=google.com; s=arc-20160816; b=MdsQZO3OzvT8tbja07gCNikIYW7OP/1Yso3tiSWi1AXGzkYilh9A/QETbH/oPQ3gus vBYi2mbaSb3v3EP33SbvS+WSN9T2l+VIg+68smwDqw1uPj/iE51PycjVQ9fHBwDPDahu K+mnuJ9VcMjR6/buUS7ahGJ5kJKPa08FOXc+sQJkhL4Rf8ATzJMPZkXmpfflt05Tt28C Srp29ZTekaj2GV4Cj+ldi7rdehmFmGGlmRavZj76efS4yGQBJ0AFXNHQ8ajmH1JgRu/y 3vo9SITeJpT2qqwTJ7HlJeNGvravGsC26Nd2at0MV+cVgSuVPfWZ3H18BGnkUfUD81WE Al+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=ESPESgM91xh/lMsc1yOsPFi1GlFz8zsJkocCN9t7IWU=; b=Bi2JBLc7VMU5Szipg26FX0YYfyZ8r6k34j3GHGdcgjO2NXh62pVQHPQ3NGn+T/RNoQ NX9fYaDMkvOAXjfJf1M/JmdTWEv64mgFFRXc6Bwa6MWm4U8x/fG70E1sGVvhjADr4Kzy 28YdTngzOwHnhAzErHhTNr6yqX2tzdja7YUT2gNSgsYin5IX46PhsEmpy7oaZq2Qs+e6 VLf6As2kpy+RzMpccoLs9qG6Uv+bE2cXoZkJsxAdV22vUZ2vypXRMrBNzL842eeDhGop KwfJxFdAgc2weYPdsMKC5La8JwnjswAoGCY8+7u1SaLHv8J6bZWxKAwgYcU3tcbPVIJq /YFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="VoDOK/i2"; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m5-20020a17090a7f8500b0024496072b1csi3875294pjl.73.2023.04.21.00.57.55; Fri, 21 Apr 2023 00:58:11 -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=@redhat.com header.s=mimecast20190719 header.b="VoDOK/i2"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231586AbjDUH5f (ORCPT + 99 others); Fri, 21 Apr 2023 03:57:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231590AbjDUH46 (ORCPT ); Fri, 21 Apr 2023 03:56:58 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 645809757 for ; Fri, 21 Apr 2023 00:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682063726; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ESPESgM91xh/lMsc1yOsPFi1GlFz8zsJkocCN9t7IWU=; b=VoDOK/i26y65nCcrGxweY/v3Ybw5iRgOjrDQKEpTaCh4DXTG7oC5BVAJoJN49VlouYTnMq TO+jwAumYD3Z+ES2LEhMij06Wrr/KpvsDYFLcKRZMDMDxUYK7GkHrlYee5WIvi0XZoVoVu Esm1vpleelfjAbKw9LLSp4PNjQpWlIM= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-102-geQtMnhQMS-ZxFwOTZgCKg-1; Fri, 21 Apr 2023 03:55:25 -0400 X-MC-Unique: geQtMnhQMS-ZxFwOTZgCKg-1 Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5066c9c2ed6so1572050a12.2 for ; Fri, 21 Apr 2023 00:55:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682063723; x=1684655723; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ESPESgM91xh/lMsc1yOsPFi1GlFz8zsJkocCN9t7IWU=; b=S2AKR6fSetdyhD9qcUzm2wKkNkEV7i7MEuPuOJEOs5SGrhiRdHNp9S1A/Yu73kdnSp UtT1ONjr92SIIlRiyF8lk5ugaLxEXaJmeKI456jQysBlif54YFbIcbhmGZTxcGApgoRn ROTh3hPqGwGl/zRAkrnLED8qFrFCFUecLuUpxkugodeLUWOUPjpEq5Q6insDb78mdu1w xuMPJxTumITfRvgbhVQRALfBJ9fOTl8QHI1R/MVA4farvhw8ZRVvcC1EMmiKKEK9KKyB wvfOgHlyXPSZbh7C0XTeYmqTD3pjBaP4/NIGztFswFQs4eetd6So3ZdIkQ0u5C4aRDYN 85Ew== X-Gm-Message-State: AAQBX9cCLNsOEsfQhnLqhczLWMtZPeRLuKB40ZsNXTKIbd3Q63+6txGX ngHhmAb4auZ6uENRHhXb7AXD6txg427Xv3Tl59GYwhcbgAVYlpZMNRk75UUwVDvTWTJaOqQ6Th3 Aywtv1Xv9VeJoXvAAv1NcSjTx X-Received: by 2002:aa7:de92:0:b0:504:a2c8:ea60 with SMTP id j18-20020aa7de92000000b00504a2c8ea60mr3870174edv.35.1682063723518; Fri, 21 Apr 2023 00:55:23 -0700 (PDT) X-Received: by 2002:aa7:de92:0:b0:504:a2c8:ea60 with SMTP id j18-20020aa7de92000000b00504a2c8ea60mr3870164edv.35.1682063723249; Fri, 21 Apr 2023 00:55:23 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id x3-20020aa7cd83000000b004fbf6b35a56sm1588535edv.76.2023.04.21.00.55.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Apr 2023 00:55:22 -0700 (PDT) Message-ID: Date: Fri, 21 Apr 2023 09:55:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v3 0/6] iio: st_sensors: Add lsm303d support Content-Language: en-US, nl From: Hans de Goede To: Marius Hoch , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Denis Ciocca , Linus Walleij , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230415231130.115094-1-mail@mariushoch.de> <3eb3de24-41b4-9566-9b11-a12d21904793@redhat.com> In-Reply-To: <3eb3de24-41b4-9566-9b11-a12d21904793@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 Marius, On 4/16/23 22:19, Hans de Goede wrote: > 2: There are some other unsupported sensors on these models too, > perhaps you are interested in adding support for these too? > > Here are my personal notes on this: > -Light sensor should work with drivers/iio/light/al3320a.c > https://github.com/JideTechnology/remixos-kernel/commit/c52d55b4bd907e87b7b115b3943219f3e089a77a > > -MXM1120 HALL sensor, have datasheet, measures angle of kickstand thingie, use > for SW_TABLET_MODE. Do a pdx86 driver just for the Tab 2 which checks that the > kick stand is out *and* the BT keyboard is paired, in that case report > SW_TABLET_MODE=0, in all other cases report SW_TABLET_MODE=1 ?? > For the commit msg: > Datasheet available here: http://haechitech.com/tech-support/ > Requires creating an account, once you have an account you can immediately download > the provided datasheets (or let me know if you want me to email you a copy) A quick follow up on this, since you said you were going to take a look. I think with the way bluetooth works under Linux, with a bunch of the work being done in userspace that figuring out if the BT keyboard is paired is not going to work in kernelspace. So I think the best we can do here is simply export the angle of the kickstand as an iio angle sensor. Regards, Hans