From patchwork Tue Feb 21 17:53:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 60192 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp144131wrd; Tue, 21 Feb 2023 09:56:42 -0800 (PST) X-Google-Smtp-Source: AK7set8kkXxPLdaaBi/Q+mUcu1M9n01xsdRJjZratMzHgL2oPJjlT9i9yuO0KDombDqSuRavFiG0 X-Received: by 2002:a17:907:971a:b0:8de:920d:a4bb with SMTP id jg26-20020a170907971a00b008de920da4bbmr4333910ejc.26.1677002202242; Tue, 21 Feb 2023 09:56:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677002202; cv=none; d=google.com; s=arc-20160816; b=K5xuCDCNu1ijNc9xrvxeDle+FtTgrlLWK1qAg7Ly1ylhdR1bnsjhAhsEXdvIe6GpdP ocAEpYDNQL4Ljl8ODu5XeD+RFWhKp2v/s1R5sKa8zKvLwVP95Vg9ObOGE85PsVl0tJhS N88zlqo/2yzPr50fpgSNoTrby+qqTxutpfH26fh1HqZBsumdSITLj7U+F7BHjDFKlcib Pv0oAQ60ii2vERdobPcObC5apZQgFl5ZkuRlbnpP8aTiVhnSwaeZ78pdNGT/zCg2jns7 koq4BdPoe013qFkXxtdadHuy7Pg9VVGgRAqBOeAeMNKxMnGWJyZeNR6PTQI0daX+/bFL QVCw== 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=70ZWc+aPECVoIOGnXpdYWCEvBu+S9xi4hcK/1o5dA1g=; b=R4DIB5pINmoT98aSuGH/7rBcWykmDrCCO7iryxJliGYsCBFWzJSBXOiZPFXlNmsv6R mZZAQtvHlN/xAOur+lZuYsbU4RRY4XlRIAEJ3oKSDjDYYxDaXLOPGVsbHnxoa5ojF/aB BmBwvCylDN82kpuSWP4D7KiCpl02+VOB1Dnv36fw5OEVQ+mdfOLxA7z/4I+uLwAsAgDf dcnwyiS60V0flS+j2xiuxB3ad4ymgjUH5d3C4thwlCdrkjqLm00l56AjB15o6ydBVzqc FwdfaSsJT1chO6IaP6y11eR/fJx5k9+UX4OO+dWZYsrPj3XYXJHrhEhU1Olwq1eIaQpG d6ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JOGIEPFq; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id uh38-20020a170906b3a600b008d5ea586683si5638358ejc.611.2023.02.21.09.56.19; Tue, 21 Feb 2023 09:56:42 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=JOGIEPFq; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234843AbjBURy0 (ORCPT + 99 others); Tue, 21 Feb 2023 12:54:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232730AbjBURyS (ORCPT ); Tue, 21 Feb 2023 12:54:18 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EF8D2E808; Tue, 21 Feb 2023 09:54:18 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id g1so20319483edz.7; Tue, 21 Feb 2023 09:54:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=70ZWc+aPECVoIOGnXpdYWCEvBu+S9xi4hcK/1o5dA1g=; b=JOGIEPFq1yRpU/rqPhtBfp9JfeCK080f4wNqaLEkIMT1B4SrfCNuSrrNG9nOrxftTj /LUTSaPaTe0PobDLxgP7xq4eZRBGeBYbWh9zeZhxUi1gWq+kuGEIW+P18zw4/x9cmKju Frtnut9JbsnWEZ2V81p1MrqiYoZz8n7MMCWCeuh7kjFCOvekaJC2WjVHLbDvUKeGnHb5 85Gwfs1bkkTd6LdnQXDcSueAXkqFLcxKyeMCoXVejc93SuZGKgCO4UUEqvL7hT+2bU/U MqK0NEZvJAgRbGWVlOX1fsiLmxQXrRshmflw1EUlOMgPu3dBfMhvUNn5xEonMafaxcgX JdJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=70ZWc+aPECVoIOGnXpdYWCEvBu+S9xi4hcK/1o5dA1g=; b=Bhtr1epD5g8AVWNVlNPw/WKrnbd4GElcXH42N4LU9rD0+nn9ozsulzj4rp1zV/Hevp eKdD8QJI03BlV6b3U85PWXcg2VcyS7FaCsswj5UJkU4CQKzIXe64xd3jMMqT8RtLM02t LYu41EdNXgSGfaT2YfrRbFoDx+st9Mcy5YBT5iOlJ4KKSLWnpeqmgVAG9F6l/zkpgkgV OXhoU/7kih9yMKc4KDOmpYWW7t2MvwWxBSBeOD1VedPd9zEroM2+O8wPOVsz6MFIHx5U 6f5ES6QipIIa7Phi54PoxCL69kOuM4krEpfF0gbBWiMdl9IxupJj0qKJyw6ukVcQM8I9 eopw== X-Gm-Message-State: AO0yUKUeEEfIjtdZz0q8we53dHhGMoQ/pd7asMn0QyL6qXP+K7P3V6U5 ZUVyEQlSy/4jaG11mJ+DYzc= X-Received: by 2002:a17:907:c284:b0:8b3:1e35:8f22 with SMTP id tk4-20020a170907c28400b008b31e358f22mr17258018ejc.58.1677002056593; Tue, 21 Feb 2023 09:54:16 -0800 (PST) Received: from xeon.. ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id b3-20020a170906660300b008e493b7bb61sm236357ejp.153.2023.02.21.09.54.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 09:54:16 -0800 (PST) From: Svyatoslav Ryhel To: Rob Herring , Krzysztof Kozlowski , Thierry Reding , Jonathan Hunter , Svyatoslav Ryhel , Maxim Schwalm , Dmitry Osipenko Cc: devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 4/5] ARM: tegra: asus-tf101: fix accelerometer mount matrix Date: Tue, 21 Feb 2023 19:53:47 +0200 Message-Id: <20230221175348.15681-5-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230221175348.15681-1-clamor95@gmail.com> References: <20230221175348.15681-1-clamor95@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758464261132904375?= X-GMAIL-MSGID: =?utf-8?q?1758464261132904375?= Accelerometer mount matrix used in tf101 downstream is inverted. This new matrix was generated on actual device using calibration script, like on other transformers. Tested-by: Robert Eckelmann Signed-off-by: Svyatoslav Ryhel --- arch/arm/boot/dts/tegra20-asus-tf101.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/tegra20-asus-tf101.dts b/arch/arm/boot/dts/tegra20-asus-tf101.dts index c39ddb462ad0..588845965f99 100644 --- a/arch/arm/boot/dts/tegra20-asus-tf101.dts +++ b/arch/arm/boot/dts/tegra20-asus-tf101.dts @@ -577,9 +577,9 @@ accelerometer@f { vdd-supply = <&vdd_1v8_sys>; vddio-supply = <&vdd_1v8_sys>; - mount-matrix = "1", "0", "0", - "0", "1", "0", - "0", "0", "1"; + mount-matrix = "-1", "0", "0", + "0", "-1", "0", + "0", "0", "-1"; }; }; };