From patchwork Thu Dec 8 10:39:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 2769 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp121596wrr; Thu, 8 Dec 2022 02:47:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf67P1hRqPNj0ebfHzpb9M29zxTSx5fTv8rkTcIn4JmLTT+7IVpdwYWTn8700fdhze9k3jbP X-Received: by 2002:a17:90a:ab84:b0:213:343:9873 with SMTP id n4-20020a17090aab8400b0021303439873mr107928850pjq.102.1670496458438; Thu, 08 Dec 2022 02:47:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670496458; cv=none; d=google.com; s=arc-20160816; b=O0XgS6ou8mHliOv04/UzvkpmWI+AVlY6/3k0FtNwcm7OwtXTjfNZkEI/GnDdgCReA/ BypW5sGgscTX7cad1DIWoyfQ+XPhUwYhfK5YklZ3Xs+JgWH8sFETn0ir0cDEFw85E8+K g+R10CdJATtMHPczoFTOpXb5483iSuku5RNGg86zvxrY6aUYIJu14HdUraKYDhFqMVNm //8TO4IAO7w5OxrlYQWZ8qelTsi5Kk3WJMcB5RRF34FB0R9q0g+vXBHUAy3Sspnsc8gX hr+zg3GhCSqf1LzgkwskhWp0BBbU349c/fdPXOY2yaWiHzfN3Jg9iX8QBYtb45XY4q6V K5QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TYgL0DDrTM17KkP3aZgwN4dj/K+u1rSM4fI7jF/1Tws=; b=wAD8tKFS+CpR1nV0lybyOMHIZuOUUyDxY6FYtpn1vY6K2mvIjpoghYbnHp7yTnsIJW 7RHuSXyvS5VJS4IDUBFxstZVfWyzpJnkqDoycMJkfC1wcK/5Po6/LqtWQOgSyJNMAYiv qI8yNJj9GzHeW/EHmF32plPsPeO9DxDyFi6Fcw+TAjtDW1kDU1xAqYVYI78bSw9jtmhP FW3YL4zdl1smtSTWSnFlE1utlE5LXJzaQjTFV3O1K6PC7eM4/vaUdkcnw6S2IDOn+bPL tewuyeiIPoY7MWVT1zDS5628l6Thp7Qe9N7YRT8uHG4xQz8HujwqWHTuARsPqOq8E9km jSAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=NcuWxdUA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020a63d842000000b004785d99321bsi16199673pgj.598.2022.12.08.02.47.24; Thu, 08 Dec 2022 02:47:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=NcuWxdUA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229635AbiLHKnp (ORCPT + 99 others); Thu, 8 Dec 2022 05:43:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbiLHKnT (ORCPT ); Thu, 8 Dec 2022 05:43:19 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89121222; Thu, 8 Dec 2022 02:40:26 -0800 (PST) Received: from desky.lan (91-154-32-225.elisa-laajakaista.fi [91.154.32.225]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 893EB25B; Thu, 8 Dec 2022 11:40:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1670496023; bh=ab3VDBBlRhkk1OCm+eM9aIt0zkYjaGuasNx+kTETGB4=; h=From:To:Cc:Subject:Date:From; b=NcuWxdUAooti/wS8UrXxku4R8b30Fb+FkevjbueyMSUXpAN4K+05fGzHheelm+naP ZiGKIEIA+cJuJhCdyXA83ZJLDNRWQwEo/soJmAsO9pWSM+WsM/JJ9+e16sRO4uHBhX ghN+fenSpn6jVQ4kJQOaplqDCZRDcFK4JPrR/JYw= From: Tomi Valkeinen To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Wolfram Sang , Luca Ceresoli , Andy Shevchenko , Matti Vaittinen Cc: Mauro Carvalho Chehab , Peter Rosin , Liam Girdwood , Mark Brown , Sakari Ailus , Laurent Pinchart , Michael Tretter , Shawn Tu , Hans Verkuil , Mike Pagano , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Marek Vasut , Tomi Valkeinen Subject: [PATCH v5 0/8] i2c-atr and FPDLink Date: Thu, 8 Dec 2022 12:39:58 +0200 Message-Id: <20221208104006.316606-1-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751642494401292374?= X-GMAIL-MSGID: =?utf-8?q?1751642494401292374?= Hi, You can find v4 of the series from: https://lore.kernel.org/all/20221101132032.1542416-1-tomi.valkeinen@ideasonboard.com/ You can find a longer introduction of the series in that version's cover letter. There has been a lot of changes to the DT bindings and the i2c-atr code in this version, but they are all fixes and cleanups, no architectural changes. The FPDLink drivers have not been changed, except to reflect the changes in the DT. I will send a diff between v4 and v5 to give a better idea of the changes. One thing that was discussed a bit but not handled in this version is the i2c-pool/i2c-alias topic. I believe we have three options: 1) use fixed addresses, defined in DT, 2) get the addresses from an i2c-pool, 3) dynamically reserve the addresses at runtime. The current series uses 2). Tomi Luca Ceresoli (2): i2c: core: let adapters be notified of client attach/detach i2c: add I2C Address Translator (ATR) support Tomi Valkeinen (6): dt-bindings: media: add bindings for TI DS90UB913 dt-bindings: media: add bindings for TI DS90UB953 dt-bindings: media: add bindings for TI DS90UB960 media: i2c: add DS90UB960 driver media: i2c: add DS90UB913 driver media: i2c: add DS90UB953 driver .../bindings/media/i2c/ti,ds90ub913.yaml | 121 + .../bindings/media/i2c/ti,ds90ub953.yaml | 112 + .../bindings/media/i2c/ti,ds90ub960.yaml | 358 ++ Documentation/i2c/index.rst | 1 + Documentation/i2c/muxes/i2c-atr.rst | 78 + MAINTAINERS | 8 + drivers/i2c/Kconfig | 9 + drivers/i2c/Makefile | 1 + drivers/i2c/i2c-atr.c | 503 ++ drivers/i2c/i2c-core-base.c | 18 +- drivers/media/i2c/Kconfig | 47 + drivers/media/i2c/Makefile | 3 + drivers/media/i2c/ds90ub913.c | 892 ++++ drivers/media/i2c/ds90ub953.c | 1607 +++++++ drivers/media/i2c/ds90ub960.c | 4195 +++++++++++++++++ include/linux/i2c-atr.h | 82 + include/linux/i2c.h | 16 + include/media/i2c/ds90ub9xx.h | 16 + 18 files changed, 8066 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/media/i2c/ti,ds90ub913.yaml create mode 100644 Documentation/devicetree/bindings/media/i2c/ti,ds90ub953.yaml create mode 100644 Documentation/devicetree/bindings/media/i2c/ti,ds90ub960.yaml create mode 100644 Documentation/i2c/muxes/i2c-atr.rst create mode 100644 drivers/i2c/i2c-atr.c create mode 100644 drivers/media/i2c/ds90ub913.c create mode 100644 drivers/media/i2c/ds90ub953.c create mode 100644 drivers/media/i2c/ds90ub960.c create mode 100644 include/linux/i2c-atr.h create mode 100644 include/media/i2c/ds90ub9xx.h