From patchwork Sun Jun 25 12:42:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 112589 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6924631vqr; Sun, 25 Jun 2023 06:51:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5elQRBCgNi9NT+guS2v0A2//E5pfuH7bcMpJAHQy3i7Mboy9r4zGJXrBGdYzlflxMTpgqT X-Received: by 2002:a17:90a:6c63:b0:258:8608:2532 with SMTP id x90-20020a17090a6c6300b0025886082532mr16279421pjj.16.1687701106452; Sun, 25 Jun 2023 06:51:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687701106; cv=pass; d=google.com; s=arc-20160816; b=gclC2WUHjOcwFr70L8CM3AtR9BXOD3e+Oi5Z7RWEVcLiEcGnCXNnCkvWOEOtk7dAlR YkFQOpt35EPvg3gb/7lw3NjUgVQgz5qOLqM9zfnznuA8gbmf9deb4m52hlibP5zmK747 H8t8JOozRnWRdlBS+Cj+GKRc/6+pyXVEfjFGo8EnnP4MYT4F/fZeBkrVxBG0N1q9qrZp +15a29aunEsP2XzDLW6EN0j672Den2+7V5kqyTYo8sVM+YZRG1AVBiwr+2hNajPW9HHv 2ewtXEJShu0ZWGYnidzpR3t4hd63PF8rxRn04teztph9bp/wJvZCOU7qSvMWitk/KLBe fw3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ObcxzNlwAI6iJUDtJxg742qBwNMK12wD3xX7ve04JCw=; fh=UHIRJa0FDst9GMKWzGPzDGLtS+5T7in6tdFEzGbhxvQ=; b=wiK22WjT3TTXieiUY+qjR2ro52LhVMtDyI0YzfHg/q4kKg2AOaNcXviBXCjlnlrn0l TZiNa7cZjyJnFeBiVdw/ts4xolNF71UOyUzPT29jAMAQ6uZq55yIkPftic95/SBiYyRZ xbaVqO3dnDntV53gaPWDh2lpaaNSOdGc1ZeIBO/aw7dawAHnLplI2Lsts17mKX+VfZiK 9Sn9f61bqbOn6eeP9lXZ63UzGavTgq+covGNnQpskbCC4txkuv7FYSU8hBTX7XGL7gjX LITvOEHdHqU4RriLQVuWH/WX9s/kuVpNzp6tvVIsPqi3BTsSg0DigezOqwBByxyJNrZP xZqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="TRd7RIY/"; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a17090abc8c00b0025ea1c0edb1si5559291pjr.146.2023.06.25.06.51.34; Sun, 25 Jun 2023 06:51:46 -0700 (PDT) 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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="TRd7RIY/"; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232285AbjFYMjn (ORCPT + 99 others); Sun, 25 Jun 2023 08:39:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232003AbjFYMjl (ORCPT ); Sun, 25 Jun 2023 08:39:41 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2056.outbound.protection.outlook.com [40.107.6.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED53B10DF; Sun, 25 Jun 2023 05:39:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dwppaLhe+x21gQfluV4r0IG/3LzcpSeOCEhUDdKQ/vCvc9PbfHQgTPG0L850XkJ5QFsaZS6eIHXWlJAZnPJQx1/lkvbKWZI/1KMMvAvcS9S6akulGaGvBDNDTut4yXJnd3MahAVxYa9MuU3YmIAITsSQ/KXw2oDhNUB1qFIcB7gCkDn15LrymCeIWr8IiNVI9PqoLYuIRpquL98et4kGKAwAblMgKsTKgqeDgjRRhzy+hGzhUuMyjyOqaSm1ydKxNCrLpw04hfRfBwBtq6NEmnLSNNv9zFytWF8MC9LI+vz7CieVjmsgNgrcOvCdlPOP0JDNwz/ciy1iLne7aXOBeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ObcxzNlwAI6iJUDtJxg742qBwNMK12wD3xX7ve04JCw=; b=ZE6OP7LPcAkEGw1yNc5jlOQQ8NDB6J+3PdOgLeKia+RMCMO8UsHusqI/ZpCiBmK4klpyQhpbAjG9DCd2nnpKfOJwbVhM4PfF3ePgdxb85yytb9xYJ26QQ69LGyHMmw69UeZ8TcSnJjNu+nPuk6b6RdDwE4hniW4Y6skenh5PFm3+Nf5M4hdYEW6IZBRhF7gU4G0ZvMpEWEuBugiTh8GD5pcTGoc1VLbdiypngn+bYwVw2C20VRrb4tFRib7WQpgy0bmpy8yGtpxvk7oTW8+m33tQfk+jRl13yymAh7A/Ik/F5sUU24X792dRJS/zdjeSHiTZf+cDEnk/oOYuYH5S7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ObcxzNlwAI6iJUDtJxg742qBwNMK12wD3xX7ve04JCw=; b=TRd7RIY/ZSj4CuZGPQL4Fns9H9R/b8aadjPn+wtscwDwX6xHj1/SwNRKqrrfYDupXrV/iP9Bs8s8evwoHlcl3JhOpjMvjxGLSdJ/KHDY5z/ePmrY3DXqidsTZwxMXMxOSQmq6fwl7woRyaADxtmlWJuEM5SoCkcLTT8OSDsuaXQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DB8PR04MB7129.eurprd04.prod.outlook.com (2603:10a6:10:127::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24; Sun, 25 Jun 2023 12:38:26 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::efff:43d6:6f46:eea]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::efff:43d6:6f46:eea%7]) with mapi id 15.20.6521.026; Sun, 25 Jun 2023 12:38:26 +0000 From: "Peng Fan (OSS)" To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Haibo Chen , Clark Wang , Peng Fan Subject: [PATCH 10/10] arm64: dts: imx8ulp-evk: enable lpi2c7 bus Date: Sun, 25 Jun 2023 20:42:38 +0800 Message-Id: <20230625124238.4071717-11-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230625124238.4071717-1-peng.fan@oss.nxp.com> References: <20230625124238.4071717-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR01CA0111.apcprd01.prod.exchangelabs.com (2603:1096:4:40::15) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|DB8PR04MB7129:EE_ X-MS-Office365-Filtering-Correlation-Id: 8629266a-8b66-471c-a60d-08db75791273 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Sc42Ok8jZp+CXMYmmyIXNuHIK2QpOUVG/r445b/ldZFW2lKHtfLmNa2LXSrdwqfmz+GgnNdDOECnUh1UX6FsZkzO/XeCThYr4wbYb/ZUVK4uYYl4WzsqcWJJsgDqJdC01OOLz4pnCsiqo8yySTwLRUbDra1SEt6p/VDSIO4LekxOpWXiq33VzrcqxnXM8gCfk1TnU4UhOwe/dwuM5Ljkdqy3ba3XwANtgkGv5kym1mUuRg3/Gcct8LnnRL7Sr3b2G9UAVmvdZMVK2YWCLGUhWI/No2vDmF8uclVntVn2nfkF3t+evJIyUkr032tFK2EBAhak9xYqZRriAplSp+Yh2CMog9J88O0d5mXOBSnNeVSHi1pVgRbVs/iI4fZUnsrOAikh2vQH0PBn0GY3TJWGqSPLCe4715Ujh5zfZfto/1ooDSKS7sTtwhyRFso/8AgqTkkZ23u9mjrwn9+xF+2g5maxYEyhYTjJ/VkucT28h668i4juO25KuqB6kzUrGJ1zc64Hkf8sZ/DP1/MPEsMzGRiwbN73JAa8hdo+jfhdYdnC8i0dA1NH8gxOV7NdiSfYzEtcMt94TFrm524KAMTUhhHqQcSoBiBatSDfUBEvwQm7V1hwehIwaKeAxZR4vJH2bp0Rr1A9VSF1uTnYw8O+pw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(376002)(366004)(396003)(39860400002)(451199021)(2906002)(6486002)(52116002)(38350700002)(38100700002)(6666004)(2616005)(83380400001)(6512007)(6506007)(1076003)(26005)(186003)(41300700001)(54906003)(86362001)(478600001)(316002)(66556008)(4326008)(66946007)(66476007)(5660300002)(8676002)(8936002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3x/P0G7ZOTQ8KQTn74Hva5vz1EalV1Gxt4NQtogjZdKe7RpEzx9cEC0id6Pgxm8+Z8AHXFHRGf2jKxJl+Un96aFfK8ypMItSnmrlojJSFwjOHf3Uf3gQSo76vlfu0CctqSVhe7DFjVdUa/RSkz8iq5RctYhFzIhDOzdDG1kJoewqbRUJTIUSnsri7nMTHfmw98cl8Wv3PyyV/d5gAqc8tCCt9rj0e2BM9KS7aHTjoJ+affahKQAPr7WdjAqRGSKDFFkFcNgDA3ZbHoYa1oCljqtLs9vidjV8x/Aw0SR11KmTfWDxtBRwnSj/ojMpHj9URbf8qW0wbNlIG/EiDvD+hKQDTU+W4rFkXDplF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Eht5F51gK+IEmReWGbvQ7fBGlnzdfeVInUr05yi4+Yzn88t5EVmRPnVFpdxFiCB3LqrTVT5+imqfawkXPUtofzMJGiE5QRBkK7dRz0mv3k+UUi/xYzjHOzlxwclIUDdLzBlWjP9SW6dbidislK4+qseKhWq66y X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8629266a-8b66-471c-a60d-08db75791273 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2023 12:38:26.6672 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9DZwHGR4rqmBPVPqO7DG29e9eMnqEvbKJnzE5oqSZF63Jv7vJp47DOjyFiZfL7t2e5utINDww7cesmU3w7bqOg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7129 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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?1769682875315754542?= X-GMAIL-MSGID: =?utf-8?q?1769682875315754542?= From: Haibo Chen Enable lpi2c7 bus, and enable i2c IO expander. Reviewed-by: Clark Wang Signed-off-by: Haibo Chen Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8ulp-evk.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts b/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts index ab7af705bbca..785108c37210 100644 --- a/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts @@ -120,6 +120,23 @@ &lpuart5 { status = "okay"; }; +&lpi2c7 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_lpi2c7>; + pinctrl-1 = <&pinctrl_lpi2c7>; + status = "okay"; + + pcal6408: gpio@21 { + compatible = "nxp,pcal9554b"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + &usdhc0 { pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; pinctrl-0 = <&pinctrl_usdhc0>; @@ -202,6 +219,13 @@ MX8ULP_PAD_PTF15__LPUART5_RX 0x3 >; }; + pinctrl_lpi2c7: lpi2c7grp { + fsl,pins = < + MX8ULP_PAD_PTE12__LPI2C7_SCL 0x20 + MX8ULP_PAD_PTE13__LPI2C7_SDA 0x20 + >; + }; + pinctrl_usdhc0: usdhc0grp { fsl,pins = < MX8ULP_PAD_PTD1__SDHC0_CMD 0x3