Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3249443ybt; Mon, 22 Jun 2020 19:54:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzncJy9qDTrFwoA/CGovqfSkAsDyt++uEDXvkSlx/qzjQqu0viBwtbivP3vFz6jw2MelXR/ X-Received: by 2002:aa7:c583:: with SMTP id g3mr13751383edq.228.1592880860977; Mon, 22 Jun 2020 19:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880860; cv=none; d=google.com; s=arc-20160816; b=lAPLxfDmgyqtPWzbZA3ZYgYvKQtDv/G+nIm7u91iwcJ3HHpjS15fYhoSsR2UgFA9lg yYdgqfZ0yvRARLzFx7vP66o8F++b7qe8upKoxKlImPs74+vvXxV3SlRUnxexPZ/dPya3 0lX0bOvrgOGhg2ulwWLqgjLLlQp44HG1+avAQkUT+SqRiF1W+chUOQdkVXbixHDw8hzy mJnFoxizDyvaBJMP97wDWstUgDb4KU1JGjPGLMYbPhNxppxhYcfuTs+GRQrdjesG0Eq9 oGhfK3E85M+XEHnD6PHl2w2S8EMTsVqBmdXBUok1EyBcu7pOJPvDMz4/lHOiGcTtSOZ5 V2NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=acWXCoQMlkroVWiqLZqhkwSnApEmVXqgAv8WAJOyFKE=; b=Oi8d+dpuXtIa9my1FRMQuABu4mxtxFbLuWPzpCBJ63OsxDOw5iLMOB4AuomYKr6Nd9 TEgbp1UJD1WjbCjyRefQwi3qYtsKYVCvGsRM6BQsXA64bm0MjPDGwBDRxSqMjDqMjoHE cHTLFyjD4lxXZxpKxeWP1ZzfXPGgUdnHveBCrzRk+AeitBcNFNvU3FQVl0nAEEdY/bfi 5gOBQ7xWBAPnXr8Rpi+9fkH7a851thsEXxJ3azKonO/8LTgPeAAnI1zNouhPEOHQpXM6 QvOSKRPTXnHIK/KuCcY6jxxIvY4aFeuxiVNeOXa/ciVYXj829zvS7yK1xuM1yvyNMpqd B5Xg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si11334078edp.319.2020.06.22.19.53.58; Mon, 22 Jun 2020 19:54:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731898AbgFWCvf (ORCPT + 99 others); Mon, 22 Jun 2020 22:51:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:32908 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731434AbgFWCvb (ORCPT ); Mon, 22 Jun 2020 22:51:31 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 1833EAE33; Tue, 23 Jun 2020 02:51:29 +0000 (UTC) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?James=20Tai=20=5B=E6=88=B4=E5=BF=97=E5=B3=B0=5D?= , =?UTF-8?q?Stanley=20Chang=20=5B=E6=98=8C=E8=82=B2=E5=BE=B7=5D?= , Edgar Lee , =?UTF-8?q?Andreas=20F=C3=A4rber?= , devicetree@vger.kernel.org, Rob Herring , Srinivas Kandagatla , hp@ligomedia.com Subject: [PATCH v2 00/29] ARM: Realtek DHC SoC info Date: Tue, 23 Jun 2020 04:50:37 +0200 Message-Id: <20200623025106.31273-1-afaerber@suse.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This series adds a soc bus driver for Realtek Digital Home Center SoC families. v2 is rebased on syscon and RTD1319, adjusts field widths and incorporates data additions from Stanley's monolithic patch. The previous RFC's reg hack is superseded in v2 with a trivial read-only eFuse driver, along with an extension of the nvmem consumer API. Reminder: For RTD1293 I had to invent my own detection logic, possibly flawed. Nor have the names of the magic register bits been disclosed. We have no RTD1294 nor RTD1392 DT in mainline, so their detection is included mainly as proof of concept. No EVB names were visible in public BSP sources; Ligomedia seems the only vendor so far with publicly announced RTD1392 STBs, for RTD1294 I only find one all-Chinese page and some Russian forum posts - patches and testing welcome. Otherwise we can only test that the other models are not misdetected as RTD1392 or RTD1294. DHC upstreaming progress is being tracked at: https://en.opensuse.org/HCL:Realtek_DHC Latest experimental patches at: https://github.com/afaerber/linux/commits/rtd1295-next Have a lot of fun! Cheers, Andreas v1 -> v2: * Cleaned up binding schema (Rob) * Rebased onto syscon mfd refactoring of containing SB2, Iso, etc. * Limit chip id and rev to 16 bits, as per old header files * Include mentioned RTD1395, RTD1619 and RTD1319 patches * Incorporate RTD1392 and RTD1319 bits from Stanley's API export patch * Add eFuse nvmem driver and adopt and extend nvmem cell API Cc: devicetree@vger.kernel.org Cc: Rob Herring Cc: Srinivas Kandagatla Cc: James Tai Cc: Stanley Chang [昌育德] Cc: Edgar Lee Cc: hp@ligomedia.com Andreas Färber (27): dt-bindings: soc: Add Realtek RTD1195 chip info binding soc: Add Realtek DHC chip info driver for RTD1195 and RTD1295 arm64: dts: realtek: rtd129x: Add chip info node ARM: dts: rtd1195: Add chip info node dt-bindings: soc: realtek: rtd1195-chip: Add iso-syscon property soc: realtek: chip: Detect RTD1296 arm64: dts: realtek: rtd129x: Extend chip-info reg with CHIP_INFO1 soc: realtek: chip: Detect RTD1293 soc: realtek: chip: Add RTD1395 info arm64: dts: realtek: rtd139x: Add chip info node soc: realtek: chip: Add RTD1619 info arm64: dts: realtek: rtd16xx: Add chip info node soc: realtek: chip: Add RTD1319 info arm64: dts: realtek: rtd13xx: Add chip info node dt-bindings: nvmem: Add Realtek RTD1195 eFuse nvmem: Add Realtek DHC eFuse driver ARM: dts: rtd1195: Add eFuse node arm64: dts: realtek: rtd129x: Add eFuse node arm64: dts: realtek: rtd139x: Add eFuse node arm64: dts: realtek: rtd16xx: Add eFuse node arm64: dts: realtek: rtd13xx: Add eFuse node dt-bindings: soc: realtek: rtd1195-chip: Allow nvmem-cells property arm64: dts: realtek: rtd129x: Add eFuse package_id to chip-info soc: realtek: chip: Detect RTD1294 nvmem: core: Grammar fixes for help text nvmem: core: Add nvmem_cell_read_u8() soc: realtek: chip: Adopt nvmem_cell_read_u8() helper Stanley Chang (2): soc: realtek: chip: Add RTD1319 revisions soc: realtek: chip: Detect RTD1392 .../bindings/nvmem/realtek,rtd1195-efuse.yaml | 53 ++++ .../soc/realtek/realtek,rtd1195-chip.yaml | 55 ++++ MAINTAINERS | 4 + arch/arm/boot/dts/rtd1195.dtsi | 13 + arch/arm64/boot/dts/realtek/rtd129x.dtsi | 23 ++ arch/arm64/boot/dts/realtek/rtd139x.dtsi | 15 +- arch/arm64/boot/dts/realtek/rtd13xx.dtsi | 15 + arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 15 + drivers/nvmem/Kconfig | 9 + drivers/nvmem/Makefile | 2 + drivers/nvmem/core.c | 27 +- drivers/nvmem/rtk-dhc-efuse.c | 86 ++++++ drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/realtek/Kconfig | 13 + drivers/soc/realtek/Makefile | 2 + drivers/soc/realtek/chip.c | 269 ++++++++++++++++++ include/linux/nvmem-consumer.h | 1 + 18 files changed, 597 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/nvmem/realtek,rtd1195-efuse.yaml create mode 100644 Documentation/devicetree/bindings/soc/realtek/realtek,rtd1195-chip.yaml create mode 100644 drivers/nvmem/rtk-dhc-efuse.c create mode 100644 drivers/soc/realtek/Kconfig create mode 100644 drivers/soc/realtek/Makefile create mode 100644 drivers/soc/realtek/chip.c -- 2.26.2