From patchwork Tue Jan 9 12:58:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13514911 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C2A62C47077 for ; Tue, 9 Jan 2024 12:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iGitBCnnIYObvj3zP12voqIx1ApevjRgZU26zv8JIXQ=; b=T5yHhG386Cwdv8 VM51gZYO71lTFEgfSunu5mV6p5E1EYzN0Wx9ON2neVSP1vaFBpNF+bVN7hJguYVxOI2fHfS+uM9km OJq2JWlqylfjCNJ3sHgdYVzRBmyTu8ZosbogyenaLGCUCwWr5eb4ECjk6urOo/VWg9mQb9pRd4YCP j1obGVQZt8D7BNkmFhXkSnVhM32+NUP4HpMrjbSLD3DRyUg9ULjE55gA2iNy2zquiVZ9jzGTpUeXU VTTvsXToUfZrwXmKhshWW1R3KL0UGpPd9HKyHK/vOvHyG35ueNy5zCFLwbnyhGDE+OMjACUBxvpme vv+wkP6HuUBK5FnS+AJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rNBh6-008Ig4-2n; Tue, 09 Jan 2024 12:59:00 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rNBgx-008IUW-0Z for linux-arm-kernel@lists.infradead.org; Tue, 09 Jan 2024 12:58:52 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-40e4d1e0e5eso8582165e9.3 for ; Tue, 09 Jan 2024 04:58:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704805126; x=1705409926; darn=lists.infradead.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=66WHfoChmjF44TpuZe1F+scHybHenf1Nb7ZkRVtSfIY=; b=kMxAZuPVRKLj+i7UOqFVQPBhJsYTGCnr8lnEjlnzCp4DzTNVlICDIAZMweqwWYkIA9 NNIvZlVCucLPrnE8rbzsQaVRjK7l4taM2JfjKcZWvVKTEp6423SrJUYHUqMBdo54UjSi nBmWVBAgKFd/GXVVVNjecydZUvtgBeYC48OGWBsdwFBAJ82NUbb4k+59MjKcRadE6RWe Go/DANiQLglf7X9HLlmVXa0pl6edCaFo5YgFzAKnocsJIMZ31bwEsSri8LfWWeth+X/w uY/WuNt0EFetKFZnAQi9316iW16feROElp3m/iP32sBYfVr3nZNs765OvdfdEU+KYE2J cP6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704805126; x=1705409926; 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=66WHfoChmjF44TpuZe1F+scHybHenf1Nb7ZkRVtSfIY=; b=ImUXMNYSkjRfmDsKGvEymPowHYdo0ZPp/aT4EYOaaCMqbc5zam9nYfEdVcaYQTtTHW CqzuvOEiyPZ6VY776f2T7u8Ja0eyPN6qCuowfisdmzH5GOf/VsK6kwqN1t21j46U+uTz xmx31G1V/UsXms2ZMbb+byRWhJdMtefV0L6mcOTSXm8N7pFNm71jlZpH4ZuidSEDQ5BY GwH93N+cPCIez7hKtALgbZkKkYZx5mrAwkTIIkv/eMnHpD/ZU9FwMZGxOhp2/shfkkmZ gxxM49J3Mi8fNkRp5mBbvO1dLLKnkg5F9jTZmG9hTE19rvoBACv0xUG9q9dIZzBiHk3o q8CA== X-Gm-Message-State: AOJu0Yxqxzv8hUFX/FwfGTh87wR5etETgWac64OiMAKG2KOUVy2+2OQB ajEhadN9T/MlvPCJZChbw/6T4vmXcVXGsA== X-Google-Smtp-Source: AGHT+IHTeV8EyfLOccPihdbXSpbOQ08P0ffNZMnT6S1UpNLyuVQRXyqsi0Qq1eRPCQMkBY5K2Eql1A== X-Received: by 2002:a05:600c:538d:b0:40e:41f2:6d74 with SMTP id hg13-20020a05600c538d00b0040e41f26d74mr2481510wmb.67.1704805126502; Tue, 09 Jan 2024 04:58:46 -0800 (PST) Received: from ta2.c.googlers.com.com (88.140.78.34.bc.googleusercontent.com. [34.78.140.88]) by smtp.gmail.com with ESMTPSA id cw16-20020a056000091000b0033753a61e96sm2351302wrb.108.2024.01.09.04.58.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 04:58:45 -0800 (PST) From: Tudor Ambarus To: peter.griffin@linaro.org, krzysztof.kozlowski+dt@linaro.org, gregkh@linuxfoundation.org Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, conor+dt@kernel.org, andi.shyti@kernel.org, alim.akhtar@samsung.com, jirislaby@kernel.org, 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, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-serial@vger.kernel.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus , Sam Protsenko Subject: [PATCH v3 12/12] arm64: dts: exynos: gs101: enable eeprom on gs101-oriole Date: Tue, 9 Jan 2024 12:58:14 +0000 Message-ID: <20240109125814.3691033-13-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20240109125814.3691033-1-tudor.ambarus@linaro.org> References: <20240109125814.3691033-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240109_045851_218118_C9586746 X-CRM114-Status: GOOD ( 10.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the eeprom found on the battery connector. The selection of the USI protocol is done in the board dts file because the USI CONFIG register comes with a 0x0 reset value, meaning that USI8 does not have a default protocol (I2C, SPI, UART) at reset. Reviewed-by: Sam Protsenko Reviewed-by: Peter Griffin Signed-off-by: Tudor Ambarus --- v3: collect Peter's R-b tag v2: - move cells and pinctrls properties to dtsi - collect Sam's R-b arch/arm64/boot/dts/exynos/google/gs101-oriole.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts index 4a71f752200d..cb4d17339b6b 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts +++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts @@ -63,6 +63,15 @@ &ext_200m { clock-frequency = <200000000>; }; +&hsi2c_8 { + status = "okay"; + + eeprom: eeprom@50 { + compatible = "atmel,24c08"; + reg = <0x50>; + }; +}; + &pinctrl_far_alive { key_voldown: key-voldown-pins { samsung,pins = "gpa7-3"; @@ -99,6 +108,11 @@ &usi_uart { status = "okay"; }; +&usi8 { + samsung,mode = ; + status = "okay"; +}; + &watchdog_cl0 { timeout-sec = <30>; status = "okay";