From patchwork Tue Mar 14 10:24:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 69451 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1677294wrd; Tue, 14 Mar 2023 03:35:44 -0700 (PDT) X-Google-Smtp-Source: AK7set8Mhvid9+94jV4Kg+YycAUtWpxSDA/wHwhBR/j+2sCiGldzcMRwNvHucPhn4JeBN1JBfyee X-Received: by 2002:a17:90b:3a88:b0:23a:6d16:8e36 with SMTP id om8-20020a17090b3a8800b0023a6d168e36mr12652444pjb.12.1678790144109; Tue, 14 Mar 2023 03:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678790144; cv=none; d=google.com; s=arc-20160816; b=AKlgosjYnFYpgv98BQMVW1PIThJET6Tiwf8/5h/MKgP8LL0QjwGcvR6Y1hjtNlWWc4 H53RJeL0toZychOzDt03DPMrvwMxN108LQEklJ7nSWr0ulMRl7398pz6VS691I/Y2rNQ 1U15LPDkxtXCBVeiBoqDr7Q3m9Fsgl29FpZOMdw0kMXEcMitvn2QLgXIOx/CmIzcMIM2 t0nBLY/ydNOk7y+Cu0oASuMlD/5KQv0tFZB1XzLaEwEkvMvyDQb8jysgR4KyJtslMxsw dn1fD8jRdAxpIetAzRgqUvuztujK+q97GwS7r8YnNPSieEmCzQKJj5nbgwWKxeHN6DSw Yjyw== 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=qJ9eQBW66UtMPsk+/Ck9tULVYZPBdGhEYnjmfxhAeeY=; b=NZ/rYczpn3lxMI+EfQ0jk8c7T5v7f99Mb3Q2yL3+e0k688BbE62WJq58zjACEGG+OI zsiJmKl7oOPcR/PGj6Ok9bbab6oNjL741M2z+vjrfzeY1FOhL8dxwyxIedPJMOjEhmmy PJ3iiUTX+Mo+frkQmfCdk0yj6HwjikUGdTp+9tKQzFNZVIWxtlVJA59PgEBC1xGhnAb5 GgAtQp5aOlU/v9W1PhYCr2Hh5SnOsGGiXhhP5CaFaa/UmU5rYyBnMlyAPZ306I4cA2Yj XAW3fh0feMC9DT9TdKkyuQWav7LuvNq2qF05+45P1+nwbA2dgyjW6kSltSQE+e8aLTHy rZZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=jajtVam3; 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 pi14-20020a17090b1e4e00b0022c9594aaf4si2232471pjb.184.2023.03.14.03.35.31; Tue, 14 Mar 2023 03:35:44 -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=@pschenker.ch header.s=20220412 header.b=jajtVam3; 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 S230394AbjCNKZ6 (ORCPT + 99 others); Tue, 14 Mar 2023 06:25:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230523AbjCNKZE (ORCPT ); Tue, 14 Mar 2023 06:25:04 -0400 Received: from smtp-190e.mail.infomaniak.ch (smtp-190e.mail.infomaniak.ch [IPv6:2001:1600:4:17::190e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E01A97FF2 for ; Tue, 14 Mar 2023 03:24:35 -0700 (PDT) Received: from smtp-3-0000.mail.infomaniak.ch (unknown [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4PbV4s3XKTzMqPFr; Tue, 14 Mar 2023 11:24:29 +0100 (CET) Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4PbV4r6zXWz2N45; Tue, 14 Mar 2023 11:24:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1678789469; bh=LudF0hu2w2JADBbt/W9Ar1NM5GzhCrjnoA+Nvc91nGM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jajtVam3AXdw6lYvxWAmL7cURTDlcgqhk58f87e1lEKi+XebpeMAbLSrVNF+9rvlx /Vgfps2mFSNKuSyOn/DUI9z0t9WlFTwAx5OqVuboWTmDPRWTMl6Djv340PfA4JaI9b iCVc6saS14YlazKm61QXbrx7mS3BOUpjo6fOZM08= From: Philippe Schenker To: devicetree@vger.kernel.org, Shawn Guo , Sascha Hauer Cc: NXP Linux Team , Frank Rowand , Rob Herring , Krzysztof Kozlowski , Fabio Estevam , Pengutronix Kernel Team , linux-arm-kernel@lists.infradead.org, Philippe Schenker , linux-kernel@vger.kernel.org Subject: [PATCH v2 14/23] arm64: dts: colibri-imx8x: Add colibri pwm b, c, d Date: Tue, 14 Mar 2023 11:24:00 +0100 Message-Id: <20230314102410.424773-15-dev@pschenker.ch> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230314102410.424773-1-dev@pschenker.ch> References: <20230314102410.424773-1-dev@pschenker.ch> MIME-Version: 1.0 X-Infomaniak-Routing: alpha X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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?1760339054520283137?= X-GMAIL-MSGID: =?utf-8?q?1760339054520283137?= 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 --- (no changes since v1) .../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 1d0bad085ad4..68e34516961a 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri-eval-v3.dtsi @@ -51,6 +51,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 778f2f43a8c0..61033b79e44e 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 { bus-width = <8>;