From patchwork Wed Mar 16 09:00:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1606044 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=cxHLEfv+; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KJPPn2QS9z9s0m for ; Wed, 16 Mar 2022 20:00:43 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1E713838F5; Wed, 16 Mar 2022 10:00:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="cxHLEfv+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9A9AE8301E; Wed, 16 Mar 2022 10:00:22 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 97E948110F for ; Wed, 16 Mar 2022 10:00:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tommaso.merciai@amarulasolutions.com Received: by mail-ej1-x62e.google.com with SMTP id bg10so2715737ejb.4 for ; Wed, 16 Mar 2022 02:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=i9GwvCMXFpZDDsXi4k3ohWmNOCIudUIlxGBY6/XBF/E=; b=cxHLEfv+6xZTbHIncYLT3HunmIygaWuWCBPmiEYjCzDE39vXgF63cRYFZv1lfXaSZv 5dL0vcIOXq9oIIkGbVn7P4js0mxLSzx4j2eW8J9h/DBBJelgu3sPuOmlgUwVySQxL1E3 ZzIvVdo2HztojP814QLCdWWblcHhk0J04ENf8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=i9GwvCMXFpZDDsXi4k3ohWmNOCIudUIlxGBY6/XBF/E=; b=rpLBI+sPtBTSDFcTFV6OkPH5ghuEbVaV1T0rEGxupZnxR9As21rUWShq3DPu5l2Se+ 2DcBNzJ6/tPpW499kVddgbfFyXMph/K3NR1mAH4H0Camu3dU/YoVq2NAFGkxjnUX7SaS polaNXRahahdv6MeNEqm/Fw23odLYEUVA9ie3XJKxbRctoMx8/5j2f/9i5vUwpuy2p8y kQ8NKjK1QyVmnza+rLyilDJyP0whJg2pDmNKu+HkeCFUrvem5/jyvaoz4t8rYAezxuaH GZhmtlMyWhjSs6UOnVhW8avePoMOGprZ47oi0rUQMwNHFmgKosiIPgI8wYw0/dhcO20n ahWg== X-Gm-Message-State: AOAM530br5N9FZES8tDFnW5vppdOkDTmy/iSzZgzWWPhxVk93PDxCZYc u5QQ1RBliXp1A0+M+W+g1XJ/AA== X-Google-Smtp-Source: ABdhPJzidFBiewdnDGvoPWVo3pNBhf3ROMabi12nnEeGhbkc1NPtaoPzq0HnqalBR3RKpSe7/eRA6g== X-Received: by 2002:a17:907:d90:b0:6db:a372:e61c with SMTP id go16-20020a1709070d9000b006dba372e61cmr20158598ejc.276.1647421217963; Wed, 16 Mar 2022 02:00:17 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-56-61.cust.vodafonedsl.it. [188.217.56.61]) by smtp.gmail.com with ESMTPSA id sa13-20020a1709076d0d00b006ce3ef8e1d4sm603793ejc.31.2022.03.16.02.00.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 02:00:17 -0700 (PDT) From: Tommaso Merciai To: Cc: tommaso.merciai@amarulasolutions.com, Peng Fan , Alice Guo , Andrey Zhizhikin , Ye Li , u-boot@lists.denx.de Subject: [PATCH 0/9] imx8mm: add pwm-imx backlight support Date: Wed, 16 Mar 2022 10:00:04 +0100 Message-Id: <20220316090013.8150-1-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Hi, This series add support for pwm/backlight on i.MX8MM evk: 1. Add pwm1/pwm2 base address registers defines 2. Add defines for pwm control register field 3. Add struct pwm_regs 4. Add enable_pwm_clk function, configure and enable pwm clock control register 5. Add enable_pwm_clk function in clock.h 6. Add CONFIG_IMX6_PWM_PER_CLK in imx8mm_evk.h 7. Add backlight/pwm1 dts nodes support for iMX8MM evk 8. Enable pwm clk into spl 9. Enable support for pwm-imx/backlight for iMX8MM evk Regards, Tommaso Tommaso Merciai (9): arch: mach-imx: imx8m: add pwm1/pwm2 base address arch: mach-imx: imx8m: add pwm ctrl registers fields defines arch: mach-imx: imx8m: add pwm_regs struct into imx-regs.h arm: imx: imx8mm: add enable_pwm_clk function imx8m: clock: add enable_pwm_clk function configs: imx8mm_evk: add CONFIG_IMX6_PWM_PER_CLK config imx8mm_evk: spl: enable pwm clock arm: dts: imx8mm_evk: add pwm1 backlight support configs: imx8mm_evk: add pwm backlight support arch/arm/dts/imx8mm-evk.dtsi | 21 +++++++++++++++++++++ arch/arm/include/asm/arch-imx8m/clock.h | 1 + arch/arm/include/asm/arch-imx8m/imx-regs.h | 19 +++++++++++++++++++ arch/arm/mach-imx/imx8m/clock_imx8mm.c | 11 +++++++++++ board/freescale/imx8mm_evk/spl.c | 4 ++++ configs/imx8mm_evk_defconfig | 5 +++++ include/configs/imx8mm_evk.h | 3 +++ 7 files changed, 64 insertions(+)