Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1906163rwb; Thu, 29 Sep 2022 03:58:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4/BycRKoyBRym/locf+cK0bgwPRo70N+z5OnIk0tbXXUMNzi2xehbTAACteQlnPBJRZ/oC X-Received: by 2002:a17:902:a50d:b0:178:9701:c02c with SMTP id s13-20020a170902a50d00b001789701c02cmr2830705plq.145.1664449079789; Thu, 29 Sep 2022 03:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664449079; cv=none; d=google.com; s=arc-20160816; b=w2DQTTlDne6ymLoeEsTWB97fm6ISIx4qLexJOqxGwxwB6tZ40yUtt3J6A/kPAWW9w/ rNW+1/Sb2plTAwD67RHdYXm6jyo00TO0BdMHzKDicSXqfPOghDArxZRRawxTkP1klJWf 7Z3chNaIHOLtJgLkC5FHzISW1Eey4n+uRI8knmaUuQ50JP3C1NP3XV91bFpKnkQLC8pW YLjzUKximlw3pIN+K1zmKyQxRjRV0cOUn2Go8lgrQOg9MpfHB4HPO2+sf3oAkXlCDm6x HdxOr13XfecPc1TdE63JttJMrWzNI/V3QRePSZbjCP0aYszDH/qCXuRlsMeitfk+X/8r JFHg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=VVaJ2WvZLMburg2aIHfT+C0+FDmiDT6jJc/acM+nMq0=; b=m5YYQ893zWsi6r7eambK44IIEfcbtxwy5PaqOxOZG8Qoa33FklAdDnG8lGEeI8WgJO 2YymAGBvuCSV4IlSJ8RAPep8W9Z0EeU/yF4qIZmj2C9UA+PhrzAfEy1Ssl3uGFATU/9F UZoyed7teiACqv1aAH8uDMyqfAO7byF7tdAyGowXaNiiSVNWl4j18GmNUS69gf663Npi WOF31JwNECYU8PxStkXdCK2nOo/WU4b56qIEGwsWQlpI9nToXBdSp7T4U0xt86PojgVA GArdobdXnH4Vszo7XLWNOOmxF2fDufs+J7nSWUAv+z+O3X133dh33fPMllOztL2T5D3j 5RWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=drW2YEOy; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1-20020a1709026a8100b0017a0c197f3fsi2753479plk.335.2022.09.29.03.57.48; Thu, 29 Sep 2022 03:57:59 -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=@gmail.com header.s=20210112 header.b=drW2YEOy; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235580AbiI2Khn (ORCPT + 99 others); Thu, 29 Sep 2022 06:37:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232007AbiI2Khl (ORCPT ); Thu, 29 Sep 2022 06:37:41 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6346A13D1DC; Thu, 29 Sep 2022 03:37:41 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id u59-20020a17090a51c100b00205d3c44162so5539108pjh.2; Thu, 29 Sep 2022 03:37:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=VVaJ2WvZLMburg2aIHfT+C0+FDmiDT6jJc/acM+nMq0=; b=drW2YEOywaDzYsNVrPwnW7g8e2Yrl+NdE4q8o7pU/qEMabkWBS6deJ2LxhBoxfMjdh Maxj+d/WUnaKRWiiYe9W1dvC+DrqDd/VVhI1z+w90t2hkWRqEg4cl55VHrb7irt+YI2l /d1QfW5JQt+hn2Mm7UvXb4lqitpJ19krNN/TGERxcGsURkyANaoRzG8lR594UJISRyRd nRCzT0Nw15KzcC2swKnoqYKvre99VDKxzeaq/2IDLNwJSzOsjUL6xq6pg7luGFPFiJs3 QQHyedLjRxDxXYUzHBNcsdrvQul/OfVdSHMRYVKI1WP5fPSsZ0MNA4/HwwxmJ4gO+Y5x rm+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=VVaJ2WvZLMburg2aIHfT+C0+FDmiDT6jJc/acM+nMq0=; b=jUP09V49L7fhg5h86E31HjbO9J+bI6jOLkFessjtCmb6NSOb+2CVsztd+HZo+bYHly +qEkTw1eDSfWOK7opN33/gKBP3l8umO/RyEmZDaXnJU5WdZQbK6XzHxoEy6YVUwI4xSi CCS9uwHxom28UupjHmac39PFoc7sNiVeDPhKO+5wKvkPL+npWeK/WFTmDlBGnadwH0YU SLezhRB3mjPu5fRtx8ra58kHimkt6fdtKSedWp+0RgwIYHIWj0eN2ZvXxp7TifDeIAiV t040F/Q+aJ2HNf/iSos/0bCsJg18FXuHNw4E+vQ0tv02/2KykG3F4PepNT/4UXm1qIDs 0eiQ== X-Gm-Message-State: ACrzQf0yy7BJmqE50zMi40Fitw7SO+sxoGFrxuz+sbQ6h22sv6wofoSE 0l8ObLieRyvvwrKfm+VJz1o= X-Received: by 2002:a17:90a:d908:b0:206:122:35d1 with SMTP id c8-20020a17090ad90800b00206012235d1mr2874543pjv.245.1664447860821; Thu, 29 Sep 2022 03:37:40 -0700 (PDT) Received: from RD-3580-24288.rt.l (42-73-73-54.emome-ip.hinet.net. [42.73.73.54]) by smtp.gmail.com with ESMTPSA id k31-20020a17090a4ca200b001ef81574355sm3145861pjh.12.2022.09.29.03.37.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 03:37:40 -0700 (PDT) From: ChiaEn Wu To: sre@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: chiaen_wu@richtek.com, cy_huang@richtek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 0/2] Add Richtek RT9467 5A Battery Charger support Date: Thu, 29 Sep 2022 18:37:17 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 From: ChiaEn Wu This patch set is to add Richtek RT9467 5A Battery Charger support. RT9467 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for portable applications. It integrates a synchronous PWM controller, power MOSFETs, input current sensing and regulation, high-accuracy voltage regulation, and charge termination. The charge current is regulated through integrated sensing resistors. The RT9467 also features USB On-The-Go (OTG) support. It also integrates D+/D- pin for USB host/charging port detection. This charger driver is based on a 'linear_ranger' queued patch which adds 'LINEAR_RANGE_IDX' macro for declaring the linear_range struct simply. https://lore.kernel.org/all/20220920161218.dkkfvfomrruebahi@mercury.elektranox.org/ Thank you, ChiaEn Wu ChiaEn Wu (2): dt-bindings: power: supply: Add Richtek RT9467 battery charger power: supply: rt9467: Add Richtek RT9467 charger driver .../power/supply/richtek,rt9467-charger.yaml | 83 ++ drivers/power/supply/Kconfig | 19 + drivers/power/supply/Makefile | 1 + drivers/power/supply/rt9467-charger.c | 1239 ++++++++++++++++++++ 4 files changed, 1342 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/richtek,rt9467-charger.yaml create mode 100644 drivers/power/supply/rt9467-charger.c -- 2.7.4