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 { From patchwork Tue Jan 19 15:51:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Dembicki X-Patchwork-Id: 12030225 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 9BE8FC433DB for ; Tue, 19 Jan 2021 15:54:18 +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 650C7216FD for ; Tue, 19 Jan 2021 15:54:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 650C7216FD 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:References:In-Reply-To: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:List-Owner; bh=M3kpo/oaTMstvBWgQcjnN77mrTq7jJt9E6InsrMgHnc=; b=g0upbcWmh698rh05nhcM2wm7U nuFVioK3Ld9r0CMQoQRS715U/4Q4vuLJ3+wVIgzMMZCSGqlLsl2+OkFv5EjmNSw6vzDSu1U2883q9 PKYpQtdBzpGL13H+fdwFesPuQrtgMiMNR7WWzE1oTZDc3JrmxnCFLROHZwJ9PlgME4spMgtIWMGHH bgOXVTYkoXukWX26utVfed2GZVCzN9NJ7zrkSLmrCsfmVUOaFcjrcaYZDI/n+UrAMjGUQQS3bOdWh FJS7ABNFcLj87MIGax17VVp1NEHCfqmNposxdkWy8TFVDHECA/KrhJc92JHlwE9HaJLGM2TCro3Go DOqX2YlgQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1tJE-0005Wx-CL; Tue, 19 Jan 2021 15:52:44 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1tJB-0005W7-HT for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 15:52:42 +0000 Received: by mail-lj1-x22f.google.com with SMTP id e7so22467959ljg.10 for ; Tue, 19 Jan 2021 07:52:40 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=iJc26kqK3lGiggOL8r2k0b8rqu0j1HSR3SxkGPEs1EY=; b=KYeJOrYr4NiWht8sbmC/Lsf0oX1RjPVSxie4XQt3heuBHRyENk1dc26UYOgG7BiLv4 Gkf7GCfhHbXwi3tVVJ1cpN+9puCxX6QQExS/U/vVHjAJKrvSar98RXEWJRsoS9mv2Yd1 TBLzKmbj3VeOywQqBR9K4VXLGXTyfw/f58ucV59glj13oonZez0cKb1Lme19AcRBNp5I 2A7SI+JV3wA0hmaDitV6gTrRr1k0ediqvRDAndoefSWJmI5/jsLwpw5HnxFqgnzNw0Pk Ahj8v17c42Ccw0FjxSy/I9pxiQIle8K1jsEu26B6q7XFK2CPo4IxC3EkNaedc1OI/veU 6M2Q== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=iJc26kqK3lGiggOL8r2k0b8rqu0j1HSR3SxkGPEs1EY=; b=j4YClU1v/5+qiRFjd0GwNI81tdizNNEbau4tjXmnr2MdAlX0D+wa4iKXm+o1oq6ESg Tuj53M8iu6xoLXwg7eKEOI7dM+US7rMVkIkCqAWAabDQu8MEf+pqLSgd64uWETyyhj0M L0wbBHk85ko71g2WkZMCeX3B78UcK0RQP0gVFs8acLurP+unNIRF+AF1Hq5hqK2w2h8r lWzCWknXE+HDEpY/lyznhXN14zb3Z5ySTaDQQICCzuDpkYCyycYkRdREmRudA4PhPNCJ WLgvwwdJA8x3kK/g7TBysuIDW/FFteTr0ZCN9V7kniY/hlfqcRw5PatHDICuWSq8X/jG 23cg== X-Gm-Message-State: AOAM5320/d6izlOfRXC3cAHGBGFxgpVIHtYIl9g+VLTEKcX7qRQHxkzq lFUP6K659pq2UFU88GXr5EdlAEHzxpqhvg== X-Google-Smtp-Source: ABdhPJzIAOAwZS7Lprc/tcLmL4dMSTFDAD+TRc74Ry67mioOpAxj0Y4Dc8RTokKqX9mSCTlfNdJ94w== X-Received: by 2002:a2e:3317:: with SMTP id d23mr403130ljc.199.1611071559679; Tue, 19 Jan 2021 07:52:39 -0800 (PST) Received: from localhost.localdomain ([185.188.71.122]) by smtp.gmail.com with ESMTPSA id t196sm2309286lff.195.2021.01.19.07.52.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jan 2021 07:52:39 -0800 (PST) From: Pawel Dembicki To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/2] arm64: dts: fsl-ls1012a-frdm: add spi-uart device Date: Tue, 19 Jan 2021 16:51:06 +0100 Message-Id: <20210119155106.1833610-2-paweldembicki@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210119155106.1833610-1-paweldembicki@gmail.com> References: <20210119155106.1833610-1-paweldembicki@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210119_105241_620291_0218D0C5 X-CRM114-Status: GOOD ( 13.77 ) 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 This patch adds spi-uart controller to LS1012A-FRDM board dts. Device is equipped in SC16IS740 from NXP. Signed-off-by: Pawel Dembicki --- Changes in v2: - reordered property list - change clock name to "clock-sc16is7xx" .../boot/dts/freescale/fsl-ls1012a-frdm.dts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts b/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts index 67702667ed8a..2517528f684f 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts @@ -7,6 +7,7 @@ */ /dts-v1/; +#include #include "fsl-ls1012a.dtsi" / { @@ -57,6 +58,26 @@ simple-audio-card,codec { }; }; +&dspi { + bus-num = <0>; + status = "okay"; + + serial@0 { + compatible = "nxp,sc16is740"; + reg = <0>; + spi-max-frequency = <4000000>; + clocks = <&sc16is7xx_clk>; + interrupt-parent = <&gpio1>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + + sc16is7xx_clk: clock-sc16is7xx { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + }; + }; +}; + &duart0 { status = "okay"; };