Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12446960rwl; Tue, 3 Jan 2023 14:44:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXtnMRw6NcFcNQKJ5PmtT2pEjddEDO/vei038cu4MXdNdWHmYzw/e4xtXJJwsN5fccclfNtN X-Received: by 2002:a17:906:1c59:b0:7e5:856d:6365 with SMTP id l25-20020a1709061c5900b007e5856d6365mr38071273ejg.50.1672785885412; Tue, 03 Jan 2023 14:44:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672785885; cv=none; d=google.com; s=arc-20160816; b=tGqOlv5RhWjx/kAMP4Qys65qh8QXfCxtykjowsa63EPaOULr3SpbaoCdOkWNF8l3O7 HbumUl1/N1s4zWv6RzmwQK2oy8uIXHM46OYsZN/AWoPXbJwe7HlvqhPcunomyii8NZAk lVVRAD9dp0VnNLAp3XdsRJzziObGvOUIoGfNOVjTH3/OyyU6LKRO6OtIqdpVrAdmxQ/U FjTjzxT4GrR7BuMlijp6yMgxabhaWLgWrViP1wqOUugj1lMaZBYrv0p0A4wqv7CgO0zm m2yJ/E6VeClbzmLA3X+yEJTDyL82ZbIXkzow2VrVAuG9qjTY8Mw1EYK8lnxdaRw6XCRx 3UWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=K1IksS8NxxXXZYII/OPwlDewaxwz5V+ENNWWsENNd3U=; b=JP2Ri0NgZ9NXEvHisugJbNUBPOYKR16AX4FYcjm4XREfRn+6tA4JRF1bOdUpPUqa67 TN61uZatAfaxHFFASkyJUhmP/Q18Og8nZ2nxo8BjGntF2QIyBeOJEKDFV41PV6it4lZ8 DrQwwgP8vaMAw/Ni41PpiAooHp+BXTFLvcsPtAIMsva3CJUzse6K7UYgl5D8p0Ov9vbp hOdsnenWgGkmJlPiZ5Ls6MCAXyQHDrW/LF10oH+KxI0OoRTf9qO/JsRD5Chc5XdWqbi6 LaoFAgUVR3pIjmHYAYW4wrF5WVhJCfg4HoF+NxtYwY7b6FruoD8+5XAKBYkwJxvgedZd hf9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ejJpFhOU; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d33-20020a056402402100b0047b9cd3ee7fsi26388045eda.368.2023.01.03.14.44.30; Tue, 03 Jan 2023 14:44:45 -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 header.i=@gmail.com header.s=20210112 header.b=ejJpFhOU; 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 S231149AbjACWOL (ORCPT + 60 others); Tue, 3 Jan 2023 17:14:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234043AbjACWOI (ORCPT ); Tue, 3 Jan 2023 17:14:08 -0500 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AB5FF71; Tue, 3 Jan 2023 14:14:08 -0800 (PST) Received: by mail-oi1-x22a.google.com with SMTP id r130so28258934oih.2; Tue, 03 Jan 2023 14:14:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=K1IksS8NxxXXZYII/OPwlDewaxwz5V+ENNWWsENNd3U=; b=ejJpFhOUTCkKi7QY8QrTP7v0x6Gg8ffP257/zLnvfmXki/CzK0hKkK4Y+BoVV5493a nHI5xUgKyIYKNDH5+YXeiZzU2J3xVmDc1KArcBMoqWrKplB5immB8R5HqjRS2aNubiIL WHuwIQHuTiZouMVC3U0tvyTmhToR8tRvU6VPw+3j48PAcKAmxaI0ATSMRN/dAWv+jnvv RsyHFSm6w8hzTxFMy33FjvnCtnRYEb1GBvKMyFqnpsBT2EwyeGOmbZ/m+OYXoxRUIDNT 3jxxOnmfUQkWZmDKklHCuLgtI31FkbWia8urHZ0IYl7xMEay9sZjKnEUPQ6fMCO2s58n P28Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K1IksS8NxxXXZYII/OPwlDewaxwz5V+ENNWWsENNd3U=; b=BZPG+tDcBt4OTT6ZAUDjgYFDeSFxid0XXSXOMeqBJtNcjePHaicDvglCDAqlF3Zap4 9myaCl3W+9vDp9ckQxKrqmq/f4OhziUTJ24hCc051OCCJ+dxiscbqyT126fqaDU5heBw c/h23ZWuj3dkhpX9X7vEQURUxWkHhYY8qQuCTM5lNCvIr7gQNc4UkkhlU/sDh6xY0VwH 7wtVIk+WsRckJJJcOoqsmw6a8HswPF+1opNR9pMLnRwNH8EvpcSFxu/Cl8Cy087sprvN NVP4kOO/dkU6t0vyy7/eECB+r5y/4sa9AfWDhLQAjqXxt4/4AvH09REchbzqBwQk4Nsz tYZw== X-Gm-Message-State: AFqh2kr0LWi/IWBO8ANaAbNuj4oJ8C8H1Q0g+hb5vyCAb40ZOSKEG0Lb RJ5zTnqArNPSFKE5hmOoub0= X-Received: by 2002:a05:6808:6d4:b0:363:a6c3:8dd3 with SMTP id m20-20020a05680806d400b00363a6c38dd3mr7133019oih.44.1672784047526; Tue, 03 Jan 2023 14:14:07 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id n67-20020acabd46000000b0035b451d80afsm13468032oif.58.2023.01.03.14.14.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 14:14:07 -0800 (PST) Sender: Guenter Roeck Date: Tue, 3 Jan 2023 14:14:05 -0800 From: Guenter Roeck To: Hal Feng Cc: linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, Jean Delvare , Jonathan Corbet , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/4] dt-bindings: hwmon: Add starfive,jh71x0-temp Message-ID: <20230103221405.GA217696@roeck-us.net> References: <20230103013145.9570-1-hal.feng@starfivetech.com> <20230103013145.9570-2-hal.feng@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230103013145.9570-2-hal.feng@starfivetech.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 On Tue, Jan 03, 2023 at 09:31:42AM +0800, Hal Feng wrote: > From: Emil Renner Berthing > > Add bindings for the temperature sensor on the StarFive JH7100 and > JH7110 SoCs. > > Signed-off-by: Emil Renner Berthing > Signed-off-by: Hal Feng The previous version of this bindings document (v3, https://patchwork.kernel.org/project/linux-hwmon/patch/20210726171802.1052716-2-kernel@esmil.dk/ had been reviewed by Rob Herring. Even though this version is named differently (starfive,jh71x0-temp.yaml instead of starfive,jh7100-temp.yaml), the old version should be referenced, and there should be a change log. Guenter > --- > .../bindings/hwmon/starfive,jh71x0-temp.yaml | 75 +++++++++++++++++++ > 1 file changed, 75 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml > > diff --git a/Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml b/Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml > new file mode 100644 > index 000000000000..2600881e2cdc > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml > @@ -0,0 +1,75 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/hwmon/starfive,jh71x0-temp.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: StarFive JH71x0 Temperature Sensor > + > +maintainers: > + - Emil Renner Berthing > + > +description: | > + StarFive Technology Co. JH71x0 embedded temperature sensor > + > +properties: > + compatible: > + enum: > + - starfive,jh7100-temp > + - starfive,jh7110-temp > + > + reg: > + maxItems: 1 > + > + clocks: > + minItems: 2 > + maxItems: 2 > + > + clock-names: > + items: > + - const: "sense" > + - const: "bus" > + > + '#thermal-sensor-cells': > + const: 0 > + > + interrupts: > + maxItems: 1 > + > + resets: > + minItems: 2 > + maxItems: 2 > + > + reset-names: > + items: > + - const: "sense" > + - const: "bus" > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - interrupts > + - resets > + - reset-names > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + tmon@124a0000 { > + compatible = "starfive,jh7100-temp"; > + reg = <0x124a0000 0x10000>; > + clocks = <&clkgen JH7100_CLK_TEMP_SENSE>, > + <&clkgen JH7100_CLK_TEMP_APB>; > + clock-names = "sense", "bus"; > + #thermal-sensor-cells = <0>; > + interrupts = <122>; > + resets = <&rstgen JH7100_RSTN_TEMP_SENSE>, > + <&rstgen JH7100_RSTN_TEMP_APB>; > + reset-names = "sense", "bus"; > + };