Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4441250rwd; Sun, 11 Jun 2023 07:37:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7zg7OgMquTfn/SotVIdi0vqCm4RRwlwr0wSlM23zmiCFmt+zUYH6QYvNTBgdSeEtUmy0YU X-Received: by 2002:a17:903:11d2:b0:1ae:7631:7fa9 with SMTP id q18-20020a17090311d200b001ae76317fa9mr5463666plh.37.1686494221542; Sun, 11 Jun 2023 07:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686494221; cv=none; d=google.com; s=arc-20160816; b=AsyDaFHqswzqP7HJqhBEIfaBhyMbhlxq/85LSwdRYDZNBBir+XQtcfDtEbqz+K4OnZ IyvZactRi3wkuMeuluJTdA3OhhUW2+S1whZ6iw64MUjJAJBsZygWXNblAczrjBqwVd5B v6jyQoLAtssF8dpxLEMsJXIvaAHyGSxoQO19ivHUJ8cWsFVZSSmYM6gx68pYbbp53IHo AiOGmjMpCJ9rA9xvj377KdL7gRjPQ1LPE1iwSPYeD752ozrWez4rGti+7z3Jihy2dZTC H3Sq4VUp+W4AkPlVdXuVa+yETUvN/BOpMeKJPqI5jUSgmAu/N1JkPdlJoSFpzWvKhIZ+ PIPA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HdOiX3FKcjlJJS2UzLSyrdBrswEWVUKPHD0bqmPS4vs=; b=kuFJ3uC/yXjnDz0todNxe8xuERxtuX/bQf4sMDYMmyoVOUTEq8i/k55Z5UczxU5cs/ 3IeWxABDO0Hg5ixdX0yPtU5xusRPwBdhsks0AF183tDNbiRvsgC9poVuxfJ+ra/b8mWb LHR73NwQmixsXDaU3NHm6ENivmW6JKWTP57AzYWalW/dC15URMmY1rwk22mnTOwSlF2y aOzd+hblI6U14Sb3nQ/3rVhHcQHTdQN13NuN1vwUJjp9NBC6/oNYnAj6zricbj6NfHQR nLtx1LCxXRZ3kFDYpkrQQMmDhKIp5CezD0ztpIzdxgysa5lUDdHy/kNfups/qkSaaSwh Q8yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="BwJ/g26l"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ks3-20020a170903084300b001ab109ea531si298811plb.558.2023.06.11.07.36.48; Sun, 11 Jun 2023 07:37:01 -0700 (PDT) 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=@linaro.org header.s=google header.b="BwJ/g26l"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233879AbjFKOEO (ORCPT + 99 others); Sun, 11 Jun 2023 10:04:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233724AbjFKOD5 (ORCPT ); Sun, 11 Jun 2023 10:03:57 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE54210E2 for ; Sun, 11 Jun 2023 07:03:55 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f7378a74faso24303575e9.0 for ; Sun, 11 Jun 2023 07:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686492234; x=1689084234; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HdOiX3FKcjlJJS2UzLSyrdBrswEWVUKPHD0bqmPS4vs=; b=BwJ/g26lp9KQ8ao/kcZ7jHbAv8aRQA9Z7kesk+HAl/MqLTWrxLGVCrKxDmH2vpPkLI KCGtb2rh4mlq4xqvzC2bLf/lgzBe+KytLa3dAvi1o4zwTE69r87IpkC9fnAj41JrHAdK GpwMjRgB3urb+DKoYXWdFsWvWsTGeU78HCJRZhqtpaAhewIv/DSlRgoe9KIDhLH9yOCd l8gCDJpg5UTbbrPme/kOedOKSw/tCeXMmBA3a7Fk3HGbfi/AZrIrbRX4u1vetNLR4GJR ia+EYZ/ISYBxPh0IsidGrxSPHPEoJuXJp7UVh3etlpuomnYb9SZZYmRJz6tWPq7GIVSp OVGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686492234; x=1689084234; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HdOiX3FKcjlJJS2UzLSyrdBrswEWVUKPHD0bqmPS4vs=; b=OgnlJmq92ZTMEFjLz/0bzH5WUsgF/XB3aE2ySYp0vqoJE4Txp9KWx3nZTShRJtF5pp VbyfiI89CdOip8ealzzuFghVwVxRTjy9svafFV2JEIxA4uwyQVPocyB6B+SGIwyvJR3G esqIpmWUHbt3SHGNZNgLNjQW0fBVykI8Ue3qy69eZtFrmEz3kmpLTnAuCK37Buos/jN6 53BYYDIBzYcfP0hzhmf4DM9THaO/BUwZTz76UYtgGFY1xD2sowTHywbbQNZnoelPU2dU CYffheOvUM2EUwg/kdM8pM5ASICu3LU7bDEyUXyUQOP1fgpdtfHXY5Gd1s7/KbrjjtmK EGVQ== X-Gm-Message-State: AC+VfDwJycZtxQyo4YMAXWm91aDvBTAoi0ZFHRWHklqgvUzu0R9zAVFs AxK4zFrmFO+WJoud/5crc7z3OQ== X-Received: by 2002:a05:600c:114c:b0:3f7:38dd:5e9f with SMTP id z12-20020a05600c114c00b003f738dd5e9fmr3972014wmz.28.1686492234206; Sun, 11 Jun 2023 07:03:54 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id h17-20020a05600c28d100b003f080b2f9f4sm8567222wmd.27.2023.06.11.07.03.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jun 2023 07:03:53 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Cristian Ciocaltea , Heiko Stuebner , Krzysztof Kozlowski , Srinivas Kandagatla Subject: [PATCH 08/26] dt-bindings: nvmem: rockchip,otp: Add compatible for RK3588 Date: Sun, 11 Jun 2023 15:03:12 +0100 Message-Id: <20230611140330.154222-9-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230611140330.154222-1-srinivas.kandagatla@linaro.org> References: <20230611140330.154222-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Cristian Ciocaltea Document the OTP memory found on Rockchip RK3588 SoC. Since RK3588 uses different clocks & resets configurations than PX30 / RK3308, provide the required changes in the binding to be able to handle both variants. Signed-off-by: Cristian Ciocaltea Reviewed-by: Heiko Stuebner Reviewed-by: Krzysztof Kozlowski Signed-off-by: Srinivas Kandagatla --- .../bindings/nvmem/rockchip,otp.yaml | 54 ++++++++++++++++--- 1 file changed, 47 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml b/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml index 4cd425ae2823..9c6eff788928 100644 --- a/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml +++ b/Documentation/devicetree/bindings/nvmem/rockchip,otp.yaml @@ -9,33 +9,35 @@ title: Rockchip internal OTP (One Time Programmable) memory maintainers: - Heiko Stuebner -allOf: - - $ref: nvmem.yaml# - properties: compatible: enum: - rockchip,px30-otp - rockchip,rk3308-otp + - rockchip,rk3588-otp reg: maxItems: 1 clocks: - maxItems: 3 + minItems: 3 + maxItems: 4 clock-names: + minItems: 3 items: - const: otp - const: apb_pclk - const: phy + - const: arb resets: - maxItems: 1 + minItems: 1 + maxItems: 3 reset-names: - items: - - const: phy + minItems: 1 + maxItems: 3 required: - compatible @@ -45,6 +47,44 @@ required: - resets - reset-names +allOf: + - $ref: nvmem.yaml# + + - if: + properties: + compatible: + contains: + enum: + - rockchip,px30-otp + - rockchip,rk3308-otp + then: + properties: + clocks: + maxItems: 3 + resets: + maxItems: 1 + reset-names: + items: + - const: phy + + - if: + properties: + compatible: + contains: + enum: + - rockchip,rk3588-otp + then: + properties: + clocks: + minItems: 4 + resets: + minItems: 3 + reset-names: + items: + - const: otp + - const: apb + - const: arb + unevaluatedProperties: false examples: -- 2.25.1