Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp252444pxb; Fri, 15 Jan 2021 02:18:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGcdEEECxIooocgmAIAfOInCtzONLk6SlEW67UWzORn8ZlrusYYarNgt+KK/dR5Slw8NPm X-Received: by 2002:a17:906:c10e:: with SMTP id do14mr8620718ejc.166.1610705919631; Fri, 15 Jan 2021 02:18:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610705919; cv=none; d=google.com; s=arc-20160816; b=gtOepwky3goaXzoPQo9KTZ/7LEy7LLJ6OOQ/T2T+eQR0Q7M2R10WWTCIaaZHk7PVcs fU5rPAYGnnYM1e0iGPQMBPVX0VfK0B76ylFgT7xkcIddNV8TA2LV0aJYXODaS8DgOZam s5AlZ2oA5hYje6AE++bzTX0DM5ohC8UzE5AAHiEraLbYVljw6e4G/SBguwCMGe9CuyrK hbw7zSCm+uSCnENlgy85ib3KusXd3SMan5iHf1WnYbwG+NDVv47LsSHkAEk6Lw3YVxaz lvkzZ0BLfEXlpgrTFtp4UFu3fO9+6QFVlNEFGIFxmmoYgl5KMjrydk0w7D5evk0G3CVZ MITA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ZXuInPt5XugZp+FubZRX8WPAHVc2hVpGy3We37oEAS0=; b=f0Oo4yQCVpb6SFrmnqR6Ay3x8OBjY4vIca3/k3CzjrcUXI9Dt9BvUhOrwVdckYJ9VZ T/39qbFkTNLExUG27/MVtgvefkckU8sUih+zteEl6YZovk7qaCjp54Kl6BC/VGHBprek GJO1wnWpcl4S0F9PF7bZjOogGPwD4d87AxuG/WovImHDtWdNwG7SX6Pc8ZFYmYJ9bpp4 SQGcT2ToYr+c4bFemI9xzOVc2eCuNtDhX2GayUDZYKj5N+IzfSi6SSU30ECwO4QU/Dol p/VHqbT1lCwd7Xt70vKq2aiv0OzrkIoOGhwB1CN/GImk64U5QUWsJ34/iDliFgkarzYm rnkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Az69gZ4n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si4034632ejk.668.2021.01.15.02.18.16; Fri, 15 Jan 2021 02:18:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Az69gZ4n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728854AbhAOKRi (ORCPT + 99 others); Fri, 15 Jan 2021 05:17:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726652AbhAOKRh (ORCPT ); Fri, 15 Jan 2021 05:17:37 -0500 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 955B7C061757; Fri, 15 Jan 2021 02:16:57 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id n8so989326ljg.3; 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=VbFpOVrCcddyI79jsIFvHoA4a2w5SJcWHlIobUycPBq/pZLvIIzNCbbwNcoLPGOK18 Xr3qO5XET98tNGpi/S5tgKyTQNg3D60HI8ZhCFkOHvbjVwBATgFfzMX4Iymy01fiOOXi vcAjPwA0p9WSBgK8r7oUGzepUoS91J59wOGLJJbsfPHINOdIPDt6P0xoxy4LJoU6zTgL rb8+/rRJftPFNBLp1cOMpxBoyFirZAjmifPcSQRpO+YytLHhlXImNkIzkqYQXqD4oGUg Uv8uBCD8/iKPgI3XSJI9TDFu/zjb47mK15NlTVLjiZgAaexTSGsdPUEZiliIYh6jEuc3 jPMQ== X-Gm-Message-State: AOAM531l4bhNao3rbTf1UXY6lVItt/gnYeyG1QAm/NTmUns6AjjGpuG0 7GrJG5lAVNzfWrqYdLkcjNsTf91bwxJ+xQ== 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 Cc: Yangbo Lu , Pawel Dembicki , Shawn Guo , Li Yang , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 { -- 2.25.1