Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp602302pxj; Tue, 18 May 2021 10:03:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeHFUKw0efe5Pt1itbnVVtOQ2kISQSHpkpqILIPVxkdHWx/l9OHymPWIoXQrnHfb3nHd13 X-Received: by 2002:a05:6402:268f:: with SMTP id w15mr8088555edd.321.1621357386423; Tue, 18 May 2021 10:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621357386; cv=none; d=google.com; s=arc-20160816; b=jzEqEEftt8RC9/nb2bAvNdIB391piQjUFlivV4Ir2XiJJBRz7I5SPJfOeKfd37gP9w Ds3eArwKi36XzXyBnHD7AFB1P2hOXZMPE4k4EBK4pci12ODcwC/+sUs5ofDWHNu+Pkph oChye9z3ceNP/Fd95k+SmYvOcshfT3byIMwiXuzyrIKbuZCfwNrVAP84H3wdsXHSc/rr LlGfx7skNNhO0fSt8nJUV75Hn3uxY4VhK5NTS9GW6qeGYt7pMnp+DOU/JZG71QDFYg1b vcoW9s98cRJWcVry25MxIQRqrHVCieeqjiq/oBRkiYep7Vo3jY/+UUwwOgTD5IYKuh6D h9dA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+9/BLPh/3XidKcM4FYRAR1NIu9pwPNfGnuJfr7CH/RI=; b=WctfJ3DjASvFfj9kPi++gi1JNKU1bhstr2+KzvgOQ0vMhrshwSmMhIrDY2ppCRrSoA 2SNUptb5Pd6JEopEBTbbi/XU6kWBRWhYRIU0YwGHpA1S1HVbEF06x1d2YKfBvacfdewJ p1W/AhrYwKe317gSHk+o+EognV4THCkbtvlDW6nSM/lVaDEIn1dis5/c2WYSyY2yTGN9 uzjm4Mit9VkbxUrc7BLiFsK4MZEDr+X/gbgyx90JiKfDdA8SKxebPfceW5hY8kk9Yp0Z NN7XyeBeUnE3it0+s+M5lKtikp7a1sSvnUapUrAx3cp10yBFfPEtyOm3oSPJ8N3lvRiu SNug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TkDUyqwy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs19si18126097ejb.238.2021.05.18.10.02.08; Tue, 18 May 2021 10:03:06 -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=@linuxfoundation.org header.s=korg header.b=TkDUyqwy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344185AbhEQQG6 (ORCPT + 99 others); Mon, 17 May 2021 12:06:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:51388 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344237AbhEQPnm (ORCPT ); Mon, 17 May 2021 11:43:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 033F361D1A; Mon, 17 May 2021 14:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621262573; bh=yjeCTpBFeVmsrA3/JrZH+qARtm43WoxbaZoQG1cOiCM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TkDUyqwyib7VEHc5j8lZIpRi8S4HaBPLDgItI5gyYaC9gWAOTll5uj8j+AV1b0djj pwhMRqexuiw2GNtmSmBUcxXmY+pAB1p95njSy7rYtLorfbvT6LnvAhzZEyFDi4TCzD O4j+LTUL7MB4frJXTu5FuMAVASeLTQEhJvhriJmI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Geert Uytterhoeven , Daniel Lezcano Subject: [PATCH 5.11 323/329] dt-bindings: thermal: rcar-gen3-thermal: Support five TSC nodes on r8a779a0 Date: Mon, 17 May 2021 16:03:54 +0200 Message-Id: <20210517140313.008767427@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.043055203@linuxfoundation.org> References: <20210517140302.043055203@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Niklas Söderlund commit 9468e7b031876935230182628f8d5f216c071784 upstream. When adding support for V3U (r8a779a0) it was incorrectly recorded it supports four nodes, while in fact it supports five. The fifth node is named TSC0 and breaks the existing naming schema starting at 1. Work around this by separately defining the reg property for V3U and others. Restore the maximum number of nodes to three for other compatibles as it was before erroneously increasing it for V3U. Fixes: d7fdfb6541f3be88 ("dt-bindings: thermal: rcar-gen3-thermal: Add r8a779a0 support") Signed-off-by: Niklas Söderlund Reviewed-by: Geert Uytterhoeven Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20210310110716.3297544-1-niklas.soderlund+renesas@ragnatech.se Signed-off-by: Greg Kroah-Hartman --- Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml | 43 ++++++++-- 1 file changed, 35 insertions(+), 8 deletions(-) --- a/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml +++ b/Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml @@ -28,14 +28,7 @@ properties: - renesas,r8a77980-thermal # R-Car V3H - renesas,r8a779a0-thermal # R-Car V3U - reg: - minItems: 2 - maxItems: 4 - items: - - description: TSC1 registers - - description: TSC2 registers - - description: TSC3 registers - - description: TSC4 registers + reg: true interrupts: items: @@ -71,8 +64,25 @@ if: enum: - renesas,r8a779a0-thermal then: + properties: + reg: + minItems: 2 + maxItems: 3 + items: + - description: TSC1 registers + - description: TSC2 registers + - description: TSC3 registers required: - interrupts +else: + properties: + reg: + items: + - description: TSC0 registers + - description: TSC1 registers + - description: TSC2 registers + - description: TSC3 registers + - description: TSC4 registers additionalProperties: false @@ -111,3 +121,20 @@ examples: }; }; }; + - | + #include + #include + #include + + tsc_r8a779a0: thermal@e6190000 { + compatible = "renesas,r8a779a0-thermal"; + reg = <0xe6190000 0x200>, + <0xe6198000 0x200>, + <0xe61a0000 0x200>, + <0xe61a8000 0x200>, + <0xe61b0000 0x200>; + clocks = <&cpg CPG_MOD 919>; + power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>; + resets = <&cpg 919>; + #thermal-sensor-cells = <1>; + };