From patchwork Tue Dec 31 17:24:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 182681 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp7817672ild; Tue, 31 Dec 2019 09:25:10 -0800 (PST) X-Google-Smtp-Source: APXvYqw+6ojBMNrALEqCr28Pt1nKbNKZYfe+5hudHt66ON+F/JBxSxJt8Bmcgj6zQY9ECvHT4E4s X-Received: by 2002:aa7:c74f:: with SMTP id c15mr79157935eds.304.1577813110649; Tue, 31 Dec 2019 09:25:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577813110; cv=none; d=google.com; s=arc-20160816; b=fPxbPU8Tn86qJKoVwFz3Dvyhbapb3vqXz7QfCd/ZBiwRlHPpMkeNE2jyhIbbv7+Ino rmE8iPQJzd25k7sIeyVEmD2Djl9G3I4akiFsFDhr/UJa06YugvWBFW1s+m6VuMmD2nbY xaDAyA8UUYcnXwlBr61iCSFAi95n0Eh0sJi0PNvPUGVsvWhhXmbuhYR5h9L2L4bniWA/ g/11vsohFeS+nvrStGsIFVLGjzObw8f+mavn4pKjdcNSAmIU0KSGEIb6w3tSK4/kpgSc zwTOEqabsyg5Hmsug4L7tAqWgzeOTCJ/BVVSj72Zqp+C1cg9Xe1RiDgXd1rvfrtEj/6U 4xAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=fhHaMdsl7JAy+548H7ISCjeA4TVpvL94fbTYt3aY5T4=; b=0IFv3IWHaBBYQeZcsECttUPaFO7ahMbR9gbXTSzol0RubRfgHyp0uAdkxB1RQy2gKe uSb7Z85AbEATpXz2sjp5Sjk+WsqVuSzgctugpWmdGoZVbdQerWjOct7bIX/tFQJ/piCU xsZ/O91T9xogMgp4V+ogvT3BGJBr8yEgvr6CwRDOfT4TAfpMnPXXDx9/QyHN1A23vOyk 16Xw3KmObOWbuxhWVoL0+6IigBkEnvMZt8R/gJivjlvZQEEJZB/83+xMb3voOV44GvQL vNsKVPaaCyrzNmz5ViJyCItYiTMGB/+TC5vZeWQpwgjrPBDbTHwpXv7DoQxULlvIwAdd zBEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="a8Agfw/b"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17si29221969ejj.5.2019.12.31.09.25.10; Tue, 31 Dec 2019 09:25:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="a8Agfw/b"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727187AbfLaRZJ (ORCPT + 8 others); Tue, 31 Dec 2019 12:25:09 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:37818 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727180AbfLaRZI (ORCPT ); Tue, 31 Dec 2019 12:25:08 -0500 Received: by mail-lj1-f195.google.com with SMTP id o13so25439287ljg.4 for ; Tue, 31 Dec 2019 09:25:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fhHaMdsl7JAy+548H7ISCjeA4TVpvL94fbTYt3aY5T4=; b=a8Agfw/bmt/RK9nlv1f2EZRwM6/cbfI0eDNPwWykfBNLLESFyHXKTrWBAcL30mMkSe WupmEqAdhg/mA+REdV+Ea1X+2T0RDxQoOyqOlc0y+JM1tjtU1qFJqce7Lds2VN+4cnhW SZlDqMRDKCYh75dt45cap31A8/8sVqxU5VXIoxjZDMqSDaSi9oIDo42AdUKwmempYU32 DZdd0hcyURjPL1To+aOnkFe8Zm+DWEghy7Rs15jJ+0NOCblFdvRGQjnwnjDfFFGbJuTs WAIfHGIW7+WX/16iTsY+p0u/Lb+5PmzZ844XgS7gyqNVU92TDdL8UEPGAsfL208we5tq N4gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fhHaMdsl7JAy+548H7ISCjeA4TVpvL94fbTYt3aY5T4=; b=RtsTqCMgZn4JgfhPdoXRitaaRab8ke9PgTcd+ihKfJD9D8lIfzCGvYYSTA1e/sI7kY keKYqlLkI8TsQkC0Mw5zRJeud7ofuATwqYip3NhWN/5yn7+5LfOOSmGGpq4lTYfePqcf 2AG3NrMNW27ImOX+PzQ4ErU3QjuHHM91kqukQ2kZE3Yj8Buh6a1e2bgo4htuTqYRhaog Zs8gz0Z3bHY1xBmh4dxILzbdJj74uHBqs1xhM0GwHQDhdowyGg4kjlITWFfGRW2UspAr pLnik40TyV7xcNwCPCN5wCENefGorVyrOXNVtB4xYEj3K/Hwq0trW4EkFmneOtnpdTsh SDjQ== X-Gm-Message-State: APjAAAVdHzP0rBCLH67u4YL8bL+J95i79+0dFqawjn08nSu2ANlrB1kZ IZmUa+Fz+kUHrl9fy3RIPq3+ZyeLJE0Ciw== X-Received: by 2002:a2e:814e:: with SMTP id t14mr41616001ljg.149.1577813107026; Tue, 31 Dec 2019 09:25:07 -0800 (PST) Received: from localhost.bredbandsbolaget (c-5ac9225c.014-348-6c756e10.bbcust.telenor.se. [92.34.201.90]) by smtp.gmail.com with ESMTPSA id z11sm16991572ljc.97.2019.12.31.09.25.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Dec 2019 09:25:06 -0800 (PST) From: Linus Walleij To: Rob Herring , devicetree@vger.kernel.org, Jens Axboe Cc: linux-ide@vger.kernel.org, Linus Walleij Subject: [PATCH 1/2] dt-bindings: Create DT bindings for [PS]ATA controllers Date: Tue, 31 Dec 2019 18:24:57 +0100 Message-Id: <20191231172458.25984-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org I need to create subnodes for drives connected to PATA or SATA host controllers, and this needs to be supported generally, so create a common YAML binding for "pata-controller" or "sata-controller" that will support subnodes with drives. Cc: Rob Herring Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- .../bindings/ata/pata-sata-common.yaml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/ata/pata-sata-common.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/ata/pata-sata-common.yaml b/Documentation/devicetree/bindings/ata/pata-sata-common.yaml new file mode 100644 index 000000000000..d94aa20a29e3 --- /dev/null +++ b/Documentation/devicetree/bindings/ata/pata-sata-common.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/ata/pata-sata-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common Properties for Parallel and Serial AT attachment controllers + +maintainers: + - Linus Walleij + +description: | + This document defines device tree properties common to most Parallel + (PATA) and Serial (SATA) AT attachment storage devices. It doesn't + constitue a device tree binding specification by itself but is meant to + be referenced by device tree bindings. + + The PATA/SATA controller device tree bindings are responsible for + defining whether each property is required or optional. + +properties: + $nodename: + pattern: "^[ps]ata-controller(@.*)?$" + description: + Specifies the host controller node. + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^drive@[0-1]$": + description: | + DT nodes for drives connected on the PATA or SATA host. The master drive + will have ID number 0 and the slave drive will have ID number 1. + type: object + + properties: + reg: + minimum: 0 + maximum: 1 + description: + The ID number of the drive, 0 for the master and 1 for the slave. + +...