From patchwork Tue Jan 19 15:51:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Dembicki X-Patchwork-Id: 12030223 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D86D2C433E0 for ; Tue, 19 Jan 2021 15:54:17 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9B4F5216FD for ; Tue, 19 Jan 2021 15:54:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9B4F5216FD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=aunvn8P5ljgHTtc8t26rnBfi2IfJch48EC2yAVeG60w=; b=oyiJY/oI1UTuEK+WoMhFDRDzPA NNXQXXMuy/0M8jVONk7Edw8HiPT7wsjoYnzFgzGUYmsW4qp//pcddiFRtgHi9w00/bzthL9S3qB0h 0qByFoZ3bwid20h01soIp0mUeke3p+ludlMRFrVW6lXhjZgQbgT2eRYCUCXb9yCrC6VupSmztqhDu y6b+nFO3JN0OCIFJGf50HTcesMMKcz3cak0ur5Ps23gv3P2UqNwd093oDpIEGYarAkblDvFVACVvn gVHlSpD0UBf/a0H/7CE5gJtrBK3iJ9i3hzizoh+VyRe5DMrEME2dxbTWBd0iWu4o24QpVHSqgiRi3 uyevtGZA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1tJ1-0005Ui-Jd; Tue, 19 Jan 2021 15:52:31 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1tIz-0005Tf-Ob for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 15:52:30 +0000 Received: by mail-lf1-x12a.google.com with SMTP id o19so29748766lfo.1 for ; Tue, 19 Jan 2021 07:52:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9ttJy1sbqgGN8LlqZHeVaLyiNVqgMKw+PzRs47gIEZM=; b=jwt+XJ2m2JVvGLpNNzqCpOQtY+LD7flaonocDr/9T9K1hJIAsp9o64rEPe3dQz53gn IgQfNMeIMtQ8MH1bHbv2e+wMtxYRsoQix+/zm9vDMZcSRtaBH/b756/Xz27+djcH+Y13 YpOCLS+FdAhOmUg9lD7zSJWFz1xXvaUYWcK9y0PFyaS3SkwQfnmWGx6PkKMWTEfUZziR SWCbYryxhbYngqcywTug9qsEQQp+dxJIBpN1Hu3JwL4HKSf2GZ9EvM8tIVOsaGMJchIO C5KPTXBTeDG7OqH3LVxYTblhQY43PrmYnVYh4dnWW8YK/VAG9g2LWfg8eHzWyriOO0Oi ZWmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9ttJy1sbqgGN8LlqZHeVaLyiNVqgMKw+PzRs47gIEZM=; b=oAFm6VtHrt3iSEN5lFbib7hbMM5parWYEiT3UGebxnsrHnn+bqhD3R8j1OUZJBo7GD HV18oTaEgNMCRBO6jfFzcuwIAmWcmYsFaPkXBrxvhYl4dQNoxWMsR45wckEa3Ze/1y0T wOO+kw0LxLZP4c13xmrZOfrK1X8evLYxoNqiVcYBmQ9qe8zoORIoz6SlvxncPeJQl4U2 3koiC0VPEPUcO+JSi17clW61E4YF2JWASuRBGKKt2vqRvg5HbnknSQutnEqJtlyVyhb5 +do57jPiLKXgrSTIMah268JM40KCTrZKK9bZorusuGYaM5dUIttkpIAzf9cqLO/KIaxf PtLQ== X-Gm-Message-State: AOAM530Z4lmR6YiEKf5GlZ1bwYJGgRZf8/lbk9NBn0wYoeX4udgaMvHg awUSdqC8BZoxP1UKq2IrKVc3qgqzm0YDAg== X-Google-Smtp-Source: ABdhPJyBPJJ70QrkQnJMC/3VXdTqzGRprlpWOXXRLJcsX0AsXieN2y63cQM7BoI75q7ca2FCWdOUyQ== X-Received: by 2002:a05:6512:94f:: with SMTP id u15mr1971415lft.389.1611071546013; Tue, 19 Jan 2021 07:52:26 -0800 (PST) Received: from localhost.localdomain ([185.188.71.122]) by smtp.gmail.com with ESMTPSA id t196sm2309286lff.195.2021.01.19.07.52.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jan 2021 07:52:24 -0800 (PST) From: Pawel Dembicki To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/2] arm64: dts: fsl-ls1012a-rdb: add i2c devices Date: Tue, 19 Jan 2021 16:51:05 +0100 Message-Id: <20210119155106.1833610-1-paweldembicki@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210119_105229_821305_E852B8AF X-CRM114-Status: GOOD ( 12.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Li Yang , Pawel Dembicki , Yangbo Lu , Shawn Guo Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org LS1012A-RDB equipped in some i2c devices: - 3x GPIO Expander: PCAL9555A (NXP) - Gyro: FXAS21002 (NXP) - Accelerometer: FXOS8700 (NXP) - Current & Power Monitor: INA220 (TI) This patch add listed devices to dts. Signed-off-by: Pawel Dembicki --- Changes in v2: - resend only .../boot/dts/freescale/fsl-ls1012a-rdb.dts | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts index d45c17620b98..12117a973eb6 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts @@ -7,6 +7,7 @@ */ /dts-v1/; +#include #include "fsl-ls1012a.dtsi" / { @@ -33,6 +34,50 @@ &esdhc1 { &i2c0 { status = "okay"; + + accelerometer@1e { + compatible = "nxp,fxos8700"; + reg = <0x1e>; + interrupt-parent = <&gpio26>; + interrupts = <13 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "INT1"; + }; + + gyroscope@20 { + compatible = "nxp,fxas21002c"; + reg = <0x20>; + }; + + gpio@24 { + compatible = "nxp,pcal9555a"; + reg = <0x24>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@25 { + compatible = "nxp,pcal9555a"; + reg = <0x25>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio26: gpio@26 { + compatible = "nxp,pcal9555a"; + reg = <0x26>; + interrupt-parent = <&gpio0>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-controller; + #gpio-cells = <2>; + }; + + current-sensor@40 { + compatible = "ti,ina220"; + reg = <0x40>; + shunt-resistor = <2000>; + }; }; &qspi {