Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp451576lqo; Fri, 10 May 2024 05:14:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxdpoAJtZsLxcCfFTt7jTdB8mg/Q3TI0hlK01MCDbGiPZlzxPUS4Ab70sykmdn8HFxG2ydRy/NWSXc+qYNkKrEV5u8iWSxiUyzjULOHw== X-Google-Smtp-Source: AGHT+IFI+29twkgHHiNvwlyr/UMghivwOvwdvSGR1DxTKEciHa7m+RTyFRqBIxMKYL/RIPyJfLek X-Received: by 2002:a05:6a21:4984:b0:1af:af6b:dc83 with SMTP id adf61e73a8af0-1afde1b7021mr2646188637.41.1715343249145; Fri, 10 May 2024 05:14:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715343248; cv=pass; d=google.com; s=arc-20160816; b=ETy07Hh7ODkaGNA/bHEtCtrn6Vn6e1nt2AyC+8QgG5sdqsPUF9RSiFcTCHsu/y44M7 l9MAkpXTyQrmiz4TAURqI44+5hBP1+T6537rr9X2PCf0mZOE0+VPrlo4S+PvrA/2TvFP pmiyUcYbbgyerrV9KThWhAFkDZQ9iAt4rvQc3Z4ruL9+ortI8Rz6SsI077XbmFRup7cW KC6KHR6EKnOxIxk8i2fd3Wr6sm3o7ql/VUPLQGTtMkdL0kd6Fw5m7zGQWFfqHXHVhoPO 2an0QlxSQ0UQOXwWuVRcdI7TZs/Ze8RTZ9SK1McGtInNAL5lVH688xOzStSqptGAMbXr igbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature; bh=kYe9ZI1AYvspxxfDG+XfuzgrrM/o/IJU8D7L1/2gLHw=; fh=qPRq5XK4fWV0/iYtozG4A3WG6T1iyjVlgVQyi05onrM=; b=k7TX4ZgglFA/yWIqkDVs/HRWEQSwHSE63ZzvHpfg1aQ+W7zxfUZC0537wg2/k2I7aa YU8bR9RNg6jy/dhpjao/EAcHgGFi48JErVYWRdl/UVjbtz4tma4x/CEMZALJIxy8VGEo yCsNvqQiY749n0Nf7GtL9UvkE+T1GYkFdefGRopxajRifxXsjga182pJJrwIbi74aYI2 1EiwvlUTp0qk7FtmGFFJsY7MmwGOwOadVzDJkTbVTD3BD2XsOtplYn8H/iVJoodLDFtz POQEvM2jJ3+ggLNfIjakpbJTgWBBD9FrtNBNIX5JgnZdPA0WNJd5dJM91i6NOxu20oJK q6rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@richtek.com header.s=richtek header.b=iYOAOiha; arc=pass (i=1 spf=pass spfdomain=richtek.com dkim=pass dkdomain=richtek.com dmarc=pass fromdomain=richtek.com); spf=pass (google.com: domain of linux-kernel+bounces-175757-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175757-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=richtek.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a96ae7si3546633b3a.127.2024.05.10.05.14.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:14:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175757-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@richtek.com header.s=richtek header.b=iYOAOiha; arc=pass (i=1 spf=pass spfdomain=richtek.com dkim=pass dkdomain=richtek.com dmarc=pass fromdomain=richtek.com); spf=pass (google.com: domain of linux-kernel+bounces-175757-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175757-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=richtek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DB198282905 for ; Fri, 10 May 2024 12:07:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46C4416FF5B; Fri, 10 May 2024 12:06:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=richtek.com header.i=@richtek.com header.b="iYOAOiha" Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2902616E87D; Fri, 10 May 2024 12:06:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.130.44.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342815; cv=none; b=skysa6huLjwPIttjdGnkhaAHc3ou23XTRV6EtdbRZHBOuyPfvIGEM9uXoNo0b/AzLFZYfakX3VlBiGD6h2LhuLntsdv4PrfpyAcGqdSNarlneeHVYqWZ/oXc6tspenLZDxPZAxcZbY/X+o8KQCw2K6TOaOOrvnuGIpbi8aREfdA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342815; c=relaxed/simple; bh=6+mjEp9JC8DJZoFC2C430QAOpkPj8rkwIDseOCLsJlo=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=I56BLnOIuAfkxY7pwyLwNLbUTEbrW6WhS+2GEcV0QgQkl1g4G/JjYEIVV8427n3wvZ3wHGrcIpB33tpex1BVr+DmCjTnakDaplmMnFdExREuiaeATNNwcfysDvil57AAYhF+in8/R8QB9DcS3+8lFCbWrLVwYVljJcWFGwx1wTk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=richtek.com; spf=pass smtp.mailfrom=richtek.com; dkim=pass (2048-bit key) header.d=richtek.com header.i=@richtek.com header.b=iYOAOiha; arc=none smtp.client-ip=220.130.44.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=richtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=richtek.com X-MailGates: (SIP:2,PASS,NONE)(compute_score:DELIVER,40,3) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=richtek.com; s=richtek; t=1715342805; bh=kYe9ZI1AYvspxxfDG+XfuzgrrM/o/IJU8D7L1/2gLHw=; l=1571; h=From:To:Subject:Date:Message-ID:MIME-Version; b=iYOAOihaRt8jcYPDhhrv7tzeEsC2PGddfjDwC7Oi5t0bGSnDx5/H3s36/YfYJDvI2 Iegan8bibnAnpqpzh2kmtXa65FMxmmfcBPo/uBx/TzF0TlQALy3rXG5n5SNAQ3pduT XfePqs3HGIVw3qoESh9zrxEieXQu2hxamZk63tAwT+qCdC6EZKz2B6sGeLwfevHkr/ VZXNJqMa8awD+p7y+NHVeURgMl0MGchNmAZz+e/M0KL4WQ3ZQKrzL2JMccrWERcRWX tQSHMi/5ShSXu5GxCnBJeiaGaj4e6exNnzTvq0uFtlNuTROvfE4O0sVZd2FBL7vl2a LvtavEO8phpYQ== Received: from 192.168.10.46 by mg.richtek.com with MailGates ESMTPS Server V6.0(3213220:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Fri, 10 May 2024 20:06:28 +0800 (CST) Received: from ex3.rt.l (192.168.10.46) by ex3.rt.l (192.168.10.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Fri, 10 May 2024 20:06:28 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex3.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Fri, 10 May 2024 20:06:28 +0800 From: Alina Yu To: , , , , CC: , , , , Subject: [PATCH v3 0/6] Fix rtq2208 BUCK ramp_delay and LDO dvs setting Date: Fri, 10 May 2024 20:06:19 +0800 Message-ID: X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Hi, This series patches is for hardware modification of RTQ2208. ramp_delay range of BUCK is changed. The maximum ramp up and down range of BUCK are shorten from 64mVstep/us to 16mVstep/us. The LDO's Vout is adjustable if the hardware setting allow it, and it can be set either 1800mv or 3300mv. Additionally, the discharge register has been moved to another position. In this version, a software bug has been fixed. rtq2208_ldo_match is no longer a local variable. Thanks, Alina yu --- Change in v3: - In Patch 1/2: - As discussing in v2 series, add 'richtek,fixed-microvolt' property to specify the fixed voltage - In Patch 2/2: - Move Fixes to the start of the series - Seperate LDO vsel and discharge change to seperate patches - Add "richtek,fixed-microvolt" to specify LDO fixed voltage - Check specified desc->fixed_uV matches with constraints->min_uV and constraints->max_uV --- Alina Yu (6): regulator: rtq2208: Fix invalid memory access when devm_of_regulator_put_matches is called regulator: rtq2208: Fix LDO vsel setting regulator: rtq2208: Fix LDO discharge register regulator: rtq2208: Fix the BUCK ramp_delay range to maximum of 16mVstep/us regulator: rtq2208: Fix LDO to be compatible with both fixed and adjustable vout regulator: dt-bindings: rtq2208: Add property to get ldo of RTQ2208 is adjustable or not .../bindings/regulator/richtek,rtq2208.yaml | 8 ++ drivers/regulator/rtq2208-regulator.c | 151 ++++++++++++++------- 2 files changed, 110 insertions(+), 49 deletions(-) -- 2.7.4