Message ID | 20240129174703.1175426-8-andre.draszik@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-43234-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp729669dyb; Mon, 29 Jan 2024 09:49:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxvswQ5jPT1EEadIILiuEn1gRfGEpWi/qGEjWjFCiT/sKKH6Z9GWHRr4Ewip6OvNNbRTLY X-Received: by 2002:a17:902:650e:b0:1d8:cdb1:d477 with SMTP id b14-20020a170902650e00b001d8cdb1d477mr2516286plk.1.1706550579752; Mon, 29 Jan 2024 09:49:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706550579; cv=pass; d=google.com; s=arc-20160816; b=Zi+2fRK1PgnuPAQbaITuk9GVOVCNiv2WjqLJOxyMN1ci4TkO0EZ6EQmWC/PZ6UyQds VqoQYWdpQ9oKpTOiKtJl+edKcz/izryjvxh+AjEgxzGeaBVelLx7o6nwDkrvM07LIAtV HVi+A6Tw6TVViFJFIQVCOq9GKzT0fhSOhwP7u6TJG5h1kGX9TGtbO6c0+TE6ipiQyZT1 qSEOedtw8PMbc83NKTebtPiR2PF8+5N8eVIdmF56YMj4jTUR8FDw7CKG2AAifqUrU7Ed q5eLMPEgeQB2nEq3gzJvfgwdn8WaK/Fjr1F1DI1emLjbJlgx18k2sERDoD9W7vtqmW9r 5Kxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=YN7Q9lvRKaAglbSzz4YTb/Gj6CnT1pQKtP0U/KtQa4g=; fh=TOy9P9R4dw7gQuS6erfsRq6Bs2QGsqU+Z4u7pVJui9w=; b=runbLL97KrJQdBZd9sS0dxBlZMq9Y6lDXJA8BmmETGOZP3pHk5G3YaL/DNP7yta+AR gN8N9mA1VrDouj27YOs3/pmiNWim0t2NzKjcG0CNtyUtuAfAB0wsdepUye3BNjq8R659 tAjtSE8YnmtRWf5hXr4ma5+ectyHsc9EVg5bOfBMeQJIOH+egR8R1ynT2LBrSTTdyYu3 9wtgei4pkqEuwm0wyz+QOevwsIu5FJTJ7JoE1Q7XSypSCk4mIxkgR+X42GQ/lyvFijeE kbCV/yN+IjK0IXxx2cNJ3tSVUWf0jcjxWsbGpb5pmeD4Qu/SULw43shJXv21hQ49XuIE 1iIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rxVIC+S6; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-43234-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43234-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id jv11-20020a170903058b00b001d8f69e3661si855712plb.150.2024.01.29.09.49.39 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 09:49:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43234-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rxVIC+S6; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-43234-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43234-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 604BE285290 for <ouuuleilei@gmail.com>; Mon, 29 Jan 2024 17:48:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E05615957B; Mon, 29 Jan 2024 17:47:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rxVIC+S6" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.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 473E63F9E0 for <linux-kernel@vger.kernel.org>; Mon, 29 Jan 2024 17:47:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706550435; cv=none; b=IwEv/JIyS0WCLjnlKngvxCgd53WPey50RSzPXbn+cRL7UmOXiVk6aYtbvd4T71bM827319UAxlumQbLEYx4HLQPmY9/gnrIkRMYJpBU0C1mjGT3DlHT5RKTCdrxTT7lPxccFkHiY+J2u2rI2s4F7Kpy6jRI4Zehi1zqHQKwRGwQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706550435; c=relaxed/simple; bh=EYbrVsBx4CczVTo2it9ewxYkNd2HjzVb5k8/lZR7m9U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UwrL8f4wyWWdi3p2cbQTEtHS1GvxXHEJ7uvDGnmXBmyQt8vERJ7UOOOt7/SvYzrhHyIr8YJFZcjl88ASk+a1I3TH3OOYzY87CRFGkZ9Qj8m1sRve1f9H93sJ4DnoAsk7obdRpdF6/IMbbWeYJgAY6/761yZQ18PhfFe8SAd52FA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=rxVIC+S6; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2cf1288097aso41002211fa.0 for <linux-kernel@vger.kernel.org>; Mon, 29 Jan 2024 09:47:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706550430; x=1707155230; 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=YN7Q9lvRKaAglbSzz4YTb/Gj6CnT1pQKtP0U/KtQa4g=; b=rxVIC+S68AT1fvl5V1ayIIMhvjMfa6mng+JRE/W0XYA5mgI08ayOxwa/KcieAEedIW dCUN5gHEe1NqZehVJS0o3sTrbqL0tMbm3iyIrE+9jWIDZppb2md7tMI4JT24VL1HPsSE cnnXsouipiE3DAO8dxsaxF7LqN+I2KXBS7DnZ3t5e7h7KIEnV8kKVmVY6gRynW31eCTu y00IKgeS2lkyX1BAUAJ3JdLy2mq99FzSVn2DY/nW6KmRib7dlc2whIS9mBMbC81vTROm aVTHnVfL055blSYpTt0n+o2VC0ZJfHysxY6ExtD2gTWyYewUcSAo4AlgdzwmIO8RNepw GFCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706550430; x=1707155230; 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=YN7Q9lvRKaAglbSzz4YTb/Gj6CnT1pQKtP0U/KtQa4g=; b=P/zwMZGrL7XcgKjbzi/MFPYabHh5rnWqI+QjfKyi5DNwQJoTJso+YI9hZjK9LRdnJ8 dj37/HGZdjL3vpz2K1wsEP0ilsSsTtriF/WwQvsO7J7nFzF79FZPCvM6LnhFGnc69+ux nxTgKc4Fx/u7Hrn0HoUpxVCFgnE6wJO/ExOY2PJMhDWuM31XiKUmmIpkSXvfmqwYN2eS JKLza7UUPTUwByhYV1P0XKbM2ccY9XAlJGXiSwr/oLNyDN61qyDxKvZaf43po/eXaeNh 8ppin5J0g7n2mqQrVxzf7Kkz1vg/A/ETwZpWNBfERUKx1BjhHLNMvP/T/VSxCnru/j9U lSEw== X-Gm-Message-State: AOJu0YxrGwBBnXCNcPbkoRiHQXdSUImJ8Sj8vQijHGjPjEyffwYHgMDy YfU/TBpUfsQpgG3eRmVh0AFW+Ps0bXcmY+OmEPme3awVAXxRWgA35OaAhWR8xik= X-Received: by 2002:a05:651c:1a1e:b0:2d0:5283:84a8 with SMTP id by30-20020a05651c1a1e00b002d0528384a8mr1574080ljb.36.1706550430239; Mon, 29 Jan 2024 09:47:10 -0800 (PST) Received: from puffmais.c.googlers.com.com (94.189.141.34.bc.googleusercontent.com. [34.141.189.94]) by smtp.gmail.com with ESMTPSA id u10-20020a05640207ca00b0055f08fa9286sm1000999edy.23.2024.01.29.09.47.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 09:47:09 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= <andre.draszik@linaro.org> To: peter.griffin@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, tudor.ambarus@linaro.org, willmcvicker@google.com, semen.protsenko@linaro.org, alim.akhtar@samsung.com, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 7/7] arm64: dts: exynos: gs101: enable i2c bus 12 on gs101-oriole Date: Mon, 29 Jan 2024 17:46:06 +0000 Message-ID: <20240129174703.1175426-8-andre.draszik@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240129174703.1175426-1-andre.draszik@linaro.org> References: <20240129174703.1175426-1-andre.draszik@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789447980691741602 X-GMAIL-MSGID: 1789447980691741602 |
Series |
gs101 oriole: peripheral block 1 (peric1) and i2c12 support
|
|
Commit Message
André Draszik
Jan. 29, 2024, 5:46 p.m. UTC
This bus has three USB-related devices attached to it: 0x25: Maxim 77759 Type-C port controller 0x35: Maxim 20339EWB Surge protection IC 0x36: Maxim 77759 Fuel gauge 0x57: NXP PCA9468 Battery charger 0x66: Maxim 77759 PMIC 0x69: Maxim 77759 Charger where the Maxim 77759 has multiple i2c slave addresses. These don't have (upstream) Linux drivers yet, but nevertheless we can enable the bus so as to allow working on them (and to make i2cdetect / i2cdump / etc. work). Signed-off-by: André Draszik <andre.draszik@linaro.org> Reviewed-by: Peter Griffin <peter.griffin@linaro.org> --- v2: * add short summary of devices attached to this bus & add TODO * collect Reviewed-by: tags --- arch/arm64/boot/dts/exynos/google/gs101-oriole.dts | 10 ++++++++++ 1 file changed, 10 insertions(+)
Comments
On Mon, Jan 29, 2024 at 11:47 AM André Draszik <andre.draszik@linaro.org> wrote: > > This bus has three USB-related devices attached to it: > 0x25: Maxim 77759 Type-C port controller > 0x35: Maxim 20339EWB Surge protection IC > 0x36: Maxim 77759 Fuel gauge > 0x57: NXP PCA9468 Battery charger > 0x66: Maxim 77759 PMIC > 0x69: Maxim 77759 Charger > where the Maxim 77759 has multiple i2c slave addresses. > > These don't have (upstream) Linux drivers yet, but nevertheless we can > enable the bus so as to allow working on them (and to make i2cdetect / > i2cdump / etc. work). > > Signed-off-by: André Draszik <andre.draszik@linaro.org> > Reviewed-by: Peter Griffin <peter.griffin@linaro.org> > > --- Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> > v2: > * add short summary of devices attached to this bus & add TODO > * collect Reviewed-by: tags > --- > arch/arm64/boot/dts/exynos/google/gs101-oriole.dts | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts > index cb4d17339b6b..6ccade2c8cb4 100644 > --- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts > +++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts > @@ -72,6 +72,11 @@ eeprom: eeprom@50 { > }; > }; > > +&hsi2c_12 { > + status = "okay"; > + /* TODO: add the devices once drivers exist */ > +}; > + > &pinctrl_far_alive { > key_voldown: key-voldown-pins { > samsung,pins = "gpa7-3"; > @@ -113,6 +118,11 @@ &usi8 { > status = "okay"; > }; > > +&usi12 { > + samsung,mode = <USI_V2_I2C>; > + status = "okay"; > +}; > + > &watchdog_cl0 { > timeout-sec = <30>; > status = "okay"; > -- > 2.43.0.429.g432eaa2c6b-goog >
On 1/29/24 17:46, André Draszik wrote: > This bus has three USB-related devices attached to it: > 0x25: Maxim 77759 Type-C port controller > 0x35: Maxim 20339EWB Surge protection IC > 0x36: Maxim 77759 Fuel gauge > 0x57: NXP PCA9468 Battery charger > 0x66: Maxim 77759 PMIC > 0x69: Maxim 77759 Charger > where the Maxim 77759 has multiple i2c slave addresses. > > These don't have (upstream) Linux drivers yet, but nevertheless we can > enable the bus so as to allow working on them (and to make i2cdetect / > i2cdump / etc. work). > > Signed-off-by: André Draszik <andre.draszik@linaro.org> > Reviewed-by: Peter Griffin <peter.griffin@linaro.org> Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org> > > --- > v2: > * add short summary of devices attached to this bus & add TODO > * collect Reviewed-by: tags > --- > arch/arm64/boot/dts/exynos/google/gs101-oriole.dts | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts > index cb4d17339b6b..6ccade2c8cb4 100644 > --- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts > +++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts > @@ -72,6 +72,11 @@ eeprom: eeprom@50 { > }; > }; > > +&hsi2c_12 { > + status = "okay"; > + /* TODO: add the devices once drivers exist */ > +}; > + > &pinctrl_far_alive { > key_voldown: key-voldown-pins { > samsung,pins = "gpa7-3"; > @@ -113,6 +118,11 @@ &usi8 { > status = "okay"; > }; > > +&usi12 { > + samsung,mode = <USI_V2_I2C>; > + status = "okay"; > +}; > + > &watchdog_cl0 { > timeout-sec = <30>; > status = "okay";
diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts index cb4d17339b6b..6ccade2c8cb4 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts +++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts @@ -72,6 +72,11 @@ eeprom: eeprom@50 { }; }; +&hsi2c_12 { + status = "okay"; + /* TODO: add the devices once drivers exist */ +}; + &pinctrl_far_alive { key_voldown: key-voldown-pins { samsung,pins = "gpa7-3"; @@ -113,6 +118,11 @@ &usi8 { status = "okay"; }; +&usi12 { + samsung,mode = <USI_V2_I2C>; + status = "okay"; +}; + &watchdog_cl0 { timeout-sec = <30>; status = "okay";