Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp56466pxj; Wed, 16 Jun 2021 20:11:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxpmsIZOGpQwqBBuxkJ77KtzmqssER4/aHhovUiRx3V5rNjb+YE5lbJvRmRPGbSJ0GbFMD X-Received: by 2002:a6b:ef06:: with SMTP id k6mr2034437ioh.86.1623899461882; Wed, 16 Jun 2021 20:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623899461; cv=none; d=google.com; s=arc-20160816; b=Fn2kN1dn/bu1F80E/deY/9RQWqLUs3Zn3WaEHPwxbfHqF0iSq+PIyRlEYL2QVDZkoT xUDDzvMRYWuR3ucom+6j9x7pU0o0EeYYTSVRzxPWxuKd8db8x/8sM5OQmkYOkU8GLhbQ 0+4+kz4C6KGpOLiiMrdQylLh73FwqgbPdq5qxE3N+RNDIRhKSqWZps0I5+DoBSiMb6op WNZ8kPZy6EwJZgAZ5aG1dXhXPZUcTNOIs6RCRLXDShAO4FBD59Uq3aJ45P14E4FyUcub bCkfdwx+tcA7dkHFm6I0og/eH7GWGOJ9c6i4WRDUNncSF3YqvMfdSZX63vzNZkiX2X5H sWHA== 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:sender:dkim-signature; bh=P+8h2g83qtLoWNEKi+lvDz0GDalziHy5ge6TIRqp0fw=; b=sXGlwQHTW3Hf0EK5QdZxlWBIOsCaKVWUZ1XsLRfSvLDF6YNmarLJl8ll7W8psfHgjH pUSHzRk66QxkfjcTZClkUJikypaYLAuJZj6VqQbwFraNQEBUHQgTpGMDt9uW8ZKOYWDT OBptLqZUFu2gwgMR9NrilVpup2Pj/rtxMHYR9LJxKZMFdsTa/OQ9oJeebSmrBOP9SKp5 wqxGU9NMsfT/XRHxTRdQju5SftgnmEDp+22I6+8kpA/dKQKapFvX9Zml6n3uZBu6lfCv RRDvzrC6JEDJ25zwxJzxcJr4coKCgL6N6MUuii0MjAzQtqXT/1X3p6S+gsl+JwSGxl2f 0mZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZYZ0/jf0"; 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 q4si5006287jaj.46.2021.06.16.20.10.50; Wed, 16 Jun 2021 20:11:01 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZYZ0/jf0"; 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 S231565AbhFPSSO (ORCPT + 99 others); Wed, 16 Jun 2021 14:18:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231574AbhFPSSM (ORCPT ); Wed, 16 Jun 2021 14:18:12 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55054C061574; Wed, 16 Jun 2021 11:16:05 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id t7so369330edd.5; Wed, 16 Jun 2021 11:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=P+8h2g83qtLoWNEKi+lvDz0GDalziHy5ge6TIRqp0fw=; b=ZYZ0/jf0tb6htGtlneyPf1sYtBxmgRZL/ek1xpfaHDuH9Oh+QrzqptaYCFqMhNn/ve v4ylenGVJx8B4zBtFwsrbdRwx1MmUheAjZGttyCXyZR4K4t2I9UxAC7x7WhT7D3zqw7y ACVw9AygwwOy8c/iwDjjjnTpDbMrb6GtL/7bH3h2TkH5cCsTqqIF01BQkSALPH6P9X0C y4ryY0WdV1ZL7GJHunUH3br8UjrUhKXPixwTYcLig6imX/YwERnXtL0eBWH1ls8Irirn nW6jFka4P+aTiVxZaqOnwlCSR8gtfeh+KPSeJfR0mjEWWlMSkdPsR9k2q7d6hSkrty5v rqDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=P+8h2g83qtLoWNEKi+lvDz0GDalziHy5ge6TIRqp0fw=; b=f0xpL/JTpIUqbTO07Ykclzy7ndBoJEe5D/gLA4xggvcMIJN3zefJp3e6yx+B+aFwiE 3u6Ik5MPq6bnsBIwGnBqf8ofc2kP5Vw5KorpCWmkAiaG0shwl5I9W1SYGCbd81F/X1l2 25N/63TFC+OholWZMrs2XVzlU57Y741yWnYdK+o21MD28dclmy6GkqQkEqGqLmcPhHTs g8b05fY9cGdojCoHPcwyyjlI/pe6Okc/iKuDco7kEw9GZRqhChINbMJvcyaOqZkcoJj6 DIqhwVP3p/QHW5lBnDUEOg/GRIC5HUGjWk4tkuR4fUYdWuBHxoSBPD293f609RMRAh9A kkzg== X-Gm-Message-State: AOAM531Ruu+vggX5sa41a5oaKhkznV/+VhsCIFOyfygQXnXNNv+9iP8/ DSohpBsEzCawv5UFsrh+N+k= X-Received: by 2002:a05:6402:1103:: with SMTP id u3mr327127edv.342.1623867363912; Wed, 16 Jun 2021 11:16:03 -0700 (PDT) Received: from stitch.. ([82.192.166.82]) by smtp.gmail.com with ESMTPSA id p10sm2439599edy.86.2021.06.16.11.16.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 11:16:03 -0700 (PDT) Sender: Emil Renner Berthing From: Emil Renner Berthing To: Jean Delvare , Guenter Roeck , Rob Herring , Samin Guo Cc: Emil Renner Berthing , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/2] hwmon: Add StarFive JH7100 temperature sensor Date: Wed, 16 Jun 2021 20:15:43 +0200 Message-Id: <20210616181545.496149-1-kernel@esmil.dk> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds a driver for the temperature sensor on the JH7100, a RISC-V SoC by StarFive Technology Co. Ltd., and most likely also the upcoming JH7110 version of the chip. The SoC is used on the BeagleV Starlight board: https://github.com/beagleboard/beaglev-starlight Support for this SoC is not yet upstreamed so feel free to not merge yet but I'd love some early feedback. /Emil Emil Renner Berthing (2): dt-bindings: hwmon: add starfive,jh7100-temp bindings hwmon: (sfctemp) Add StarFive JH7100 temperature sensor .../bindings/hwmon/starfive,jh7100-temp.yaml | 43 +++ drivers/hwmon/Kconfig | 9 + drivers/hwmon/Makefile | 1 + drivers/hwmon/sfctemp.c | 309 ++++++++++++++++++ 4 files changed, 362 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/starfive,jh7100-temp.yaml create mode 100644 drivers/hwmon/sfctemp.c -- 2.32.0