From patchwork Wed Mar 8 12:52:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 66211 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp323521wrd; Wed, 8 Mar 2023 05:15:15 -0800 (PST) X-Google-Smtp-Source: AK7set+Mj71gexBqoJnfHDbS5/w5mqSs8TplD0HClNwC++W6BZxoMIRSHZEsgJLsVgx16P4/MIrc X-Received: by 2002:a05:6a20:6a1d:b0:c7:6f26:ca0 with SMTP id p29-20020a056a206a1d00b000c76f260ca0mr19764363pzk.54.1678281315606; Wed, 08 Mar 2023 05:15:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678281315; cv=none; d=google.com; s=arc-20160816; b=ToMFr6aOaeimYgP8AEBpOIGPr8MiH5MT5J1akgrYZdh/QFp08C3au2fCO/3ltBOgxm m6UtGHeghseLVxhcYF4c2MXxICGkTMKtAEy2G/dtXr6yYZTFFXK5r0Hy0tixf5I5Hc8q 2K2rP4yH87sjX1DDavAp0EsNlVHEO9rGxe42w9uWMCrfijymnvDeoBQ3hO91+4az9BMU g++GlwTS9Hwlr3dH93lZjhD3D22749sqdz+3RwgpSM7KxVjrlpshvHn5p1De1HnC/O15 4bAlHlmuKvuuxIneSPu6NCERDVTuMi2XWWtfoMxlwJ9bial2L1MVrGF3AWAgLHPuK0O7 asWQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uAJJnSEkUKmAY6aXVfnS2IAMhfZ2XtGZLy29lInlm4M=; b=S8SZWEQsrLiYsrF1yba0a/Ir4RNgdnEnc2S98XhrB4in13GqIZf46M8FIS3LmVqQo+ k4pB7RezSCHlwIITIJ1z0tcc6kR4YnYY+ntChiIj2AI9AL0g2x4ZAm1qiyMB9+tXHNop wFWUCyBEwcg1PIe9/eRZ+RUz2rl8Ob1ed1MZ43S4Yc9y7e1f3vFwhOUtPv1hx2+0D0xc +GYTWcQ6jB5U1JtSEsEF8P4Gs6nCF/VfYCikU8LlHVs+/szooeoPCJq6kBQLNgblo/za gCabg25cOhrYZpK430HmUaMcAUZxPf2nzJ5xkdwe3Jl0N/C2Q1jKJoC7pPfyffT2Q+rj pqUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=Hd9ky80N; 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=pass (p=NONE sp=NONE dis=NONE) header.from=pschenker.ch Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c22-20020a621c16000000b005a8a4675cecsi14409235pfc.6.2023.03.08.05.15.02; Wed, 08 Mar 2023 05:15:15 -0800 (PST) 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=@pschenker.ch header.s=20220412 header.b=Hd9ky80N; 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=pass (p=NONE sp=NONE dis=NONE) header.from=pschenker.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229691AbjCHNCo (ORCPT + 99 others); Wed, 8 Mar 2023 08:02:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231540AbjCHNBP (ORCPT ); Wed, 8 Mar 2023 08:01:15 -0500 Received: from smtp-42a8.mail.infomaniak.ch (smtp-42a8.mail.infomaniak.ch [84.16.66.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6074C48B6 for ; Wed, 8 Mar 2023 05:00:15 -0800 (PST) Received: from smtp-2-0000.mail.infomaniak.ch (unknown [10.5.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4PWsgJ1XnbzMqs7l; Wed, 8 Mar 2023 13:53:16 +0100 (CET) Received: from unknown by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4PWsgH5C43zMslsF; Wed, 8 Mar 2023 13:53:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1678279996; bh=JXingivvb7re9pagMlQsVFdFYwLAWOaPZ43ldOrpBVA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hd9ky80NPbUHCYLIp5NSLNVK5GRSGqWjIra8CyYkHy8B70PC9BUiCoUbvbGIINihE f0/SScb8T8q1I2Uu7mLcBuzEZy/MBPNyjjLLr54smfY2xBLODmmNrcs9vGuIzRI1ke yqQhOO0//nWMTontZQhO+8yls45NirzOuFkKwgYg= From: Philippe Schenker To: devicetree@vger.kernel.org, Shawn Guo , Sascha Hauer Cc: NXP Linux Team , Krzysztof Kozlowski , Rob Herring , Pengutronix Kernel Team , Frank Rowand , linux-arm-kernel@lists.infradead.org, Fabio Estevam , Philippe Schenker , linux-kernel@vger.kernel.org Subject: [PATCH v1 16/25] arm64: dts: colibri-imx8x: Add colibri pwm b, c, d Date: Wed, 8 Mar 2023 13:52:50 +0100 Message-Id: <20230308125300.58244-17-dev@pschenker.ch> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230308125300.58244-1-dev@pschenker.ch> References: <20230308125300.58244-1-dev@pschenker.ch> MIME-Version: 1.0 X-Infomaniak-Routing: alpha X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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?1759805508714334284?= X-GMAIL-MSGID: =?utf-8?q?1759805508714334284?= From: Philippe Schenker Add Colibri PWM_B, PWM_C, PWM_D to the module-level device-tree and set the status to ok on the eval-board. Signed-off-by: Philippe Schenker --- .../dts/freescale/imx8x-colibri-eval-v3.dtsi | 15 +++++++++++++ .../boot/dts/freescale/imx8x-colibri.dtsi | 21 +++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi index 77222d76bd95..625d2caaf5d1 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi @@ -56,6 +56,21 @@ &lpuart2 { status = "okay"; }; +/* Colibri PWM_B */ +&lsio_pwm0 { + status = "okay"; +}; + +/* Colibri PWM_C */ +&lsio_pwm1 { + status = "okay"; +}; + +/* Colibri PWM_D */ +&lsio_pwm2 { + status = "okay"; +}; + /* Colibri UART_A */ &lpuart3 { status = "okay"; diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index b849b378b017..180a1d940b8d 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -259,6 +259,27 @@ &lsio_gpio5 { "UNUSABLE_SODIMM_184"; }; +/* Colibri PWM_B */ +&lsio_pwm0 { + #pwm-cells = <3>; + pinctrl-0 = <&pinctrl_pwm_b>; + pinctrl-names = "default"; +}; + +/* Colibri PWM_C */ +&lsio_pwm1 { + #pwm-cells = <3>; + pinctrl-0 = <&pinctrl_pwm_c>; + pinctrl-names = "default"; +}; + +/* Colibri PWM_D */ +&lsio_pwm2 { + #pwm-cells = <3>; + pinctrl-0 = <&pinctrl_pwm_d>; + pinctrl-names = "default"; +}; + /* On-module eMMC */ &usdhc1 { pinctrl-names = "default", "state_100mhz", "state_200mhz";