From patchwork Fri Mar 24 17:54:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 74695 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp828474vqo; Fri, 24 Mar 2023 11:22:45 -0700 (PDT) X-Google-Smtp-Source: AKy350ZLhg+PxNJ6cR8n+D5c7bAkZNRo1kLVptVFSz2mzxXFQYdvfJu5z6lyQxGB5xiSHwZifTrK X-Received: by 2002:a17:906:6b1a:b0:932:ac10:94b6 with SMTP id q26-20020a1709066b1a00b00932ac1094b6mr3770080ejr.32.1679682165307; Fri, 24 Mar 2023 11:22:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679682165; cv=none; d=google.com; s=arc-20160816; b=BXHsgYXZyO+QBxv/6T0mdkZfIjSwspGeQfSgvMVpPy8bKkZeEmJ2MlhZ5C7yt7PIAH fTu9NRYYvCRS+V1qnXHF4EDJdfiRuyn/5aLuXPSR7aiunJMVKvPpAO4bdU/2ECTGUC6U lfpdrMN14mmd4e46ZkuqAwipd1hw0TggOmKDDZEtid0GW1NT/Wt0HM/ABvSi4iUpw/+O CMynJ//G1Yndmxjs2rTWbMgSsiZhXmnQY9kDcnu5XNlaXeV1StSS1zL/bStQkwl9c/Z3 wBAna0bICHKz2LByHSCSFX870aHRAEIK3mIzI67c/dvUAGIvVqEVhJjOccLMGaDOqVFS etIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yXvD5OwAYM9B6FG+dSZmPNM4+LQMwkEo9gfqrLfj5SI=; b=vXhFRvQbddpukvw1IZXm5HgHtnthkD0dgUvV+l1mN4PHYShFGoHczmAnT4a2RePy/0 ag2MohVOLATELqcSZTI1n55PV2mycfnWP25dauxHZOkGIdJRxUPGqH3Qicessrbbjwyr 5rzK/b6F+YYeZUq8SyH9H0+0rWnijKiYQuHcNl8T4Qe0a0E0cFHd04LOcYGcP2h8lB/P L1asJFiGY4UsNNWiQNd8zJiSXAVyfdO4KZscxJwR8lcSwzQB4UF8X8nYyS7e/wFCitqB g/vdETWVtwFo16xpfYxabET4SaMndPFFqHp2O+JRWsm8zHQGxm0vJ1G2a6A2YSBOMdvK Az7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=KVERgUP5; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i19-20020a056402055300b004cfc2f60ca4si21810048edx.150.2023.03.24.11.22.21; Fri, 24 Mar 2023 11:22:45 -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=@collabora.com header.s=mail header.b=KVERgUP5; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231825AbjCXSEC (ORCPT + 99 others); Fri, 24 Mar 2023 14:04:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231945AbjCXSC1 (ORCPT ); Fri, 24 Mar 2023 14:02:27 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2B5A18AAC; Fri, 24 Mar 2023 11:02:08 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 373046603149; Fri, 24 Mar 2023 17:55:14 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1679680514; bh=/T9WmBbua2oCTw4GMfNhun8IUtdf0uXbZIh9+7jUzSk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KVERgUP5/zEPGkUnlFHSCczSQhqJ2ushyYTycvVgxC+XOUfV21uuNMTrh3HaQdIRU il90KXUEy1Xufgx/Lm247MqI69OAeQDcxMSpVcRXRHT9zD56I2XPgTHWv+ew1owt5a 8CXGqHYeh1I1U7DN1VLXg8JIaWsrMBqdwoHVI/patj0FrcIJpBOFUMmjdtESo3IJMt Coyl9SN+nFk+3y+5Bxs3Hr2DJOpOWBkJ9qX5+idJIZscBZ33mJhTEJgSQPSAZztSVz n00zKTB1RrbanwEwOaYZPz08ypRPFtPtcTVEnYpGh2pk14tUN/u0QDog03BKMHRVn2 uK3ch3Kx85bxQ== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: qii.wang@mediatek.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jassisinghbrar@gmail.com, houlong.wei@mediatek.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno Subject: [PATCH v1 16/18] arm64: dts: mediatek: mt6795-xperia-m5: Add Bosch BMM050 Magnetometer Date: Fri, 24 Mar 2023 18:54:54 +0100 Message-Id: <20230324175456.219954-17-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230324175456.219954-1-angelogioacchino.delregno@collabora.com> References: <20230324175456.219954-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761274406305917966?= X-GMAIL-MSGID: =?utf-8?q?1761274406305917966?= This smartphone features a Bosch BMM050 Magnetometer on I2C3: enable it with the BMM150 binding, as that driver supports BMM050 as well. For this sensor, there is no interrupt pin; readings were validated in sysfs. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts index 54a1f7f306f7..bda14c74a8af 100644 --- a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts +++ b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts @@ -106,6 +106,11 @@ accelerometer@0x10 { pinctrl-names = "default"; pinctrl-0 = <&accel_pins>; }; + + magnetometer@0x12 { + compatible = "bosch,bmm150"; + reg = <0x12>; + }; }; &pio {