From patchwork Mon Sep 30 15:54:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 831785 Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09D96190482; Mon, 30 Sep 2024 15:54:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.238.236.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727711655; cv=none; b=IgWOptH+zTWn5Thfxs9/NmqMa/HxVJP/zoNrLckFyBE3d6MmXBnsAJ6LKrKxfbTm31OAIr3duWUVUtwIy65LStjLFHnLGEA21EkpPD9j7q9BLEJU13dj4e4coCVvCuoWGxoJd6CYmqonbISsDfQfvdCs6nwhKHzR8NklmVjZQUU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727711655; c=relaxed/simple; bh=m/7IdEkKhEPMkReOnZZ6V/CwrSu7O1tSM3NvBp9Z6y0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=rLWekKTvcbpd7TI29zlHqLbBKS66v122YNTCVacFig/DeSoZmXrcaN1jOd9xR3/xplli//AZ+1EDp83D38RzYPd8ReKJ7M5l1NY3hclODiiVRo1GFmStevbFXS6eHVtpZQEIABuLLxBBVh4beQi/ymAhleMWtB0Rywzu3r/8PrI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kemnade.info; spf=pass smtp.mailfrom=kemnade.info; dkim=pass (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b=mqeUWXTj; arc=none smtp.client-ip=178.238.236.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="mqeUWXTj" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=References:In-Reply-To:Cc:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=qME5dKJqS8ynkYI2n9iKU3mNmrn4EubnbBdaMwhZ954=; b=mqeUWXTj2z1FscmydKfbHCES6A gh9hE1lZrfSvK9VmNYs0CLxSqVtIwvnq0bmUlqhcv1FDDFS3xNRHVFE4AXhEc0HenVhrp2AxxvUQj OPS61UQYIWZaX2t9IwkFMweeusiggxQx41MUsVLpp7ytzdfOh21kQTaqOFoy2dr0T+HhYziGrwxKy pL8XqGR8vm/CLyWFXEu2sFbCMK6TTNPJVGaenNSKWUJFtGlnnZtKVma9+minzUPQguMJjQP+AKMgM x6lvF/GSdUVh5rcrwVv/csXSJJS+kSTXOP2F6jWI+D/+LNDhdgchVuy+aFYz5uGvRddyTgMIJW+Qo N+ycGKTQ==; From: Andreas Kemnade To: Krzysztof Kozlowski , linux-pm@vger.kernel.org, Conor Dooley , tony@atomide.com, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Lee Jones , devicetree@vger.kernel.org, Sebastian Reichel , Rob Herring Cc: Andreas Kemnade Subject: [PATCH v2 2/3] dt-bindings: mfd: twl: add charger node also for TWL603x Date: Mon, 30 Sep 2024 17:54:03 +0200 Message-Id: <20240930155404.1275702-3-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240930155404.1275702-1-andreas@kemnade.info> References: <20240930155404.1275702-1-andreas@kemnade.info> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Also the TWL603X devices have a charger, so allow to specify it here. Signed-off-by: Andreas Kemnade --- .../devicetree/bindings/mfd/ti,twl.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/ti,twl.yaml b/Documentation/devicetree/bindings/mfd/ti,twl.yaml index e94b0fd7af0f8..488d419b211d1 100644 --- a/Documentation/devicetree/bindings/mfd/ti,twl.yaml +++ b/Documentation/devicetree/bindings/mfd/ti,twl.yaml @@ -105,6 +105,12 @@ allOf: regulator-initial-mode: false properties: + charger: + type: object + additionalProperties: true + properties: + compatible: + const: ti,twl6030-charger gpadc: type: object properties: @@ -136,6 +142,14 @@ allOf: regulator-initial-mode: false properties: + charger: + type: object + additionalProperties: true + properties: + compatible: + items: + - const: ti,twl6032-charger + - const: ti,twl6030-charger gpadc: type: object properties: @@ -222,6 +236,14 @@ examples: interrupt-controller; #interrupt-cells = <1>; + charger { + compatible = "ti,twl6030-charger"; + interrupts = <2>, <5>; + io-channels = <&gpadc 10>; + io-channel-names = "vusb"; + monitored-battery = <&bat>; + }; + gpadc { compatible = "ti,twl6030-gpadc"; interrupts = <6>;