From patchwork Fri Jan 19 11:11:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13523637 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 26B55C47DB7 for ; Fri, 19 Jan 2024 11:12:44 +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=Rgn9vvCSLpQPScZ3ICDuaXHxUOkvb55qECs9DRs9Qr4=; b=pmQpeRl5WK/GoZ eLVjFgRvfuez9HdbyK7qIC8j+6MaloQmZ6k7uP8FVzQT52VxSwWt3rrIWtLWOHaIehjvxcfxTk/S4 TASAUn4wgLztVO01wny0JH/HezlIwQh2MRvTFDIIUDbmkNu1G/iWVrkNFhiHEifReI2+Ke4qG2J4H kcW2C+yqeo46DyLsyO++c7X9O4LfjI7J95MuH4x7J+W4+JhstJ/Q/jcFiB0HQtyVtQQUJtiWXnErG nMCXbxeNmlfJek/OscBu9n3kyDkN+n2jsUwxNDROjJoB6ifmHxFycnG5/xypLYo6HULKZSj5KTnPy CMvCkEIEXW0bVV018uOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQmnC-005Byk-0f; Fri, 19 Jan 2024 11:12:10 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQmn4-005Bu7-0m for linux-arm-kernel@lists.infradead.org; Fri, 19 Jan 2024 11:12:04 +0000 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-337c5eb1bddso543194f8f.3 for ; Fri, 19 Jan 2024 03:11:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705662717; x=1706267517; 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=L66JRLF0ZrsoUYfnES6QXLTT243sb9kIBlOTRCXLcRs=; b=hYgslln+EcD/dm8JKI1gbC2qlwadLRIoIns2bGXCwd/WSlizybW37JPNDVtYL2vcEh 1HdsvJFLoXRRUO8AoRhyIe8SCWtZJpmCJf90XPpkvQqYG4tMy8n1eUg0FMYJs+wZ5Ecd LDzc2e7LKJY/K0bUSjHgrBvdV8fdmlLY/e5iltJCbSFwTmKZwd1I1twUDV4ebyE9ogJH xRmMhUDzAkBgXGcYN8W+5qWIn7OqNxVFVoYkBifVEWEVxF8SqDQlC4XARzGUwd6I/Rcf 9YwWlVf2pOz3K9qxrEpCyzsPhS++ceYXtgvKNRe/9waGDNkVxUGcjPOkLuRoKAMlgm7A XhZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705662717; x=1706267517; 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=L66JRLF0ZrsoUYfnES6QXLTT243sb9kIBlOTRCXLcRs=; b=WI9kMBEpO6U+/hVjYBcpQmja/L6fih75MM8nKz3iRodZBu/vGXt9xyeAQNAZUjG3Wl dtfKaYL4G6QVz316PFTAYNONQQy47pzURY4ijjkkTjeDy1e1yePLA/hRcVdwPF19ZtfE bUFpQOlf5auDmdwPmNrmPx+WOQUzWa1RoJQ9t2lYQM0N+yG3frBs5xSsb9KT17lPdKv5 BEy/FGGy7KrEfJmUcGSzvNVXiaSS/FfsrLmOZTR0vranPozZk3ZL9Y9xYuiIHaVCiyVs jUBvuS65SWB8ZLcvt97gI0mcsTT2Z3wFxNo/QDW9of0fVg/HxXffSKl0Uj3rv7nqKF61 xhMA== X-Gm-Message-State: AOJu0Yztk/WrQVwvYxJA+RKgccHQp6/LOjMgy2MyKSIjgAHesrUti99K gw7jBLi9zPsxNu98Ox1lUUC1qQm4LdeL0j+ip5YfPtvS/PIbC2dLt5saY3mKDAo= X-Google-Smtp-Source: AGHT+IGjQ9rPloGe3yccmeIqbpMxV3/OmhM/oo7XcQ3/J2zR0OKoUoeJlDfZgt0XPaGred5M5PheRw== X-Received: by 2002:a05:6000:d87:b0:339:219a:4613 with SMTP id dv7-20020a0560000d8700b00339219a4613mr396926wrb.65.1705662717544; Fri, 19 Jan 2024 03:11:57 -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 o10-20020a5d62ca000000b00337d4ce6ab4sm3341868wrv.20.2024.01.19.03.11.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 03:11:56 -0800 (PST) From: Tudor Ambarus 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: andi.shyti@kernel.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, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, andre.draszik@linaro.org, semen.protsenko@linaro.org, willmcvicker@google.com, kernel-team@android.com, Tudor Ambarus Subject: [PATCH v4 8/8] arm64: dts: exynos: gs101: enable eeprom on gs101-oriole Date: Fri, 19 Jan 2024 11:11:32 +0000 Message-ID: <20240119111132.1290455-9-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240119111132.1290455-1-tudor.ambarus@linaro.org> References: <20240119111132.1290455-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-20240119_031202_274435_244FA0B7 X-CRM114-Status: GOOD ( 10.32 ) 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 --- 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";