From patchwork Wed Oct 30 19:41:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MightyM17 X-Patchwork-Id: 839751 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 060671D0DE6; Wed, 30 Oct 2024 19:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730317313; cv=none; b=FGIgbYEHnLS7CkbFNvMDQK4j3yC6GsKy671GP+KSJk8cisuDxqnhI7wCEnpv73q9MsPxLyNVh+RcMCI+JU7zf2AyNYbAuuQPbvP6eXCdH1/iYJFalbBYHf99NRPR3IY13TK8HEMTPoI0HsQBEBIBuavVZ/fDLiyyUYZ5yzoc6c4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730317313; c=relaxed/simple; bh=s5cIQzgDOH+wwruXJIeyOj/xnoks/Mm7itSuYt6Ton4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nm2a3eekMvyTjkLOsNr0QNKnMMqGRM4t42/rcaUIPOJV3g4Es1rIm8i+PkGKJWH6yWaAIf+7sObwC8KdZV8pvxlotmXOvjMQS1d4jCEY17tWDxCxr8NYJCp/wL8kERgODji9OfiD+z0tQyUNiLSn79OJEF7yqPtC80Nmp5DncQ4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Zjw8xIQG; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Zjw8xIQG" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-71ec997ad06so135741b3a.3; Wed, 30 Oct 2024 12:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730317311; x=1730922111; darn=vger.kernel.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=VtZE+LZWoBOHnrtaHcIAAMsUNyUFojKb/CVa2OBDcMc=; b=Zjw8xIQGsI5+buaMTRjaE6m/lj4fHaimr0NwzICbVuzso9a6M2lH3qIyPEjQcWvz2g FOVZ5PfLntXAGYIDULgJ5FriEJxpWVcljhaZ+lSp7+dG7XDq+MSZacg8UIuCXp53KKKy 9DtDwmlN++lEkJ7cV9OYmxR1IXLNrMPtADC6WHrPQ89V6PMgLsCpX0nXUW4ARYj7N+jD PcYXrFpvHHAj3+bWTM5lxU1a0zODN6zaSzhBTKio2iTx8Is3wPN84H+OKUwc0WqV40oc IOV8SNbsMhVQMhWzWPJsN/wyosZvfqmczmK/xif1RRuD3gTPEX9ihCjXPHrIhWZ8aMzh ZmkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730317311; x=1730922111; 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=VtZE+LZWoBOHnrtaHcIAAMsUNyUFojKb/CVa2OBDcMc=; b=GmyQCfWKs++t8Eoc2zQgQGRDUF6oN73BwOzU1CPoBzbpYHNk3bAvlt31dO4bYpEsvK JJFr+yk99VxKB4bDXiaRD2PCIiztbh0MzP0i28XFGe2JQKJvKmSKBMvgwCmGeuUip7N4 uO8+FPxyCiVZAPgvBz0sd+cfWfyvyzUUUZJ4Ga16keq7G4DlDxIIEcSINlP6RNMFpBVd BxbmovF0HBw7tBdoRq3MaUt3mSj8rBIIxgAbpfinGxculs6BcVCKBOfVMewyj71lAI2S Fh3DZnKK6kzvcJU6HY8SvXe3DO9aCs7DNHKXo4ADvqOsT/3YZko7VsO4W0cYXfDpPA9t YCUg== X-Forwarded-Encrypted: i=1; AJvYcCVRX7OjMjhm6RtS4Gz629t0omr43vWrZtKoMpz2+ajBqxDa6BSJdu0ojinzojGnLmioUPBNm/pcTgsG@vger.kernel.org, AJvYcCXERXlnFnFRfXr/PtczIft5H+uCmGV9c1Y3kDE7fsuPzMV77bjQheS6g9d1602UW4mQqa9Ce6Ok6K2GOvZD@vger.kernel.org, AJvYcCXVMzFqLQ8v2p7/rJvDlIwppP7jArewENXkatW0aRULM54EPxoauH8OnMUV1dm7pi+AmKTedKOsrtoF6iU9bSKe@vger.kernel.org X-Gm-Message-State: AOJu0YyZI/fgYxHt7WZYi8iis7p+M+oyAXXppzhV7syaZzCUnP3ncEqt IoGqn+Yhmm/UkuzTmaj/E/oWvz9wF0EvOgjP5uEsnCcJuZmREX7S X-Google-Smtp-Source: AGHT+IEsDiLdmUiYZwxFZUqxWPTuqbuPxSQOCMEJTcI4DQbUODK+iFB2dTQEHoCG3Vy312JYEHJ9bA== X-Received: by 2002:a05:6a21:920b:b0:1cf:573a:bb58 with SMTP id adf61e73a8af0-1d9eee1e178mr5682354637.40.1730317311259; Wed, 30 Oct 2024 12:41:51 -0700 (PDT) Received: from mighty.kangaroo-insen.ts.net ([120.88.183.142]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7edc8495cabsm9661839a12.0.2024.10.30.12.41.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 12:41:50 -0700 (PDT) From: Mithil Bavishi To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH v1 1/6] ARM: dts: twl6032: Add DTS file for TWL6032 PMIC Date: Wed, 30 Oct 2024 19:41:31 +0000 Message-ID: <20241030194136.297648-2-bavishimithil@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241030194136.297648-1-bavishimithil@gmail.com> References: <20241030194136.297648-1-bavishimithil@gmail.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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. Regulator values are found from downstream kernel for espresso. Signed-off-by: Mithil Bavishi --- arch/arm/boot/dts/ti/omap/twl6032.dtsi | 81 ++++++++++++++++++++++++++ 1 file changed, 81 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..52c318510 --- /dev/null +++ b/arch/arm/boot/dts/ti/omap/twl6032.dtsi @@ -0,0 +1,81 @@ +// 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>; + }; + + vana: regulator-vana { + compatible = "ti,twl6030-vana"; + }; + + 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>; + }; +}; From patchwork Wed Oct 30 19:41:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MightyM17 X-Patchwork-Id: 840009 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F2231D04A6; Wed, 30 Oct 2024 19:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730317319; cv=none; b=I/NM3/6da7lZYzNJWjA0xGUOA/LQqWVzMxDNZW99sGqHg+03A1jlgya7sNa09V35Y3iVRYb3bafj6T4yrqlvGQByajVzwH8Kjef4Vl4Gl0CMwdH7CD97Hplet/sTMML3NoyLEjj3UW/1WLxiXk+LEfvpgbLVg99psls8PzKzhc8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730317319; c=relaxed/simple; bh=imIwiFgQcMokv9lreAD3V0c1YU8u06oImW04qKcc+A8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YjjLB/ho6YxNrDII3pqtpeB3jrsjOS9oAhkVJSNd2LQr+iI8T6lRuFGOtS2jw7m0P5IguhaVgVvBschDAs/vI27G+5k7UA040pV//DAdUWymPTIame1Qgrp/bUx7AjdYTXleFBAqKMiour7TKGmRCVY3XmHK+/m77cZ7WsEqXak= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QZn5UOG0; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QZn5UOG0" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-71e61b47c6cso154776b3a.2; Wed, 30 Oct 2024 12:41:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730317316; x=1730922116; darn=vger.kernel.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=KzKevrNju/4hzlcNDe1kXJYKoQLe13Hshee31EuMPoo=; b=QZn5UOG0gGIh8ffJ9QHPFCdZm5sKaZtYJig6dNv00V/Xz2SHMP0CpWfe8JCl1055FJ XzOoUu9IZXqpYZxHEWIi37Knijr9Ua4mZbwNZOpBnaH1Wid601UbTd3gy6Q3XpgY4Vn2 3oAftOb0rKv6+/PT2vQD7jAbV+cj7xFlEJM4UlzPbJgeuWwKAKlgU6CKjcnpTvAN8On3 vpary6ccyFpB+qlS8GcL+oW3MdUDaYCTtvC4nw6Tq7a46okXWI6itrgXS1EfcVpJu/B8 0AhJt7fNuXJcDMX9uqsX40yq4yGbIoY2++1IvuqzKEWSfdzLQ5rMiJWQjoLgTsGBueAN OhWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730317316; x=1730922116; 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=KzKevrNju/4hzlcNDe1kXJYKoQLe13Hshee31EuMPoo=; b=ZB+ZoHfAjJaj6BvFtynJ10g9OivkXGR+jHAh2z2LlYh5ZmTUOymOTQLN2N79oy9BB/ eIxfZfXmiGRaK78O9s7BL/LM6QgVX5wrKuH7PTlAPDpn7WZK86VV0iQCsydmt6c18xdw NpeCvxP5nh8e+907+EUhl01UQ5UrkKOdxYtrMwr5pHKGXwEUVIXszKH17AiyLRHdcTlU 5pzHFls9cp0FC/spM0+Wlvrz+1LR3zPTq28rIxO2iYctHAIqHpqZPbhhvfS39u9OmTLR DX/p58O5S69p1pVCmjb0jLehlSUmHqd03NezbKniy2JBixss7XrrXTTSd0mrV9q3DAAD I7mg== X-Forwarded-Encrypted: i=1; AJvYcCULKs6eT6Ylafn6JyiEmEvtMrIFqYNFlTXeVVdQnuR2EfruBYVIsx9BBUVJ77ZC7kM2iftkhe8EsDTG58ExG4XL@vger.kernel.org, AJvYcCX4XqyGJ5Y2GI8pSmvBQlhxIVVKsHgokiC3oNhdU6yAOxReZf80jbpqUeI6d2AsnPPWWo8py93qbckmWy8k@vger.kernel.org, AJvYcCXrgDJFf8I4muhgDBuuz+23Dko2K/ABBEcSVwo66X+C6fUQj02cKEHIv6Isj9w/Op8z0ekPZJQiIIxu@vger.kernel.org X-Gm-Message-State: AOJu0YxRYBsl/FmNMbudFaaMewxYvxYklvzypCgEErp3e/RBAeGoDxOQ ort2kEccVL+vHWkANkfUAS8Mb7UCDi7Jz4oqpwUJC6LEHbTrMru0 X-Google-Smtp-Source: AGHT+IG2Ijsc2GlZGfTje6FMk2dvwWpamND8liLCPgkp6CmfBGUk6+ILrGERAwgiSDiQvu1/+gNF3Q== X-Received: by 2002:a05:6a21:1796:b0:1d8:a1dc:b43 with SMTP id adf61e73a8af0-1d9a8402d85mr23671001637.24.1730317315729; Wed, 30 Oct 2024 12:41:55 -0700 (PDT) Received: from mighty.kangaroo-insen.ts.net ([120.88.183.142]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7edc8495cabsm9661839a12.0.2024.10.30.12.41.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 12:41:55 -0700 (PDT) From: Mithil Bavishi To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH v1 2/6] arm/dts: Add common device tree for Samsung Galaxy Tab 2 series Date: Wed, 30 Oct 2024 19:41:32 +0000 Message-ID: <20241030194136.297648-3-bavishimithil@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241030194136.297648-1-bavishimithil@gmail.com> References: <20241030194136.297648-1-bavishimithil@gmail.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Create common device tree for Samsung Espresso series devices Differentiate based on screen sizes, panels, touch controllers, and batteries Signed-off-by: Mithil Bavishi --- .../omap/omap4-samsung-espresso-common.dtsi | 693 ++++++++++++++++++ 1 file changed, 693 insertions(+) create mode 100644 arch/arm/boot/dts/ti/omap/omap4-samsung-espresso-common.dtsi diff --git a/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso-common.dtsi b/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso-common.dtsi new file mode 100644 index 000000000..066b70766 --- /dev/null +++ b/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso-common.dtsi @@ -0,0 +1,693 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/dts-v1/; +#include "dt-bindings/gpio/gpio.h" +#include +#include +#include "omap443x.dtsi" + +/ { + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x40000000>; /* 1 GB */ + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + ramoops_region@A0000000 { + no-map; + reg = <0xA0000000 0x200000>; + }; + + continuous_splash: framebuffer@bef00000{ + reg = <0xbef00000 (1024 * 600 * 4)>; + no-map; + }; + }; + + chosen { + #address-cells = <1>; + #size-cells = <1>; + ranges; + }; + + i2c-gpio-5 { + compatible = "i2c-gpio"; + sda-gpios = <&gpio4 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + scl-gpios = <&gpio4 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + i2c-gpio,delay-us = <10>; + #address-cells = <1>; + #size-cells = <0>; + }; + + i2c-gpio-6 { + compatible = "i2c-gpio"; + sda-gpios = <&gpio3 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + scl-gpios = <&gpio3 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + i2c-gpio,delay-us = <10>; + #address-cells = <1>; + #size-cells = <0>; + }; + + i2c-gpio-7 { + compatible = "i2c-gpio"; + sda-gpios = <&gpio2 30 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + scl-gpios = <&gpio2 29 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + i2c-gpio,delay-us = <3>; + #address-cells = <1>; + #size-cells = <0>; + + fuel-gauge@36 { + compatible = "maxim,max17042"; + reg = <0x36>; + pinctrl-0 = <&fuel_alert_irq>; + pinctrl-names = "default"; + interrupt-parent = <&gpio2>; + interrupts = <12 IRQ_TYPE_LEVEL_LOW>; + maxim,rsns-microohm = <10000>; + maxim,over-heat-temp = <500>; + maxim,dead-volt = <2500>; + maxim,over-volt = <4300>; + }; + }; + + reg_espresso_wlan: regulator-espresso-wlan { + pinctrl-names = "default"; + pinctrl-0 = <&wlanen_gpio>; + compatible = "regulator-fixed"; + regulator-name = "espresso_wlan"; + regulator-max-microvolt = <2000000>; + regulator-min-microvolt = <2000000>; + gpio = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* GPIO_104 */ + startup-delay-us = <70000>; + regulator-always-on; + enable-active-high; + }; + + wlan_pwrseq: wlan-pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&twl 0>; + clock-names = "ext_clock"; + }; + + reg_espresso_internal: regulator-espresso-internal { + compatible = "regulator-fixed"; + regulator-name = "eMMC_LDO"; + regulator-max-microvolt = <1800000>; + regulator-min-microvolt = <1800000>; + gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; /* GPIO_63 */ + startup-delay-us = <100000>; + regulator-boot-on; + regulator-always-on; + enable-active-high; + }; + + reg_espresso_external: regulator-espresso-external { + compatible = "regulator-fixed"; + regulator-name = "vmmc1"; + regulator-max-microvolt = <2800000>; + regulator-min-microvolt = <2800000>; + gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; /* GPIO_34 */ + regulator-always-on; + enable-active-high; + }; + + reg_touch_ldo_en: regulator-touch-ldo-en { + compatible = "regulator-fixed"; + regulator-name = "touch_ldo_en"; + regulator-max-microvolt = <2800000>; + regulator-min-microvolt = <2800000>; + gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* GPIO_54 */ + regulator-always-on; + enable-active-high; + }; + + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys>; + + power { + label = "power"; + + gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; /* GPIO_wk3 */ + linux,code = ; + wakeup-source; + }; + + button-volup { + linux,code = ; + label = "volume_up"; /* GPIO_wk30 */ + gpios = <&gpio1 30 GPIO_ACTIVE_LOW>; + }; + + button-voldown { + linux,code = ; + label = "volume_down"; /* GPIO_wk8 */ + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + }; + }; + + reg_lcd: regulator-lcd { + compatible = "regulator-fixed"; + regulator-name = "lcd_en"; + gpios = <&gpio5 7 GPIO_ACTIVE_HIGH>; /* GPIO_135 */ + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + enable-active-high; + regulator-boot-on; + }; + + pwm10: dmtimer-pwm@10 { + pinctrl-names = "default"; + pinctrl-0 = <&pwm10_default>; + compatible = "ti,omap-dmtimer-pwm"; + #pwm-cells = <3>; + ti,timers = <&timer10>; + ti,clock-source = <0x00>; + }; + + lvds-encoder { + compatible = "lvds-encoder"; + powerdown-gpios = <&gpio5 8 GPIO_ACTIVE_LOW>; /* GPIO_136 */ + power-supply = <®_lcd>; + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + bridge_in: endpoint { + remote-endpoint = <&dpi_out>; + }; + }; + + port@1 { + reg = <1>; + bridge_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; + }; + + vibrator { + compatible = "gpio-vibrator"; + enable-gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>; /* GPIO_38 */ + pinctrl-names = "default"; + pinctrl-0 = <&vibrator_default>; + }; + + gp2a_shunt: current-sense-shunt { + compatible = "current-sense-shunt"; + io-channels = <&gpadc 4>; + shunt-resistor-micro-ohms = <24000000>; /* 24 ohms */ + #io-channel-cells = <0>; + io-channel-ranges; + }; + + irled@0 { + compatible = "gpio-ir-tx"; + gpios = <&gpio2 27 GPIO_ACTIVE_HIGH>; /* GPIO_59 */ + }; +}; + +&omap4_pmx_wkup { + twl6030_wkup_pins: pinmux_twl6030_wkup_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x54, PIN_OUTPUT | MUX_MODE3) + /* fref_clk0_out.sys_drm_msecure */ + >; + }; + + gpio_keys: pinmux_gpio_keys { + pinctrl-single,pins = < + OMAP4_IOPAD(0x046, WAKEUP_EN | PIN_INPUT | MUX_MODE3) + /* sim_cd.gpio_wk3 - EXT_WAKEUP */ + OMAP4_IOPAD(0x056, WAKEUP_EN | PIN_INPUT | MUX_MODE3) + /* fref_clk3_req.gpio_wk30 - VOL_UP */ + OMAP4_IOPAD(0x05C, WAKEUP_EN | PIN_INPUT | MUX_MODE3) + /* fref_clk4_out.gpio_wk8 - VOL_DN */ + >; + }; + + prox_irq: pinmux_prox_irq { + pinctrl-single,pins = < + OMAP4_IOPAD(0x042, WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE3) + /* sim_clk.gpio_wk1 - PS_VOUT */ + >; + }; +}; + +&omap4_pmx_core { + pwm10_default: pinmux_pwm10_default { + pinctrl-single,pins = < + OMAP4_IOPAD(0X0D6, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE1) + /* usbb1_ulpitll_dat6.dmtimer10_pwm_evt - LED_BACKLIGHT_PWM */ + >; + }; + + backlight_pins: pinmux_backlight_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0X0D8, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE3) + /* usbb1_ulpitll_dat7.gpio_95 - LED_BACKLIGHT_RESET */ + >; + }; + + lvds_pins: pinmux_lvds_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0X136, PIN_OUTPUT | MUX_MODE3) + /* mcspi1_simo.gpio_136 - LVDS_nSHDN */ + >; + }; + + i2c1_pins: pinmux_i2c1_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x122, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */ + OMAP4_IOPAD(0x124, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */ + >; + }; + + i2c2_pins: pinmux_i2c2_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x126, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */ + OMAP4_IOPAD(0x128, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */ + >; + }; + + i2c3_pins: pinmux_i2c3_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x12a, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */ + OMAP4_IOPAD(0x12c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */ + >; + }; + + i2c4_pins: pinmux_i2c4_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x12e, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_scl */ + OMAP4_IOPAD(0x130, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_sda */ + >; + }; + + mmc2_pins: pinmux_mmc2_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x040, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat0 */ + OMAP4_IOPAD(0x042, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat1 */ + OMAP4_IOPAD(0x044, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat2 */ + OMAP4_IOPAD(0x046, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat3 */ + OMAP4_IOPAD(0x048, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat4 */ + OMAP4_IOPAD(0x04a, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat5 */ + OMAP4_IOPAD(0x04c, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat6 */ + OMAP4_IOPAD(0x04e, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_dat7 */ + OMAP4_IOPAD(0x082, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_clk */ + OMAP4_IOPAD(0x084, PIN_INPUT_PULLUP | MUX_MODE1) /* sdmmc2_cmd */ + >; + }; + + mmc1_pins: pinmux_mmc1_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x0e2, PIN_INPUT_PULLDOWN | MUX_MODE0) /* sdmmc1_clk */ + OMAP4_IOPAD(0x0e4, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmcc1_cmd */ + OMAP4_IOPAD(0x0e6, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmcc1_dat0 */ + OMAP4_IOPAD(0x0e8, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1 */ + OMAP4_IOPAD(0x0ea, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2 */ + OMAP4_IOPAD(0x0ec, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3 */ + >; + }; + + mmc5_pins: pinmux_mmc5_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x148, PIN_INPUT_PULLDOWN | MUX_MODE0) + /* sdmmc5_clk.sdmmc5_clk */ + OMAP4_IOPAD(0x14a, PIN_INPUT_PULLUP | MUX_MODE0) + /* sdmmc5_cmd.sdmmc5_cmd */ + OMAP4_IOPAD(0x14c, PIN_INPUT_PULLUP | MUX_MODE0) + /* sdmmc5_dat0.sdmmc5_dat0 */ + OMAP4_IOPAD(0x14e, PIN_INPUT_PULLUP | MUX_MODE0) + /* sdmmc5_dat1.sdmmc5_dat1 */ + OMAP4_IOPAD(0x150, PIN_INPUT_PULLUP | MUX_MODE0) + /* sdmmc5_dat2.sdmmc5_dat2 */ + OMAP4_IOPAD(0x152, PIN_INPUT_PULLUP | MUX_MODE0) + /* sdmmc5_dat3.sdmmc5_dat3 */ + >; + }; + + dss_dpi_pins: pinmux_dss_dpi_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x162, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data23 */ + OMAP4_IOPAD(0x164, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data22 */ + OMAP4_IOPAD(0x166, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data21 */ + OMAP4_IOPAD(0x168, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data20 */ + OMAP4_IOPAD(0x16a, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data19 */ + OMAP4_IOPAD(0x16c, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data18 */ + OMAP4_IOPAD(0x16e, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data15 */ + OMAP4_IOPAD(0x170, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data14 */ + OMAP4_IOPAD(0x172, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data13 */ + OMAP4_IOPAD(0x174, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data12 */ + OMAP4_IOPAD(0x176, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data11 */ + + OMAP4_IOPAD(0x1b4, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data10 */ + OMAP4_IOPAD(0x1b6, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data9 */ + OMAP4_IOPAD(0x1b8, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data16 */ + OMAP4_IOPAD(0x1ba, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data17 */ + OMAP4_IOPAD(0x1bc, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_hsync */ + OMAP4_IOPAD(0x1be, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_pclk */ + OMAP4_IOPAD(0x1c0, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_vsync */ + OMAP4_IOPAD(0x1c2, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_de */ + OMAP4_IOPAD(0x1c4, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data8 */ + OMAP4_IOPAD(0x1c6, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data7 */ + OMAP4_IOPAD(0x1c8, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data6 */ + OMAP4_IOPAD(0x1ca, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data5 */ + OMAP4_IOPAD(0x1cc, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data4 */ + OMAP4_IOPAD(0x1ce, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data3 */ + + OMAP4_IOPAD(0x1d0, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data2 */ + OMAP4_IOPAD(0x1d2, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data1 */ + OMAP4_IOPAD(0x1d4, PIN_OFF_OUTPUT_LOW | MUX_MODE5) /* dispc2_data0 */ + >; + }; + + wlanen_gpio: pinmux_wlanen_gpio { + pinctrl-single,pins = < + OMAP4_IOPAD(0x096, PIN_OUTPUT | MUX_MODE3) /* gpmc_ncs7.gpio_104 */ + >; + }; + + twl6030_pins: pinmux_twl6030_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x19e, WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE0) + /* sys_nirq1.sys_nirq1 */ + >; + }; + + fuel_alert_irq: fuel-alert-irq { + pinctrl-single,pins = < + OMAP4_IOPAD(0x068, WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE3) + /* gpmc_a20.gpio_44 */ + >; + }; + + uart3_pins: pinmux_uart3_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x144, PIN_INPUT | MUX_MODE0) /* uart3_rx_irrx */ + OMAP4_IOPAD(0x146, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx */ + >; + }; + + uart2_pins: pinmux_uart2_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x118, PIN_INPUT_PULLUP | MUX_MODE0) + /* uart2_cts.uart2_cts */ + OMAP4_IOPAD(0x11a, PIN_INPUT_PULLUP | MUX_MODE0) + /* uart2_rts.uart2_rts */ + OMAP4_IOPAD(0x11c, PIN_INPUT_PULLUP | MUX_MODE0) + /* uart2_rx.uart2_rx */ + OMAP4_IOPAD(0x11e, PIN_INPUT_PULLUP | MUX_MODE0) + /* uart2_tx.uart2_tx */ + >; + }; + + wlan_host_wake: pinmux_wlan_host_wake { + pinctrl-single,pins = < + OMAP4_IOPAD(0x0bc, WAKEUP_EN | PIN_INPUT | MUX_MODE3) + /* cam_shutter.gpio_81 - WLAN_HOST_WAKE */ + >; + }; + + bluetooth_pins: pinmux_bluetooth_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x094, PIN_OUTPUT | MUX_MODE3) + /* gpmc_ncs6.gpio_103 - BT_EN */ + OMAP4_IOPAD(0x0be, PIN_OUTPUT | MUX_MODE3) + /* cam_strobe.gpio_82 - BT_nRST */ + OMAP4_IOPAD(0x0c0, WAKEUP_EN | PIN_INPUT | MUX_MODE3) + /* cam_globalreset.gpio_83 - BT_HOST_WAKE */ + OMAP4_IOPAD(0x0d4, PIN_OUTPUT | MUX_MODE3) + /* usbb1_ulpitll_dat5.gpio_93 - BT_WAKE */ + >; + }; + + touch_pins: pinmux_touch_pins { + pinctrl-single,pins = < + OMAP4_IOPAD(0x06c, PIN_INPUT | MUX_MODE3) + /* gpmc_a22.gpio_46 - TSP_INT */ + >; + }; + + vibrator_default: pinmux_vibrator_default { + pinctrl-single,pins = < + OMAP4_IOPAD(0x05c, PIN_INPUT_PULLDOWN | MUX_MODE3) + /* gpmc_ad14.gpio_38 - MOTOR_EN */ + >; + }; + + gp2a_irq: pinmux_gp2a_irq { + pinctrl-single,pins = < + OMAP4_IOPAD(0x052, WAKEUP_EN | PIN_INPUT | MUX_MODE3) + /* gpmc_ad9.gpio_33 - ALS_INT_18 */ + >; + }; +}; + +&uart3 { + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>; + + interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH + &omap4_pmx_core OMAP4_UART3_RX>; +}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + + clock-frequency = <400000>; + + twl: twl@48 { + reg = <0x48>; + + pinctrl-names = "default"; + pinctrl-0 = < + &twl6030_pins + &twl6030_wkup_pins + >; + + /* SPI = 0, IRQ# = 7, 4 = active high level-sensitive */ + interrupts = ; /* IRQ_SYS_1N cascaded to gic */ + interrupt-parent = <&gic>; + ti,system-power-controller; + + #clock-cells = <1>; + }; +}; + +#include "twl6032.dtsi" + +&vana { + regulator-min-microvolt = <2100000>; + regulator-max-microvolt = <2100000>; + regulator-always-on; + regulator-state-mem { + regulator-off-in-suspend; + }; +}; + +&ldo1 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-always-on; + regulator-state-mem { + regulator-off-in-suspend; + }; +}; + +&ldo3 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-state-mem { + regulator-off-in-suspend; + }; +}; + +&ldo4 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-always-on; +}; + +&ldo5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; +}; + +&ldo6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-state-mem { + regulator-off-in-suspend; + }; +}; + +&smps4 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; +}; + +&ldousb { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; +}; + +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins>; +}; + +&i2c3 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c3_pins>; +}; + +&i2c4 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c4_pins>; + + accelerometer@18 { + compatible = "bosch,bma254"; + reg = <0x18>; + vdd-supply = <&vaux2>; + vddio-supply = <&ldo5>; + interrupt-parent = <&gpio4>; + interrupts = <25 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>, + <26 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>; + mount-matrix = "-1", "0", "0", + "0", "1", "0", + "0", "0", "1"; + }; + + magnetometer@2e { + compatible = "yamaha,yas530"; + reg = <0x2e>; + vdd-supply = <&vaux2>; + iovdd-supply = <&ldo5>; + reset-gpios = <&gpio5 29 GPIO_ACTIVE_LOW>; + interrupts = <&gpio6 10 IRQ_TYPE_EDGE_RISING>; + }; + + light-sensor@44 { + compatible = "sharp,gp2ap002a00f"; + reg = <0x44>; + interrupt-parent = <&gpio1>; + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; + vdd-supply = <&vaux2>; + vio-supply = <&vaux2>; + io-channels = <&gp2a_shunt>; + io-channel-names = "alsout"; + sharp,proximity-far-hysteresis = /bits/ 8 <0x40>; + sharp,proximity-close-hysteresis = /bits/ 8 <0x20>; + pinctrl-names = "default"; + pinctrl-0 = <&gp2a_irq &prox_irq>; + }; +}; + +&dss { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&dss_dpi_pins>; + + port { + dpi_out: endpoint { + remote-endpoint = <&bridge_in>; + data-lines = <24>; + }; + }; +}; + +#include "twl6030.dtsi" + +&twl_usb_comparator { + usb-supply = <&ldosb>; +}; + +&usb_otg_hs { + interface-type = <1>; + mode = <3>; + power = <50>; +}; + +&mmc1 { + status = "ok"; + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + + vmmc-supply = <®_espresso_external>; + bus-width = <4>; +}; + +&mmc2 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc2_pins>; + + vmmc-supply = <®_espresso_internal>; + ti,non-removable; + bus-width = <8>; +}; + +&mmc3 { + status = "disabled"; +}; + +&mmc4 { + status = "disabled"; +}; + +&mmc5 { + status = "okay"; + + #address-cells = <1>; + #size-cells = <0>; + + non-removable; + bus-width = <4>; + vmmc-supply = <®_espresso_wlan>; + + pinctrl-names = "default"; + pinctrl-0 = <&mmc5_pins>; + + brcmf: wifi@1 { + compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac"; + reg = <1>; + + interrupt-parent = <&gpio3>; + interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "host-wake"; + pinctrl-names = "default"; + pinctrl-0 = <&wlan_host_wake>; + mmc-pwrseq = <&wlan_pwrseq>; + }; +}; + +&uart2 { + interrupts-extended = <&wakeupgen GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH + &omap4_pmx_core OMAP4_UART2_RX>; + pinctrl-names = "default"; + pinctrl-0 = <&uart2_pins>; + bluetooth { + compatible = "brcm,bcm4330-bt"; + pinctrl-names = "default"; + pinctrl-0 = <&bluetooth_pins>; + shutdown-gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio3 18 GPIO_ACTIVE_LOW>; + device-wakeup-gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>; + interrupt-parent = <&gpio3>; + interrupts = <19 IRQ_TYPE_EDGE_FALLING>; + }; +}; From patchwork Wed Oct 30 19:41:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MightyM17 X-Patchwork-Id: 839750 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F00551D1730; Wed, 30 Oct 2024 19:42:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730317322; cv=none; b=Fa2cHBm+UXL5WtS6gTcmvuh0sXqOzDw+YVcinhwSXLSSJ8FBlsEF81t+xwIcdyzngvBVZvX1LIQKgx038TUCcQ2bHAmlksr3qLbCqanGAVkkjjqPMUvi+llKo19929Xp6VliAKFbDHca172Xti4c6S4vkxtlWTSjCZYK6XRXK+U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730317322; c=relaxed/simple; bh=XdOmvDolgsg316/LoEhz2Xof9L0XlyeF4ghIAS8RWAE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZTshjmQMIplIE94jUM4rwZgpWmu//acvvisAGjcbo111azK93srS1C4szRNzy33jKkqdjxIKoOD+5tLeQDE/xl9SK1I8OPBLPTjvzIeQoZMsI19RL8Ws+VOF3touIQx97dtk2snIn7F6ZnDJPIAJnpq1PxvjDsB+Pi4H8knpZv4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NPCQ3P/D; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NPCQ3P/D" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-7203c431f93so151613b3a.1; Wed, 30 Oct 2024 12:42:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730317320; x=1730922120; darn=vger.kernel.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=EItZw59EPW9dB++eM4lBpPIiCqgZ04QUsEmbNBJSClQ=; b=NPCQ3P/DQ65/ocTL/6DaqU9gdco0iWRAEWpCg7OhAosLI7dIqsRs4UBCjckUpXDieH E7uzAX9KWMJ0Z6SB4/DXJ+YHe5LRsxNsQnSl87LwAsUivQP/xjAQC5vWQc390sKxOh8Q lCMuqhKN2wed5OWGITVYN7MbACkxf8xFRCfx2SwN6AvFTOk9HcRUtjfkseu2Lr2ZtJIG 3lowrE0XMaCB8UqmlN8yTn+YHtkHFKSBfEdc41/kYMzK1pH56RBKDwMDZOcRN/0YGaOQ D19cW9soxDJC6/ScGBKjPmpuNJNQNUvcZgFRnDba5ogOdbuR5Fvyn7GBNiGgOC6OVZtW 32Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730317320; x=1730922120; 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=EItZw59EPW9dB++eM4lBpPIiCqgZ04QUsEmbNBJSClQ=; b=NFoLklm0+Tpng8rBhjJRpH3RKZmWBWhh0+HpGM2fDpVHsniTP1hvisigKK3j94v5uY w67gTM72xWSQjXlZBM9/+B46eA7vVso7xG+9rgQOKV4UPhqj5fubOdDDmWC7K+w1Nj15 5QR/OPBYFmKLzaPJpoU0mifS+w6hxoMlwmOSnTPbCAzI1kvv0qSh7TtUJiUBCQ/RTkcY iLfkiOwRtGB95tZVWKzXUY0jkFJjQlYtoMQM3t53fLktjXcCJ7Sh/+gw/E/qyAZ7u0qK ASWvO5ksMmz4BOTD2ATXat3Rk4BcmfjHmecLu+VJTsJVLCkzYVMUc/yyrGd9fc+Go2Sj Jc2w== X-Forwarded-Encrypted: i=1; AJvYcCWeDsOW37GeUB6oQqnjyx8ohc3/hF9t9PrpozRfG9gpKCBRv1llsVD9HtsA2kfGhYtdhV0PPtOiGZ6w9ne1rXrN@vger.kernel.org, AJvYcCXBM3l1hO3k4cvTg4EJOlAGr3HOYaVTy26SSihZqhqXnNApjJkwQUgSSAxdgi2eCd3dzfkudC5TtnNJUKDk@vger.kernel.org, AJvYcCXuM849bFmap5mg+6D2cVNb38FKzZwfEjTDw1uDLfIf9PDfdSQtWsJ3pEv8UshaTC4XpyhSUST+tP9p@vger.kernel.org X-Gm-Message-State: AOJu0YzMBxfyTZ+q0/70jbCtRDs0oVsyTkdmiXV+Z8wtQQYerL96g5E/ Wg+Z3SfwCXt4aJdGv4xL9pYgG0YjO6Ir2HStko2duJ2TVdYFO7pZ X-Google-Smtp-Source: AGHT+IH9WiXeIAZL02bgmXLIsZDR8DhnE76P0UcoN0vfO0Zygxk8obEeEoMBmU3fY5yVtZQeyieZCA== X-Received: by 2002:a05:6a00:9aa:b0:71e:5b0e:a5e4 with SMTP id d2e1a72fcca58-720b9ddc8f1mr1014319b3a.27.1730317320222; Wed, 30 Oct 2024 12:42:00 -0700 (PDT) Received: from mighty.kangaroo-insen.ts.net ([120.88.183.142]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7edc8495cabsm9661839a12.0.2024.10.30.12.41.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 12:41:59 -0700 (PDT) From: Mithil Bavishi To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH v1 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0 Date: Wed, 30 Oct 2024 19:41:33 +0000 Message-ID: <20241030194136.297648-4-bavishimithil@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241030194136.297648-1-bavishimithil@gmail.com> References: <20241030194136.297648-1-bavishimithil@gmail.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add samsung-espresso7 codename for the 7 inch variant Signed-off-by: Mithil Bavishi --- Documentation/devicetree/bindings/arm/ti/omap.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/ti/omap.yaml b/Documentation/devicetree/bindings/arm/ti/omap.yaml index 93e04a109..3d09ec1ad 100644 --- a/Documentation/devicetree/bindings/arm/ti/omap.yaml +++ b/Documentation/devicetree/bindings/arm/ti/omap.yaml @@ -136,6 +136,7 @@ properties: - motorola,droid-bionic # Motorola Droid Bionic XT875 - motorola,xyboard-mz609 - motorola,xyboard-mz617 + - samsung,espresso7 - ti,omap4-panda - ti,omap4-sdp - const: ti,omap4430 From patchwork Wed Oct 30 19:41:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MightyM17 X-Patchwork-Id: 840008 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6709C1EC016; Wed, 30 Oct 2024 19:42:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730317327; cv=none; b=cqH2abH5zSipxdVoCBQiDvjuuYczDcR0M1v4T7l74ii5pGTZCrKnAc1BLRnOkZZHysAa7d0PxqFL9pl7naRwSAIvG4OlPmWwuHkXWxUSo21Ji3YjHWYvFptqfigyXeqbO9EbnhlcnIZ80B7t5SoNIYDacFn1cyYPy3fsHCfhavM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730317327; c=relaxed/simple; bh=nNB6ViXWbWeqUxx3BYePaMTFx2WPOHtN3KBMbC8bLOQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IeYjr+DzNSYbUMaU7q4ska0l5xLqWl7WxQ1l1szAsWoKDg2+3je04JL4kn09ubhdvMjGRD1ZEc9ttHY2ia/AdEGUR0CvrAWCZTB5jZY+OpkmGnnxZD4dg/yv1b65t/TPy3DeMfhOijb77wU89n6R298PUskX16ROyL58yBeKmkQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WpYTJ1x0; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WpYTJ1x0" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-720b173a9ebso157469b3a.0; Wed, 30 Oct 2024 12:42:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730317325; x=1730922125; darn=vger.kernel.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=5ZnxMxZ2ydRZyNJhBjiB37HobtxTo8sezt3QKcDThbY=; b=WpYTJ1x0UHkZbuaPxGMzEgEEAKkbqxcvkKdzx/2J/CRZQXTJxew/7LpQxhAnmKPtVF wfhbUIiz9V5ycBw84Kb8qb8QpZB2ky/oZfWdmPnFFUHED19BljzO/3AIgc19jcgxUJhl eLCor+pUJyNG0RXvcVFISxPaQmOIBe9Vq/qp19EzYH4u46Uo5lPwkxaDMeKTiPROC/uC B8W9I/XoKKkQx3ekDYOnG0CTSQIbNHzvsqmb4J/N2fGLvcC8N9cdLPinljqPzlYH5CmK BJ+VtRUY72LsMJqXEnFPs5GV3XzhK2JyGbwsWpeStvYwE5k526327iPEdtJ3NWDUB7TO rytw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730317325; x=1730922125; 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=5ZnxMxZ2ydRZyNJhBjiB37HobtxTo8sezt3QKcDThbY=; b=rA4U5idOqPnIgDJpDSII7tGQmVu75qupGM7d4ghQ3+o9mtCwqXg+t4fc+UPlGJWcuV C9i+yni4R6GLKNK/iHBAhM92OEV9goWZHdgjvFRuucffpQ3U6HKjH227K69GMRZ0eO2b Nu2aZ8I86XJDzBagTl+3LReqymrdyyD3bY5ykn1AAP130TnePttSSwoyniFMT22SRbz/ 1fAPHgASlr8KgUxcN1JozFPKqA1wGURirxzLzlYMQrZmWyBE9ItGjr0/P6Yy8ttgLm6a TXtAuII5/g0p9e3JT7nY26/uaoGZDDkOR627yM3Ab81dtRwfi3WU0x5lznpC9kwfvkZs 0gmQ== X-Forwarded-Encrypted: i=1; AJvYcCUf1qwCCHEfagkt8dJpERl6avxVkac1hL8k9rlykBw3fCoPLoac8c2OFjwP463EhdZJQ9PXtnVrPKEc8J71@vger.kernel.org, AJvYcCV3CfkTtnycB083G0MEbam1f6CDh3U7BMvTviF/Mp1Sk6WnySgHXmN9f3u4GAfnDeBox4CjegYBGMtN@vger.kernel.org, AJvYcCVeXeQxbEQ2BjkobcBby4HcF+YiVYutYcmCcXVajTO1LDOyIZHcitBAx4fAzXqGmwjka2l5nk73RtUawFcYvAww@vger.kernel.org X-Gm-Message-State: AOJu0Yz4E1o8qygc8+8HEo/lc9E+B4errtsfRfcATy7Vkgph9MP6dS+6 vvGJoPsixjBQS+2k5VMmSQXXSQ6JzQdhjAT8XJ9gnSX/NT845xAb X-Google-Smtp-Source: AGHT+IH0QekuvHU51cxdN1F7qbKOFyhvHuY6RVatfv0TZ7kOWM1RFR4GPy9h1mQkS/JD+E1gLouy0Q== X-Received: by 2002:a05:6a00:148f:b0:71e:4296:2e with SMTP id d2e1a72fcca58-720b9c942damr688663b3a.11.1730317324518; Wed, 30 Oct 2024 12:42:04 -0700 (PDT) Received: from mighty.kangaroo-insen.ts.net ([120.88.183.142]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7edc8495cabsm9661839a12.0.2024.10.30.12.42.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 12:42:04 -0700 (PDT) From: Mithil Bavishi To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH v1 4/6] arm/dts: Add initial support for Galaxy Tab 2 7.0 Date: Wed, 30 Oct 2024 19:41:34 +0000 Message-ID: <20241030194136.297648-5-bavishimithil@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241030194136.297648-1-bavishimithil@gmail.com> References: <20241030194136.297648-1-bavishimithil@gmail.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Create a device tree for the 3 inch variants (P3100, P3110, P3113) Signed-off-by: Mithil Bavishi --- arch/arm/boot/dts/ti/omap/Makefile | 1 + .../dts/ti/omap/omap4-samsung-espresso7.dts | 70 +++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 arch/arm/boot/dts/ti/omap/omap4-samsung-espresso7.dts diff --git a/arch/arm/boot/dts/ti/omap/Makefile b/arch/arm/boot/dts/ti/omap/Makefile index 95c68135d..a5bbf4b34 100644 --- a/arch/arm/boot/dts/ti/omap/Makefile +++ b/arch/arm/boot/dts/ti/omap/Makefile @@ -76,6 +76,7 @@ dtb-$(CONFIG_ARCH_OMAP4) += \ omap4-panda.dtb \ omap4-panda-a4.dtb \ omap4-panda-es.dtb \ + omap4-samsung-espresso7.dtb \ omap4-sdp.dtb \ omap4-sdp-es23plus.dtb \ omap4-var-dvk-om44.dtb \ diff --git a/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso7.dts b/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso7.dts new file mode 100644 index 000000000..1aa18261f --- /dev/null +++ b/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso7.dts @@ -0,0 +1,70 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/dts-v1/; + +#include "omap4-samsung-espresso-common.dtsi" + +/ { + model = "Samsung Galaxy Tab 2 (7 inch)"; + compatible = "samsung,espresso7", "ti,omap4430", "ti,omap4"; + + backlight: backlight { + compatible = "pwm-backlight"; + pinctrl-names = "default"; + pinctrl-0 = <&backlight_pins>; + pwms = <&pwm10 0 1200 0>; + power-supply = <®_lcd>; + enable-gpios = <&gpio3 31 GPIO_ACTIVE_HIGH>; + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <2>; + }; + + panel { + compatible = "panel-lvds"; + power-supply = <®_lcd>; + width-mm = <154>; + height-mm = <90>; + data-mapping = "vesa-24"; + backlight = <&backlight>; + + panel-timing { + clock-frequency = <47255554>; + + hback-porch = <210>; + hactive = <1024>; + hfront-porch = <186>; + hsync-len = <50>; + + vback-porch = <11>; + vactive = <600>; + vfront-porch = <24>; + vsync-len = <10>; + + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + syncclk-active = <0>; + }; + + port { + panel_in: endpoint { + remote-endpoint = <&bridge_out>; + }; + }; + }; +}; + +&i2c3 { + touchscreen@48 { + compatible = "melfas,mms136"; + reg = <0x48>; + interrupt-parent = <&gpio2>; + interrupts = <14 IRQ_TYPE_EDGE_FALLING>; + touchscreen-size-x = <1023>; + touchscreen-size-y = <599>; + pinctrl-names = "default"; + pinctrl-0 = <&touch_pins>; + avdd-supply = <®_touch_ldo_en>; + vdd-supply = <&vcxio>; + }; +}; From patchwork Wed Oct 30 19:41:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MightyM17 X-Patchwork-Id: 839749 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5031213142; Wed, 30 Oct 2024 19:42:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730317331; cv=none; b=YcR8l+9Q5he5OyHR0MZ4vfExPy9+WLydRFeAuHvkWsk6wRpSkaEH7EfnoheFRoHQ3+BWkWSjMYgLnrntFeQXryJ/tVUbVv9FoFbMXGi1IVSbNJLgfWnuqUrsVYFZPEf2PoRMHGk5fJZJQXsrFdUqTVQoygL4+K86cRbzJSpHAe8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730317331; c=relaxed/simple; bh=m5pUQ5ivEEcNKjB/OrQ2lDZtF6LrqcIYY/T5jvwBeBQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GzThdYLIM2f6elSt2BRA9B23YY/dukJ+GwX/vIOphcHtIr0uzt7gydsPSY6woc0jY1bAn0CLUIj0MmuUelbVCmiSD72BUOVdtQfE9z0C18IIwko3jyEHa5VFRUyKuUXOApFIGoH5SWjlSxTwkDoNQs8DJFREwrPnLTMdTM4+UEc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jpMz8o+m; arc=none smtp.client-ip=209.85.215.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jpMz8o+m" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-7edb3f93369so201260a12.1; Wed, 30 Oct 2024 12:42:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730317329; x=1730922129; darn=vger.kernel.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=meKprjNgORMafpImZWoEVxdWNvHCKm3QrcNIoUh2puo=; b=jpMz8o+mnv6sYeMoV+l4bkE+Kj5mQBm88bK1dhKZjaERdVMMRaQXGS1YBUQmolUxxM ycSgpW0yu6OLNUBJB9EjcoWJvJ9Xn0kkZkCveGHkYBDAuDI/l3sPUYIlggRdRVR25QV7 wrdmfomMfLVeMRX46J60tKML24oODNr30WX+KhlmxTvcLmmE9WK+llkgav66q/htU6Xx 5pgSO8HaB4e4LYnugcCkd6k4oN8BnHq0XR6vAjoxIwZEriqBKy7ksSsn4H60lgcaiIsO U8ZAqp33qGrhR1UQATgXwuYYnmyuYw2WlTzSQZkxp8TGFAMpFVF30wqncKPvx6B90cVz IEyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730317329; x=1730922129; 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=meKprjNgORMafpImZWoEVxdWNvHCKm3QrcNIoUh2puo=; b=lFc9f4sJBtMe2bHvBWUzn1HBKnZ/r9HbI7OAA/mIGt1KkTTg8JhkdP71gO8ndD+veK 00vU/sEncFe5pbPQrb56/c1tlaYCsrCT2livQzKTXjV+58jujBfo846CY42RthxBPF+v 93jecIdpd7T7cO2e+Md5NYFysBLxtpfSiwod8/ZIM6SJqvD6VTB7A45iFe/wps6HpGtH BZyD80HfCWBx1+DDIIKNOr0wEboruAcPssuoPR2Rd0Wogu9V8Fz7LoDK5wrOiLp2BYf4 kYzDieQL6BykzCGslRUsGb0Q5ZpWWhsEkjVq92SAahIKe57Z5R4CLkekrqoFIJB7rp4L YM9Q== X-Forwarded-Encrypted: i=1; AJvYcCUyCBh9qQpgKtTlGUb4YYSvu+U0Z3OnK7M9qEN3NKvT+O11p1BMTvQA0mjqmQL5UcZc088dTOb5QmUq@vger.kernel.org, AJvYcCX+b3I8vxfYMzGqP7AUUwE7W+nq3tJrKoqunLDtTpSLrShkW4Bh6ndaSawJPxvoUJXU9aicgz3us1BDBFC+ZRQM@vger.kernel.org, AJvYcCXkD7q7LAmoqa0+6HeDHwfCJ46t+eCAVpf/B94ZrHH6bhU7RHoNopq/C6fcY+oRd8C3b3kEE8G62q43t9CT@vger.kernel.org X-Gm-Message-State: AOJu0YxdO6K2j+BTjutt9n6rv4Q8o054iHE0lqDfPBxkXHmvmBr6JQGE lnTmZh7vVxMBVEj0nzgMG+HZydoR+FXyhCyFvg9vixqWR+4Y6OjlE7UBxRSbcxk= X-Google-Smtp-Source: AGHT+IGOawjYjqhCgq7Mdg4rn1rYfrhIwxDWsgfL2J5gUzBZmlQSyy32EYkTUGvAuDTBgt665i4otg== X-Received: by 2002:a05:6a21:2d87:b0:1d9:6c9c:75ea with SMTP id adf61e73a8af0-1d9a83a6a48mr23285701637.5.1730317328944; Wed, 30 Oct 2024 12:42:08 -0700 (PDT) Received: from mighty.kangaroo-insen.ts.net ([120.88.183.142]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7edc8495cabsm9661839a12.0.2024.10.30.12.42.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 12:42:08 -0700 (PDT) From: Mithil Bavishi To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH v1 5/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 10.1 Date: Wed, 30 Oct 2024 19:41:35 +0000 Message-ID: <20241030194136.297648-6-bavishimithil@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241030194136.297648-1-bavishimithil@gmail.com> References: <20241030194136.297648-1-bavishimithil@gmail.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add samsung-espresso7 codename for the 7 inch variant Signed-off-by: Mithil Bavishi --- Documentation/devicetree/bindings/arm/ti/omap.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/ti/omap.yaml b/Documentation/devicetree/bindings/arm/ti/omap.yaml index 3d09ec1ad..2d39de677 100644 --- a/Documentation/devicetree/bindings/arm/ti/omap.yaml +++ b/Documentation/devicetree/bindings/arm/ti/omap.yaml @@ -137,6 +137,7 @@ properties: - motorola,xyboard-mz609 - motorola,xyboard-mz617 - samsung,espresso7 + - samsung,espresso10 - ti,omap4-panda - ti,omap4-sdp - const: ti,omap4430 From patchwork Wed Oct 30 19:41:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MightyM17 X-Patchwork-Id: 840007 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B4AB215010; Wed, 30 Oct 2024 19:42:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730317336; cv=none; b=GvczbfOmVD2o4a8Qo6UwkrTnUFtiRpIje7Rel+3iiERj2dxcLk/Dy6OErRY3pKsJlaKOs6rF6rIc4BX75KCxcPGCLs7XB/I9WwM6jveX80Q2MkRJ91ioIGKlplBw2MtdWQc2MNkzFW+TDDybbYLqFbdIxjZdkmO7H52dGr8SWnc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730317336; c=relaxed/simple; bh=oBPCzUY26BxZoDtjqdlImdRYlvQIrMQFMccQpfP/gHE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W5SwmDyGGlYJ2cFdFHsRW5kKdCJnYXykXhKgMxq/U2X4fHrzpquGcsH30i5D3lornuUuUF+3FNLX9aUqs7aMPICeAXQ4fE0u9XH2Ypcf6/qEmyjAKu3EewqPg19OdmArDsbzUWbr3Cz7Aen38sGSiV8DboPBv54tzdPKK4PLn7I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=covp3PUV; arc=none smtp.client-ip=209.85.210.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="covp3PUV" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-71e983487a1so141883b3a.2; Wed, 30 Oct 2024 12:42:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730317333; x=1730922133; darn=vger.kernel.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=en2zNFTs0cWjZaCeymxYV+ZMbz2+AnDSeuS+py13v5Q=; b=covp3PUVb1N61RzAQMgMqUmpF2ccAfZcHABkLUhSffDO/69xkWlaG5tFUitRKJr3tH KoDgOe+HMKnf9gkrwyStAZcTUMZ/pRgm+7l66JNaPdOqXN3tXRwWtAE3SSuP2eylz9ga GM0Q62icCbffWdSezpKHOQL1m01rZlP+JBeiNe7x46V+OaTpjzZcOoVGUH9lZ4A4NJzM SK6Jg1e9b4oek5AWeRUIy3VZrvK2ugJ9gBw8gwRJF+k8wnQQrUBlPeiNcUWyqPhoapIx WGeIDyTyIuALjQGLA4q1nfdrYWmT4UcNVO3ZPJxt2Eiz6YxtNFKW8N53xnn6HPxiNi9t GBsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730317333; x=1730922133; 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=en2zNFTs0cWjZaCeymxYV+ZMbz2+AnDSeuS+py13v5Q=; b=Q6xkxLgZTP4BEv1omyoB817n8dk83KQPF7Uhg+mj5NP+/Sdphlmyt47ilQHxcdhz0a 8V91otEGWmUfvOET1AF3m9cdDJYxoGZ2If2X47NIqg8rJQbYXjiEUqsAhGu2VApW4nKQ Q74p3D5kCjlpo3iIfSusZuNqReyHqmESz8TuHNhxUquX8Rwi4mkavbzo19g4B4E9SqQN 8OIejG6gXTHjwWW959ZeOiHpjNTdlTYLYxI4Q4wVlzhSh+VWsHNousZaV8lzzgJ2dmqz ls5iXtmMZqFnLZQtSwNG8HCR3kI9djziEOp/L2WENJ75QghcIHSs1pBobApwMEWNaqqS DpJA== X-Forwarded-Encrypted: i=1; AJvYcCUu8ko8gp3O1y9S6rnhjW6jX3WwQILVnMW8teHjNloFG3CeJau0oYo+cEfKxXPokNaXwDUwW/KGANCFxPjb@vger.kernel.org, AJvYcCV4acj3/fJJEYcN084sD9vStXTAlCODMRk+FXGu/Gj3h2XZi0jqUvuGd47hkthkI70za1xF6xNRdt88Ci1GCvL8@vger.kernel.org, AJvYcCXAVAE5ZdLRhseTN4tB5TM1u3SipzwN7LaTquiPkXahQBejIpF9/cuu6yoS6L6YpjOVAUUlSoXOSjzZ@vger.kernel.org X-Gm-Message-State: AOJu0YxBlVVNIPo496JcPWi+TAaVczJBsFJzeltq2tiBZTlsgyXu65do Q+gSuKRUn7W7KKYtNFPvvcWds2bzbIZQQ5nJN4iukd4vKzaM72Ut X-Google-Smtp-Source: AGHT+IFsA6fTzRreOO77OCCxSIVEJVvEaK4ZavzYCXlWT3ASn6aRHtxIh7Q2mPZYFnY97LHyeE/QDw== X-Received: by 2002:a05:6a00:3d56:b0:71e:5d1d:1aaf with SMTP id d2e1a72fcca58-720b9de1421mr1125963b3a.23.1730317333430; Wed, 30 Oct 2024 12:42:13 -0700 (PDT) Received: from mighty.kangaroo-insen.ts.net ([120.88.183.142]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7edc8495cabsm9661839a12.0.2024.10.30.12.42.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 12:42:12 -0700 (PDT) From: Mithil Bavishi To: Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH v1 6/6] arm/dts: Add initial support for Galaxy Tab 2 10.1 Date: Wed, 30 Oct 2024 19:41:36 +0000 Message-ID: <20241030194136.297648-7-bavishimithil@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241030194136.297648-1-bavishimithil@gmail.com> References: <20241030194136.297648-1-bavishimithil@gmail.com> Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Create a device tree for the 10 inch variants (P5100, P5110, P5113) Signed-off-by: Mithil Bavishi --- arch/arm/boot/dts/ti/omap/Makefile | 1 + .../dts/ti/omap/omap4-samsung-espresso10.dts | 102 ++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100644 arch/arm/boot/dts/ti/omap/omap4-samsung-espresso10.dts diff --git a/arch/arm/boot/dts/ti/omap/Makefile b/arch/arm/boot/dts/ti/omap/Makefile index a5bbf4b34..576a059de 100644 --- a/arch/arm/boot/dts/ti/omap/Makefile +++ b/arch/arm/boot/dts/ti/omap/Makefile @@ -77,6 +77,7 @@ dtb-$(CONFIG_ARCH_OMAP4) += \ omap4-panda-a4.dtb \ omap4-panda-es.dtb \ omap4-samsung-espresso7.dtb \ + omap4-samsung-espresso10.dtb \ omap4-sdp.dtb \ omap4-sdp-es23plus.dtb \ omap4-var-dvk-om44.dtb \ diff --git a/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso10.dts b/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso10.dts new file mode 100644 index 000000000..c7f99cd65 --- /dev/null +++ b/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso10.dts @@ -0,0 +1,102 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/dts-v1/; + +#include "omap4-samsung-espresso-common.dtsi" +#include +/ { + model = "Samsung Galaxy Tab 2 (10 inch)"; + compatible = "samsung,espresso10", "ti,omap4430", "ti,omap4"; + + i2c-gpio-5 { + smb347: charger@6 { + compatible = "summit,smb347"; + reg = <0x6>; // 0x0C >> 1 + iterrupt-parent = <&gpio2>; + interrupts = <0 IRQ_TYPE_EDGE_BOTH>; + + summit,enable-usb-charging; + summit,enable-charge-control = ; + summit,chip-temperature-threshold-celsius = <120>; + summit,usb-current-limit-microamp = <1800000>; + }; + }; + + backlight: backlight { + compatible = "pwm-backlight"; + pinctrl-names = "default"; + pinctrl-0 = <&backlight_pins>; + pwms = <&pwm10 0 1600 0>; + power-supply = <®_lcd>; + enable-gpios = <&gpio3 31 GPIO_ACTIVE_HIGH>; + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <7>; + }; + + panel { + compatible = "panel-lvds"; + power-supply = <®_lcd>; + width-mm = <223>; + height-mm = <125>; + data-mapping = "jeida-24"; + backlight = <&backlight>; + + panel-timing { + clock-frequency = <69818000>; + + hback-porch = <64>; + hactive = <1280>; + hfront-porch = <16>; + hsync-len = <48>; + + vback-porch = <11>; + vactive = <800>; + vfront-porch = <16>; + vsync-len = <3>; + + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + port { + panel_in: endpoint { + remote-endpoint = <&bridge_out>; + }; + }; + }; +}; + +&i2c3 { + touchscreen: synaptics-rmi4-i2c@20 { + compatible = "syna,rmi4-i2c"; + reg = <0x20>; + #address-cells = <1>; + #size-cells = <0>; + + interrupt-parent = <&gpio2>; + interrupts = <14 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-names = "default"; + pinctrl-0 = <&touch_pins>; + + avdd-supply = <®_touch_ldo_en>; + vdd-supply = <&vcxio>; + + syna,reset-delay-ms = <200>; + syna,startup-delay-ms = <200>; + + touchscreen-size-x = <1279>; + touchscreen-size-y = <799>; + + rmi4-f01@1 { + reg = <0x01>; + syna,nosleep-mode = <1>; + }; + + rmi4-f11@11 { + reg = <0x11>; + syna,sensor-type = <1>; + }; + }; +};