From patchwork Fri Nov 8 20:04:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mithil Bavishi X-Patchwork-Id: 13869762 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 2BCB1D5E36A for ; Sun, 10 Nov 2024 02:31:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6671210E3AD; Sun, 10 Nov 2024 02:31:05 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="OVriKNBM"; dkim-atps=neutral Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by gabe.freedesktop.org (Postfix) with ESMTPS id B6B8E10E2A0 for ; Fri, 8 Nov 2024 20:05:01 +0000 (UTC) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-71e4244fdc6so2243173b3a.0 for ; Fri, 08 Nov 2024 12:05:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731096301; x=1731701101; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nclpl2L8R9cKrulz3mBbfGGvQIswT/qMcBsWKZFoMYo=; b=OVriKNBM+tKOSFvIeHIo02051q3MHxGJmEwJmEUQ+dTdpDor6g7O6i8oSLWCrLrp7K kjLhb5Uj6vNsC6JjMVC4WbbC3AHqdzsQMlzyKTvRpQMd4nohm+Yq+ygOEh16LzNCy7Ye j2b7xwe5S6Cql9gB4h1chpS8CmySt0yL2e3StQbizeep5WLbWp32tiyOZwnS0Li2N9W5 OQoz9At2cpjSvbCMQlQvm+KS2v2N/TrHmSvO6FMdFg9ORHDYxVD5M5amTGJeSQfJpqPq jSel+R/KYq2Cdr4fcyYGYzcBjR21QkBcg8p055MsPYM6PEVRGhZeZNY3/ChRNgHiuwJU oDBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731096301; x=1731701101; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nclpl2L8R9cKrulz3mBbfGGvQIswT/qMcBsWKZFoMYo=; b=DCUoZr66b1gqFC2LpcDvL9ybJl+bZwPDxQ/aVNkGsDZcWAoSpcIUf9n8GbgiTAkk/X FrHU+DLrWhX4td/NSTcDuSURZ7ebXrSgZjKct/MCR4Q2QyJlS0B67EHXiVgs/JSGzswP W/787neRxO4FBhAjmnqTMY289d0muikutSPAnb+Io+y9DWJdxk3nK3PLzWTg1AYV39+8 pWRX35FhwuFb1hU9TE/ue/kMXVDr2dQLS1U7gQ9P8K+r0LKUvh6ZE3SJ7vYiTG3Qz6i6 rM8mVCrXUdmrQim+udxCnWaEBUgPMdqW3FM1LaP5xH9hIEIsgOBc9z9nv0o6NHoC/Xyx 8IFg== X-Forwarded-Encrypted: i=1; AJvYcCVTlDe2YMelNybkNMCPrBuwfiT8zMsSZEo7EI0VJabdBXjYF4HlLw/Litnuc8h9lPD/on/buEisuZE=@lists.freedesktop.org X-Gm-Message-State: AOJu0YwpWrIcF9flCyWaRsAjtwcOJfvht8n3HjcqQLGbijfsw9Z4lagc xR5+NzaHJmm41oG5QAZppudGISRefOiLc86WUPz4WvXUOG2bsMRG X-Google-Smtp-Source: AGHT+IGKkfE9EL1XG9TLXqRwviI1pwSILrbF7A+LIucI2Aznsbdg8kvZmaMir9TyW26Em6L1AGlazg== X-Received: by 2002:a05:6a00:1150:b0:71e:cc7:c507 with SMTP id d2e1a72fcca58-7241338bda9mr5333661b3a.23.1731096300408; Fri, 08 Nov 2024 12:05:00 -0800 (PST) Received: from mighty.kangaroo-insen.ts.net ([120.88.183.182]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72407a56a30sm4323418b3a.188.2024.11.08.12.04.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2024 12:04:59 -0800 (PST) From: Mithil Bavishi To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Jessica Zhang , Mithil Bavishi , Lad Prabhakar , Thierry Reding Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-hardening@vger.kernel.org Subject: [PATCH v3 01/10] ARM: dts: twl6032: Add DTS file for TWL6032 PMIC Date: Fri, 8 Nov 2024 20:04:30 +0000 Message-ID: <20241108200440.7562-2-bavishimithil@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241108200440.7562-1-bavishimithil@gmail.com> References: <20241108200440.7562-1-bavishimithil@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 10 Nov 2024 02:30:58 +0000 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add a dedicated DTS file for the TWL6032 PMIC (Phoenix Lite). Already has driver support with TWL6030 (Phoenix) since both of them are so similar, some nodes can be reused from TWL6030 as well. This can be included in the board files like twl6030. Example: ... &i2c1 { twl: twl@48 { reg = <0x48>; interrupts = ; interrupt-controller; interrupt-parent = <&gic>; }; }; /include/ "twl6032.dtsi" ... Used in devices like samsung-espresso, amazon-jem, epson-embt2ws etc. Signed-off-by: Mithil Bavishi --- arch/arm/boot/dts/ti/omap/twl6032.dtsi | 77 ++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 arch/arm/boot/dts/ti/omap/twl6032.dtsi diff --git a/arch/arm/boot/dts/ti/omap/twl6032.dtsi b/arch/arm/boot/dts/ti/omap/twl6032.dtsi new file mode 100644 index 000000000..d599a2ca6 --- /dev/null +++ b/arch/arm/boot/dts/ti/omap/twl6032.dtsi @@ -0,0 +1,77 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Integrated Power Management Chip + * https://www.ti.com/lit/ds/symlink/twl6032.pdf + */ + +&twl { + compatible = "ti,twl6032"; + interrupt-controller; + #interrupt-cells = <1>; + + rtc { + compatible = "ti,twl4030-rtc"; + interrupts = <11>; + }; + + vio: regulator-vio { + compatible = "ti,twl6032-vio"; + }; + + ldo1: regulator-ldo1 { + compatible = "ti,twl6032-ldo1"; + }; + + ldo2: regulator-ldo2 { + compatible = "ti,twl6032-ldo2"; + }; + + ldo3: regulator-ldo3 { + compatible = "ti,twl6032-ldo3"; + }; + + ldo4: regulator-ldo4 { + compatible = "ti,twl6032-ldo4"; + }; + + ldo5: regulator-ldo5 { + compatible = "ti,twl6032-ldo5"; + }; + + ldo6: regulator-ldo6 { + compatible = "ti,twl6032-ldo6"; + }; + + ldoln: regulator-ldoln { + compatible = "ti,twl6032-ldoln"; + }; + + ldousb: regulator-ldousb { + compatible = "ti,twl6032-ldousb"; + }; + + smps4: regulator-smps4 { + compatible = "ti,twl6032-smps4"; + }; + + gpadc: gpadc { + compatible = "ti,twl6032-gpadc"; + interrupts = <3>; + #io-channel-cells = <1>; + }; + + twl_usb_comparator: usb-comparator { + compatible = "ti,twl6030-usb"; + interrupts = <4>, <10>; + }; + + twl_pwm: pwm { + compatible = "ti,twl6030-pwm"; + #pwm-cells = <2>; + }; + + twl_pwmled: pwmled { + compatible = "ti,twl6030-pwmled"; + #pwm-cells = <2>; + }; +};