From patchwork Fri Jan 15 10:16:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Dembicki X-Patchwork-Id: 12022165 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.7 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,URIBL_BLOCKED, 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 F0C66C433DB for ; Fri, 15 Jan 2021 10:18:45 +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 7BC8D235F9 for ; Fri, 15 Jan 2021 10:18:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7BC8D235F9 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=ajMvG+/BkAHSkchE5DimTkhvF4Eftn2xa0zaG6wA5f8=; b=0fL1Bg2wcSwiQMyt1Vsk9f8k9/ XY1/pQCX6CX+BRBijVEwJQpIYTelf5MGDKqC1WFNTbjgYrsxBuAetgtnGZzY7w0XFr6DHPzfO9njg YwF1u1lMSa5kTO/3snSSZYvH/YZ7AwEmxhyP/lJjVkgqBWyLH4+2o8vEKHbo5xTxc9ZMUT9E3+fQq TCF0Sop3iqqrKN9lPL6BQkK7JOWqnVFJcBGRY7525JvAAkNIfB1Zo4SQkRGwmyO2rKgbFPUFkVX4x c99VF5Z9vmAVghXhK5Q39Ar0koiBK2zzb74lYFIAqvvMUSRzWLsSfc/0W9RJNGJOhL1P7+XsBSmjD RmCvSfvg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l0MAB-0001bO-KK; Fri, 15 Jan 2021 10:17:03 +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 1l0MA7-0001Zx-MN for linux-arm-kernel@lists.infradead.org; Fri, 15 Jan 2021 10:17:01 +0000 Received: by mail-lj1-x22f.google.com with SMTP id m13so9748143ljo.11 for ; Fri, 15 Jan 2021 02:16:57 -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=ZXuInPt5XugZp+FubZRX8WPAHVc2hVpGy3We37oEAS0=; b=Az69gZ4nMi/Dq/AsNp/woo1FI7lbYOAgmMI0VSoWdFu1OH1jEd5oYjv4MolhYoBLbv aIJT63ySekLiffbg56NZRMR4B5knuLF1BH9VUSdDgXKFRT3narxSIPNNruOVHFqtqiyv TDBmFkuaA55ZwvhE/q7UEBZBpDUFoTA5LZthnlGMtAVoHicMARad8IvotL7siLWeQJOV Uq/kxS++BvuDO4jSoz7dkWz4KnqpHMViNNcmffu8EcXnr0wAkN/+2fnmBBhdkMZlK7xo 5BVFu+Jxlqz0/HJwDxk3bMcJQ6kshspTUGy17m90n0HS88p2d5KhnBvEe+gOPM14MBkK 0xpQ== 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=ZXuInPt5XugZp+FubZRX8WPAHVc2hVpGy3We37oEAS0=; b=fCPRuFlQtgvdlj7z57NMUuru5A4Al7nYDWlEcHl4sxITZQp7t83XFlVRIRM6uAvsTz EThl0NvrYH/9jfFpT11brMoJ/SxIizUQgYsmurBVMxrrIThbx9MHC0RdbMPGNe7Ksel3 LBc/BZUYnsGvYecBytGfWiCoMVpKQMkbv/fS25cBve7UMFJUeeljzOw0pLsyM00Y9tnN 1dAhBKCO0RKzT1JG48q6p9kLMRSb/bXK38PNtAAfzdpJxZEw9VSsHrpxRB5vmZ7PGw2d 0Cb7xRwBFJBZFJFpNhpNB3+8kwmUPXfuh1wpHB1OdlGzOAFt84FBhQJuLdhSDYav5iu0 0XSg== X-Gm-Message-State: AOAM533DjvRRw1MsV9dXP5/8SWNbu+eAd2LqhBRNx9QGxhbXfif6AZOb Ll73tmtTobjWX3FWAVBfoi7lXSGbrhm5JQ== X-Google-Smtp-Source: ABdhPJxhuyosdrez0tbHJ9NG+xNNVIsAbFxuJ+0CnE2EHVHGw5LwuJKo16Qj9JGczgu4kzBiroxWyA== X-Received: by 2002:a2e:965a:: with SMTP id z26mr5067140ljh.349.1610705816148; Fri, 15 Jan 2021 02:16:56 -0800 (PST) Received: from endpoint.lan ([185.188.71.122]) by smtp.gmail.com with ESMTPSA id g26sm758033ljn.90.2021.01.15.02.16.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 02:16:55 -0800 (PST) From: Pawel Dembicki To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] arm64: dts: fsl-ls1012a-rdb: add i2c devices Date: Fri, 15 Jan 2021 11:16:12 +0100 Message-Id: <20210115101613.1490837-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-20210115_051659_819413_D132D8E7 X-CRM114-Status: GOOD ( 11.47 ) 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 --- .../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 Fri Jan 15 10:16:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Dembicki X-Patchwork-Id: 12022163 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.7 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,URIBL_BLOCKED, 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 42165C433E0 for ; Fri, 15 Jan 2021 10:18:43 +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 F1437235F9 for ; Fri, 15 Jan 2021 10:18:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F1437235F9 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=TuJfyFqjpFTTa9tdIy3N/1H1vNwPore/rTsIAkiY6Tk=; b=bXSwuybocOwoArdHPm07QC2NR r23G8HUEXYvaDoCs83fvozLlqbWuj8gGFhYkXn6OYz9WKdbSpNgXfd4vNXUnO/swUb48rm1e8v9vs tJMH2RzbxM6MaBYy4xbTQJkcxmmLpVY8FaMVul2mSPa5tFnXKw1kQfUnB8T6jI8PZcZ6gmSoIu89d OJ/WvZqIi5Rg08uauX8GlO+T6/BRppSlCsh5fUB0hgIBR7ATzmzZmYnaQgIIRzlnjK1y/emxKcE7w esFl49xxZico2RLK254wElTsAQbg7r283d/AnElLK7ZYaSSokq/260raIlWYb+gQb1JNDd0D8CS/E C5/cMGGWA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l0MAF-0001cG-KA; Fri, 15 Jan 2021 10:17:07 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l0MAA-0001at-Ou for linux-arm-kernel@lists.infradead.org; Fri, 15 Jan 2021 10:17:04 +0000 Received: by mail-lf1-x12e.google.com with SMTP id h205so12358660lfd.5 for ; Fri, 15 Jan 2021 02:17:02 -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=6fgRlLkwxsmY7BYgCFdgyzj4S+bI1O7GBJW53PDVtEY=; b=TlHMbmMslon+O19Brt5TtQkGwyv26qSkm5vsYY3VFo14F75GVw4EmaAeENHxrHcD4h RLAcNjncj2Q6i02f1xU17AbdqJmAi2fI/fcFx0QcvgZLAIy7uvMwQghEwSlh11gpNHgF C1KXvLq07euYLF8Npqg+/yROO5dwwzg2CqccIsKE8uSYKmLWudo375H9o+MLRa8JJMMN FdIPJQYwXDHWBpbC4OkaorOuy04fHm2RdsUp/pq9OqYXvuXBsfNrdGSuICLTt2i7OjQN bT+6U6CEalaqFJQk4xQbEoHX3aK7ydSueWNtD1zpE7zA18nraJzgdudjnjGSgBAiN0JJ uRVA== 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=6fgRlLkwxsmY7BYgCFdgyzj4S+bI1O7GBJW53PDVtEY=; b=EWC37UTmetOXRPS9Pa8iKoSMTqZH54+QuGWfA8WjO7WxIhY/r9ZODVogVELybFf061 tQhCsLlsmqCvE8uzqjlw9sUDv66MLHm2AwnxaZTvWREAwRl22X8yrgo9nd8MxaKUKZHx 3B/51e0Qcmn14pGaTiGFxRRwE/sXzlhM0vVSza+JhIl7UpQ2gmngEwRiOfp2AdsOIP7i 2NTYEco5gUvtJokv8B+E26o4oxUOiqq7lcXiwQPTFkflKM+xBmVwFLn20fTLqzG1/6Da iXLTOEQ6HiglC5oSuaCp6yAQggMGKLoOoj/r2o8L+WfveGvZakns/JPj+woYkGs728PE KHFA== X-Gm-Message-State: AOAM533U7BVug0f/gTuSxR3SW2MJTgeQTRaKmos6inlAXnMWXYoYsPfi veVYxaVXTdLJF/8nphNZ7l74XSgrV93gkQ== X-Google-Smtp-Source: ABdhPJxTQRfxiWTZ+haizQueztCjKL3UrnWo2+rFVHOeIaOwvfZEDEhqrtFMnDb7ffHtlO+uVHzqsg== X-Received: by 2002:a19:600d:: with SMTP id u13mr5242339lfb.312.1610705820854; Fri, 15 Jan 2021 02:17:00 -0800 (PST) Received: from endpoint.lan ([185.188.71.122]) by smtp.gmail.com with ESMTPSA id g26sm758033ljn.90.2021.01.15.02.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 02:17:00 -0800 (PST) From: Pawel Dembicki To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] arm64: dts: fsl-ls1012a-frdm: add spi-uart device Date: Fri, 15 Jan 2021 11:16:13 +0100 Message-Id: <20210115101613.1490837-2-paweldembicki@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210115101613.1490837-1-paweldembicki@gmail.com> References: <20210115101613.1490837-1-paweldembicki@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210115_051702_896403_8C786410 X-CRM114-Status: GOOD ( 12.32 ) 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 --- .../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..9473d16336a2 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 { + status = "okay"; + bus-num = <0>; + + serial@0 { + reg = <0>; + compatible = "nxp,sc16is740"; + spi-max-frequency = <4000000>; + clocks = <&sc16is7xx_clk>; + interrupt-parent = <&gpio1>; + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; + + sc16is7xx_clk: sc16is7xx_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + }; + }; +}; + &duart0 { status = "okay"; };