From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99958C433FE for ; Thu, 26 May 2022 03:16:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234935AbiEZDQq (ORCPT ); Wed, 25 May 2022 23:16:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229811AbiEZDQp (ORCPT ); Wed, 25 May 2022 23:16:45 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47AB8EE3C; Wed, 25 May 2022 20:16:44 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d22so376229plr.9; Wed, 25 May 2022 20:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=f6jLMtJrLguZvRlHX76uP5bxS6yNfg/KmTP+kPMFw2A=; b=NeNH04nEYmKlxRrFKbjU/A5gGFIWu4QfR8rsFuFLIoMj/OrRI/CL7ER+lH9qLFt6v7 ooZ8tD4znoyV6cfroKC0X30K+JpBNll7tDwyoQEOt1T0x31lWIx3QTniGgdXW7dIvOtc b4aaIVHO7NsdfcTDz7PzU/L+pt0XpbvhZgKefdOaQjl+N/0EiOKDACOvqf0WbJ2hsd8J 4w2hNrFaONz10ivo7QxmqlKWabHG9lJ26TdaR4QRjHgfuLuKGy51TlVwRzWEHXe1l3Yn SOYziVzsEMKCg13T/uWvBClWFNplGswFouHdSq9sQdGi607cYz47CyI8t2H7vZtNMnC7 gTWg== 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; bh=f6jLMtJrLguZvRlHX76uP5bxS6yNfg/KmTP+kPMFw2A=; b=b6rcC9AyD+wbdUJyly86o70sIoLBKFjVjtqKpryGGBZ9nmr4QzJOoX6Hqq3UySO/3O JtzvtDeWn/XbJFxn4dfTMH2jubhUV3aGDn/fPDk9c6q04yKCseRjxuJY8F0sC4L6HDZV ngOKMup9yrkS6yLzd9ei+BHdW9dzCMBaeO9Y981hSbosxUR+kPTRZtGWA053lfoP/AGk Svk5nOKJhecCSpn9b7lXPqcNiWTBvEs6XETuvRdtrV0jLPOSGpA6r/KZfe9ASSNYTxEc ZmRLG97PX7BQexq6Z2hwHVsgLVEv/BIERLM1DtTN5p12qeFj54fS5lrctzV/hRWlUYkM jDZg== X-Gm-Message-State: AOAM532xvOHA3t5pG2FUPNCTdA415M6nlLuWI3yXZV7E9nD1cQBxJfTk UcMsJrcIqPuW9yf7adG3zYg= X-Google-Smtp-Source: ABdhPJz/ng9MEzMr2C0bCqTgfwmdUaqu1tPBtgobFs5R3bzVReetE9dkkSyLpZEelrkVQ1dPShLBuQ== X-Received: by 2002:a17:903:2309:b0:163:5c82:640e with SMTP id d9-20020a170903230900b001635c82640emr5614243plh.100.1653535003625; Wed, 25 May 2022 20:16:43 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:569:6b12:f420:101e:bfc0:b57c]) by smtp.gmail.com with ESMTPSA id t25-20020aa79479000000b0050dc7628181sm152964pfq.91.2022.05.25.20.16.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 May 2022 20:16:43 -0700 (PDT) From: cy_huang To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com Cc: pavel@ucw.cz, deller@gmx.de, cy_huang@richtek.com, lucas_tsai@richtek.com, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Add the property to make ocp level selectable Date: Thu, 26 May 2022 11:16:33 +0800 Message-Id: <1653534995-30794-1-git-send-email-u0084500@gmail.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org From: ChiYuan Huang This patch series is to make ocp level selectable. Some application design use small inductor. And it's easy to trigger the over current protection. Due to the OCP limit, It make the brightness current not match the configured value. To meet the HW design, the ocp level have to be selectable. ChiYuan Huang (2): dt-bindings: backlight: rt4831: Add the new property for ocp level selection backlight: rt4831: Add the property parsing for ocp level selection .../bindings/leds/backlight/richtek,rt4831-backlight.yaml | 8 ++++++++ drivers/video/backlight/rt4831-backlight.c | 13 +++++++++++++ include/dt-bindings/leds/rt4831-backlight.h | 5 +++++ 3 files changed, 26 insertions(+) -- 2.7.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7975C433EF for ; Thu, 26 May 2022 03:16:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DBBF410E0A4; Thu, 26 May 2022 03:16:45 +0000 (UTC) Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by gabe.freedesktop.org (Postfix) with ESMTPS id 47B5110E222 for ; Thu, 26 May 2022 03:16:44 +0000 (UTC) Received: by mail-pj1-x1036.google.com with SMTP id m14-20020a17090a414e00b001df77d29587so3305674pjg.2 for ; Wed, 25 May 2022 20:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=f6jLMtJrLguZvRlHX76uP5bxS6yNfg/KmTP+kPMFw2A=; b=NeNH04nEYmKlxRrFKbjU/A5gGFIWu4QfR8rsFuFLIoMj/OrRI/CL7ER+lH9qLFt6v7 ooZ8tD4znoyV6cfroKC0X30K+JpBNll7tDwyoQEOt1T0x31lWIx3QTniGgdXW7dIvOtc b4aaIVHO7NsdfcTDz7PzU/L+pt0XpbvhZgKefdOaQjl+N/0EiOKDACOvqf0WbJ2hsd8J 4w2hNrFaONz10ivo7QxmqlKWabHG9lJ26TdaR4QRjHgfuLuKGy51TlVwRzWEHXe1l3Yn SOYziVzsEMKCg13T/uWvBClWFNplGswFouHdSq9sQdGi607cYz47CyI8t2H7vZtNMnC7 gTWg== 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; bh=f6jLMtJrLguZvRlHX76uP5bxS6yNfg/KmTP+kPMFw2A=; b=O431bANB5kJJlZnDWH1zJPc8Hl7ORW77Izwt2FX9zkx5yiaKGyDl90OA9mfv3yRla4 SPzdAzppwV58jBiytvEjNC/+ODWih/gFVehToOH8YzdIzykHgeDr93RdRjTigw+wnzN1 q+o0s42QROxmc4vaDyUqjP1uBDr0ydxud97Qrwf9gv73JvfW4jhzPWpuoZbMsaJK2Jdw fPVKp+IsZyYxgv8uLqNdtqMi7e65L8ODkzgWTdMaqSqbPuOjxvw+jchS8YGTIlnvfr2j kiK/lOwBBuLi6DEV6tPZKPFGX7rutGyFMeosvjGfAPQy7H9mLv6HJuD/QbeYZ4XD3q6y cDFA== X-Gm-Message-State: AOAM5306bGoqcA4WJJwQOwV+NuHUaIs5elPjCuqljDS05h80FGzz77fC 753fu8BcrJYyGHtcQk89V2tXN2dqqrs4fQ== X-Google-Smtp-Source: ABdhPJz/ng9MEzMr2C0bCqTgfwmdUaqu1tPBtgobFs5R3bzVReetE9dkkSyLpZEelrkVQ1dPShLBuQ== X-Received: by 2002:a17:903:2309:b0:163:5c82:640e with SMTP id d9-20020a170903230900b001635c82640emr5614243plh.100.1653535003625; Wed, 25 May 2022 20:16:43 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:569:6b12:f420:101e:bfc0:b57c]) by smtp.gmail.com with ESMTPSA id t25-20020aa79479000000b0050dc7628181sm152964pfq.91.2022.05.25.20.16.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 May 2022 20:16:43 -0700 (PDT) From: cy_huang To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com Subject: [PATCH 0/2] Add the property to make ocp level selectable Date: Thu, 26 May 2022 11:16:33 +0800 Message-Id: <1653534995-30794-1-git-send-email-u0084500@gmail.com> X-Mailer: git-send-email 2.7.4 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org, lucas_tsai@richtek.com, deller@gmx.de, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, cy_huang@richtek.com, pavel@ucw.cz, linux-leds@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: ChiYuan Huang This patch series is to make ocp level selectable. Some application design use small inductor. And it's easy to trigger the over current protection. Due to the OCP limit, It make the brightness current not match the configured value. To meet the HW design, the ocp level have to be selectable. ChiYuan Huang (2): dt-bindings: backlight: rt4831: Add the new property for ocp level selection backlight: rt4831: Add the property parsing for ocp level selection .../bindings/leds/backlight/richtek,rt4831-backlight.yaml | 8 ++++++++ drivers/video/backlight/rt4831-backlight.c | 13 +++++++++++++ include/dt-bindings/leds/rt4831-backlight.h | 5 +++++ 3 files changed, 26 insertions(+) -- 2.7.4