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 61317C35FE4 for ; Sun, 15 Sep 2024 10:14:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=e3b+re0v8aGDDcxjlUeI6whVJWiks/9YnhQ8GIAVylM=; b=pmtcPvjvibL2E3DtHcKCb/q+4P XG1pAbPtwodpHO+MsckGd2DUDlv2jKRB9rIogcKY6aDwvrSfbqkPUKgXzP4ViwXav/TK9lo8w5epT njP4dqYf1JKunH6G24EuEgDQRKXMKPX++EnA8zxkpKivCCEfv+o+Ul7wh/va2AlPB3HE/Ws5MCcN/ gh08a05sh82hh74J+KK+137MJ+SdsESHDP6qLbbVYvsk3N9FXYvDaH+uqjodkpsKuppfKplFGV67v C8c3sbkxTzxbNl2WdHTjhLziZv0KND1wnwDUynBCTJNkZ8TwaGRY2/gZClCMwyCInKjByQgXi3fC8 RAOOowJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1spmGY-00000001xQo-01c7; Sun, 15 Sep 2024 10:14:02 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1spmFS-00000001xMt-079H for linux-arm-kernel@lists.infradead.org; Sun, 15 Sep 2024 10:12:55 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-535694d67eeso3469868e87.0 for ; Sun, 15 Sep 2024 03:12:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726395172; x=1726999972; darn=lists.infradead.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:from:to:cc:subject:date:message-id:reply-to; bh=e3b+re0v8aGDDcxjlUeI6whVJWiks/9YnhQ8GIAVylM=; b=LzCum0OgXuDywqXKVyAjcn1iA9LQWDftgJLJ2WiStNyyDpnQdFVIfDp0r1flrxNyRM s/oAfXsBhRmtNEsmkNafvLfe8066glOi2m30p3/hSPZrsLgsPuAGBme8ae+ek0PLUIs3 iBJ2Svj2TEcXocnHO0A+/bcBuGTGh2PZwm18k6kVoyj/ky/Xn6Ie5+Cel3i60qCwKUVz MhxC8JQT5/GP8BhzE6Rya2vAYl+BSYLFHA4gmhs1Lrv1kDC80HXnizq8yi2Cz2/odsBe nr+dK8d9+bHKEjt90Wjvr+nT/qK7tTI7IhjJoYaIsTfAqB4a3yDuJtzFUHvHHPaJjFEQ /guw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726395172; x=1726999972; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e3b+re0v8aGDDcxjlUeI6whVJWiks/9YnhQ8GIAVylM=; b=Vm1m+PhAP/ANTl/TVpVfJ/436JPoxJI0d96C504p2LGM+IhVMSA94RXcGBMeFpdJbH swsZW2JLAKa9ykGnIBZ56jHyaUD4laeg35kJxk05E9qmm611AJSt867Nkefa0gHUJpNF 7qblvLbBkDG95InhugeWpQVLyuc7g7x9v2RP6n/jB+CTVYBf/j1kTNVKC8e2R3TiYHjL wTI9WBtKem8LiLHL4y7HSav0FdJDgL4JVduLigxT8cHYGs+bmFTWyppY3zglKTDLpQlv vHyLLklRWp/nwj7ln/9ZdLhuJ2SwRM+/WC9zrIvg8K5S93889pL+wp9h6AMzdabTxECf 3htg== X-Forwarded-Encrypted: i=1; AJvYcCUH3eiYkq9AB9s2q/vSdpHJwaKqe3+6JNxJtMKe7kBPt3EB5+e14K8QJGzCy6JXC7CyYA1TAbQIPvSV357xtsZw@lists.infradead.org X-Gm-Message-State: AOJu0YwAHC21OziZ4n4vwzesiqdvtaAcAl+K/XTfiA73j5AuCz4PB3wk E6Zbo7nUU72aVwuuqD0y96xYqhPpvwdKM+QKarxD/uBzmK1qdaLb X-Google-Smtp-Source: AGHT+IGFULRwl29+zBkgy+dcU0s4TIiCfqrud8aX30zIW4nAlXdSrXZwnP6OgjhggVHe0DMx5YyVYw== X-Received: by 2002:a05:6512:3d93:b0:533:32cf:6420 with SMTP id 2adb3069b0e04-53679075a23mr3746955e87.8.1726395171536; Sun, 15 Sep 2024 03:12:51 -0700 (PDT) Received: from localhost ([94.19.228.143]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-536870a8635sm518588e87.217.2024.09.15.03.12.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Sep 2024 03:12:50 -0700 (PDT) Date: Sun, 15 Sep 2024 13:12:50 +0300 From: Andrey Skvortsov To: Chen-Yu Tsai Cc: Jernej Skrabec , Samuel Holland , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Shoji Keita , Icenowy Zheng , Andre Przywara Subject: Re: [PATCH 1/2] arm64: dts: sun50i-a64-pinephone: Add AF8133J to PinePhone Message-ID: Mail-Followup-To: Andrey Skvortsov , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Shoji Keita , Icenowy Zheng , Andre Przywara References: <20240908214718.36316-1-andrej.skvortzov@gmail.com> <20240908214718.36316-2-andrej.skvortzov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240915_031254_093357_E6B60A2C X-CRM114-Status: GOOD ( 19.91 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Chen-Yu Tsai, On 24-09-09 16:08, Chen-Yu Tsai wrote: > On Mon, Sep 9, 2024 at 5:48 AM Andrey Skvortsov > wrote: > > > > From: Icenowy Zheng > > > > New batches of PinePhones switched the magnetometer to AF8133J from > > LIS3MDL because lack of ST components. > > > > Both chips use the same PB1 pin, but in different modes. > > LIS3MDL uses it as an gpio input to handle interrupt. > > AF8133J uses it as an gpio output as a reset signal. > > > > It wasn't possible at runtime to enable both device tree nodes and > > detect supported sensor at probe time, because both drivers try to > > acquire the same gpio in different modes. > > > > Device tree fixup will be done in firmware without introducing new board > > revision and new dts. > > FYI I've been working on an in-kernel prober [1] for such alternative > components. This does not require firmware support. > > [1] https://lore.kernel.org/all/20240904090016.2841572-1-wenst@chromium.org/ Thank you for the information. I've tried to use in-kernel prober from your v7 patchset [1] on top of -next and it worked without any changes to firmware. Since there is still on-going review of your patches it looks like it's to early to submit my changes for review. But I'm ready to test your new patches. [1] https://lore.kernel.org/all/20240911072751.365361-1-wenst@chromium.org/ -- Best regards, Andrey Skvortsov