From nobody Wed Feb 21 16:46:46 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 4Tg2HB2myzz59vMK; Wed, 21 Feb 2024 16:46:46 +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 4Tg2HB2FP3z4gXV; Wed, 21 Feb 2024 16:46:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708534006; 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=K1lnpryqSIttJewclyC60koxvB+8I3MHFJeSjzrvnt0=; b=YLm196Kj2iw4s+rxWKjd6az/Lrh/InwBYgfM4iO0DpWGbTOd+0sRo+wGc4g1t0sqSolGa4 auT2Ty2mnnGVuM6NexP4BD5GyXEqdbgxGyQXFDSkgFMa+S863dAKkraHum2QuyOEP8Blw+ 4gh8lAbbdPiXrOYreRsTi+zvgjVA6OVOICVoYqojLWSTWNMr0+EyzRDZGHP+cvYfzFDc1e FvdEWW2bGfABCdxKVuLi0XkEMk/c6YgM7xgr7TefZq8noB98ujZuO5+ieQRbnGSFHnXVJ5 T4B9iIFhrlv50F1l5SQHf9bn53EvHKv3uJBUMcW/WeaXaeONoaIScq8qh2GDYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708534006; 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=K1lnpryqSIttJewclyC60koxvB+8I3MHFJeSjzrvnt0=; b=q0u0QfyoXYqZ/sIqxv/XZGgFyexoLuMEalMcNJrqqrdcagXpVJHCMdIlAUPghLmiKlweTz T+y0V1aLwzCnVfr0IGx7b4ic2o6TUA3DHwImCXE3zccY5UMzJr42XGCkhxOMF3SiB3CiQY 66Qoh/4tzd7pjkkXfuhR1wUDGsK7s7ZgWELi7IxgY0p0VHWkUqk7Aof6l3WjtF7XpvoM6q orvrmG8ZyKtv3E+cl833drDilObaDjHKa/c08mhU/BCiaH5HtgRDgIYqOV8ySyR8QH7/Bc pCt4PsEbgbZZZfcKbpMaWArrGPZ7Gr2hW9UTR4Enz+2ECoDnWTAEwC0BQnclzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708534006; a=rsa-sha256; cv=none; b=QtnJRN7+S74CpFFoN2mxlxKEgWSAhrjVmiwSrjqdofwt1QY5x4XYCyzc7Uh9cOl7HgRsSA /az0i/2s4A76K2KQM699xMp0SR/UOK1C3waqfe3m+qi0is7nQxaxzbqgD/d2h04mtFBYAQ ElQJ0g268HsSCqoJNHi+UfszUF24Vf7lpucjUyE0o4hTNINYeptAcd4S+EVkN+1Sv4RO1u o8rY65PltuqRuVUEb9FGFwi1FVGPcHVMPa3mQ2NRU1G5kop6J/xKcBbB78buZA0dPO4bYu 14jBibk0cIsBdh0eXSrqtBZ95BjUkGCx7VhQAXwm0LPphM+SIrgOTdp7yLJPDQ== 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 4Tg2HB1HtFz19kB; Wed, 21 Feb 2024 16:46:46 +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 41LGkkHd015078; Wed, 21 Feb 2024 16:46:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41LGkk5p015075; Wed, 21 Feb 2024 16:46:46 GMT (envelope-from git) Date: Wed, 21 Feb 2024 16:46:46 GMT Message-Id: <202402211646.41LGkk5p015075@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: c81df1c11262 - main - 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/main X-Git-Reftype: branch X-Git-Commit: c81df1c112621803abe6a43aa89238c830e86b72 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=c81df1c112621803abe6a43aa89238c830e86b72 commit c81df1c112621803abe6a43aa89238c830e86b72 Author: Bjoern A. Zeeb AuthorDate: 2024-02-21 09:10:55 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-02-21 16:46:15 +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+ MFC after: 1 week Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D44009 --- 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, };