From nobody Mon Apr 01 23:47:29 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V7nkB05prz5FRP2; Mon, 1 Apr 2024 23:47:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V7nk96XsDz4Q7c; Mon, 1 Apr 2024 23:47:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712015249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZekT35PTutV3ZQUxiXQUlSAvF7/3fYHOT3BINSJYOwM=; b=ycNNDpom8s0vZY/kf/sRMEGfI4gXhPzZD/+SfjZo1bc9MlVpRNjglpTZ1Xp6vqwxKsFjEH Z6tj/NFMmeIKzWjoedZmqohcfxmQA+zzoOYYVOry6h4HtjHPoAbler4Fgg9oZpL3PqKJMb BKRaQ2dxwSjktrCBkFEDYC2MccOroCXjLEc0snC9+q+fGoGB7Bu8S7gegAdRwAFH88mgXX HTIDDLfyJ/hzoNcuoGy8EZzWjDaNX1FFxPfB3lzJTm5418JHHe6HuovpXyrm1foXEguWQ1 ZjqVxyMCPqPFEeTrWWvcXGjnTPq2PC9GtX9joMONU5XI04A6UZl5EISGsPhyLQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712015249; a=rsa-sha256; cv=none; b=bj8U+Wl/b6giq/X75EG0+nKmB2yBxnGuPS40YhVOC6xqwt5DkWUnaE0l/cEKhL7yKjQsmM zLMnXtC65w96AVUuJA+Y8MVjL7OeymWNsy0Na50eoOQMq4ystYR3PhLh15g5ooqF85XnFN YrROl86gqYaNutETFrWJIWUb5T1ZXFJT1kPBhLnSvtdeiPz4OnJfX/J39VY/txCKeM77m+ WZPDpkjSzEpfCGBq8n8tRhy4sZ8rebztsEOiqq5mReiWAlhokpPeApAR4d1rIl81mmd6j6 5zPQYyFJL+ZmrVXHBIvfj3Uj6EiIuBByCBV5LNYeN1D38rMvM1EQtbv9B2Flww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712015249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZekT35PTutV3ZQUxiXQUlSAvF7/3fYHOT3BINSJYOwM=; b=rtcDa1w8Jun2u9DiKNriIi2IKNpEImSKLETpk83sDwJ5UoRVrEIX9sy6cvrEx5KVRoc3l5 HxONbJYYH93rBDKHRUsbPloauuoecEjjCMNpadZJ7n331e3X6wRp3B3PB9chO+2hW25D5u salgF/y9gRoelEcXfbxJTfSZYa5/w7JOatsn791dzrkil3zD3bjmTmNxKGEG7+StGFbhN3 vl8Vcle7155PpC896I2cXSQLBeODMuminK8zmP6ovAKNmp0BSYUujg/ztrJE+9+NNdtMZz xwlATaAtWpClfEFCW6AGb9sa0SH2S2yIsvjeX0pCa71wfeBuQJyZgGM5W2fukQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V7nk968zTzQnD; Mon, 1 Apr 2024 23:47:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 431NlTal084002; Mon, 1 Apr 2024 23:47:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 431NlTBs083999; Mon, 1 Apr 2024 23:47:29 GMT (envelope-from git) Date: Mon, 1 Apr 2024 23:47:29 GMT Message-Id: <202404012347.431NlTBs083999@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 4bce8178af85 - stable/14 - iicbus/mux/pca954x: add support for PCA9546 I2C Switch List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 4bce8178af8544cf0cc2cfc742bbe50ad43af738 Auto-Submitted: auto-generated The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=4bce8178af8544cf0cc2cfc742bbe50ad43af738 commit 4bce8178af8544cf0cc2cfc742bbe50ad43af738 Author: Bjoern A. Zeeb AuthorDate: 2024-02-21 09:10:55 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-04-01 23:46:10 +0000 iicbus/mux/pca954x: add support for PCA9546 I2C Switch Add support for the 4 channel I2C switch from NXP by adding a new description struct and the list entries. Compared to x=[2345] which require code to support the INT, for this one no further changes are needed. Tested on: WHLE-LS1088A using a SPF+ Reviewed by: imp (cherry picked from commit c81df1c112621803abe6a43aa89238c830e86b72) --- sys/dev/iicbus/mux/pca954x.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sys/dev/iicbus/mux/pca954x.c b/sys/dev/iicbus/mux/pca954x.c index aebd55d6c311..befa0db39172 100644 --- a/sys/dev/iicbus/mux/pca954x.c +++ b/sys/dev/iicbus/mux/pca954x.c @@ -3,7 +3,7 @@ * * Copyright (c) 2019 Ian Lepore * Copyright (c) 2020-2021 Andriy Gapon - * Copyright (c) 2022 Bjoern A. Zeeb + * Copyright (c) 2022-2024 Bjoern A. Zeeb * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -69,6 +69,13 @@ static struct pca954x_descr pca9540_descr = { .enable = 0x04, }; +static struct pca954x_descr pca9546_descr = { + .partname = "pca9546", + .description = "PCA9546 I2C Switch", + .type = PCA954X_SW, + .numchannels = 4, +}; + static struct pca954x_descr pca9547_descr = { .partname = "pca9547", .description = "PCA9547 I2C Mux", @@ -87,6 +94,7 @@ static struct pca954x_descr pca9548_descr = { #ifdef FDT static struct ofw_compat_data compat_data[] = { { "nxp,pca9540", (uintptr_t)&pca9540_descr }, + { "nxp,pca9546", (uintptr_t)&pca9546_descr }, { "nxp,pca9547", (uintptr_t)&pca9547_descr }, { "nxp,pca9548", (uintptr_t)&pca9548_descr }, { NULL, 0 }, @@ -94,6 +102,7 @@ static struct ofw_compat_data compat_data[] = { #else static struct pca954x_descr *part_descrs[] = { &pca9540_descr, + &pca9546_descr, &pca9547_descr, &pca9548_descr, };