From patchwork Wed Oct 16 14:57:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 11193521 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3FDC114ED for ; Wed, 16 Oct 2019 14:58:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1905121D7C for ; Wed, 16 Oct 2019 14:58:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="qkAN5K9l" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404244AbfJPO6O (ORCPT ); Wed, 16 Oct 2019 10:58:14 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:37424 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404364AbfJPO6O (ORCPT ); Wed, 16 Oct 2019 10:58:14 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20191016145813euoutp02159df56f7c78a38dd07bfd2e333e144f~OKIn_Zu3t0995709957euoutp02Z for ; Wed, 16 Oct 2019 14:58:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20191016145813euoutp02159df56f7c78a38dd07bfd2e333e144f~OKIn_Zu3t0995709957euoutp02Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1571237893; bh=/lmboXBif44w8soXz2PYKntg4bqqo8IswmwIF0l+O7I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qkAN5K9lodhTEqatyx8/Q6XQXKuvanRYKYWnpsUmDp6mZi7Jf7+gH8PdB4sfXEcFU MTIGqZ5JaRoVGnMtx/TpxFIuAoUfPDVtUeWh0AJEj+OGuSb6pKLk1hLDPKc7Ulc+x1 b6aNBWjJEf433xxv1mezYCkAI6p1THTrrPgGADVI= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20191016145812eucas1p2783c28881140e6e264faeb43a9b54b47~OKIne0rtG0057200572eucas1p2w; Wed, 16 Oct 2019 14:58:12 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id A4.30.04374.40037AD5; Wed, 16 Oct 2019 15:58:12 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20191016145812eucas1p1a3cf3f44a2cff4c32a2270334630c4a2~OKInMomkn0394803948eucas1p1D; Wed, 16 Oct 2019 14:58:12 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20191016145812eusmtrp2a0970f171d49158c89fdea7a50b3b9f6~OKInL6oeR2395523955eusmtrp2f; Wed, 16 Oct 2019 14:58:12 +0000 (GMT) X-AuditID: cbfec7f5-4f7ff70000001116-4c-5da73004b284 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 6A.30.04117.40037AD5; Wed, 16 Oct 2019 15:58:12 +0100 (BST) Received: from AMDC3061.DIGITAL.local (unknown [106.120.51.75]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20191016145811eusmtip2127bddca678e583c85bf6a0aee137f25~OKImmf8mH0665906659eusmtip2E; Wed, 16 Oct 2019 14:58:11 +0000 (GMT) From: Sylwester Nawrocki To: krzk@kernel.org, vireshk@kernel.org, robh+dt@kernel.org Cc: sboyd@kernel.org, roger.lu@mediatek.com, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, b.zolnierkie@samsung.com, m.szyprowski@samsung.com, Sylwester Nawrocki Subject: [PATCH v5 2/4] dt-bindings: arm: samsung: Update the CHIPID binding for ASV Date: Wed, 16 Oct 2019 16:57:54 +0200 Message-Id: <20191016145756.16004-3-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191016145756.16004-1-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMKsWRmVeSWpSXmKPExsWy7djPc7osBstjDe68ULLYOGM9q8X8I+dY Lc6f38BusenxNVaLz71HGC1mnN/HZLH2yF12i9a9R9gtLj/eyGZx+E07q8W/axtZLDY/OMbm wOOxaVUnm8fmJfUeLSf3s3j0bVnF6PF5k1wAaxSXTUpqTmZZapG+XQJXxu1Zz1kKfglWrNhz hLWBsYmvi5GTQ0LAROL81kZmEFtIYAWjxIZfxl2MXED2F0aJ9nXfGSGcz4wSn/vvMcN0HF44 kQkisZxRYlL3O2a4lid/X7OBVLEJGEr0Hu0DaufgEBGwlvh0UgykhllgIpPEi9ld7CA1wgJh EjdmvmEEsVkEVCWWLTgNtoEXqH7b27OMENvkJVZvOAAW5xSwkZgxZw0TRHw6u8Tc91IQtovE v+cfWSBsYYlXx7ewQ9gyEv93zge7VEKgmVGiZ/dtdghnAqPE/eMLoDZYSxw+fpEV5FJmAU2J 9bv0IcKOEh++Lgd7QEKAT+LGW0GQMDOQOWnbdGaIMK9ER5sQRLWKxO9V06FOk5LofvIf6hwP iU03+9kh4dMPdMLEJuYJjPKzEJYtYGRcxSieWlqcm55abJyXWq5XnJhbXJqXrpecn7uJEZhU Tv87/nUH474/SYcYBTgYlXh4JzAujxViTSwrrsw9xCjBwawkwju/ZUmsEG9KYmVValF+fFFp TmrxIUZpDhYlcd5qhgfRQgLpiSWp2ampBalFMFkmDk6pBsbT3S+dvz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+Sk6HAgAA X-CMS-MailID: 20191016145812eucas1p1a3cf3f44a2cff4c32a2270334630c4a2 X-Msg-Generator: CA X-RootMTR: 20191016145812eucas1p1a3cf3f44a2cff4c32a2270334630c4a2 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20191016145812eucas1p1a3cf3f44a2cff4c32a2270334630c4a2 References: <20191016145756.16004-1-s.nawrocki@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This patch adds documentation of new optional "samsung,asv-bin" property in the chipid device node and documents requirement of "syscon" compatible string. These additions are needed to support Exynos ASV (Adaptive Supply Voltage) feature. Signed-off-by: Sylwester Nawrocki Reviewed-by: Krzysztof Kozlowski --- Depends on patch ("8d0daa4c89c9 dt-bindings: arm: samsung: Convert Exynos Chipid bindings to json-schema") already applied to Rob's dt/next. Changes since v4: - converted to YAML Changes since v3: - none Changes since v2: - corrected patch summary line prefix, the patch moved in the sequence Changes since v1 (RFC): - new patch .../bindings/arm/samsung/exynos-chipid.yaml | 31 +++++++++++++++++-- 1 file changed, 28 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/arm/samsung/exynos-chipid.yaml b/Documentation/devicetree/bindings/arm/samsung/exynos-chipid.yaml index 9c573ad7dc7d..df84d9e9f4c2 100644 --- a/Documentation/devicetree/bindings/arm/samsung/exynos-chipid.yaml +++ b/Documentation/devicetree/bindings/arm/samsung/exynos-chipid.yaml @@ -9,17 +9,42 @@ title: Samsung Exynos SoC series Chipid driver maintainers: - Krzysztof Kozlowski +# Custom select to avoid matching all nodes with 'syscon' +select: + properties: + compatible: + contains: + const: samsung,exynos4210-chipid + required: + - compatible + properties: compatible: - items: - - const: samsung,exynos4210-chipid + allOf: + - items: + - const: samsung,exynos4210-chipid + - const: syscon reg: maxItems: 1 + samsung,asv-bin: + description: + Adaptive Supply Voltage bin selection. This can be used + to determine the ASV bin of an SoC if respective information + is missing in the CHIPID registers or in the OTP memory. + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - enum: [ 0, 1, 2, 3 ] + +required: + - compatible + - reg + examples: - | chipid@10000000 { - compatible = "samsung,exynos4210-chipid"; + compatible = "samsung,exynos4210-chipid", "syscon"; reg = <0x10000000 0x100>; + samsung,asv-bin = <2>; };